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
Constructs a new board, that take the dimension as its only parameter, and initialize a game board with the empty slot at (0,0). Added in Abstract model, thus passing in new Triangle board as parameter to super.
public TriangleSolitaireModelImpl(int dimensions) throws IllegalArgumentException { super(new TriangleBoard(dimensions)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}", "public Board() {\n\t\tdimension = 9;\n\t\tpuzzle = new int[dimension][dimension];\n\t}", "public Board(float width, float height) {\r\n tablero = new Array<BlockDrawable>();\r\n this.width = width;\r\n this.height = height;\r\n deletedRowsInfo.ordered = true;\r\n reset();\r\n }", "Board() {\n\t\tswitch (Board.boardType) {\n\t\tcase Tiny:\n\t\t\tthis.dimensions = TinyBoard; break;\n\t\tcase Giant:\n\t\t\tthis.dimensions = GiantBoard; break;\n\t\tdefault:\n\t\t\tthis.dimensions = StandardBoard; break;\n\t\t}\n\t\tboard = new Square[dimensions.x][dimensions.y];\n\t\tinit();\n\t}", "@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}", "public Board() {\n initialize(3, null);\n }", "public TriangleSolitaireModelImpl(int dimensions, int emptyRow, int emptyCol)\r\n throws IllegalArgumentException {\r\n super(new TriangleBoard(dimensions, emptyRow, emptyCol));\r\n }", "public GameBoard (int height, int width)\n {\n mHeight = height;\n mWidth = width;\n }", "public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}", "public TriangleSolitaireModelImpl(int emptyRow, int emptyCol) throws IllegalArgumentException {\r\n super(new TriangleBoard(emptyRow, emptyCol));\r\n }", "public Board(int dimensions){\n this.dimensions = dimensions;\n createBoard(dimensions);\n this.status = Status.CREATED;\n this.hitsLeft = 15;\n }", "public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }", "public Board() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n this.grid[row][col] = 0;\n }\n }\n }", "public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}", "public Board() {\r\n\t\tthis.size = 4;\r\n\t\tthis.gameBoard = createBoard(4);\r\n\t\tthis.openTiles = 16;\r\n\t\tthis.moves = 0;\r\n\t\tthis.xValues = new boolean[4][4];\r\n\t\tthis.yValues = new boolean[4][4];\r\n\t\tthis.complete = false;\r\n\t}", "public Board() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n spaces[y][x] = new SubBoard();\n wonBoards[y][x] = ' ';\n }\n }\n }", "public Board() {\n\t\tboardState = new Field[DIMENSION][DIMENSION];\n\t\tfor(int i = 0; i < DIMENSION; i++) {\n\t\t\tfor(int j = 0; j < DIMENSION; j++) {\n\t\t\t\tboardState[i][j] = new Field();\n\t\t\t}\n\t\t}\n\t}", "public Board() {\n this.x = 0;\n this.o = 0;\n }", "public GameBoard(){\r\n\t\tboard = new Box[boardSize];\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tboard[i] = Box.EMPTY;\r\n\t\t}\r\n\t}", "public Board(int size) {\n initialize(size, null);\n }", "public UIBoard()\r\n\t{\r\n\t\t//Creates a 10x10 \"Board\" object\r\n\t\tsuper(10,10);\r\n\t\tgrid = new int[getLength()][getWidth()];\r\n\t\t\r\n\t\t//Sets all coordinates to the value 0, which corresponds to \"not hit yet\"\r\n\t\tfor(int i=0; i<grid.length; i++)\r\n\t\t\tfor(int j=0; j<grid[i].length; j++)\r\n\t\t\t\tgrid[i][j] = 0;\t\t\r\n\t}", "public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }", "public PersonalBoard(){\n this(0);\n }", "public Board()\r\n\t{\r\n\t\treset();\r\n\t}", "public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }", "public Board(int boardHeight, int boardWidth) {\n this.boardWidth = boardHeight+1;\n this.boardHeight = boardWidth+1;\n this.board = new char[this.boardHeight][this.boardWidth];\n this.numShips = 0;\n boardInit();\n }", "public Board(int width, int height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tgrid = new boolean[width][height];\n\t\tcommitted = true;\n\t\t//Initialize the quick palying data attributes\n\t\twidths = new int[height];\n\t\theights = new int[width];\n\t\tmaxHeight = 0;\n\t\t//Initialize the undo data\n\t\tundoWidths = new int[height];\n\t\tundoHeights = new int[width];\n\t\tundoGrid = new boolean[width][height];\n\t\t\n\t\t// YOUR CODE HERE\n\t}", "public Board()\n\t{\n\t\tcols = DEFAULT_WIDTH;\n\t\trows = DEFAULT_HEIGHT;\n\t\t\n\t\tpieces = new int[rows][cols];\n\t\tif (pieces.length > 0)\n\t\t{\n\t\t\tfor (int i = 0; i < pieces.length; i++)\n\t\t\t\tfor (int j = 0; j < pieces[0].length; j++)\n\t\t\t\t\tpieces[i][j] = -1;\n\t\t}\n\t}", "public PersonalBoard(int width, int height){\n super(width, height);\n this.rand = new Random();\n }", "public abstract void createBoard();", "public Board(int width, int height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tgrid = new boolean[width][height];\n\t\tcommitted = true;\n\t\twidths = new int[height];\n\t\theights = new int[width];\n\t\tmaxColumnHeight = 0;\n\n\t\tbackupGrid = new boolean[width][height];\n\t\tbackupHeights = new int[width];\n\t\tbackupWidths = new int [height];\n\t\tbackupMaxColumnHeight = 0;\n\t}", "public OthelloBoard (int height, int width){\n super(height, width);\n m_Pieces = new OthelloPiece[WIDTH][HEIGHT];\n m_PieceCount+=4;\n \n }", "public Board(String gameType) {\n propertyFactory = new TileFactory(gameType);\n createBoard();\n }", "public Board() {\n playerNumber = 2;\n deadBlackCount = 0;\n deadWhiteCount = 0;\n deadRedCount = 0;\n deadBlueCount = 0;\n\n fields = new Field[DIMENSION][DIMENSION];\n // init fields\n for (int i = 0; i < DIMENSION; i++) {\n for (int j = 0; j < DIMENSION; j++) {\n fields[i][j] = new Field();\n fields[i][j].setX(i);\n fields[i][j].setY(j);\n }\n }\n }", "public Board (int rSize, int cSize)\r\n\t{\r\n\t\tint i, x;\r\n\t\tRow_Size = rSize;\r\n\t\tColumn_Size = cSize;\r\n\t\tLayout = new int [Row_Size][Column_Size];\r\n\r\n\t\tfor(i=0;i<Row_Size;i++)\r\n\t\t{\r\n\t\t\tfor(x=0;x<Column_Size;x++)\r\n\t\t\t{\r\n\t\t\t\tLayout[i][x] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "Board(int dimension, int height, int length, String[] board) {\n\t\tthis.dimension=dimension;\n\t\tsquares = new Square[dimension][dimension];\n\t\trows = new Row[dimension];\n\t\tcolumns = new Column[dimension];\n\t\tboxes = new Box[dimension];\n\t\t\n\t\tgenerateSquares(board);\n\t\tgenerateRows();\n\t\tgenerateColumns();\n\t\tgenerateBoxes(height, length);\n\t\t\n\t\tbuffer=new SudokuBuffer(this);\n\t}", "public Board() {\n\t\tfor(int i = 0; i < board.length; i++){\n\t\t\tfor(int j = 0; j < board[i].length; j++){\n\t\t\t\tboard[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}", "public Gameboard() {\n\n\t\tturn = 0;\n\n\t\tboard = new Cell[4][4][4];\n\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int j = 0; j < board.length; j++) {\n\t\t\t\tfor (int k = 0; k < board.length; k++) {\n\n\t\t\t\t\tboard[i][j][k] = Cell.E;\n\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public BoardImpl(int size)\r\n {\r\n if (size != 9 && size != 13 && size != 19)\r\n throw new WrongBoardSizeException(\"Board could not be created. GO board must be size 9, 13 or 19\");\r\n setSize(size);\r\n setBoard(new ArrayList<List<Field>>());\r\n setHistory(new ArrayList<Move>());\r\n createFields();\r\n }", "public ChessBoard(Knight knight, int dimension) {\n BOARD_SIZE = dimension;\n playingBoard = new Square[BOARD_SIZE][BOARD_SIZE];\n currentKnight = knight;\n createSquares();\n createHeuristics();\n }", "public TriangleSolitaireModelImpl() {\r\n super(new TriangleBoard());\r\n }", "public TTTBoard(int dimensions)\n\t{\n\t\tsuper(dimensions, dimensions);\n\t\tplayer = 0;\n\t}", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n drawLines();\n \n for( int r = 0; r < board.length; r++ )\n {\n for( int c = 0; c < board[r].length; c++)\n {\n board[r][c] = \"\"; \n \n }\n }\n }", "private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }", "public TicTacToeBoard() {board = new int[rows][columns];}", "public Sudoku() {\n this.board = new int[size][size];\n }", "public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "public TicTacToeBoard() {\n grid = new Cell[N][N];\n\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++)\n grid[i][j] = new Cell(i, j, '-');\n }\n }", "public ThreeStonesBoard(int size) {\r\n this.size = size;\r\n this.board = new Tile[size][size];\r\n }", "public Board(){\n for(int holeIndex = 0; holeIndex<holes.length; holeIndex++)\n holes[holeIndex] = new Hole(holeIndex);\n for(int kazanIndex = 0; kazanIndex<kazans.length; kazanIndex++)\n kazans[kazanIndex] = new Kazan(kazanIndex);\n nextToPlay = Side.WHITE;\n }", "public Board() {\n\t\tthis.myBoard = new BlockFor2048[4][4];\n\t\tint randomInserted = 0;\n\t\tint colInd = 0;\n\t\tint rowInd = 0;\n\t\twhile (randomInserted != 2){\n\t\t\tcolInd = (int)(Math.random() * 4);\n\t\t\trowInd = (int)(Math.random() * 4);\n\t\t\tif (this.myBoard[colInd][rowInd] == null){\n\t\t\t\tthis.myBoard[colInd][rowInd] = new BlockFor2048(2);\n\t\t\t\trandomInserted++;\n\t\t\t}\n\t\t}\t\t\n\t\tthis.ScoreValue = 0;\n\t}", "public Board(int[][] grid, Tetrimino piece) {\n //initComponents();\n this.grid = grid;\n this.piece = piece;\n setLayout(new GridLayout(grid.length-4, grid[0].length));\n init();\n }", "public BoardGame(String name, int dimension, int totalPlayer) {\r\n this.name = name;\r\n this.dimension = dimension;\r\n this.totalPlayer = totalPlayer;\r\n board = new int[dimension][dimension];\r\n }", "protected BattleshipBoard(int rows, int cols, int maxPlayer, Interaction interaction, Piece currentPiece) {\n\t\tsuper(rows, cols, maxPlayer, interaction, currentPiece);\n\t\tthis.shipBoard = new BattleshipPiece[rows][cols];\n\t\tthis.playerScore = new int[maxPlayer];\n\t}", "public Board() {\n this.board = new Piece[16];\n }", "public Board() {\n\t\tthis.table = new int[Constants.SIZE][Constants.SIZE];\n\t\tthis.P1Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tthis.P2Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tP1turn = true;\n\t\tnumPieces = 0;\n\t\t\n\t\tfor(int i=0; i<table.length; i++) {\n\t\t\tfor(int j=0; j<table[i].length; j++) {\n\t\t\t\ttable[i][j] = Constants.EMPTY;\n\t\t\t\tP1Movable[i][j] = true;\n\t\t\t\tP2Movable[i][j] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public Board() {\n\t\tboard = new char[9][9];\n\t}", "public Game() {\n board = new FourBoard();\n }", "public Board(int xLen, int yLen)\r\n {\r\n if(xLen <= 0 || yLen <= 0)\r\n xLen = yLen = 8;\r\n board = new Piece[xLen][yLen];\r\n xLength = xLen;\r\n yLength = yLen;\r\n }", "Board() {\n clear();\n }", "Board() {\n clear();\n }", "public GameBoard(){\r\n boardCells = new GameCell[NUMBER_OF_CELLS];\r\n for( int i= 0; i< NUMBER_OF_CELLS; i++ ){\r\n boardCells[i] = new GameCell(i);//\r\n }\r\n }", "public Board(Board a)\n {\n mainBoard=false;\n squares = new Square[Chess.ROWS][Chess.COLUMNS];\n setLayout(new GridLayout(Chess.ROWS,Chess.COLUMNS,0,0));\n if (a.firstSelected==null)\n firstSelected=null;\n else\n firstSelected = new Piece(a.firstSelected);\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n squares[i][j] = new Square(a.squares[i][j]);\n }", "public Board(int size, Piece[][] initConfig) {\n initialize(size, initConfig);\n }", "public Display() {\r\n\t\t//Fills the board with invalid positions\r\n\t\tboard = new int[17][17];\r\n\t\tfor (int i = 0; i < 17; i++)\r\n\t\t\tfor (int j = 0; j < 17; j++)\r\n\t\t\t\tboard[i][j] = -1;\r\n\r\n\t\t//Fills the center of the board with valid positions\r\n\t\tfor (int i = 4; i <= 12; i++)\r\n\t\t\tfor (int j = 4; j <= 12; j++)\r\n\t\t\t\tboard[i][j] = 0;\r\n\t\t\r\n\t\t//Fills the rest of the board with valid positions\r\n\t\tfillTriangle(-1, board, 0, 16, 12);\r\n\t\tfillTriangle(1, board, 0, 9, 13);\r\n\t\tfillTriangle(-1, board, 0, 7, 12);\r\n\t\tfillTriangle(1, board, 0, 0, 4);\r\n\t\tfillTriangle(-1, board, 0, 7, 3);\r\n\t\tfillTriangle(1, board, 0, 9, 4);\r\n\t\t\r\n\t\tthis.setPreferredSize(SIZE);\r\n\t}", "public Board() {\n\t\tboard = new int[8][8];\n\t\tbombs = 64 / 3;\n\t\tdifficulty = GlobalModel.BESTSCORE_EASY;\n\t\tfillBoard();\n\t\tsetDefaultScores();\n\t}", "private Board() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// A private board constructor to ensure only one is created\n\t\tsuper();\n\t}", "Board createLayout();", "public XOBoard() {\n\t\t// initialise the boards\n\t\tboard = new int[4][4];\n\t\trenders = new XOPiece[4][4];\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tboard[i][j] = EMPTY;\n\t\t\t\trenders[i][j] = null;\n\t\t\t}\n\t\tcurrent_player = XPIECE;\n\n\t\t// initialise the rectangle and lines\n\t\tback = new Rectangle();\n\t\tback.setFill(Color.GREEN);\n\t\th1 = new Line();\n\t\th2 = new Line();\n\t\th3 = new Line();\n\t\tv1 = new Line();\n\t\tv2 = new Line();\n\t\tv3 = new Line();\n\t\th1.setStroke(Color.WHITE);\n\t\th2.setStroke(Color.WHITE);\n\t\th3.setStroke(Color.WHITE);\n\t\tv1.setStroke(Color.WHITE);\n\t\tv2.setStroke(Color.WHITE);\n\t\tv3.setStroke(Color.WHITE);\n\n\t\t// the horizontal lines only need the endx value modified the rest of //\n\t\t// the values can be zero\n\t\th1.setStartX(0);\n\t\th1.setStartY(0);\n\t\th1.setEndY(0);\n\t\th2.setStartX(0);\n\t\th2.setStartY(0);\n\t\th2.setEndY(0);\n\t\th3.setStartX(0);\n\t\th3.setStartY(0);\n\t\th3.setEndY(0);\n\n\t\t// the vertical lines only need the endy value modified the rest of the\n\t\t// values can be zero\n\t\tv1.setStartX(0);\n\t\tv1.setStartY(0);\n\t\tv1.setEndX(0);\n\t\tv2.setStartX(0);\n\t\tv2.setStartY(0);\n\t\tv2.setEndX(0);\n\t\tv3.setStartX(0);\n\t\tv3.setStartY(0);\n\t\tv3.setEndX(0);\n\n\t\t// setup the translation of one cell height and two cell heights\n\t\tch_one = new Translate(0, 0);\n\t\tch_two = new Translate(0, 0);\n\t\tch_three = new Translate(0, 0);\n\t\th1.getTransforms().add(ch_one);\n\t\th2.getTransforms().add(ch_two);\n\t\th3.getTransforms().add(ch_three);\n\n\t\t// setup the translation of one cell width and two cell widths\n\t\tcw_one = new Translate(0, 0);\n\t\tcw_two = new Translate(0, 0);\n\t\tcw_three = new Translate(0, 0);\n\t\tv1.getTransforms().add(cw_one);\n\t\tv2.getTransforms().add(cw_two);\n\t\tv3.getTransforms().add(cw_three);\n\n\t\t// add the rectangles and lines to this group\n\t\tgetChildren().addAll(back, h1, h2, h3, v1, v2, v3);\n\n\t}", "private GameBoard() {}", "public Grid() {\n setPreferredSize(new Dimension(960, 640));\n setBounds(0, 0, 960, 640);\n setLayout(null);\n setBackground(Color.black);\n this.size = 30;\n squares = new Square[size][20];\n }", "public Board(int boardSize, Random random)\n {\n this.random = random;\n GRID_SIZE = boardSize; \n this.grid = new int[boardSize][boardSize];\n for ( int i=0; i < NUM_START_TILES; i++) {\n this.addRandomTile();\n }\n }", "public Board() {\n tiles = new int[3][3];\n int[] values = genValues(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 0});\n\n int offset;\n for (int i = 0; i < 3; i++) {\n offset = 2 * i;\n tiles[i] = Arrays.copyOfRange(values, i + offset, i + offset + 3);\n }\n }", "Board() {\n this.cardFactory = new CardFactory(this);\n }", "public ThirteensBoard()\n {\n super(BOARD_SIZE, RANKS, SUITS, POINT_VALUES);\n }", "public Board()\r\n\t{\r\n\t\tthis.grid = new CellState[GRID_SIZE][GRID_SIZE];\r\n\t\tthis.whiteMarblesCount = MARBLES_COUNT;\r\n\t\tthis.blackMarblesCount = MARBLES_COUNT;\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the board with empty value\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < GRID_SIZE; indexcol++)\r\n\t\t{\r\n\t\t\tfor (int indexrow = 0; indexrow < GRID_SIZE; indexrow++)\r\n\t\t\t{\r\n\t\t\t\tthis.grid[indexrow][indexcol] = CellState.EMPTY;\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Sets marbles on the board with default style\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[0][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[8][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 0; indexcol < 6; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[1][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[7][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 2; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[2][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[6][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tthis.grid[3][8] = CellState.INVALID;\r\n\t\tthis.grid[2][7] = CellState.INVALID;\r\n\t\tthis.grid[1][6] = CellState.INVALID;\r\n\t\tthis.grid[0][5] = CellState.INVALID;\r\n\t\tthis.grid[5][0] = CellState.INVALID;\r\n\t\tthis.grid[6][1] = CellState.INVALID;\r\n\t\tthis.grid[7][2] = CellState.INVALID;\r\n\t\tthis.grid[8][3] = CellState.INVALID;\r\n\t}", "public Board(int x, int y){\n player1 = \"Player 1\";\n player2 = \"Player 2\";\n randomPlayer1 = \"CPU 1\";\n randomPlayer2 = \"CPU 2\";\n board = new Square[x][y];\n for (int i = 0; i < board.length;i++){\n row++;\n for(int j = 0; j < board.length; j++){\n if(column == y){\n column = 0;\n }\n column++;\n board[i][j] = new Square(row, column);\n }\n }\n row = x;\n column = y;\n }", "@Override\n public void createBoard(int width, int height, int numMines) {\n // Clamp the dimensions and mine numbers\n dims = new Point(Util.clamp(width, MIN_DIM_X, MAX_DIM_X),\n Util.clamp(height, MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Step 1\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n List<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), false));\n }\n cells.add(oneRow);\n }\n\n // Step 2\n int minesPlaced = 0;\n while (minesPlaced < this.numMines) {\n int randX = ThreadLocalRandom.current().nextInt((int) dims.getX());\n int randY = ThreadLocalRandom.current().nextInt((int) dims.getY());\n\n if (!cells.get(randY).get(randX).isMine()) {\n cells.get(randY).get(randX).setNumber(-1);\n minesPlaced++;\n }\n }\n\n // Step 3\n updateCellNumbers();\n }", "private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}", "Board() {\n this(INITIAL_PIECES, BLACK);\n _countBlack = 12;\n _countWhite = 12;\n _moveHistory = new ArrayList<Move>();\n _movesMade = 0;\n }", "public AIPlayer(Board board) {\n cells = board.squares;\n }", "Board() {\r\n init();\r\n }", "public Board(int[][] tiles) {\n n = tiles.length;\n this.tiles = deepCopy(tiles);\n }", "public Classroom()\n { \n // Create a new world with 10x6 cells with a cell size of 130x130 pixels.\n super(10, 6, 130); \n prepare();\n }", "public SquareBoard(Coordinates C, double hw, Color v)\r\n {\r\n r = new Rectangle(C.X(), C.Y(), hw, hw);\r\n r.setStroke(Color.BLACK);\r\n r.setFill(v);\r\n BoardPane.getPane().getChildren().add(r);\r\n }", "public Board() {\n this.actionField = new ActionField();\n this.buyField = new BuyField();\n }", "public void newBoard(LiteBoard board) {\n }", "public Board() {\n\t\tmarkCount = 0;\n\t\ttheBoard = new char[3][];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\ttheBoard[i] = new char[3];\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\t}\n\t}", "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 void Makeboard() {\r\n\r\n Normalboard(new Point2(20, 300));\r\n Normalboard(new Point2(224, 391));\r\n Stingboard(new Point2(156, 209));\r\n Leftlboard(new Point2(88, 482));\r\n Rightboard(new Point2(292, 573));\r\n Regenerateboard(new Point2(360, 118));\r\n\r\n }", "public ThreeStonesBoard(Tile[][] board) {\r\n this.board = board;\r\n }", "public Connect4Board() {\n super(rows, cols);\n }", "public Board(int dimensionX, int dimensionY) {\n\t\tthis.fieldMap = FieldMap.getEmptyFieldMap(dimensionX, dimensionY);\n\t\tFieldMap.serialize(fieldMap, \"test.map\");\n\t\tunitsOnBoard = new HashMap<Position, Unit>();\n\t}", "public abstract void initPlayboard(int size);", "public Board(int rows, int columns) throws Exception {\n\t\tif (rows >= 8 && columns >= 8) {\n\t\t\tthis.rows = rows;\n\t\t\tthis.columns = columns;\n\t\t\tboard = new int[rows][columns];\n\t\t\tthis.bombs = (rows * columns) / 3;\n\t\t\tfillBoard();\n\t\t} else {\n\t\t\tthrow new Exception(\"Minesweeper dimensions invalid:\\nWidth: from 8 to 100\\nHeight: from 8 to 100\\nBombs: 1 to 1/3 of squares\");\n\t\t}\n\t}", "public void create() {\n\t\t// setup Chess board\n\t\tthis.removeAll();\n\t\tthis.layout = new GridLayout(this.startupBoardSize, this.startupBoardSize);\n\t\tthis.squares = new SquarePanel[this.startupBoardSize][this.startupBoardSize];\n\t\t\n\t\tsetLayout(layout);\n\t\tsetPreferredSize(new Dimension(600, 600));\n\t\tsetBorder(new LineBorder(new Color(0, 0, 0)));\n\n\t\t//paint the chess board\n\n\t\tfor (int i = 0; i < this.startupBoardSize; i++) \n\t\t{\n\t\t\tfor (int j = 0; j < this.startupBoardSize; j++) \n\t\t\t{\n\t\t\t\tsquares[i][j] = new SquarePanel(j, i);\n\t\t\t\tsquares[i][j].setPreferredSize(new Dimension(600 / this.startupBoardSize - 5, 600 / this.startupBoardSize - 5));\n\n\n\t\t\t\tsquares[i][j].setBackground(Color.WHITE);\n\t\t\t\t\n\t\t\t\tif (((i + j) % 2) == 0) \n\t\t\t\t{\n\t\t\t\t\tsquares[i][j].setBackground(Color.DARK_GRAY);\n\t\t\t\t}\n\t\t\t\tadd(squares[i][j]);\n\t\t\t}\n\t\t}\n\t}", "protected BattleshipBoard(int rows, int cols, int maxPlayer, Interaction interaction, Piece currentPiece, Pattern pattern, Color color) {\n\t\tsuper(rows, cols, maxPlayer, interaction, currentPiece, pattern, color);\n\t\tthis.shipBoard = new BattleshipPiece[rows][cols];\n\t\tthis.playerScore = new int[maxPlayer];\n\t}", "public ChessBoard() {\n initComponents();\n createChessBoard();\n\n }", "public Queen(int initX, int initY, Color color, StandardBoard board) {\n\t\tsuper(initX, initY, color, board);\n\t\tthis.nameOfPiece = \"queen\";\n\t}", "public TicTacToe(){ \r\n\t\tboard = new char[3][3];\r\n\t}" ]
[ "0.71569955", "0.7112845", "0.7063192", "0.7047477", "0.6914882", "0.68455386", "0.68211436", "0.6806238", "0.6802017", "0.67800575", "0.6731257", "0.6726614", "0.67080355", "0.6684902", "0.6662173", "0.66570705", "0.6641485", "0.66276366", "0.66216636", "0.66160506", "0.6612853", "0.66120285", "0.6548301", "0.6537169", "0.6535915", "0.65174073", "0.6505184", "0.6478906", "0.64615804", "0.6461323", "0.6457837", "0.6441804", "0.6435221", "0.6432511", "0.63838243", "0.6370226", "0.63514626", "0.6349541", "0.6344218", "0.633189", "0.63315374", "0.63170636", "0.63125825", "0.6305968", "0.6304952", "0.6285248", "0.62717175", "0.62652284", "0.62558067", "0.62513965", "0.6249342", "0.62276286", "0.621395", "0.6213833", "0.6197957", "0.61947364", "0.61915505", "0.61881", "0.61856526", "0.6177746", "0.6177746", "0.6175081", "0.6143721", "0.61430514", "0.6141482", "0.61395466", "0.6139405", "0.61353683", "0.6123267", "0.6121131", "0.61151487", "0.61133033", "0.6076791", "0.60562104", "0.60517704", "0.60497653", "0.6044107", "0.60402334", "0.60398906", "0.6039683", "0.60382354", "0.6035746", "0.6034517", "0.6028845", "0.5998258", "0.599314", "0.59807813", "0.5976436", "0.59764063", "0.597397", "0.59727436", "0.5967499", "0.5960409", "0.5953726", "0.59524906", "0.59502214", "0.59465384", "0.5946102", "0.5945074", "0.5940761" ]
0.63717765
35
Constructs a new board, that take two parameters: emptyRow and emptyCol and initialize the game board, so that the dimension is 5 and the empty slot is at the position (emptyRow, emptyCol). Added in Abstract model, thus passing in new Triangle board as parameter to super.
public TriangleSolitaireModelImpl(int emptyRow, int emptyCol) throws IllegalArgumentException { super(new TriangleBoard(emptyRow, emptyCol)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TriangleSolitaireModelImpl(int dimensions, int emptyRow, int emptyCol)\r\n throws IllegalArgumentException {\r\n super(new TriangleBoard(dimensions, emptyRow, emptyCol));\r\n }", "public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}", "public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}", "public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }", "public Board() {\n initialize(3, null);\n }", "public Board() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n this.grid[row][col] = 0;\n }\n }\n }", "public UIBoard()\r\n\t{\r\n\t\t//Creates a 10x10 \"Board\" object\r\n\t\tsuper(10,10);\r\n\t\tgrid = new int[getLength()][getWidth()];\r\n\t\t\r\n\t\t//Sets all coordinates to the value 0, which corresponds to \"not hit yet\"\r\n\t\tfor(int i=0; i<grid.length; i++)\r\n\t\t\tfor(int j=0; j<grid[i].length; j++)\r\n\t\t\t\tgrid[i][j] = 0;\t\t\r\n\t}", "public Board() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n spaces[y][x] = new SubBoard();\n wonBoards[y][x] = ' ';\n }\n }\n }", "public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}", "public Board() {\n this.x = 0;\n this.o = 0;\n }", "public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }", "public GameBoard(){\r\n\t\tboard = new Box[boardSize];\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tboard[i] = Box.EMPTY;\r\n\t\t}\r\n\t}", "public TicTacToeBoard() {\n grid = new Cell[N][N];\n\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++)\n grid[i][j] = new Cell(i, j, '-');\n }\n }", "public Board() {\n\t\tdimension = 9;\n\t\tpuzzle = new int[dimension][dimension];\n\t}", "public Board(int size) {\n initialize(size, null);\n }", "public Board()\n\t{\n\t\tcols = DEFAULT_WIDTH;\n\t\trows = DEFAULT_HEIGHT;\n\t\t\n\t\tpieces = new int[rows][cols];\n\t\tif (pieces.length > 0)\n\t\t{\n\t\t\tfor (int i = 0; i < pieces.length; i++)\n\t\t\t\tfor (int j = 0; j < pieces[0].length; j++)\n\t\t\t\t\tpieces[i][j] = -1;\n\t\t}\n\t}", "public Board() {\r\n\t\tthis.size = 4;\r\n\t\tthis.gameBoard = createBoard(4);\r\n\t\tthis.openTiles = 16;\r\n\t\tthis.moves = 0;\r\n\t\tthis.xValues = new boolean[4][4];\r\n\t\tthis.yValues = new boolean[4][4];\r\n\t\tthis.complete = false;\r\n\t}", "public Board (int rSize, int cSize)\r\n\t{\r\n\t\tint i, x;\r\n\t\tRow_Size = rSize;\r\n\t\tColumn_Size = cSize;\r\n\t\tLayout = new int [Row_Size][Column_Size];\r\n\r\n\t\tfor(i=0;i<Row_Size;i++)\r\n\t\t{\r\n\t\t\tfor(x=0;x<Column_Size;x++)\r\n\t\t\t{\r\n\t\t\t\tLayout[i][x] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public Board()\r\n\t{\r\n\t\treset();\r\n\t}", "private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }", "public Board()\r\n\t{\r\n\t\tthis.grid = new CellState[GRID_SIZE][GRID_SIZE];\r\n\t\tthis.whiteMarblesCount = MARBLES_COUNT;\r\n\t\tthis.blackMarblesCount = MARBLES_COUNT;\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the board with empty value\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < GRID_SIZE; indexcol++)\r\n\t\t{\r\n\t\t\tfor (int indexrow = 0; indexrow < GRID_SIZE; indexrow++)\r\n\t\t\t{\r\n\t\t\t\tthis.grid[indexrow][indexcol] = CellState.EMPTY;\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Sets marbles on the board with default style\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[0][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[8][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 0; indexcol < 6; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[1][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[7][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 2; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[2][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[6][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tthis.grid[3][8] = CellState.INVALID;\r\n\t\tthis.grid[2][7] = CellState.INVALID;\r\n\t\tthis.grid[1][6] = CellState.INVALID;\r\n\t\tthis.grid[0][5] = CellState.INVALID;\r\n\t\tthis.grid[5][0] = CellState.INVALID;\r\n\t\tthis.grid[6][1] = CellState.INVALID;\r\n\t\tthis.grid[7][2] = CellState.INVALID;\r\n\t\tthis.grid[8][3] = CellState.INVALID;\r\n\t}", "public Board(int rows, int columns) throws Exception {\n\t\tif (rows >= 8 && columns >= 8) {\n\t\t\tthis.rows = rows;\n\t\t\tthis.columns = columns;\n\t\t\tboard = new int[rows][columns];\n\t\t\tthis.bombs = (rows * columns) / 3;\n\t\t\tfillBoard();\n\t\t} else {\n\t\t\tthrow new Exception(\"Minesweeper dimensions invalid:\\nWidth: from 8 to 100\\nHeight: from 8 to 100\\nBombs: 1 to 1/3 of squares\");\n\t\t}\n\t}", "public Gameboard() {\n\n\t\tturn = 0;\n\n\t\tboard = new Cell[4][4][4];\n\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int j = 0; j < board.length; j++) {\n\t\t\t\tfor (int k = 0; k < board.length; k++) {\n\n\t\t\t\t\tboard[i][j][k] = Cell.E;\n\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "Board() {\n\t\tswitch (Board.boardType) {\n\t\tcase Tiny:\n\t\t\tthis.dimensions = TinyBoard; break;\n\t\tcase Giant:\n\t\t\tthis.dimensions = GiantBoard; break;\n\t\tdefault:\n\t\t\tthis.dimensions = StandardBoard; break;\n\t\t}\n\t\tboard = new Square[dimensions.x][dimensions.y];\n\t\tinit();\n\t}", "private void initialiseBoard() {\r\n\t\t//Set all squares to EMPTY\r\n\t\tfor(int x = 0; x < board.getWidth(); x++) {\r\n\t\t\tfor(int y = 0; y < board.getHeight(); y++) {\r\n\t\t\t\tboard.setSquare(new GridSquare(GridSquare.Type.EMPTY), x, y);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//Assign player tiles\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_ONE_TILE), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new PlayerTile(GridSquare.Type.PLAYER_TWO_TILE), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y);\r\n\t\t\r\n\t\t//Assign Creation tiles\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_ONE_POSITION_X+3, Board.PLAYER_ONE_POSITION_Y+3);\r\n\t\tsetFixedTile(new CreationTile(GridSquare.Type.CREATION_TILE), Board.PLAYER_TWO_POSITION_X-3, Board.PLAYER_TWO_POSITION_Y-3);\r\n\t\t\r\n\t\t//Assign Out of Bounds tiles\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_ONE_POSITION_X-3, Board.PLAYER_ONE_POSITION_Y-3);\r\n\t\t\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\tsetFixedTile(new OutOfBoundsTile(GridSquare.Type.OUT_OF_BOUNDS), Board.PLAYER_TWO_POSITION_X+3, Board.PLAYER_TWO_POSITION_Y+3);\r\n\t\t\r\n\t\t\r\n\t}", "public Board() {\n\t\tboardState = new Field[DIMENSION][DIMENSION];\n\t\tfor(int i = 0; i < DIMENSION; i++) {\n\t\t\tfor(int j = 0; j < DIMENSION; j++) {\n\t\t\t\tboardState[i][j] = new Field();\n\t\t\t}\n\t\t}\n\t}", "public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }", "public Board(float width, float height) {\r\n tablero = new Array<BlockDrawable>();\r\n this.width = width;\r\n this.height = height;\r\n deletedRowsInfo.ordered = true;\r\n reset();\r\n }", "public BoardImpl(int size)\r\n {\r\n if (size != 9 && size != 13 && size != 19)\r\n throw new WrongBoardSizeException(\"Board could not be created. GO board must be size 9, 13 or 19\");\r\n setSize(size);\r\n setBoard(new ArrayList<List<Field>>());\r\n setHistory(new ArrayList<Move>());\r\n createFields();\r\n }", "public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "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 TicTacToeBoard() {board = new int[rows][columns];}", "public Grid(int recRowSize, int recColSize) {\r\n counter = 0;\r\n rowSize = recRowSize;\r\n colSize = recColSize;\r\n myCells = new Cell[recRowSize + 2][recColSize + 2];\r\n for (int row = 0; row < myCells.length; row++) {\r\n for (int col = 0; col < myCells[row].length; col++) {\r\n myCells[row][col] = new Cell();\r\n }\r\n }\r\n }", "public Board() {\n\t\tfor(int i = 0; i < board.length; i++){\n\t\t\tfor(int j = 0; j < board[i].length; j++){\n\t\t\t\tboard[i][j] = 0;\n\t\t\t}\n\t\t}\n\t}", "Board() {\n clear();\n }", "Board() {\n clear();\n }", "public static SquareBoard getEmptyBoard() {\n\n\t\tSquareBoard emptyBoard = new SquareBoard(BOARD_SIZE);\n\t\t\n\t\treturn emptyBoard;\n\t}", "public Board() {\n\t\tthis.myBoard = new BlockFor2048[4][4];\n\t\tint randomInserted = 0;\n\t\tint colInd = 0;\n\t\tint rowInd = 0;\n\t\twhile (randomInserted != 2){\n\t\t\tcolInd = (int)(Math.random() * 4);\n\t\t\trowInd = (int)(Math.random() * 4);\n\t\t\tif (this.myBoard[colInd][rowInd] == null){\n\t\t\t\tthis.myBoard[colInd][rowInd] = new BlockFor2048(2);\n\t\t\t\trandomInserted++;\n\t\t\t}\n\t\t}\t\t\n\t\tthis.ScoreValue = 0;\n\t}", "public Board(int[][] grid, Tetrimino piece) {\n //initComponents();\n this.grid = grid;\n this.piece = piece;\n setLayout(new GridLayout(grid.length-4, grid[0].length));\n init();\n }", "public Board(int boardSize, Random random)\n {\n this.random = random;\n GRID_SIZE = boardSize; \n this.grid = new int[boardSize][boardSize];\n for ( int i=0; i < NUM_START_TILES; i++) {\n this.addRandomTile();\n }\n }", "public Board(int dimensions){\n this.dimensions = dimensions;\n createBoard(dimensions);\n this.status = Status.CREATED;\n this.hitsLeft = 15;\n }", "public OthelloBoard (int height, int width){\n super(height, width);\n m_Pieces = new OthelloPiece[WIDTH][HEIGHT];\n m_PieceCount+=4;\n \n }", "public PersonalBoard(){\n this(0);\n }", "public Board() {\n\t\tboard = new char[9][9];\n\t}", "public Board() {\n playerNumber = 2;\n deadBlackCount = 0;\n deadWhiteCount = 0;\n deadRedCount = 0;\n deadBlueCount = 0;\n\n fields = new Field[DIMENSION][DIMENSION];\n // init fields\n for (int i = 0; i < DIMENSION; i++) {\n for (int j = 0; j < DIMENSION; j++) {\n fields[i][j] = new Field();\n fields[i][j].setX(i);\n fields[i][j].setY(j);\n }\n }\n }", "public abstract void createBoard();", "private Board(int size)\n {\n array = new char[size][size];\n \n for (int i = 0; i < size; i++)\n for (int j = 0; j < size; j++)\n array[i][j] = EMPTY;\n }", "public Board(int boardHeight, int boardWidth) {\n this.boardWidth = boardHeight+1;\n this.boardHeight = boardWidth+1;\n this.board = new char[this.boardHeight][this.boardWidth];\n this.numShips = 0;\n boardInit();\n }", "public Sudoku() {\n this.board = new int[size][size];\n }", "public Board(){\n for(int holeIndex = 0; holeIndex<holes.length; holeIndex++)\n holes[holeIndex] = new Hole(holeIndex);\n for(int kazanIndex = 0; kazanIndex<kazans.length; kazanIndex++)\n kazans[kazanIndex] = new Kazan(kazanIndex);\n nextToPlay = Side.WHITE;\n }", "public GameBoard(){\r\n boardCells = new GameCell[NUMBER_OF_CELLS];\r\n for( int i= 0; i< NUMBER_OF_CELLS; i++ ){\r\n boardCells[i] = new GameCell(i);//\r\n }\r\n }", "public ThreeStonesBoard(int size) {\r\n this.size = size;\r\n this.board = new Tile[size][size];\r\n }", "public GameBoard (int height, int width)\n {\n mHeight = height;\n mWidth = width;\n }", "public Board() {\n\t\tthis.table = new int[Constants.SIZE][Constants.SIZE];\n\t\tthis.P1Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tthis.P2Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tP1turn = true;\n\t\tnumPieces = 0;\n\t\t\n\t\tfor(int i=0; i<table.length; i++) {\n\t\t\tfor(int j=0; j<table[i].length; j++) {\n\t\t\t\ttable[i][j] = Constants.EMPTY;\n\t\t\t\tP1Movable[i][j] = true;\n\t\t\t\tP2Movable[i][j] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public SquareBoard(Coordinates C, double hw, Color v)\r\n {\r\n r = new Rectangle(C.X(), C.Y(), hw, hw);\r\n r.setStroke(Color.BLACK);\r\n r.setFill(v);\r\n BoardPane.getPane().getChildren().add(r);\r\n }", "Board() {\n this(INITIAL_PIECES, BLACK);\n _countBlack = 12;\n _countWhite = 12;\n _moveHistory = new ArrayList<Move>();\n _movesMade = 0;\n }", "private static void createEmptyBoard()\n {\n for (int index = 1; index < board.length; index++)\n {\n board[index] = ' ';\n }\n }", "@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}", "public Connect4Board() {\n super(rows, cols);\n }", "public XOBoard() {\n\t\t// initialise the boards\n\t\tboard = new int[4][4];\n\t\trenders = new XOPiece[4][4];\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tboard[i][j] = EMPTY;\n\t\t\t\trenders[i][j] = null;\n\t\t\t}\n\t\tcurrent_player = XPIECE;\n\n\t\t// initialise the rectangle and lines\n\t\tback = new Rectangle();\n\t\tback.setFill(Color.GREEN);\n\t\th1 = new Line();\n\t\th2 = new Line();\n\t\th3 = new Line();\n\t\tv1 = new Line();\n\t\tv2 = new Line();\n\t\tv3 = new Line();\n\t\th1.setStroke(Color.WHITE);\n\t\th2.setStroke(Color.WHITE);\n\t\th3.setStroke(Color.WHITE);\n\t\tv1.setStroke(Color.WHITE);\n\t\tv2.setStroke(Color.WHITE);\n\t\tv3.setStroke(Color.WHITE);\n\n\t\t// the horizontal lines only need the endx value modified the rest of //\n\t\t// the values can be zero\n\t\th1.setStartX(0);\n\t\th1.setStartY(0);\n\t\th1.setEndY(0);\n\t\th2.setStartX(0);\n\t\th2.setStartY(0);\n\t\th2.setEndY(0);\n\t\th3.setStartX(0);\n\t\th3.setStartY(0);\n\t\th3.setEndY(0);\n\n\t\t// the vertical lines only need the endy value modified the rest of the\n\t\t// values can be zero\n\t\tv1.setStartX(0);\n\t\tv1.setStartY(0);\n\t\tv1.setEndX(0);\n\t\tv2.setStartX(0);\n\t\tv2.setStartY(0);\n\t\tv2.setEndX(0);\n\t\tv3.setStartX(0);\n\t\tv3.setStartY(0);\n\t\tv3.setEndX(0);\n\n\t\t// setup the translation of one cell height and two cell heights\n\t\tch_one = new Translate(0, 0);\n\t\tch_two = new Translate(0, 0);\n\t\tch_three = new Translate(0, 0);\n\t\th1.getTransforms().add(ch_one);\n\t\th2.getTransforms().add(ch_two);\n\t\th3.getTransforms().add(ch_three);\n\n\t\t// setup the translation of one cell width and two cell widths\n\t\tcw_one = new Translate(0, 0);\n\t\tcw_two = new Translate(0, 0);\n\t\tcw_three = new Translate(0, 0);\n\t\tv1.getTransforms().add(cw_one);\n\t\tv2.getTransforms().add(cw_two);\n\t\tv3.getTransforms().add(cw_three);\n\n\t\t// add the rectangles and lines to this group\n\t\tgetChildren().addAll(back, h1, h2, h3, v1, v2, v3);\n\n\t}", "public Battleship(int row) {\r\n\t\tthis(row, 5);\r\n\t}", "@Override\n public void createBoard(int width, int height, int numMines) {\n // Clamp the dimensions and mine numbers\n dims = new Point(Util.clamp(width, MIN_DIM_X, MAX_DIM_X),\n Util.clamp(height, MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Step 1\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n List<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), false));\n }\n cells.add(oneRow);\n }\n\n // Step 2\n int minesPlaced = 0;\n while (minesPlaced < this.numMines) {\n int randX = ThreadLocalRandom.current().nextInt((int) dims.getX());\n int randY = ThreadLocalRandom.current().nextInt((int) dims.getY());\n\n if (!cells.get(randY).get(randX).isMine()) {\n cells.get(randY).get(randX).setNumber(-1);\n minesPlaced++;\n }\n }\n\n // Step 3\n updateCellNumbers();\n }", "private void initializeBoard() {\n\n squares = new Square[8][8];\n\n // Sets the initial turn to the White Player\n turn = white;\n\n final int maxSquares = 8;\n for(int i = 0; i < maxSquares; i ++) {\n for (int j = 0; j < maxSquares; j ++) {\n\n Square square = new Square(j, i);\n Piece piece;\n Player player;\n\n if (i < 2) {\n player = black;\n } else {\n player = white;\n }\n\n if (i == 0 || i == 7) {\n switch(j) {\n case 3:\n piece = new Queen(player, square);\n break;\n case 4:\n piece = new King(player, square);\n break;\n case 2:\n case 5:\n piece = new Bishop(player, square);\n break;\n case 1:\n case 6:\n piece = new Knight(player, square);\n break;\n default:\n piece = new Rook(player, square);\n }\n square.setPiece(piece);\n } else if (i == 1 || i == 6) {\n piece = new Pawn(player, square);\n square.setPiece(piece);\n }\n squares[j][i] = square;\n }\n }\n }", "public TicTacToe(){ \r\n\t\tboard = new char[3][3];\r\n\t}", "public Board(int size, Piece[][] initConfig) {\n initialize(size, initConfig);\n }", "public Board(int rows, int cols) {\n\t\t_board = new ArrayList<ArrayList<String>>();\n\t\t_rand = new Random();\n\t\t_colorFileNames = new ArrayList<String>();\n\t\tfor (int i=0; i<MAX_COLORS; i=i+1) {\n\t\t\t_colorFileNames.add(\"Images/Tile-\"+i+\".png\");\n\t\t}\n\t\tfor (int r=0; r<rows; r=r+1) {\n\t\t\tArrayList<String> row = new ArrayList<String>();\n\t\t\tfor (int c=0; c<cols; c=c+1) {\n\t\t\t\trow.add(_colorFileNames.get(_rand.nextInt(_colorFileNames.size())));\n\t\t\t}\n\t\t\t_board.add(row);\n\t\t\t\n\t\t\tif(_board.size()==rows) { //board is complete\n\t\t\t\tboolean istrue = false;\n\t\t\t\tif(match(3).size()>0 || end()){ //(1)there are match //(2)there is no valid move\n\t\t\t\t\tistrue = true;\n\t\t\t\t}\n\t\t\t\tif (istrue) {\n\t\t\t\t\t_board.clear();\t\t// if istrue clear the board\n\t\t\t\t\tr=-1;\t\t\t\t// restart; r=-1, at the end of loop will add 1\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\t\t\n\t}", "public Board() {\n\t\tmarkCount = 0;\n\t\ttheBoard = new char[3][];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\ttheBoard[i] = new char[3];\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\t}\n\t}", "public Tile(int row, int column, Piece piece) {\n this.row = row;\n this.column = column;\n this.piece = piece;\n this.setBorder(javax.swing.BorderFactory.createEmptyBorder());\n }", "public Board() {\n //Create all pieces\n board[0][0] = new Rook(\"black\", 0, 0);\n board[0][1] = new Knight(\"black\", 0, 1);\n board[0][2] = new Bishop(\"black\", 0, 2);\n board[0][3] = new Queen(\"black\", 0, 3);\n board[0][4] = new King(\"black\", 0, 4);\n board[0][5] = new Bishop(\"black\", 0, 5);\n board[0][6] = new Knight(\"black\", 0, 6);\n board[0][7] = new Rook(\"black\", 0, 7);\n\n board[7][0] = new Rook(\"white\", 7, 0);\n board[7][1] = new Knight(\"white\", 7, 1);\n board[7][2] = new Bishop(\"white\", 7, 2);\n board[7][3] = new Queen(\"white\", 7, 3);\n board[7][4] = new King(\"white\", 7, 4);\n board[7][5] = new Bishop(\"white\", 7, 5);\n board[7][6] = new Knight(\"white\", 7, 6);\n board[7][7] = new Rook(\"white\", 7, 7);\n\n for (int j = 0; j < 8; j++) {\n board[1][j] = new Pawn(\"black\", 1, j);\n board[6][j] = new Pawn(\"white\", 6, j);\n }\n\n //Printing everything\n for (Piece[] a : board) {\n for (Piece b : a) {\n System.out.printf(\"%-15s\", \"[\" + b + \"]\");\n }\n System.out.println(\"\");\n }\n }", "protected BattleshipBoard(int rows, int cols, int maxPlayer, Interaction interaction, Piece currentPiece) {\n\t\tsuper(rows, cols, maxPlayer, interaction, currentPiece);\n\t\tthis.shipBoard = new BattleshipPiece[rows][cols];\n\t\tthis.playerScore = new int[maxPlayer];\n\t}", "private void initGameBoard(int rows, int cols)\n {\n //GameBoard = new Cell[ROWS][COLS];\n\n for(int i = 0; i < rows; i++)\n {\n for(int j = 0; j < cols; j++)\n {\n GameBoard[i][j] = new Cell(i,j, Color.BLUE,false);\n }\n\n }\n }", "public Board() {\n\t\tboard = new int[8][8];\n\t\tbombs = 64 / 3;\n\t\tdifficulty = GlobalModel.BESTSCORE_EASY;\n\t\tfillBoard();\n\t\tsetDefaultScores();\n\t}", "public Board(int x, int y){\n player1 = \"Player 1\";\n player2 = \"Player 2\";\n randomPlayer1 = \"CPU 1\";\n randomPlayer2 = \"CPU 2\";\n board = new Square[x][y];\n for (int i = 0; i < board.length;i++){\n row++;\n for(int j = 0; j < board.length; j++){\n if(column == y){\n column = 0;\n }\n column++;\n board[i][j] = new Square(row, column);\n }\n }\n row = x;\n column = y;\n }", "public PersonalBoard(int width, int height){\n super(width, height);\n this.rand = new Random();\n }", "public AIPlayer(Board board) {\n cells = board.squares;\n }", "public void createBoard() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j <colls; j++) {\n if(i==0 || j == 0 || i == rows-1|| j == colls-1){\n board[i][j] = '*';\n } else {\n board[i][j] = ' ';\n }\n }\n }\n }", "public static void blankBoard() {\r\n\t\tfor (int i = 0; i < Spaces.length; i++) {\r\n\t\t\tSpaces[i] = new Piece();\r\n\t\t}\r\n\t}", "public Tile(int row, int column){\n this.row = row;\n this.column = column;\n this.piece = null;\n }", "public Game(int maxRows, int maxCols) {\r\n\t\tif(maxRows<0||maxCols<0) throw new IndexOutOfBoundsException();\r\n\t\tboardcell= new BoardCell[maxRows][maxCols];\r\n\t\tfor(int row=0;row<maxRows;row++){\r\n\t\t\tfor(int col=0;col<maxCols;col++){\r\n\t\t\t\tboardcell[row][col]=BoardCell.EMPTY;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Board(char[][] board) {\n this.boardWidth = board.length;\n this.boardHeight = board[0].length;\n this.board = board;\n this.numShips = 0;\n boardInit();\n }", "public Board() {\n tiles = new int[3][3];\n int[] values = genValues(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 0});\n\n int offset;\n for (int i = 0; i < 3; i++) {\n offset = 2 * i;\n tiles[i] = Arrays.copyOfRange(values, i + offset, i + offset + 3);\n }\n }", "public void createCellBoard(int rows, int cols) {\n\t\trowcount = rows;\n\t\tcolcount = cols;\n\t\tcells = new int[rows][cols];\n\t}", "public Board() {\n this.board = new Piece[16];\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n drawLines();\n \n for( int r = 0; r < board.length; r++ )\n {\n for( int c = 0; c < board[r].length; c++)\n {\n board[r][c] = \"\"; \n \n }\n }\n }", "public Grid ()\n {\n mGrid = new Move[3][3];\n for (int row = 0; row < 3; row++)\n for (int column = 0; column < 3; column++)\n mGrid[row][column] = new Move(Player.NONE, row, column);\n }", "public ThirteensBoard()\n {\n super(BOARD_SIZE, RANKS, SUITS, POINT_VALUES);\n }", "public Grid() {\n setPreferredSize(new Dimension(960, 640));\n setBounds(0, 0, 960, 640);\n setLayout(null);\n setBackground(Color.black);\n this.size = 30;\n squares = new Square[size][20];\n }", "private void setEmpty() {\n\t\tfor (int r = 0; r < board.length; r++)\n\t\t\tfor (int c = 0; c < board[r].length; c++)\n\t\t\t\tboard[r][c] = new Cell(false, false,\n\t\t\t\t\t\tfalse, false); // totally clear.\n\t}", "public void initializeBoard() {\n\n\t\t/*\n\t\t * How the array coordinates align with the actual chess board\n\t\t * (row,col) \n\t\t * (7,0) ... ... ... \n\t\t * (7,7) ... ... ... \n\t\t * ... ... ... \n\t\t * (2,0) ...\n\t\t * (1,0) ... \n\t\t * (0,0) ... ... ... (0,7)\n\t\t */\n\n\t\tboolean hasMoved = false;\n\t\tboolean white = true;\n\t\tboolean black = false;\n\n\t\t// Set white piece row\n\t\tboard[0][0] = new Piece('r', white, hasMoved, 0, 0, PieceArray.A_rookId);\n\t\tboard[0][1] = new Piece('n', white, hasMoved, 0, 1, PieceArray.B_knightId);\n\t\tboard[0][2] = new Piece('b', white, hasMoved, 0, 2, PieceArray.C_bishopId);\n\t\tboard[0][3] = new Piece('q', white, hasMoved, 0, 3, PieceArray.D_queenId);\n\t\tboard[0][4] = new Piece('k', white, hasMoved, 0, 4, PieceArray.E_kingId);\n\t\tboard[0][5] = new Piece('b', white, hasMoved, 0, 5, PieceArray.F_bishopId);\n\t\tboard[0][6] = new Piece('n', white, hasMoved, 0, 6, PieceArray.G_knightId);\n\t\tboard[0][7] = new Piece('r', white, hasMoved, 0, 7, PieceArray.H_rookId);\n\n\t\t// Set white pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[1][i] = new Piece('p', white, hasMoved, 1, i, i + 8);\n\t\t}\n\n\t\t// Set empty rows\n\t\tfor (int row = 2; row < 6; row++)\n\t\t\tfor (int col = 0; col < 8; col++)\n\t\t\t\tboard[row][col] = null;\n\n\t\t// Set black pawns\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tboard[6][i] = new Piece('p', black, hasMoved, 6, i, i+8);\n\t\t}\n\n\t\t// Set black piece row\n\t\tboard[7][0] = new Piece('r', black, hasMoved, 7, 0, PieceArray.A_rookId);\n\t\tboard[7][1] = new Piece('n', black, hasMoved, 7, 1, PieceArray.B_knightId);\n\t\tboard[7][2] = new Piece('b', black, hasMoved, 7, 2, PieceArray.C_bishopId);\n\t\tboard[7][3] = new Piece('q', black, hasMoved, 7, 3, PieceArray.D_queenId);\n\t\tboard[7][4] = new Piece('k', black, hasMoved, 7, 4, PieceArray.E_kingId);\n\t\tboard[7][5] = new Piece('b', black, hasMoved, 7, 5, PieceArray.F_bishopId);\n\t\tboard[7][6] = new Piece('n', black, hasMoved, 7, 6, PieceArray.G_knightId);\n\t\tboard[7][7] = new Piece('r', black, hasMoved, 7, 7, PieceArray.H_rookId);\n\t}", "public TriangleSolitaireModelImpl() {\r\n super(new TriangleBoard());\r\n }", "public Board(int[][] tiles) {\n n = tiles.length;\n this.tiles = deepCopy(tiles);\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 Board(int width, int height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tgrid = new boolean[width][height];\n\t\tcommitted = true;\n\t\t//Initialize the quick palying data attributes\n\t\twidths = new int[height];\n\t\theights = new int[width];\n\t\tmaxHeight = 0;\n\t\t//Initialize the undo data\n\t\tundoWidths = new int[height];\n\t\tundoHeights = new int[width];\n\t\tundoGrid = new boolean[width][height];\n\t\t\n\t\t// YOUR CODE HERE\n\t}", "public ThreeStonesBoard(Tile[][] board) {\r\n this.board = board;\r\n }", "public Board(Board a)\n {\n mainBoard=false;\n squares = new Square[Chess.ROWS][Chess.COLUMNS];\n setLayout(new GridLayout(Chess.ROWS,Chess.COLUMNS,0,0));\n if (a.firstSelected==null)\n firstSelected=null;\n else\n firstSelected = new Piece(a.firstSelected);\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n squares[i][j] = new Square(a.squares[i][j]);\n }", "private Board() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// A private board constructor to ensure only one is created\n\t\tsuper();\n\t}", "public Board(int row, int column, int countToWin) {\n\t\tintializeBoard(row, column, countToWin);\n\t}", "public Board(int width, int height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tgrid = new boolean[width][height];\n\t\tcommitted = true;\n\t\twidths = new int[height];\n\t\theights = new int[width];\n\t\tmaxColumnHeight = 0;\n\n\t\tbackupGrid = new boolean[width][height];\n\t\tbackupHeights = new int[width];\n\t\tbackupWidths = new int [height];\n\t\tbackupMaxColumnHeight = 0;\n\t}", "Cell() {\r\n\t\tstate = CellState.EMPTY;\r\n\t}", "public MinesweeperBoard(int rowsCount, int colsCount){\n this.rowsCount = rowsCount;\n this.colsCount = colsCount;\n this.cells = new Cell[rowsCount][colsCount];\n }" ]
[ "0.7225159", "0.7035086", "0.68230116", "0.6774548", "0.6730465", "0.67280644", "0.67258894", "0.6716293", "0.67070687", "0.6631399", "0.66302985", "0.659501", "0.65634847", "0.65586066", "0.65561086", "0.6540908", "0.6495746", "0.6482492", "0.64731336", "0.6455855", "0.6427111", "0.6417477", "0.64068407", "0.6367733", "0.63600177", "0.6359949", "0.6352733", "0.6341437", "0.63282484", "0.63215774", "0.6306835", "0.630353", "0.63002104", "0.628592", "0.62626064", "0.62626064", "0.6258814", "0.62537616", "0.6241117", "0.6233259", "0.62304384", "0.6221795", "0.6215626", "0.6214712", "0.6206086", "0.6205089", "0.61801904", "0.6171057", "0.61526686", "0.6147234", "0.61447275", "0.6140459", "0.6138686", "0.6135047", "0.6132531", "0.6125776", "0.6095738", "0.6092166", "0.60872924", "0.6084501", "0.60786337", "0.60755664", "0.6072856", "0.6062367", "0.60595673", "0.6049881", "0.604876", "0.60452056", "0.6037094", "0.60347986", "0.6031328", "0.60295004", "0.60254276", "0.602253", "0.60144424", "0.60080194", "0.59902453", "0.5988257", "0.59785557", "0.5977977", "0.5977516", "0.59742737", "0.5971495", "0.59667873", "0.5965614", "0.5965474", "0.5954038", "0.5931257", "0.59186333", "0.5916", "0.59156895", "0.5914266", "0.5907218", "0.5905024", "0.589886", "0.589743", "0.5888743", "0.58864903", "0.5876235", "0.58683205" ]
0.7367744
0
Constructs a new board, that take the arm thickness, row and column of the empty slot in that order. Added in Abstract model, thus passing in new Triangle board as parameter to super.
public TriangleSolitaireModelImpl(int dimensions, int emptyRow, int emptyCol) throws IllegalArgumentException { super(new TriangleBoard(dimensions, emptyRow, emptyCol)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Board(float width, float height) {\r\n tablero = new Array<BlockDrawable>();\r\n this.width = width;\r\n this.height = height;\r\n deletedRowsInfo.ordered = true;\r\n reset();\r\n }", "public Board()\r\n\t{\r\n\t\tsuper(8, 8);\r\n\t}", "public TriangleSolitaireModelImpl(int emptyRow, int emptyCol) throws IllegalArgumentException {\r\n super(new TriangleBoard(emptyRow, emptyCol));\r\n }", "public OthelloBoard (int height, int width){\n super(height, width);\n m_Pieces = new OthelloPiece[WIDTH][HEIGHT];\n m_PieceCount+=4;\n \n }", "public Board() {\n for (int y = 0; y < spaces.length; y++) {\n for (int x = 0; x < spaces[0].length; x++) {\n spaces[y][x] = new SubBoard();\n wonBoards[y][x] = ' ';\n }\n }\n }", "public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }", "public Board() {\n\t\tintializeBoard(_RowCountDefault, _ColumnCountDefault, _CountToWinDefault);\n\t}", "public XOBoard() {\n\t\t// initialise the boards\n\t\tboard = new int[4][4];\n\t\trenders = new XOPiece[4][4];\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tboard[i][j] = EMPTY;\n\t\t\t\trenders[i][j] = null;\n\t\t\t}\n\t\tcurrent_player = XPIECE;\n\n\t\t// initialise the rectangle and lines\n\t\tback = new Rectangle();\n\t\tback.setFill(Color.GREEN);\n\t\th1 = new Line();\n\t\th2 = new Line();\n\t\th3 = new Line();\n\t\tv1 = new Line();\n\t\tv2 = new Line();\n\t\tv3 = new Line();\n\t\th1.setStroke(Color.WHITE);\n\t\th2.setStroke(Color.WHITE);\n\t\th3.setStroke(Color.WHITE);\n\t\tv1.setStroke(Color.WHITE);\n\t\tv2.setStroke(Color.WHITE);\n\t\tv3.setStroke(Color.WHITE);\n\n\t\t// the horizontal lines only need the endx value modified the rest of //\n\t\t// the values can be zero\n\t\th1.setStartX(0);\n\t\th1.setStartY(0);\n\t\th1.setEndY(0);\n\t\th2.setStartX(0);\n\t\th2.setStartY(0);\n\t\th2.setEndY(0);\n\t\th3.setStartX(0);\n\t\th3.setStartY(0);\n\t\th3.setEndY(0);\n\n\t\t// the vertical lines only need the endy value modified the rest of the\n\t\t// values can be zero\n\t\tv1.setStartX(0);\n\t\tv1.setStartY(0);\n\t\tv1.setEndX(0);\n\t\tv2.setStartX(0);\n\t\tv2.setStartY(0);\n\t\tv2.setEndX(0);\n\t\tv3.setStartX(0);\n\t\tv3.setStartY(0);\n\t\tv3.setEndX(0);\n\n\t\t// setup the translation of one cell height and two cell heights\n\t\tch_one = new Translate(0, 0);\n\t\tch_two = new Translate(0, 0);\n\t\tch_three = new Translate(0, 0);\n\t\th1.getTransforms().add(ch_one);\n\t\th2.getTransforms().add(ch_two);\n\t\th3.getTransforms().add(ch_three);\n\n\t\t// setup the translation of one cell width and two cell widths\n\t\tcw_one = new Translate(0, 0);\n\t\tcw_two = new Translate(0, 0);\n\t\tcw_three = new Translate(0, 0);\n\t\tv1.getTransforms().add(cw_one);\n\t\tv2.getTransforms().add(cw_two);\n\t\tv3.getTransforms().add(cw_three);\n\n\t\t// add the rectangles and lines to this group\n\t\tgetChildren().addAll(back, h1, h2, h3, v1, v2, v3);\n\n\t}", "public Board() {\n initialize(3, null);\n }", "public TriangleSolitaireModelImpl() {\r\n super(new TriangleBoard());\r\n }", "public Board()\r\n\t{\r\n\t\tfor(int x = 0; x < 9; x++)\r\n\t\t\tfor(int y = 0 ; y < 9; y++)\r\n\t\t\t{\r\n\t\t\t\tboard[x][y] = new Cell();\r\n\t\t\t\tboard[x][y].setBoxID( 3*(x/3) + (y)/3+1);\r\n\t\t\t}\r\n\t}", "@Override\r\n\tpublic Board createBoard(long width, long height)\r\n\t{\r\n\t\treturn new Board(width, height);\r\n\t}", "public abstract void createBoard();", "public Board()\r\n\t{\r\n\t\treset();\r\n\t}", "Board() {\n\t\tswitch (Board.boardType) {\n\t\tcase Tiny:\n\t\t\tthis.dimensions = TinyBoard; break;\n\t\tcase Giant:\n\t\t\tthis.dimensions = GiantBoard; break;\n\t\tdefault:\n\t\t\tthis.dimensions = StandardBoard; break;\n\t\t}\n\t\tboard = new Square[dimensions.x][dimensions.y];\n\t\tinit();\n\t}", "public Board() {\n this.x = 0;\n this.o = 0;\n }", "public PersonalBoard(int width, int height){\n super(width, height);\n this.rand = new Random();\n }", "Board() {\n clear();\n }", "Board() {\n clear();\n }", "public Board() {\n\t\t\n\t\tchar letter = 'A';\n\t\tint letterValue;\n\t\tint tempNum;\n\t\tString position;\n\t\tString number;\n\t\t\n\t\t\n\t\tfor(int i = 0; i < 10; i++) {\n\t\t\tfor(int j = 0; j < 10; j++) {\n\t\t\t\ttempNum = j+1;\n\t\t\t\tnumber = Integer.toString(tempNum);\n\t\t\t\tposition = Character.toString(letter) + number;\n\t\t\t\t//position += Character.toString(number);\n\t\t\t\tradar[i][j] = position;\n\t\t\t}\n\t\t\tletterValue = (int) letter;\n\t\t\tletterValue++;\n\t\t\tletter = (char) letterValue;\n\t\t}\n\t\trefRadar = backup(radar);\n\t}", "public UIBoard()\r\n\t{\r\n\t\t//Creates a 10x10 \"Board\" object\r\n\t\tsuper(10,10);\r\n\t\tgrid = new int[getLength()][getWidth()];\r\n\t\t\r\n\t\t//Sets all coordinates to the value 0, which corresponds to \"not hit yet\"\r\n\t\tfor(int i=0; i<grid.length; i++)\r\n\t\t\tfor(int j=0; j<grid[i].length; j++)\r\n\t\t\t\tgrid[i][j] = 0;\t\t\r\n\t}", "public Connect4Board() {\n super(rows, cols);\n }", "public Board()\r\n {\r\n board = new Piece[8][8];\r\n xLength = yLength = 8;\r\n }", "private void createBoard() {\n\t// An array of rows containing rows with squares are made\n\t\tfor (int i = 0; i < squares.length; i++) {\n\t \trows[i] = new Row(squares[i]);\n\t\t}\n\n\n\t// An array of columns containing columns with squares are made\n\t\tSquare[] columnArray = new Square[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t for (int row = 0; row < size; row++) {\n\t\t\t\tcolumnArray[row] = squares[row][i];\n\t\t }\n\t\t columns[i] = new Column(columnArray);\n\t\t columnArray = new Square[size];\n\t\t}\n\n\n\t\tSquare[] boxArray;\n\t\tint counter;\n\t\t// Box nr i\n\t\tfor (int i = 0; i < size; i = i + height) {\n\t\t // Box nr j\n\t\t for (int j = 0; j < size; j = j + length) {\n\t\t\t\tcounter = 0;\n\t\t\t\tboxArray = new Square[size];\n\t\t\t\tint rowIndex = (i / height) * height;\n\t\t\t\tint columnIndex = (j / length) * length;\n\t\t\t\t// Row nr k\n\t\t\t\tfor (int k = rowIndex; k < rowIndex + height; k++) {\n\t\t\t\t // Column nr l\n\t\t\t\t for (int l = columnIndex; l < columnIndex + length; l++) {\n\t\t\t\t\t\tboxArray[counter] = squares[k][l];\n\t\t\t\t\t\tcounter++;\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\tboxes[j/length][i/height] = new Box(boxArray);\n\t\t }\n\t\t}\t\n\t\tcreatePointers();\n }", "Board() {\n this(INITIAL_PIECES, BLACK);\n _countBlack = 12;\n _countWhite = 12;\n _moveHistory = new ArrayList<Move>();\n _movesMade = 0;\n }", "public SquareBoard(Coordinates C, double hw, Color v)\r\n {\r\n r = new Rectangle(C.X(), C.Y(), hw, hw);\r\n r.setStroke(Color.BLACK);\r\n r.setFill(v);\r\n BoardPane.getPane().getChildren().add(r);\r\n }", "public Board(){\n for(int holeIndex = 0; holeIndex<holes.length; holeIndex++)\n holes[holeIndex] = new Hole(holeIndex);\n for(int kazanIndex = 0; kazanIndex<kazans.length; kazanIndex++)\n kazans[kazanIndex] = new Kazan(kazanIndex);\n nextToPlay = Side.WHITE;\n }", "public GameBoard (int height, int width)\n {\n mHeight = height;\n mWidth = width;\n }", "Board() {\n\t\tSpace[][] temp = new Space[xDim][yDim];\n\t\tfor (int i = 0; i < xDim; i++) {\n\t\t\tfor (int j = 0; j < yDim; j++) {\n\n\t\t\t\ttemp[i][j] = new Space();\n\t\t\t}\n\t\t}\n\n\t\thead = temp[0][0];\n\n\t\tfor (int x = 0; x < xDim; x++) {\n\t\t\tfor (int y = 0; y < yDim; y++) {\n\t\t\t\tif (x != 0) {\n\t\t\t\t\t// Left\n\t\t\t\t\ttemp[x][y].join(2, temp[x - 1][y]);\n\t\t\t\t}\n\n\t\t\t\tif (y != 0) {\n\t\t\t\t\t// Top\n\t\t\t\t\ttemp[x][y].join(1, temp[x][y - 1]);\n\t\t\t\t}\n\n\t\t\t\tif (x != xDim - 1) {\n\t\t\t\t\t// Right\n\t\t\t\t\ttemp[x][y].join(0, temp[x + 1][y]);\n\t\t\t\t}\n\n\t\t\t\tif (y != yDim - 1) {\n\t\t\t\t\t// Bottom\n\t\t\t\t\ttemp[x][y].join(3, temp[x][y + 1]);\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\n\t\tdevs = new ArrayList<Developer>();\n\t\tmountains = new ArrayList<Coordinates>();\n\n\t\tfor (int x = 0; x < xDim; x++) {\n\t\t\tif (x == 0 || x == xDim - 1)\n\t\t\t\tfor (int y = 0; y < Math.round(yDim / 2); y++) {\n\t\t\t\t\tmountains.add(new Coordinates(x, y));\n\t\t\t\t}\n\t\t\telse\n\t\t\t\tmountains.add(new Coordinates(x, 0));\n\t\t}\n\n\t}", "public Board() {\n for (int row = 0; row < 9; row++) {\n for (int col = 0; col < 9; col++) {\n this.grid[row][col] = 0;\n }\n }\n }", "public Board() {\r\n\t\tthis.size = 4;\r\n\t\tthis.gameBoard = createBoard(4);\r\n\t\tthis.openTiles = 16;\r\n\t\tthis.moves = 0;\r\n\t\tthis.xValues = new boolean[4][4];\r\n\t\tthis.yValues = new boolean[4][4];\r\n\t\tthis.complete = false;\r\n\t}", "public Board() {\n\n for(int row = 0; row < size; row++) {\n for(int col = 0; col < size; col++) {\n\n grid[row][col] = \"-\";\n\n }\n }\n\n }", "public GameBoard(){\r\n\t\tboard = new Box[boardSize];\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tboard[i] = Box.EMPTY;\r\n\t\t}\r\n\t}", "public TicTacToeBoard() {\n grid = new Cell[N][N];\n\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++)\n grid[i][j] = new Cell(i, j, '-');\n }\n }", "public Board() {\n\t\tmarkCount = 0;\n\t\ttheBoard = new char[3][];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\ttheBoard[i] = new char[3];\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\t}\n\t}", "public Board(int boardHeight, int boardWidth) {\n this.boardWidth = boardHeight+1;\n this.boardHeight = boardWidth+1;\n this.board = new char[this.boardHeight][this.boardWidth];\n this.numShips = 0;\n boardInit();\n }", "public void Makeboard() {\r\n\r\n Normalboard(new Point2(20, 300));\r\n Normalboard(new Point2(224, 391));\r\n Stingboard(new Point2(156, 209));\r\n Leftlboard(new Point2(88, 482));\r\n Rightboard(new Point2(292, 573));\r\n Regenerateboard(new Point2(360, 118));\r\n\r\n }", "public PersonalBoard(){\n this(0);\n }", "Board createLayout();", "public Board() {\n\t\tboard = new char[9][9];\n\t}", "public void createBoard() {\n\t\tboard = new Piece[8][8];\n\t\t\n\t\tfor(int i=0; i<8; i++) {\n\t\t\tfor(int j=0; j<8; j++) {\n\t\t\t\tboard[i][j] = null;\n\t\t\t}\n\t\t}\n\t}", "public Board(int[][] grid, Tetrimino piece) {\n //initComponents();\n this.grid = grid;\n this.piece = piece;\n setLayout(new GridLayout(grid.length-4, grid[0].length));\n init();\n }", "public Board()\n\t{\n\t\tcols = DEFAULT_WIDTH;\n\t\trows = DEFAULT_HEIGHT;\n\t\t\n\t\tpieces = new int[rows][cols];\n\t\tif (pieces.length > 0)\n\t\t{\n\t\t\tfor (int i = 0; i < pieces.length; i++)\n\t\t\t\tfor (int j = 0; j < pieces[0].length; j++)\n\t\t\t\t\tpieces[i][j] = -1;\n\t\t}\n\t}", "public ThirteensBoard()\n {\n super(BOARD_SIZE, RANKS, SUITS, POINT_VALUES);\n }", "public Board(int dimensions){\n this.dimensions = dimensions;\n createBoard(dimensions);\n this.status = Status.CREATED;\n this.hitsLeft = 15;\n }", "ArrayList<ArrayList<GamePiece>> makeBoard() {\n ArrayList<ArrayList<GamePiece>> row = new ArrayList<ArrayList<GamePiece>>();\n for (int i = 0; i < this.width; i++) {\n ArrayList<GamePiece> column = new ArrayList<GamePiece>();\n for (int j = 0; j < this.height; j++) {\n GamePiece temp = new GamePiece(i, j);\n column.add(temp);\n nodes.add(temp);\n }\n row.add(column);\n }\n return row;\n }", "public Board(int width, int height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tgrid = new boolean[width][height];\n\t\tcommitted = true;\n\t\t//Initialize the quick palying data attributes\n\t\twidths = new int[height];\n\t\theights = new int[width];\n\t\tmaxHeight = 0;\n\t\t//Initialize the undo data\n\t\tundoWidths = new int[height];\n\t\tundoHeights = new int[width];\n\t\tundoGrid = new boolean[width][height];\n\t\t\n\t\t// YOUR CODE HERE\n\t}", "public Board() {\n\t\tboardState = new Field[DIMENSION][DIMENSION];\n\t\tfor(int i = 0; i < DIMENSION; i++) {\n\t\t\tfor(int j = 0; j < DIMENSION; j++) {\n\t\t\t\tboardState[i][j] = new Field();\n\t\t\t}\n\t\t}\n\t}", "public Board() {\n //Create all pieces\n board[0][0] = new Rook(\"black\", 0, 0);\n board[0][1] = new Knight(\"black\", 0, 1);\n board[0][2] = new Bishop(\"black\", 0, 2);\n board[0][3] = new Queen(\"black\", 0, 3);\n board[0][4] = new King(\"black\", 0, 4);\n board[0][5] = new Bishop(\"black\", 0, 5);\n board[0][6] = new Knight(\"black\", 0, 6);\n board[0][7] = new Rook(\"black\", 0, 7);\n\n board[7][0] = new Rook(\"white\", 7, 0);\n board[7][1] = new Knight(\"white\", 7, 1);\n board[7][2] = new Bishop(\"white\", 7, 2);\n board[7][3] = new Queen(\"white\", 7, 3);\n board[7][4] = new King(\"white\", 7, 4);\n board[7][5] = new Bishop(\"white\", 7, 5);\n board[7][6] = new Knight(\"white\", 7, 6);\n board[7][7] = new Rook(\"white\", 7, 7);\n\n for (int j = 0; j < 8; j++) {\n board[1][j] = new Pawn(\"black\", 1, j);\n board[6][j] = new Pawn(\"white\", 6, j);\n }\n\n //Printing everything\n for (Piece[] a : board) {\n for (Piece b : a) {\n System.out.printf(\"%-15s\", \"[\" + b + \"]\");\n }\n System.out.println(\"\");\n }\n }", "public Board() {\n\t\tdimension = 9;\n\t\tpuzzle = new int[dimension][dimension];\n\t}", "public TicTacToeBoard() {board = new int[rows][columns];}", "public Board(int rows, int columns) throws Exception {\n\t\tif (rows >= 8 && columns >= 8) {\n\t\t\tthis.rows = rows;\n\t\t\tthis.columns = columns;\n\t\t\tboard = new int[rows][columns];\n\t\t\tthis.bombs = (rows * columns) / 3;\n\t\t\tfillBoard();\n\t\t} else {\n\t\t\tthrow new Exception(\"Minesweeper dimensions invalid:\\nWidth: from 8 to 100\\nHeight: from 8 to 100\\nBombs: 1 to 1/3 of squares\");\n\t\t}\n\t}", "public BoardImpl(int size)\r\n {\r\n if (size != 9 && size != 13 && size != 19)\r\n throw new WrongBoardSizeException(\"Board could not be created. GO board must be size 9, 13 or 19\");\r\n setSize(size);\r\n setBoard(new ArrayList<List<Field>>());\r\n setHistory(new ArrayList<Move>());\r\n createFields();\r\n }", "public Board() {\n\t\tthis.table = new int[Constants.SIZE][Constants.SIZE];\n\t\tthis.P1Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tthis.P2Movable = new boolean[Constants.SIZE][Constants.SIZE];\n\t\tP1turn = true;\n\t\tnumPieces = 0;\n\t\t\n\t\tfor(int i=0; i<table.length; i++) {\n\t\t\tfor(int j=0; j<table[i].length; j++) {\n\t\t\t\ttable[i][j] = Constants.EMPTY;\n\t\t\t\tP1Movable[i][j] = true;\n\t\t\t\tP2Movable[i][j] = true;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public Board (int rSize, int cSize)\r\n\t{\r\n\t\tint i, x;\r\n\t\tRow_Size = rSize;\r\n\t\tColumn_Size = cSize;\r\n\t\tLayout = new int [Row_Size][Column_Size];\r\n\r\n\t\tfor(i=0;i<Row_Size;i++)\r\n\t\t{\r\n\t\t\tfor(x=0;x<Column_Size;x++)\r\n\t\t\t{\r\n\t\t\t\tLayout[i][x] = 0;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "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 }", "Board() {\n this.cardFactory = new CardFactory(this);\n }", "Board(Board model) {\r\n copy(model);\r\n }", "public Board(int rows, int cols) {\n\t\t_board = new ArrayList<ArrayList<String>>();\n\t\t_rand = new Random();\n\t\t_colorFileNames = new ArrayList<String>();\n\t\tfor (int i=0; i<MAX_COLORS; i=i+1) {\n\t\t\t_colorFileNames.add(\"Images/Tile-\"+i+\".png\");\n\t\t}\n\t\tfor (int r=0; r<rows; r=r+1) {\n\t\t\tArrayList<String> row = new ArrayList<String>();\n\t\t\tfor (int c=0; c<cols; c=c+1) {\n\t\t\t\trow.add(_colorFileNames.get(_rand.nextInt(_colorFileNames.size())));\n\t\t\t}\n\t\t\t_board.add(row);\n\t\t\t\n\t\t\tif(_board.size()==rows) { //board is complete\n\t\t\t\tboolean istrue = false;\n\t\t\t\tif(match(3).size()>0 || end()){ //(1)there are match //(2)there is no valid move\n\t\t\t\t\tistrue = true;\n\t\t\t\t}\n\t\t\t\tif (istrue) {\n\t\t\t\t\t_board.clear();\t\t// if istrue clear the board\n\t\t\t\t\tr=-1;\t\t\t\t// restart; r=-1, at the end of loop will add 1\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\t\t\n\t}", "public Board(int width, int height) {\n\t\tthis.width = width;\n\t\tthis.height = height;\n\t\tgrid = new boolean[width][height];\n\t\tcommitted = true;\n\t\twidths = new int[height];\n\t\theights = new int[width];\n\t\tmaxColumnHeight = 0;\n\n\t\tbackupGrid = new boolean[width][height];\n\t\tbackupHeights = new int[width];\n\t\tbackupWidths = new int [height];\n\t\tbackupMaxColumnHeight = 0;\n\t}", "public void create3(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\n\n\t\t//creating stairs to connect rooms\n\t\tfor(int i = 0; i <this.Stairs.length; i++){\n\t\t\tfor(int p = 0; p < this.Stairs.length; p++){\n\t\t\t\tthis.Stairs[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}\n\t\tthis.Stairs[1][1] = 1;\n\n\t\t//creating board to keep track of garret\n\t\tfor(int i = 0; i <this.Garret.length; i++){\n\t\t\tfor(int p = 0; p < this.Garret.length; p++){\n\t\t\t\tthis.Garret[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of garret board\n\t\tthis.Garret[18][10] = 1;//putts garret there\n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 1; i< 6 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 7 ; i++){\n\t\t\tfor(int p = 7; p > 4; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 6; i< 11 ; i++){\n\t\t\tfor(int p = 4; p < 5; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 10; i< 11 ; i++){\n\t\t\tfor(int p = 5; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 11; i< 15 ; i++){\n\t\t\tfor(int p = 7; p < 8; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 7; p > 3; p--){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 1; p < 4; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 12; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 5; i< 9 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 14 ; i++){\n\t\t\tfor(int p = 7; p < 12; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 13; i< 16 ; i++){\n\t\t\tfor(int p = 12; p < 13; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 9; i< 10 ; i++){\n\t\t\tfor(int p = 12; p < 19; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes\n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{\n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}", "public OthelloBoard(int width, int height) throws IOException {\n grid = new OthelloTile[width][height];\n\n try {\n woodBorder = ImageIO.read(getClass().getResource(\"/board_wood.png\"));\n } catch (Exception e) {\n throw new IOException(\"Les images correspondant aux poins n'ont pas pu être chargées.\");\n }\n\n setLayout(new GridBagLayout());\n JPanel p = new JPanel(new GridLayout(width,height));\n\n for(int x=0; x<grid.length; x++) {\n for(int y=0; y<grid[0].length; y++) {\n grid[x][y] = new OthelloTile(50,x,y);\n p.add(grid[x][y]);\n }\n }\n\n add(p, new GridBagConstraints());\n }", "public Board()\r\n\t{\r\n\t\tthis.grid = new CellState[GRID_SIZE][GRID_SIZE];\r\n\t\tthis.whiteMarblesCount = MARBLES_COUNT;\r\n\t\tthis.blackMarblesCount = MARBLES_COUNT;\r\n\t\t\r\n\t\t/**\r\n\t\t * Initializes the board with empty value\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < GRID_SIZE; indexcol++)\r\n\t\t{\r\n\t\t\tfor (int indexrow = 0; indexrow < GRID_SIZE; indexrow++)\r\n\t\t\t{\r\n\t\t\t\tthis.grid[indexrow][indexcol] = CellState.EMPTY;\t\t\t\t\r\n\t\t\t}\t\r\n\t\t}\r\n\t\t\r\n\t\t/**\r\n\t\t * Sets marbles on the board with default style\r\n\t\t */\r\n\t\tfor (int indexcol = 0; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[0][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[8][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 0; indexcol < 6; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[1][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[7][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tfor (int indexcol = 2; indexcol < 5; indexcol++)\r\n\t\t{\r\n\t\t\tthis.grid[2][indexcol] = CellState.WHITE_MARBLE;\r\n\t\t\tthis.grid[6][8 - indexcol] = CellState.BLACK_MARBLE;\r\n\t\t}\r\n\t\tthis.grid[3][8] = CellState.INVALID;\r\n\t\tthis.grid[2][7] = CellState.INVALID;\r\n\t\tthis.grid[1][6] = CellState.INVALID;\r\n\t\tthis.grid[0][5] = CellState.INVALID;\r\n\t\tthis.grid[5][0] = CellState.INVALID;\r\n\t\tthis.grid[6][1] = CellState.INVALID;\r\n\t\tthis.grid[7][2] = CellState.INVALID;\r\n\t\tthis.grid[8][3] = CellState.INVALID;\r\n\t}", "public Gameboard() {\n\n\t\tturn = 0;\n\n\t\tboard = new Cell[4][4][4];\n\n\t\tfor (int i = 0; i < board.length; i++) {\n\t\t\tfor (int j = 0; j < board.length; j++) {\n\t\t\t\tfor (int k = 0; k < board.length; k++) {\n\n\t\t\t\t\tboard[i][j][k] = Cell.E;\n\n\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Board() {\n this.board = new Piece[16];\n }", "public AIPlayer(Board board) {\n cells = board.squares;\n }", "public Board() {\n\t\tboard = new int[8][8];\n\t\tbombs = 64 / 3;\n\t\tdifficulty = GlobalModel.BESTSCORE_EASY;\n\t\tfillBoard();\n\t\tsetDefaultScores();\n\t}", "TetrisBoard() {\n\t\t// create new board \n\t\tblockMatrix = new boolean[NUM_ROWS][NUM_COLS];\n\t\t\n\t\t// fill in values for board\n\t\tinitBoard();\n\t\t\n\t\t// add new piece to fall\n\t\taddNewPiece();\n\t\t\n\t\t// start scores at 0\n\t\tnumLines = 0;\n\t\tnumTetrises = 0;\n\t}", "public Board() {\n\t\tfor(int i = 0; i < board.length; i++){\n\t\t\tfor(int j = 0; j < board[i].length; j++){\n\t\t\t\tboard[i][j] = 0;\n\t\t\t}\n\t\t}\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 }", "Board(int dimension, int height, int length, String[] board) {\n\t\tthis.dimension=dimension;\n\t\tsquares = new Square[dimension][dimension];\n\t\trows = new Row[dimension];\n\t\tcolumns = new Column[dimension];\n\t\tboxes = new Box[dimension];\n\t\t\n\t\tgenerateSquares(board);\n\t\tgenerateRows();\n\t\tgenerateColumns();\n\t\tgenerateBoxes(height, length);\n\t\t\n\t\tbuffer=new SudokuBuffer(this);\n\t}", "public void newBoard(LiteBoard board) {\n }", "private Board() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// A private board constructor to ensure only one is created\n\t\tsuper();\n\t}", "public Board(Board a)\n {\n mainBoard=false;\n squares = new Square[Chess.ROWS][Chess.COLUMNS];\n setLayout(new GridLayout(Chess.ROWS,Chess.COLUMNS,0,0));\n if (a.firstSelected==null)\n firstSelected=null;\n else\n firstSelected = new Piece(a.firstSelected);\n for (int i = 0; i < Chess.ROWS; i++)\n for (int j = 0; j < Chess.COLUMNS; j++)\n squares[i][j] = new Square(a.squares[i][j]);\n }", "private Parent create() {\n root.setPrefSize(600,600);\r\n\r\n for(int i = 0; i < 3; ++i) {\r\n for(int j = 0; j < 3; ++j) {\r\n Tile tile = new Tile();\r\n tile.setTranslateX(j * 200);\r\n tile.setTranslateY(i * 200);\r\n\r\n root.getChildren().add(tile);\r\n board[j][i] = tile;\r\n }\r\n }\r\n\r\n // horizontal strikes\r\n for(int i = 0; i < 3; ++i) {\r\n comboList.add(new Combination(board[0][i], board[1][i], board[2][i]));\r\n }\r\n\r\n // vertical strikes\r\n for(int j = 0; j < 3; ++j) {\r\n comboList.add(new Combination(board[j][0], board[j][1], board[j][2]));\r\n }\r\n\r\n // diagonal strikes\r\n comboList.add(new Combination(board[0][0], board[1][1], board[2][2]));\r\n comboList.add(new Combination(board[2][0], board[1][1], board[0][2]));\r\n\r\n return root;\r\n }", "public Board(int size) {\n initialize(size, null);\n }", "public Board() {\n playerNumber = 2;\n deadBlackCount = 0;\n deadWhiteCount = 0;\n deadRedCount = 0;\n deadBlueCount = 0;\n\n fields = new Field[DIMENSION][DIMENSION];\n // init fields\n for (int i = 0; i < DIMENSION; i++) {\n for (int j = 0; j < DIMENSION; j++) {\n fields[i][j] = new Field();\n fields[i][j].setX(i);\n fields[i][j].setY(j);\n }\n }\n }", "@Override\n public void createBoard(int width, int height, int numMines) {\n // Clamp the dimensions and mine numbers\n dims = new Point(Util.clamp(width, MIN_DIM_X, MAX_DIM_X),\n Util.clamp(height, MIN_DIM_Y, MAX_DIM_Y));\n int maxMines = (int) ((dims.getX() - 1) * (dims.getY() - 1));\n this.numMines = Util.clamp(numMines, MIN_MINES, maxMines);\n\n // Step 1\n cells = new ArrayList<>();\n for (int i = 0; i < dims.getY(); i++) {\n List<Cell> oneRow = new ArrayList<>();\n for (int j = 0; j < dims.getX(); j++) {\n oneRow.add(new CellImpl(this, new Point(j, i), false));\n }\n cells.add(oneRow);\n }\n\n // Step 2\n int minesPlaced = 0;\n while (minesPlaced < this.numMines) {\n int randX = ThreadLocalRandom.current().nextInt((int) dims.getX());\n int randY = ThreadLocalRandom.current().nextInt((int) dims.getY());\n\n if (!cells.get(randY).get(randX).isMine()) {\n cells.get(randY).get(randX).setNumber(-1);\n minesPlaced++;\n }\n }\n\n // Step 3\n updateCellNumbers();\n }", "public Board(int xLen, int yLen)\r\n {\r\n if(xLen <= 0 || yLen <= 0)\r\n xLen = yLen = 8;\r\n board = new Piece[xLen][yLen];\r\n xLength = xLen;\r\n yLength = yLen;\r\n }", "public TriangleSolitaireModelImpl(int dimensions) throws IllegalArgumentException {\r\n super(new TriangleBoard(dimensions));\r\n }", "public ThreeStonesBoard(Tile[][] board) {\r\n this.board = board;\r\n }", "private void generateBoard(){\n\t}", "public void setBoard() {\n margin = Math.round((sizeOfCell * 3) / 2);\n RelativeLayout.LayoutParams marginParam = new RelativeLayout.LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);\n marginParam.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM);\n marginParam.addRule(RelativeLayout.CENTER_HORIZONTAL);\n marginParam.setMargins(0, 0, 0, (margin));\n gridContainer.setLayoutParams(marginParam);\n\n LinearLayout.LayoutParams lpRow = new LinearLayout.LayoutParams(sizeOfCell * maxN, sizeOfCell);\n LinearLayout.LayoutParams lpCell = new LinearLayout.LayoutParams(sizeOfCell, sizeOfCell);\n LinearLayout linRow;\n\n for (int row = 0; row < maxN; row++) {\n linRow = new LinearLayout(context);\n for (int col = 0; col < maxN; col++) {\n ivCell[row][col] = new ImageView(context);\n linRow.addView(ivCell[row][col], lpCell);\n }\n linBoardGame.addView(linRow, lpRow);\n }\n }", "public void create(){\n\t\t//creating board to keep track of player postion with 1 or 0. 0 if not there 1 if they are there\n\t\tfor(int i = 0; i <this.position.length; i++){\n\t\t\tfor(int p = 0; p < this.position.length; p++){\n\t\t\t\tthis.position[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of position making board\n\t\tthis.position[1][1] = 1;//putting player in this position\n\n\t\t//creating door in the rooms\n\t\tfor(int i = 0; i <this.Door.length; i++){\n\t\t\tfor(int p = 0; p < this.Door.length; p++){\n\t\t\t\tthis.Door[i][p] = 0;//filling with zero\n\t\t\t}\n\t\t}//end of Door making board\n\t\tthis.Door[9][13] = 1;//puts the door here \n\n\t\t//makes board that tells if item is there\n\t\tfor(int i = 0; i <this.Items.length; i++){\n\t\t\tfor(int p = 0; p < this.Items.length; p++){\n\t\t\t\tthis.Items[i][p] = null;//filling with null\n\t\t\t}\n\t\t}//end of filling board that has items\n\n\t\t//makes border of room\n\t\tfor(int i = 0; i < this.area.length; i++){\n\t\t\tfor(int p = 0; p<this.area.length; p++){\n\t\t\t\tif(i==0){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if (p==0 || p==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse if(i==19){\n\t\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tthis.area[i][p] = \" \";\n\t\t\t\t}\n\t\t\t}//end of innner for\n\t\t}//end of outter for\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 4; i< 5 ; i++){\n\t\t\tfor(int p = 4; p < 7; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 7; i< 8 ; i++){\n\t\t\tfor(int p = 2; p < 7; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 17; i< 18 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\t\n\t\t}\n\t\tfor(int i = 14; i< 15 ; i++){\n\t\t\tfor(int p = 13; p < 17; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\t\n\t\t}\t\n\t\tfor(int i = 11; i< 12 ; i++){\n\t\t\tfor(int p = 10; p < 17; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 15; i< 16 ; i++){\n\t\t\tfor(int p = 3; p < 6; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 16; i< 17 ; i++){\n\t\t\tfor(int p = 6; p < 13; p++){\n\t\t\t\tthis.area[p][i] = \"[ ]\";\n\t\t\t}\n\t\t}\n\t\tfor(int i = 12; i< 13 ; i++){\n\t\t\tfor(int p = 5; p < 10; p++){\n\t\t\t\tthis.area[i][p] = \"[ ]\";\n\t\t\t}\n\t\t\tSystem.out.println(\" \");\n\t\t}//end of for that creates walls\t\n\n\t\t//for loop that distributes items\n\t\tint y = 0;\n\t\tint x = 0;\n\t\tfor(int i = 0;i<10;i++){\n\t\t\tItem thing = ItemGenerator.generate();//making an item\n\t\t\tboolean good = false;\n\t\t\twhile(!good){//makes coordates until there is nothing in the way\n\t\t\t\ty = fate.nextInt(20);//getting coordiantaes \n\t\t\t\tx = fate.nextInt(20);\n\t\t\t\tif(this.Items[y][x]==null && this.area[y][x] != \"[ ]\"){\n\t\t\t\t\tgood = true;\n\t\t\t\t}//end of if\n\t\t\t\telse{ \n\t\t\t\t\tgood = false;\n\t\t\t\t}\n\t\t\t}//end of while\n\t\t\tItems[y][x] = thing;\n\t\t}//end of for that distributes items on board\n\n\t}", "public Queen(int r, int c)\r\n {\r\n row = r;\r\n column = c;\r\n }", "Board() {\r\n init();\r\n }", "public void createBoard() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j <colls; j++) {\n if(i==0 || j == 0 || i == rows-1|| j == colls-1){\n board[i][j] = '*';\n } else {\n board[i][j] = ' ';\n }\n }\n }\n }", "public TicTacToe(){ \r\n\t\tboard = new char[3][3];\r\n\t}", "public Board(int lines, int columns, List<String> board) {\r\n\t\tif (lines == 0 || lines % 2 != 0 || lines < 2 || lines > 98) {\r\n\t\t\tthrow new IllegalArgumentException(\"Error! Line length is invalid.\");\r\n\t\t} else if (columns == 0 || columns % 2 != 0 || columns < 2 || columns > 26) {\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Error! Column length is invalid.\");\r\n\t\t} else if (board != null) {\r\n\r\n\t\t\tfor (String s : board) {\r\n\t\t\t\tif (!s.matches(\"[W,B,#,,-]+\")) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\t\"Error! Invalid board parameters.\");\r\n\t\t\t\t} else if (s.length() != columns) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\t\"Error! Board columns not equal to columns.\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\tif (board.size() != lines) {\r\n\t\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\t\"Error! Board lines not equal to lines.\");\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.playBoard = new char[lines][columns];\r\n\t\tthis.possibleMoves = new ArrayList<PossibleMove>();\r\n\r\n\t\tif (board == null) {\r\n\t\t\tthis.init();\r\n\t\t} else {\r\n\t\t\tfor (int i = 0; i < playBoard.length; i++) {\r\n\t\t\t\tfor (int j = 0; j < playBoard[0].length; j++) {\r\n\t\t\t\t\tplayBoard[i][j] = board.get(i).charAt(j);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public Board() {\n tiles = new int[3][3];\n int[] values = genValues(new int[]{1, 2, 3, 4, 5, 6, 7, 8, 0});\n\n int offset;\n for (int i = 0; i < 3; i++) {\n offset = 2 * i;\n tiles[i] = Arrays.copyOfRange(values, i + offset, i + offset + 3);\n }\n }", "public Triangle() {\n this(0,0,0,0,0);\n }", "public MyWorld()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(600, 600, 1); \n \n drawLines();\n \n for( int r = 0; r < board.length; r++ )\n {\n for( int c = 0; c < board[r].length; c++)\n {\n board[r][c] = \"\"; \n \n }\n }\n }", "public void createBoard() {\n for (int i = 0; i < matrix.length; i++) {\n for (int j = 0; j < matrix[i].length; j++) {\n matrix[i][j] = WATER;\n }\n }\n }", "public Board(char[][] board) {\n this.boardWidth = board.length;\n this.boardHeight = board[0].length;\n this.board = board;\n this.numShips = 0;\n boardInit();\n }", "public TTTBoard(int dimensions)\n\t{\n\t\tsuper(dimensions, dimensions);\n\t\tplayer = 0;\n\t}", "public Triangle() {\n\t\tsuper();\n\t\tthis.base = 0;\n\t\tthis.height = 0;\n\t\t\n\t}", "public Display() {\r\n\t\t//Fills the board with invalid positions\r\n\t\tboard = new int[17][17];\r\n\t\tfor (int i = 0; i < 17; i++)\r\n\t\t\tfor (int j = 0; j < 17; j++)\r\n\t\t\t\tboard[i][j] = -1;\r\n\r\n\t\t//Fills the center of the board with valid positions\r\n\t\tfor (int i = 4; i <= 12; i++)\r\n\t\t\tfor (int j = 4; j <= 12; j++)\r\n\t\t\t\tboard[i][j] = 0;\r\n\t\t\r\n\t\t//Fills the rest of the board with valid positions\r\n\t\tfillTriangle(-1, board, 0, 16, 12);\r\n\t\tfillTriangle(1, board, 0, 9, 13);\r\n\t\tfillTriangle(-1, board, 0, 7, 12);\r\n\t\tfillTriangle(1, board, 0, 0, 4);\r\n\t\tfillTriangle(-1, board, 0, 7, 3);\r\n\t\tfillTriangle(1, board, 0, 9, 4);\r\n\t\t\r\n\t\tthis.setPreferredSize(SIZE);\r\n\t}", "public Board() {\n this.actionField = new ActionField();\n this.buyField = new BuyField();\n }", "public Board() {\n\t\tthis.myBoard = new BlockFor2048[4][4];\n\t\tint randomInserted = 0;\n\t\tint colInd = 0;\n\t\tint rowInd = 0;\n\t\twhile (randomInserted != 2){\n\t\t\tcolInd = (int)(Math.random() * 4);\n\t\t\trowInd = (int)(Math.random() * 4);\n\t\t\tif (this.myBoard[colInd][rowInd] == null){\n\t\t\t\tthis.myBoard[colInd][rowInd] = new BlockFor2048(2);\n\t\t\t\trandomInserted++;\n\t\t\t}\n\t\t}\t\t\n\t\tthis.ScoreValue = 0;\n\t}", "protected BattleshipBoard(int rows, int cols, int maxPlayer, Interaction interaction, Piece currentPiece, Pattern pattern, Color color) {\n\t\tsuper(rows, cols, maxPlayer, interaction, currentPiece, pattern, color);\n\t\tthis.shipBoard = new BattleshipPiece[rows][cols];\n\t\tthis.playerScore = new int[maxPlayer];\n\t}" ]
[ "0.7037925", "0.6919455", "0.6713483", "0.65818614", "0.6564189", "0.6477053", "0.6472673", "0.6471659", "0.64450175", "0.6435265", "0.63999075", "0.6396576", "0.6369632", "0.63419485", "0.63361263", "0.6320465", "0.63151556", "0.6314669", "0.6314669", "0.6300046", "0.62976825", "0.6283044", "0.6280503", "0.62635744", "0.62525636", "0.6244915", "0.6242376", "0.6239343", "0.62389386", "0.62352204", "0.62287295", "0.6203536", "0.61948895", "0.61862123", "0.61744475", "0.61743534", "0.61667067", "0.61497706", "0.614438", "0.6144232", "0.61336327", "0.61313206", "0.61289376", "0.6125112", "0.6102429", "0.61013097", "0.60927933", "0.60888284", "0.6083246", "0.6080963", "0.6062311", "0.60352516", "0.60321844", "0.6024618", "0.6015978", "0.6006602", "0.59973514", "0.5994736", "0.59821135", "0.5979627", "0.59749264", "0.5974645", "0.595763", "0.5933483", "0.5932332", "0.59263843", "0.59176534", "0.5909835", "0.5891869", "0.58789164", "0.58722353", "0.5867326", "0.5864124", "0.5856881", "0.58447", "0.5841741", "0.5836102", "0.58273566", "0.582678", "0.58238924", "0.582081", "0.5818272", "0.5817029", "0.5814351", "0.58123446", "0.5809567", "0.5804894", "0.58033776", "0.57975644", "0.5786744", "0.5770225", "0.5764451", "0.57577753", "0.57466733", "0.5743893", "0.5741326", "0.5738382", "0.57306623", "0.5724183", "0.5722486" ]
0.6537393
5
Check if locations are outside board size.
@Override public void move(int fromRow, int fromCol, int toRow, int toCol) throws IllegalArgumentException { if (checkOutOfBounds(fromRow, fromCol, toRow, toCol)) { throw new IllegalArgumentException("Can't have location outside the board limits"); } // Check if locations, from and to, are invalid in the board. if (board.getPiece(fromRow, fromCol).isInvalid() || board.getPiece(toRow, toCol).isInvalid()) { throw new IllegalArgumentException("Can't move from or to invalid position"); } // Check if the move from and to locations are two spots away for horizontal and vertical moves. int rowDiff = Math.abs(fromRow - toRow); int colDiff = Math.abs(fromCol - toCol); if (!(rowDiff == 0 && colDiff == 2) && !(rowDiff == 2 && colDiff == 0) && !(rowDiff == 2 && colDiff == 2)) { throw new IllegalArgumentException("From & To locations aren't 2 spots away from each other"); } // Get the middle marble position. int middleRow = getTriangleMiddleRow(fromRow, fromCol, toRow, toCol); int middleCol = getTriangleMiddleCol(fromRow, fromCol, toRow, toCol); // Make the move by setting correct pieces in the positions. makeMove(fromRow, fromCol, middleRow, middleCol, toRow, toCol); this.score = this.score - 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean outOfBounds()\n {\n if((lastpowerUp.equals(\"BLUE\") || lastpowerUp.equals(\"RAINBOW\")) && powerupTimer > 0)\n {\n return false;\n }\n \n if(head.getA() < 150 || head.getA() >= 1260)\n return true;\n else if(head.getB() <150 || head.getB() >=630)\n return true;\n else \n return false;\n \n \n }", "private boolean isOutsideParameters(HudPosition hudPosition, int x, int y) {\n int width = x + hudPosition.getWidth();\n int height = y + hudPosition.getHeight();\n\n int[] dimensions = this.getScreenDimensions();\n\n if (width > dimensions[0] - 5) {\n return true;\n\n } else if (height > dimensions[1] - 5) {\n return true;\n\n } else if (hudPosition.getX() < 5) {\n return true;\n\n } else return hudPosition.getY() < 5;\n }", "private static boolean checkOutside(float [][] myBox, float[][] otherBox)\n {\n vloop:\n for (int v = 0; v < 4; v++)\n {\n int v1 = (v + 1) & 3; // wrap at 4 back to 0\n float edgeX = myBox[v][0] - myBox[v1][0];\n float edgeY = myBox[v][1] - myBox[v1][1];\n float reX = -edgeY;\n float reY = edgeX;\n \n if (reX == 0.0 && reY == 0.0)\n {\n continue vloop;\n }\n \n for (int e = 0; e < 4; e++)\n {\n float scalar = reX * (otherBox[e][0] - myBox[v1][0])\n + reY * (otherBox[e][1] - myBox[v1][1]);\n if (scalar < 0)\n {\n continue vloop;\n }\n }\n \n // If we got here, we have an edge with all vertexes from the\n // other rect on the outside:\n return true;\n }\n \n return false;\n }", "@Override\n\tpublic boolean outOfBounds() {\n\t\treturn this.getY() < 0;\n\t}", "public static boolean exceedsColumnLimit( TileLocation location )\r\n {\r\n boolean exceeds = true;\r\n \r\n if ( location != null )\r\n {\r\n Integer zoom = location.getZoom();\r\n if ( zoom != null &&\r\n zoom >= 0 && \r\n zoom <= 20 )\r\n {\r\n TileLocation limit = bounds.get( zoom );\r\n Integer column = location.getColumn();\r\n if ( column != null && \r\n column <= limit.getColumn() )\r\n {\r\n exceeds = false;\r\n }\r\n }\r\n }\r\n \r\n return exceeds;\r\n }", "private boolean validateOutOfRangeCoordinate() throws IOException {\n int maxValue = Integer.parseInt(Objects.requireNonNull(FileUtils.getProperty(\"max-coordinate-value\")));\n return (Math.abs(getX()) > maxValue) || (Math.abs(getY()) > maxValue);\n }", "public boolean checkRep() {\n return location.x() >= 0 && location.x() < board.getWidth() && \n location.y() >= 0 && location.y() < board.getHeight(); \n }", "@Override\n public boolean isInBounds(int row, int col) {\n return row >= 0 && row < grid.length && col >= 0 && col < grid[0].length;\n }", "private boolean checkIfGoodSquare(MapLocation location) {\n return (location.x % 2 == location.y % 2) && !location.isAdjacentTo(Cache.myECLocation);\n }", "public boolean checkEast(HashMap<Coordinate, MapTile> currentView){\n\t\t\t// Check tiles to my right\n\t\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x+i, currentPosition.y));\n\t\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn false;\n\t\t}", "public boolean checkEast(HashMap<Coordinate, MapTile> currentView){\n\t\t// Check tiles to my right\n\t\tCoordinate currentPosition = new Coordinate(getPosition());\n\t\tfor(int i = 0; i <= wallSensitivity; i++){\n\t\t\tMapTile tile = currentView.get(new Coordinate(currentPosition.x+i, currentPosition.y));\n\t\t\tif(tile.isType(MapTile.Type.WALL)){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean isFullWest()\r\n\t{\r\n\t\treturn (westElem == maxSize);\r\n\t}", "private boolean isOutOfBounds(int row, int col) {\n if (row < 0 || row >= this.getRows()) {\n return true;\n }\n else if (col < 0 || col >= this.getColumns()) {\n return true;\n }\n else {\n return false; // the placement is valid\n }\n }", "private boolean beyondBoard(int col, int row) {\n if (col >= size || row >= size || col <= -1 || row <= -1) {\n return true;\n }\n return false;\n }", "private boolean isLegalPos(int row, int col){\r\n return !(row < 0 || row > 7 || col < 0 || col > 7);\r\n }", "private boolean maxLocationsReached() {\n Query q = new Query(\"Location\");\n int numOfEntities = ds.prepare(q).countEntities();\n return (numOfEntities >= MAX_LOCATIONS);\n }", "private boolean isInsideBoard(int x, int y){\n if(x < 0 || x > getWidth() - 1 || y < 0 || y > getHeight() - 1)\n return false;\n\n return true;\n }", "public boolean isBoardFull() {\n\t\t// REPLACE NEXT LINE WITH YOUR IMPLEMENTATION\n\t\tint boardSize = getBoardSize();\n\t\t\n\t\tfor (int i = 0; i < boardSize; i++) {\n\t\t\t\n\t\t\tfor (int j = 0; j < boardSize; j++) {\n\t\t\t\t\n\t\t\t\tif (isSpotBlank(i,j)) {\n\t\t\t\t\t\n\t\t\t\t\treturn false;\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public abstract boolean isOutOfBounds(int x, int y);", "private boolean checkM(){\n if(currentLocation.x == previousLocation.x && currentLocation.y == previousLocation.y) {\n return false;\n }\n // Is outside the border\n if(currentLocation.x < size || currentLocation.y < size || currentLocation.x > map.numRows - size || currentLocation.y > map.numCols - size) {\n return false;\n }\n // Is on the land\n double angle2 = 0;\n while (angle2 < 6.3) {\n if (map.getTerrainGrid()[currentLocation.x + (int) (size/2 * cos(angle2))][currentLocation.y + (int) (size/2 * sin(angle2))] == Colors.OCEAN) {\n return false;\n }\n angle2 += 0.3;\n }\n return true;\n }", "public boolean outOfRange(){\r\n\t\t\treturn (shape.x <=0 ? true : false);\r\n\t\t}", "private boolean boardIsFull() {\n int numberOfFieldsOnBoard = boardSize * boardSize;\n return (numberOfFieldsOnBoard == this.numberOfOccupiedFields);\n }", "private boolean verifyBounds() {\r\n\t if((x>RobotController.BOUNDS_X || y>RobotController.BOUNDS_Y)\r\n\t || x<0 || y<0){\r\n\t return false;\r\n\t }\r\n\t return true;\r\n\t }", "private boolean isOccupied(Location loc)\n\t{\n\t\treturn grid[loc.getRow()][loc.getCol()] != null;\n\t}", "private boolean tileIsInbounds(int row, int col){\n\t\treturn row >= 0 && col >= 0\n\t\t\t\t&& row < board.length && col < board[0].length;\n\t}", "public boolean checkBoardFull() {\n for (int i = 0; i < N; i++) {\n for (int j = 0; j < N; j++) {\n if (grid[i][j].getSymbol() == '-')\n return false;\n }\n }\n return true;\n }", "private boolean inBounds(int row, int col){\n if (row > -1 && row < 120 && col > -1 && col < 160)\n return true;\n return false;\n }", "public boolean isValidBoard() {\n\t\t\n\t\tif(mainSlots.size() != NUM_MAIN_SLOTS) {\n\t\t\treturn false;\n\t\t} else if ((redHomeZone != null && redHomeZone.size() != NUM_HOME_SLOTS) ||\n\t\t\t\t(greenHomeZone != null && greenHomeZone.size() != NUM_HOME_SLOTS) ||\n\t\t\t\t(yellowHomeZone != null && yellowHomeZone.size() != NUM_HOME_SLOTS) || \n\t\t\t\t(blueHomeZone != null && blueHomeZone.size() != NUM_HOME_SLOTS)) {\n\t\t\treturn false;\n\t\t} else if ((redEndZone != null && redEndZone.size() != NUM_END_SLOTS) ||\n\t\t\t\t(greenEndZone != null && greenEndZone.size() != NUM_END_SLOTS) || \n\t\t\t\t(yellowEndZone != null && yellowEndZone.size() != NUM_END_SLOTS) || \n\t\t\t\t(blueEndZone != null && blueEndZone.size() != NUM_END_SLOTS)) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\t\t\n\t}", "private boolean checkOverlap(int row, int col, int length){\n \tif(!inBounds(row,col)){\n \t\treturn false;\n \t}\n \tfor(int i = row; i < row + length; i++ ){\n\t\t\tfor(int j = col; j < col + length; j++){\n\t\t\t\tif(grid[i][col] == 1 || row + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t\tif(grid[row][j] == 1 || col + length >= 10)\n\t\t\t\t\treturn false;\n\t\t\t}\n \t\t\n \t}\n \treturn true;\n }", "private boolean isLegalCoordinate(int row, int col) {\n return row > 0 && row <= getSize() && col > 0 && col <= getSize();\n }", "private boolean isLegalPositon(Position checkPosition){\n if (checkPosition.equalPosition(start)||checkPosition.equalPosition(end))\n return true;\n if(checkPosition.getRow()<0 || checkPosition.getCol()<0 || checkPosition.getRow()>=this.rows || checkPosition.getCol() >= this.cols){\n return false;\n }\n\n if(maze[checkPosition.getRow()][checkPosition.getCol()]== WallType.wall){\n return false;\n }\n return true;\n }", "public boolean inBounds(Board board) {\n return row >= 0 && column >= 0\n && row < board.nQueens && column < board.nQueens;\n }", "private boolean isFullSouth()\r\n\t{\r\n\t\treturn (southElem == maxSize);\r\n\t}", "private boolean outOfBounds(long n) {\n return n < 0 || n >= getSize();\n }", "public static boolean exceedsRowLimit( TileLocation location )\r\n {\r\n boolean exceeds = true;\r\n \r\n if ( location != null )\r\n {\r\n Integer zoom = location.getZoom();\r\n if ( zoom != null &&\r\n zoom >= 0 && \r\n zoom <= 20 )\r\n {\r\n TileLocation limit = bounds.get( zoom );\r\n Integer row = location.getRow();\r\n if ( row != null &&\r\n row <= limit.getRow() )\r\n {\r\n exceeds = false;\r\n }\r\n }\r\n }\r\n \r\n return exceeds;\r\n }", "private boolean isInsideBoard(int i, int j) {\n return i >= 0 && i < BOARD_WIDTH && j >= 0 && j < BOARD_HEIGHT\n && mapCells[j][i] != 0;\n }", "public boolean enemyOutOfBounds() {\n return (position.x < 0\n || position.x + TYPE_A_WIDTH > World.WORLD_WIDTH\n || position.y < 0\n || position.y + TYPE_A_HEIGHT > World.WORLD_HEIGHT);\n }", "public boolean isBoardFull() {\r\n\r\n\t\t\r\n for (int i = 0; i < boardsize; i++) \r\n {\r\n for (int j = 0; j < boardsize; j++) \r\n {\r\n if (board[i][j] == -1) \r\n {\r\n return false;\r\n }\r\n }\r\n }\r\n\t\t\r\n return true;\r\n }", "private boolean isBoardFull() {\n for (int i = 0; i < 3; i++) {\n for (int j = 0; j < 3; j++) {\n if (boardState[i][j] != 'X' && boardState[i][j] != 'O') {\n return false; \n }\n }\n }\n return true; \n }", "public boolean isValidPlacementSpot() {\n return isEmpty() && ! getNeighbours().stream().allMatch(Spot::isEmpty);\n }", "public boolean zoneStructuresAreOutside() {\n\t\tfor (Team team : this.zone.getTeams()) {\n\t\t\tfor (Volume spawnVolume : team.getSpawnVolumes().values()) {\n\t\t\t\tif (!this.isInside(spawnVolume.getCornerOne()) || !this.isInside(spawnVolume.getCornerTwo())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (team.getTeamFlag() != null) {\n\t\t\t\tif (!this.isInside(team.getFlagVolume().getCornerOne()) || !this.isInside(team.getFlagVolume().getCornerTwo())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// check monuments\n\t\tfor (Monument monument : this.zone.getMonuments()) {\n\t\t\tif (monument.getVolume() != null) {\n\t\t\t\tif (!this.isInside(monument.getVolume().getCornerOne()) || !this.isInside(monument.getVolume().getCornerTwo())) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private boolean isValidCoordinate(int x, int y) {\n return x >= 0 && x < gameState.mapSize\n && y >= 0 && y < gameState.mapSize;\n }", "private boolean withinGridDimensions(int startX, int startY, int endX, int endY) {\n boolean within = true;\n int largerX = Math.max(startX, endX);\n int smallerX = Math.min(startX, endX);\n int largerY = Math.max(startY, endY);\n int smallerY = Math.min(startY, endY);\n \n if (smallerX < 1 || smallerY < 1 || largerX > GRID_DIMENSIONS || largerY > GRID_DIMENSIONS) {\n within = false;\n }\n \n return within;\n }", "private boolean atLeastOneNonWallLocation() {\n\t\tfor (int x = 0; x < this.map.getMapWidth(); x++) {\n\t\t\tfor (int y = 0; y < this.map.getMapHeight(); y++) {\n\n\t\t\t\tif (this.map.getMapCell(new Location(x, y)).isWalkable()) {\n\t\t\t\t\t// If it's not a wall then we can put them there\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean isBarcodeLargeEnoughForBubble(Quadrilateral barcodeLocation) {\n float topRightX = barcodeLocation.getTopRight().getX();\n float topLeftX = barcodeLocation.getTopLeft().getX();\n float bottomRightX = barcodeLocation.getBottomRight().getX();\n float bottomLeftX = barcodeLocation.getBottomLeft().getX();\n float avgWidth = ((topRightX - bottomLeftX) + (bottomRightX - topLeftX)) / 2;\n return (avgWidth / displayWidth) >= SCREEN_PERCENTAGE_WIDTH_REQUIRED;\n }", "private boolean inBounds(int row, int col)\n {\n return ((row >= 0) && (row < NUM_ROWS) &&\n (col >= 0) && (col < NUM_COLS)); \n }", "public static boolean [] emptyAdjacentSquares(int [][] map, int locX, int locY) {\n boolean [] empty = new boolean[4]; //0 has value empty.\n empty[0] = locY != 15 && map[locY + 1][locX] == 0; //North\n empty[1] = locX != 15 && map[locY][locX + 1] == 0; //East\n empty[2] = locY != 0 && map[locY - 1][locX] == 0; //South\n empty[3] = locX != 0 && map[locY][locX - 1] == 0; //West\n return empty;\n }", "public static boolean isFull() {\n return (board[0][0] > 0 && board[0][1] > 0 && board[0][2] > 0\n && board[1][0] > 0 && board[1][1] > 0 && board[1][2] > 0\n && board[2][0] > 0 && board[2][1] > 0 && board[2][2] > 0\n && board[0][0] > 0 && board[1][0] > 0 && board[2][0] > 0\n && board[0][1] > 0 && board[1][1] > 0 && board[2][1] > 0\n && board[0][2] > 0 && board[1][2] > 0 && board[2][2] > 0\n && board[0][0] > 0 && board[1][1] > 0 && board[2][2] > 0\n && board[0][2] > 0 && board[1][1] > 0 && board[2][0] > 0);\n }", "private boolean cell_in_bounds(int row, int col) {\n return row >= 0\n && row < rowsCount\n && col >= 0\n && col < colsCount;\n }", "public boolean isOutOfBound(int actionVal, int row, int col)\n\t\t{\n\t\t\tif( (actionVal == UP && row == 0) || ( actionVal == LEFT && col == 0) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if( (actionVal == DOWN && row == utilities.length-1) || (actionVal == RIGHT && col == utilities[0].length-1) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\t\n\t\t}", "@Test\n\tpublic void invalidOutsideSquare_1() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tWalkableSquare square = new WalkableSquare(true, null, null, null, null);\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}", "@Test\n\tpublic void validOutsideSquare() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tWalkableSquare square = new WalkableSquare(false, null, null, null, null);\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertTrue(gameState.isOutside(location));\n\t}", "public boolean inBound(int x, int y) {\n\n if (x < 0 || x >= boardSize.x || y < 0 || y >= boardSize.y) {\n return false;\n } else {\n return true;\n }\n }", "public boolean isFull() {\r\n return placeCounter == dimension * dimension;\r\n }", "@Override\n public boolean isLocationEmpty(int x, int y)\n {\n return isLocationEmpty(null, x, y);\n }", "public boolean isValid() {\n\t\treturn (x >= 0 && x < Board.SIZE && y >= 0 && y < Board.SIZE);\n\t}", "@Test\n\tpublic void invalidOutsideSquare_2() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tSquare square = new BlankSquare();\n\t\tLocation location = new Location(0, 0);\n\t\tgameState.setSquare(location, square);\n\t\tassertFalse(gameState.isOutside(location));\n\t}", "private boolean isFull(){\n return cellSize == Max;\n }", "public boolean isFull(){\n for(int i=0;i<3;i++){\n for(int j=0;j<3;j++){\n if(!gameBoard[i][j].equals(\"O\") && !gameBoard[i][j].equals(\"X\")){\n return false;\n }\n }\n }\n return true;\n }", "private boolean isValid(int x, int y, int newX, int newY, int row, int col, int[][] rooms) {\n int INF = Integer.MAX_VALUE; // (2^31 - 1) = 2147483647\n return newX >= 0 && newY >= 0 && newX < row && newY < col && rooms[newX][newY] > 0 && rooms[x][y] != INF;\n }", "public static boolean isBoardFull() {\n\t\treturn spacesLeft == 0;\n\t}", "private static boolean isInBounds(Location location, Vector3i min, Vector3i max) {\n return location.getX() >= min.x && location.getX() < max.x && location.getY() >= min.y\n && location.getY() < max.y && location.getZ() >= min.z && location.getZ() < max.z;\n }", "public boolean availableSquare(Location location)\n {\n boolean available = false;\n if(countTrees() + countGrasses() <= 10) {\n available = true;\n }\n return available;\n }", "public boolean goodSize( Coordinates startCoord, Coordinates endCoord, int size) {\n\t\t\r\n\t\tint nb1 = startCoord.getNumber();\r\n\t\tchar letter1 = startCoord.getLetter();\r\n\t\tint nb2 = endCoord.getNumber();\r\n\t\tchar letter2 = endCoord.getLetter();\r\n\t\t\r\n\t\treturn (\r\n\t\t\t\t(Math.abs(nb1 - nb2) == size-1)\r\n\t\t\t\t|| \r\n\t\t\t\t(Math.abs(letter1 - letter2) == size-1 ));\r\n\t}", "public boolean isOutOfBound(int actionVal, int row, int col)\n\t\t{\n\t\t\tif( ( actionVal == UP && row == 0) || ( actionVal == LEFT && col == 0) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse if( ( actionVal == DOWN && row == rewards.length-1) || ( actionVal == RIGHT && col == rewards[0].length-1) )\n\t\t\t{\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\treturn false;\t\n\t\t}", "private boolean subGridCheck() {\n\t\tint sqRt = (int)Math.sqrt(dimension);\n\t\tfor(int i = 0; i < sqRt; i++) {\n\t\t\tint increment = i * sqRt;\n\t\t\tfor(int val = 1; val <= dimension; val++) {\n\t\t\t\tint valCounter = 0;\n\t\t\t\tfor(int row = 0 + increment; row < sqRt + increment; row++) {\n\t\t\t\t\tfor(int col = 0 + increment; col < sqRt + increment; col++) {\n\t\t\t\t\t\tif(puzzle[row][col] == val)\n\t\t\t\t\t\t\tvalCounter++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(valCounter >= 2)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private Vector2d checkOutOfBounds(Vector2d position) {\n\t\t//Check for x\n\t\tif (position.x < 0) position.x = 0;\n\t\tif (position.x > course.TERRAIN_SIZE) position.x = course.TERRAIN_SIZE;\n\t\t//Check for y\n\t\tif (position.y < 0) position.y = 0;\n\t\tif (position.y > course.TERRAIN_SIZE) position.y = course.TERRAIN_SIZE;\n\n\t\treturn new Vector2d(position.x,position.y);\n\t}", "public boolean isTotallyOnGrid() {\n\t\t\tfor(int i=0; i<4; i++) {\n\t\t\t\tif(position.y + i >= 0)\n\t\t\t\t\treturn true; //everything from here down is on grid\n\t\t\t\t// this row is above grid so look for non-empty squares\n\t\t\t\tfor(int j=0; j<4; j++)\n\t\t\t\t\tif(squares[i][j])\n\t\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\tSystem.err.println(\"TetrisPiece.isTotallyOnGrid internal error\");\n\t\t\treturn false;\n\t\t}", "public static boolean insideBounds(GameTile tile) {\n\n if (tile == null) {\n return false;\n } else {\n\n int x = tile.getXCoord();\n int y = tile.getYCoord();\n\n return !(x < 0 || y < 0) && !(x > TILE_COLS || y > TILE_ROWS);\n\n }\n\n }", "public boolean isFull(){\r\n\t\tfor(int i = 0; i < boardSize; i++){\r\n\t\t\tif(board[i] == Box.EMPTY){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean isViewerPositionInvalid(ViewerPosition3D position)\n {\n Vector3d location = new Vector3d(position.getLocation());\n double terrainTolerance = TERRAIN_SAFETY_TOLERANCE;\n if (position.getGeoPosition() != null && position.getGeoPosition().getAlt().getReferenceLevel() != ReferenceLevel.TERRAIN)\n {\n terrainTolerance *= 10;\n }\n\n if (!myMapContext.getProjection().isOutsideModel(location.add(location.multiply(terrainTolerance)))\n || Math.abs(location.getX()) > ourMaxOriginDistance\n || Math.abs(location.getY()) > ourMaxOriginDistance\n || Math.abs(location.getZ()) > ourMaxOriginDistance)\n {\n return true;\n }\n\n return false;\n }", "private boolean aboveWall(int yCoord) {\n return (yCoord >= (yStart + ySize));\n }", "private static void mapCheck(){\n\t\tfor(int x = 0; x < Params.world_width; x = x + 1){\n\t\t\tfor(int y = 0; y < Params.world_height; y = y + 1){\n\t\t\t\tif(map[x][y] > 1){\n\t\t\t\t\t//System.out.println(\"Encounter Missing. Position: (\" + x + \",\" + y + \").\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public boolean atWorldEdge()\n {\n if(getX() < 20 || getX() > getWorld().getWidth() - 20)\n return true;\n if(getY() < 20 || getY() > getWorld().getHeight() - 20)\n return true;\n else\n return false;\n }", "public boolean atWorldEdge()\n {\n if(getX() < 20 || getX() > getWorld().getWidth() - 20)\n return true;\n if(getY() < 20 || getY() > getWorld().getHeight() - 20)\n return true;\n else\n return false;\n }", "public static boolean isInColosseum(Location loc) {\n\t\tif (!(loc.getWorld() == Bukkit.getWorld(\"redacted2\"))) return false;\n\t\t// bad hotfix\n\t\tif (loc.clone().add(0, -1, 0).getBlock().getType() == Material.GRASS) return false;\n\t\tint locX = loc.getBlockX();\n\t\tint locY = loc.getBlockY();\n\t\tint locZ = loc.getBlockZ();\n\t\t//Test if player is in main launcher ignore box\n\t\t// -4 98 10 to -23 30 23 - ignore zone for main launcher\n\t\tif (-23 <= locX && locX <= -4 && 30 <= locY && locY <= 98 && 10 <= locZ && locZ <= 23) return false;\n\t\t//Test if player is in side launcher ignore box\n\t\t//-4 98 98 to -25 30 75 - ignore zone for side launcher\n\t\tif (-25 <= locX && locX <= -4 && 30 <= locY && locY <= 98 && 75 <= locZ && locZ <= 98) return false;\n\t\t//If the player is not in either of the ignore boxes, check if they are in the colosseum boundaries\n\t\t//-4 98 10 to -100 30 98 - Colosseum boundaries\n\t\tif (-100 <= locX && locX <= -4 && 30 <= locY && locY <= 98 && 10 <= locZ && locZ <= 98) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "private boolean hasValidBounds() {\n\n\n\n return false;\n }", "protected boolean validCoord(int row, int col) {\n\t\treturn (row >= 0 && row < b.size() && col >= 0 && col < b.size());\n\t}", "private boolean isInBounds(int i, int j)\n {\n if (i < 0 || i > size-1 || j < 0 || j > size-1)\n {\n return false;\n }\n return true;\n }", "protected static boolean outOfFrame(@NotNull Shape shape) {\n\t\tif (shape.position.x + shape.size.x / 2 < Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.x - shape.size.x / 2 > Display.getWidth() + Camera.getPosition().x)\n\t\t\treturn (true);\n\t\tif (shape.position.y - shape.size.y / 2 > Display.getHeight() + Camera.getPosition().y)\n\t\t\treturn (true);\n\t\treturn shape.position.y + shape.size.y / 2 < Camera.getPosition().y;\n\t}", "public boolean isLegal(int x_pos, int y_pos){\n //TODO\n //if the color is black,\n if(color==\"black\" || color.equals(\"black\")){\n for(int i=1; i<8; i++){\n if(this.x_pos-i==x_pos && y_pos==this.y_pos) return true;\n if(this.x_pos==x_pos && this.y_pos-i==y_pos) return true;\n }\n }\n //if the color is white, then its going up the board (you add the position)\n else{\n for(int i=1; i<8; i++){\n if(this.x_pos+i==x_pos && y_pos==this.y_pos) return true;\n if(this.x_pos==x_pos && this.y_pos+i==y_pos) return true;\n }\n }\n return false;\n }", "private void checkRep() {\n assert (width <= Board.SIDELENGTH);\n assert (height <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.x() >= 0 && this.boundingBoxPosition.x() <= Board.SIDELENGTH);\n assert (this.boundingBoxPosition.y() >= 0 && this.boundingBoxPosition.y() <= Board.SIDELENGTH);\n }", "@Test\n public void testOverboundsInside() {\n Coordinate a, b, c, d;\n a = new Coordinate2D(2, 2, 0);\n b = new Coordinate2D(3, 3, 0);\n c = new Coordinate2D(2, 0, 0);\n d = new Coordinate2D(4, 2, 0);\n\n int actual, expected;\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(a);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(b);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(c);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(d);\n assertEquals(expected, actual);\n }", "private boolean birdIsOffscreen() {\r\n return (bird.getYpos() + bird.getRadius() < 0) ||\r\n (bird.getXpos() + bird.getRadius() < 0) ||\r\n (bird.getXpos() - bird.getRadius() > width);\r\n }", "public void checkBlankSpace() {\n\t\tif (xOffset < 0) {\n\t\t\txOffset = 0;\n\t\t} else if (xOffset > handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth()) {\n\t\t\txOffset = handler.getWorld().getWidth() * Tile.TILEWIDTH - handler.getWidth();\n\t\t}\n\t\t\n\t\tif (yOffset < 0) {\n\t\t\tyOffset = 0;\n\t\t} else if (yOffset > handler.getWorld().getHeight() * Tile.TILEHEIGHT - handler.getHeight()) {\n\t\t\tyOffset = handler.getWorld().getHeight() * Tile.TILEWIDTH - handler.getHeight();\n\t\t}\n\t}", "boolean testOffScreenPosn(Tester t) {\n return t.checkExpect(this.p1.isOffScreen(200, 200), false)\n && t.checkExpect(this.p4.isOffScreen(200, 200), true)\n && t.checkExpect(this.p5.isOffScreen(200, 200), true)\n && t.checkExpect(new MyPosn(-10, 40).isOffScreen(200, 200), true)\n && t.checkExpect(new MyPosn(10, -40).isOffScreen(200, 200), true)\n && t.checkExpect(new MyPosn(200, 200).isOffScreen(200, 200), false);\n }", "public boolean offscreen(int top, int left, int w, int h) {\r\n return this.getPosx() + this.bound < left\r\n || this.getPosx() - this.bound > left + w\r\n || this.getPosy() + this.bound < top\r\n || this.getPosy() - this.bound > top + h;\r\n }", "public boolean isFull() {\n for (int i = 0; i < rows; i++) {\n for (int j = 0; j < cols; j++) {\n if (getBoard()[i][j] == null)\n return false;\n }\n }\n return true;\n }", "private boolean isEmpty(Point pos){\r\n Cells aux = model.getValueAt(pos);\r\n return (aux == Cells.BLACK_FLOOR);\r\n }", "public boolean isInsideBoard(Position pos){\n\t\tboolean inside = false;\n\t\t\n\t\tif (pos.getX()<this.getSize().getWidth() && pos.getX()>=0 &&\n\t\t\t\tpos.getY()<this.getSize().getHeight() && pos.getY()>=0)\n\t\t\tinside=true;\n\t\t\n\t\treturn inside;\n\t\t\n\t}", "protected boolean hasSpace(int[][] gameboard, int col, int row){\r\n\t\tint count = 0;\r\n\t\tint i = col;\r\n\t\tboolean valid = false;\r\n\t\t\r\n\t\tif (col + size < 10) {\r\n\t\t\tfor(int j = 0; j < size; j++){\r\n\t\t\t\tif(gameboard[i][row] == -1){\r\n\t\t\t\t\ti++;\r\n\t\t\t\t\tcount++;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif(count == size){\r\n\t\t\t\tvalid = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn valid;\r\n\t}", "public boolean checkGameOver(){\n\t\tfor(int x = 0; x < this.tile[3].length; x++){\n\t\t if(this.isFilled(3, x)){\n\t\t \tSystem.out.println(\"game over\");\n\t\t return true;\n\t\t }\n\t\t}\n\t\treturn false;\n\t}", "public boolean isValid(Board board) {\n if (!from.isValid(board.size) || !to.isValid(board.size)) {\r\n return false;\r\n }\r\n\r\n // Confirm the 'from' space is occupied\r\n if (!board.b[from.row][from.column]) {\r\n return false;\r\n }\r\n\r\n // Confirm the 'to' space is empty\r\n if (board.b[to.row][to.column]) {\r\n return false;\r\n }\r\n\r\n int rowJump = Math.abs(from.row - to.row);\r\n int colJump = Math.abs(from.column - to.column);\r\n\r\n if (rowJump == 0) {\r\n if (colJump != 2) {\r\n return false;\r\n }\r\n }\r\n else if (rowJump == 2) {\r\n if (colJump != 0 && colJump != 2) {\r\n return false;\r\n }\r\n }\r\n else {\r\n return false;\r\n }\r\n\r\n // Confirm the 'step' space is occupied\r\n return board.b[(from.row + to.row) / 2][(from.column + to.column) / 2];\r\n }", "public boolean checkAllCellsFull() {\n // going over all the matrix cells\n for (int i = 0; i < size; i++) {\n for (int j = 0; j < size; j++) {\n // if there is an empty cell than return false\n if (myMatrix[i][j] == 'E') {\n return false;\n }\n }\n }\n // if all cells are full than return true\n return true;\n }", "public void checkCellStatus()\r\n {\r\n for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n {\r\n for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n {\r\n checkNeighbours(rows, columns);\r\n } // end of for (int rows = 0; rows < RIGHT_BOUND; rows ++)\r\n } // end of for (int columns = 0; columns < LOWER_BOUND; columns ++)\r\n }", "private boolean spotTaken(int row, int col, int shipSize, char orientation) {\n boolean spotTaken = false;\n for(int i = 0; i < shipSize; i++) {\n if(this.board[row][col+i] != '*') {\n System.err.println(String.format(\"Error: There is already part of a ship at ship at %d, %d\", row, col+i));\n return true;\n }\n }\n \n return false;\n }", "public boolean offScreen() {\r\n\t\treturn (this.getY() < -TREE_HEIGHT || this.getY() > 1000); \r\n\t}", "public boolean isPositionValid(){\n\t\t//check overlapping with walls\n\t\tfor(Wall wall : Game.gameField.getWalls()){\n\t\t\tif(wall.overlaps(center))\n\t\t\t\treturn false;\n\t\t}\n\t\t//check overlapping with other balls\n\t\tfor(Ball ball : Game.gameField.getBalls()){\n\t\t\tif(ball == this)\n\t\t\t\tcontinue;\n\t\t\tif(ball.getCenterPoint().distance(center) < RADIUS * 2)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn GameField.FIELD.contains(center);\n\t}", "private boolean checkVerticalWin(BoardPosition lastPos){\r\n int i, row, count;\r\n int check = 5;\r\n int col = lastPos.getColumn();\r\n\r\n for(i = (yMax-yMax)+1; i < (yMax-yMax+5); i++){\r\n count = 0;\r\n for(row = i; row < (i + check); row++){\r\n if(grid[row][col] == lastPos.getPlayer())\r\n count++;\r\n }\r\n if (count == win)\r\n return true;\r\n }\r\n return false;\r\n }", "private boolean isInBounds(int x, int y) {\r\n\t\treturn x >= 0 && y >= 0 && x < getWidth() && y < getHeight();\r\n\t}", "private boolean onBoard(int x, int y){\n if((x<WIDTH&&y<HEIGHT)){\n if(0<=x&&0<=y){\n return true;\n }\n return false;\n }else{\n return false;\n }\n\t}" ]
[ "0.6736974", "0.66058093", "0.6552176", "0.653413", "0.64209837", "0.6372751", "0.6312451", "0.62958914", "0.62657857", "0.62498856", "0.6248635", "0.6237445", "0.6235955", "0.61736137", "0.6159208", "0.6153791", "0.61370015", "0.6136782", "0.611492", "0.61108834", "0.6108331", "0.6088609", "0.60848933", "0.60584646", "0.60533273", "0.60530776", "0.60357624", "0.60298365", "0.60232025", "0.6007409", "0.5993189", "0.5991239", "0.59890336", "0.5984859", "0.598153", "0.5978495", "0.59736264", "0.59584737", "0.59450257", "0.5943511", "0.5943366", "0.59397846", "0.5939413", "0.59306926", "0.5917492", "0.58636045", "0.58597696", "0.5859561", "0.585035", "0.58467263", "0.58431256", "0.5830675", "0.5827844", "0.58241916", "0.58145446", "0.58141446", "0.5804904", "0.58048373", "0.5795255", "0.5794047", "0.5793566", "0.57814693", "0.57788014", "0.57746696", "0.5768814", "0.57685035", "0.5766114", "0.57456356", "0.5742124", "0.573325", "0.57189333", "0.5711909", "0.5703018", "0.56962895", "0.56962895", "0.56956303", "0.56928676", "0.5680013", "0.5669041", "0.56662196", "0.56403065", "0.56290436", "0.5628564", "0.56200176", "0.56157887", "0.5613518", "0.5611315", "0.56112593", "0.5603567", "0.56014717", "0.5593971", "0.55899626", "0.5586023", "0.55851626", "0.5583629", "0.5579546", "0.5578034", "0.5577421", "0.5575241", "0.55736023", "0.5565843" ]
0.0
-1
If accessed without an user's authorization sends to authorization page, otherwise prepares and displays current user's profile page.
@Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { helper.init(req, resp); Language locale = Language.getByLocale( (String) helper.getSessionAttribute(SESSION_LANGUAGE)); User user = (User) helper.getSessionAttribute(SESSION_CURRENT_USER); if (user != null) { Optional<User> opt = userService.findById(user.getUserId(), locale); if (opt.isPresent()) { user = opt.get(); prepareLevel(user, req, locale); prepareAchievements(user, req, locale); prepareProgression(user, req, locale); helper.setSessionAttribute(SESSION_CURRENT_USER, user); } helper.dispatch(Destination.GOTO_PROFILE); } else { helper.redirect(Destination.GOTO_AUTHORIZATION); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = {\"/profile\"})\n @PreAuthorize(\"hasRole('logon')\")\n public String showProfile(HttpServletRequest request, ModelMap model)\n {\n User currentUser = userService.getPrincipalUser();\n model.addAttribute(\"currentUser\", currentUser);\n return \"protected/profile\";\n }", "public void handleNavMenuViewProfile() {\n if (user != null) {\n view.launchProfilePage(user);\n }\n }", "public static void view() {\n\t\tUser user = UserService.getUserByUsername(session.get(\"username\"));\n\t\tUserProfile userprofile = null;\n\n\t\t// check if user object is null\n\t\tif (user != null)\n\t\t\tuserprofile = UserProfileService.getUserProfileByUserId(user.id);\n\n\t\trender(user, userprofile);\n\t}", "@RequestMapping(\"/admin/profile\")\n\tpublic ModelAndView adminprofile() {\n\t\tModelAndView mav = new ModelAndView();\n\t\tYourtaskuser yourtaskuser = authentication.getActiveUser();\n\t\tmav.addObject(\"yourtaskuser\", yourtaskuser);\n\t\tmav.setViewName(\"profile/adminprofile.jsp\");\n\t\treturn mav;\n\t}", "@RequestMapping(method = RequestMethod.GET)\n public String loadProfilePage() {\n return \"denied\";\n }", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response)\n throws IOException, ServletException {\n String requestUrl = request.getRequestURI();\n String name = requestUrl.substring(\"/profile/\".length());\n User loggedInUser = userStore.getUser((String) request.getSession().getAttribute(\"user\"));\n User user = userStore.getUser(name);\n List<Activity> activities = null;\n List<Activity> activitiesPermitted;\n if (user != null) {\n activitiesPermitted =\n loggedInUser == null\n ? sort(activityStore.getAllPublicActivitiesWithUserId(user.getId()))\n : sort(\n activityStore.getAllPermittedActivitiesWithUserId(\n user.getId(), loggedInUser.getId()));\n activities = activityStore.getActivitiesPerPrivacy(user, activitiesPermitted);\n }\n request.setAttribute(\"activities\", activities);\n request.setAttribute(\"user\", user);\n request.setAttribute(\"loggedInUser\", loggedInUser);\n request.getRequestDispatcher(\"/WEB-INF/view/profile.jsp\").forward(request, response);\n }", "public void goToProfilePage() {\n\t\tUtil.element(userTab, driver).click();\n\t}", "@RequestMapping(\"/sc/profile\")\n\tpublic ModelAndView scprofile() {\n\t\tModelAndView mav = new ModelAndView();\n\t\tYourtaskuser yourtaskuser = authentication.getActiveUser();\n\t\tmav.addObject(\"yourtaskuser\", yourtaskuser);\n\t\tmav.addObject(\"scinfo\", scinfoDAO.findScinfoByPrimaryKey(yourtaskuser.getUserid()));\n\t\tmav.setViewName(\"profile/companyprofile.jsp\");\n\t\treturn mav;\n\t}", "@GetMapping\n public String showProfilePage(Model model){\n user = (User) SecurityContextHolder.getContext().getAuthentication().getPrincipal();\n\n model.addAttribute(\"profileForm\",ProfileForm.createProfileFormFromUser(user));\n model.addAttribute(\"image\",user.getProfileImage() != null);\n\n return PROFILE_PAGE_NAME;\n }", "@Override\n\tpublic void showProfile() {\n\t\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tHttpSession session = req.getSession();\n\t\tcurrentUser = (User) session.getAttribute(\"CurrentUser\");\n\t\t\n\t\t// User was obtained successfully.. Continue\n\t\tif(currentUser != null)\n\t\t{\n\t\t\tcurrentProject = (Project) session.getAttribute(\"CurrentProject\");\n\t\t\tif(currentProject != null)\n\t\t\t{\n\t\t\t\tString action = req.getParameter(\"action\");\n\t\t\t\tif(action != null)\n\t\t\t\t{\n\t\t\t\t\treq.setAttribute(\"action\", action);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tString pageName = getPageName(req);\n\t\t\t\tshowUI(req, resp, pageName);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treq.setAttribute(\"result\", \"You didn't select a project, Please select a project\");\n\t\t\t\tresp.sendRedirect(req.getContextPath() + \"/MyProjects\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t//if there isn't one the person isn't logged in send them back\n\t\telse\n\t\t{\n\t\t\treq.setAttribute(\"result\", \"You are not logged in, Please Log in\");\n\t\t\tresp.sendRedirect(req.getContextPath() + \"/Login\");\n\t\t}\n\t\t\n\t}", "@RequestMapping(\"/su/profile\")\n\tpublic ModelAndView suprofile() {\n\t\tModelAndView mav = new ModelAndView();\n\t\tYourtaskuser yourtaskuser = authentication.getActiveUser();\n\t\tmav.addObject(\"yourtaskuser\", yourtaskuser);\n\t\tmav.addObject(\"suinfo\", suinfoDAO.findSuinfoByPrimaryKey(yourtaskuser.getUserid()));\n\t\tmav.setViewName(\"profile/userprofile.jsp\");\n\t\treturn mav;\n\t}", "private void gotoUserProfile() {\n Intent launchUserProfile = new Intent(this, Profile.class);\n startActivity(launchUserProfile);\n }", "@When(\"^When user navigates to profile page$\")\n\tpublic void when_user_navigates_to_profile_page() throws Throwable {\n\t\twait.WaitForElement(reviewConfirmationPageObjects.getmuserlink(), 60);\n\t\treviewConfirmationPageObjects.clickonprofile();\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tif (req.getSession().getAttribute(\"client\") == null) {\n\t\t\tresp.sendRedirect(\"/FinalProject/login\");\n\t\t} else {\n\t\t\treq.getRequestDispatcher(\"view/client/client-profile.jsp\").forward(req, resp);\n\t\t}\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest request, HttpServletResponse response)\r\n\t\t\tthrows ServletException, IOException {\r\n\t\tString path = request.getRequestURI();\r\n\t\tString[] parts = path.split(\"/\");\r\n\t\tm.setMessage(\"The requested access is not permitted\");\r\n\t\tstatus = 401;\r\n\r\n\t\tSystem.out.println(\"User requested \" + Integer.parseInt(parts[3]));\r\n\t\tHttpSession session = request.getSession();\r\n\t\tPrintWriter pw = response.getWriter();\r\n\t\tUser currentUser = (User) session.getAttribute(\"currentUser\");\r\n\r\n\t\tif (currentUser != null) {\r\n\t\t\tUser userRequested = UserService.findUserByID(currentUser.getUserId(), Integer.parseInt(parts[3]),\r\n\t\t\t\t\tcurrentUser.getRole().getRoleId());\r\n\r\n\t\t\tif (userRequested != null) {\r\n\t\t\t\tpw.println(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(userRequested));\r\n\t\t\t\tstatus = 200;\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\tpw.println(mapper.writerWithDefaultPrettyPrinter().writeValueAsString(m));\r\n\t\t}\r\n\t\tresponse.setStatus(status);\r\n\r\n\t}", "@GetMapping(\"/profile\")\n\tpublic String showProfilePage(Model model, Principal principal) {\n\t\t\n\t\tString email = principal.getName();\n\t\tUser user = userService.findOne(email);\n\t\t\n\t\tmodel.addAttribute(\"tasks\", taskService.findUserTask(user));\n\t\t\n\t\t\n\t\treturn \"views/profile\";\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n String action = request.getParameter(\"action\");\n HttpSession session = request.getSession();\n // Test if there is a user signed in.\n User user = (User) session.getAttribute(\"user\");\n \n String url = \"/login.jsp\";\n \n // If no user go to login\n if (user == null){\n url = \"/login.jsp\";\n action = \"no_user\";\n } else if (action == null) {\n // If user but no action go home\n url = \"/home.jsp\";\n } else if(action.equals(\"get_users\")) { \n ArrayList<User> users;\n users = UserDB.selectUsers();\n session.setAttribute(\"users\", users);\n \n url = \"/home.jsp\";\n }\n \n getServletContext()\n .getRequestDispatcher(url)\n .forward(request, response);\n }", "@RequestMapping(value={\"/profile/profile.html\"}, method=RequestMethod.GET)\r\n\tpublic ModelAndView execute(HttpServletRequest request) throws Exception {\n\t\tCustomer customer = SessionUtil.getCustomer(request);\r\n\t\t\r\n\t\t\r\n\t\tModelAndView view = new ModelAndView(\"profile\");\r\n\t\tview.addObject(\"customer\", customer);\r\n\r\n\t\t\r\n\t\treturn view;\r\n\t\t\r\n\t}", "private void redirectToLandingPage(){\n\t\tappInjector.getAppService().getLoggedInUser(new SimpleAsyncCallback<UserDo>() {\n\t\t\t@Override\n\t\t\tpublic void onSuccess(UserDo loggedInUser) {\n\t\t\t\tAppClientFactory.setLoggedInUser(loggedInUser);\n\t\t\t\tUcCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tHomeCBundle.INSTANCE.css().ensureInjected();\n\t\t\t\tAppClientFactory.getInjector().getWrapPresenter().get().setLoginData(loggedInUser);\n\t\t\t\tif (AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.STUDENT)){\n\t\t\t\t\t\n\t\t\t\t}else if(AppClientFactory.getPlaceManager().getCurrentPlaceRequest().getNameToken().equalsIgnoreCase(PlaceTokens.SHELF)){\n\t\t\t\t\tAppClientFactory.fireEvent(new DisplayNoCollectionEvent());\n\t\t\t\t}else{\n\t\t\t\t\tMap<String, String> params = new HashMap<String,String>();\n\t\t\t\t\tparams.put(\"loginEvent\", \"true\");\n\t\t\t\t\tappInjector.getPlaceManager().revealPlace(PlaceTokens.HOME, params);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "private void authenticateUserForSharing() {\n mWeHaveJustAuthenticated = true;\n mSessionData.setCurrentlyAuthenticatingProvider(mSelectedProvider);\n \n /* If the selected provider requires input from the user, go to the user landing view. Or if\n the user started on the user landing page, went back to the list of providers, then selected\n the same provider as their last-used provider, go back to the user landing view. */\n if (mSelectedProvider.requiresInput()) {\n JRUserInterfaceMaestro.getInstance().showUserLanding();\n } else { /* Otherwise, go straight to the web view. */\n JRUserInterfaceMaestro.getInstance().showWebView();\n }\n }", "@RequestMapping(value = \"/userhomepage\", method = RequestMethod.GET)\n public ModelAndView displayUserHomepage() {\n return new ModelAndView(\"userhomepage\");\n }", "public void viewUser() {\n\t\tsuper.viewUser();\n\t}", "@Override\n public Object handle(Request request, Response response) {\n LOG.finer(\"GetAccountDetailsRoute is invoked.\");\n\n final Session session = request.session();\n // If the user is not already signed in, redirect them back to the home page\n if (session.attribute(GetHomeRoute.CURRENT_USER_KEY) == null) {\n response.redirect(URLS.HOME_URL.getURL());\n halt();\n return null;\n } else {\n Player currentUser = session.attribute(CURRENT_USER_KEY);\n // Create the view-model for rendering the page\n Map<String, Object> vm = new HashMap<>();\n // display a page title\n vm.put(TITLE_ATR, ACCOUNT_DETAILS_MSG);\n\n vm.put(GetHomeRoute.CURRENT_USER_ATR, currentUser);\n // render the View\n return templateEngine.render(new ModelAndView(vm, VIEW_NAME));\n }\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tList<Anzeige> angeboten = new ArrayList<Anzeige>();\n\t\tList<Anzeige> gekauft = new ArrayList<Anzeige>();\n\t\tBenutzer benutzer = null;\n\t\t\n\t\trequest.setAttribute(\"pagetitle\", \"User Profil\");\n\t\trequest.setAttribute(\"ersteller\", request.getParameter(\"ersteller\"));\n\t\trequest.setAttribute(\"benutzer\", request.getParameter(\"benutzer\"));\n\t\tSystem.out.println(\"User profile viewed by \" + String.valueOf(request.getParameter(\"benutzer\")));\n\t\t\n\t\tString ersteller = String.valueOf(request.getParameter(\"ersteller\"));\n\t\n\t\ttry{\n\t\t\tUserStore userstore = new UserStore();\n\t\t\tbenutzer = userstore.getBenutzer(ersteller);\t\t\t\n\t\t\tangeboten = userstore.angeboteAnzeigen(ersteller);\n\t\t\tgekauft = userstore.gekaufteAnzeigen(ersteller);\n\t\n\t\t\tuserstore.complete();\n\t\t\tuserstore.close();\n\t\t\t\n\t\t} catch(StoreException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\trequest.setAttribute(\"person\", benutzer);\n\t\trequest.setAttribute(\"angeboten\", angeboten);\n\t\trequest.setAttribute(\"anzahl\", angeboten.size());\n\t\trequest.setAttribute(\"gekauft\", gekauft);\n\t\t\n\t\ttry {\n \trequest.getRequestDispatcher(\"/user_profil.ftl\").forward(request, response);\n } catch(Exception e) {\n \te.printStackTrace();\n }\n\n\n }", "@Override\n public void onAuthenticated(AuthData authData) {\n Intent intent = new Intent(getApplicationContext(), ActiveUserActivity.class);\n startActivity(intent);\n }", "public void showProfile() {\r\n\t\tprofile.setVisible(true);\r\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n RequestDispatcher dispatcher = this.getServletContext()\n \t\t.getRequestDispatcher(\"/WEB-INF/views/ClientProfile.jsp\");\n \n dispatcher.forward(request, response);\n \n }", "@Override\n\tpublic PageEnum execute(HttpServletRequest request, HttpServletResponse response) {\n\t\treturn PageEnum.USER_PANEL;\n\t}", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession session = request.getSession();\n String action = request.getParameter(\"action\");\n request.setAttribute(\"role\", \"anonymous\");\n \n if (session.getAttribute(\"user\") == null && action == null) {\n getServletContext().getRequestDispatcher(\"/WEB-INF/index.jsp\").forward(request, response);\n return;\n }\n \n if(action != null && action.equals(\"login\")) {\n getServletContext().getRequestDispatcher(\"/WEB-INF/login.jsp\").forward(request, response);\n return;\n }\n \n if (action != null && action.equals(\"logout\")) {\n session.invalidate();\n request.setAttribute(\"role\", \"anonymous\");\n getServletContext().getRequestDispatcher(\"/WEB-INF/index.jsp\").forward(request, response);\n return;\n }\n }", "public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}", "public void profilePage(View view){\n Intent intent = new Intent(getApplicationContext(), ProfilePage.class);\r\n intent.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\r\n intent.putExtra(\"profileToLoad\", profile);\r\n startActivity(intent);\r\n }", "private void loadUserInformation() {\n FirebaseUser user = mAuth.getCurrentUser();\n\n if (user != null) {\n if (user.getPhotoUrl() != null) {\n Glide.with(this).load(user.getPhotoUrl().toString()).into(profilePic);\n }\n if (user.getDisplayName() != null) {\n name.setText(user.getDisplayName());\n }\n\n }\n\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response)\n\t\t\tthrows ServletException, IOException {\n\t\tAdmin admin = (Admin) request.getSession().getAttribute(\"username\");\n\t\tif (admin != null) {\n\t\t\t// if (administer.getAccessLevel().equals(AccessLevel.ADMIN)) {\n\t\t\tresponse.sendRedirect(\"welcome.jsp\");\n\t\t\t// } else {\n\t\t\t// response.sendRedirect(doc_JSP);\n\t\t\t// }\n\t\t} else {\n\t\t\tRequestDispatcher rd = request.getRequestDispatcher(\"signup.jsp\");\n\t\t\trd.forward(request, response);\n\t\t}\n\n//\t\tRequestDispatcher rd = request.getRequestDispatcher(\"signup.jsp\");\n//\t\trd.forward(request, response);\n\t}", "private void checkFirebaseAuth(NavigationView view){\n FirebaseUser user = FirebaseAuth.getInstance().getCurrentUser();\n if (user != null) {\n // Name, email address, and profile photo Url\n String user_name = user.getDisplayName();\n String email = user.getEmail();\n photoUrl = user.getPhotoUrl();\n user_id = user.getUid();\n\n // Check if user's email is verified\n boolean emailVerified = user.isEmailVerified();\n\n // The user's ID, unique to the Firebase project. Do NOT use this value to\n // authenticate with your backend server, if you have one. Use\n // FirebaseUser.getToken() instead.\n View header = view.getHeaderView(0);\n TextView UserName = header.findViewById(R.id.user_name);\n TextView UserEmail = header.findViewById(R.id.user_email);\n ImageView ProfilePic = header.findViewById(R.id.profile_pic);\n UserName.setText(user_name);\n UserEmail.setText(email);\n if (photoUrl != null) {\n Picasso.with(this).load(photoUrl).into(ProfilePic);\n }\n }\n if (user == null){\n View header = view.getHeaderView(0);\n TextView UserName = header.findViewById(R.id.user_name);\n TextView UserEmail = header.findViewById(R.id.user_email);\n ImageView ProfilePic = header.findViewById(R.id.profile_pic);\n UserName.setText(getText(R.string.def_user));\n UserEmail.setText(getText(R.string.def_email));\n ProfilePic.setImageResource(R.drawable.def_icon);\n }\n\n }", "@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure social plugin\n\t\tString uid = session.get(PLAYUSER_ID);\n\t\tif (uid == null) {\n\t\t\tsignin(null);\n\t\t}\n\n\t\t// get the user from the store. TODO Can also get it from the cache...\n\t\tUser user = null;\n\t\tif (Cache.get(uid) == null) {\n\t\t\ttry {\n\t\t\t\tuser = UserClient.getUserFromID(uid);\n\t\t\t\tCache.set(uid, user);\n\t\t\t} catch (ApplicationException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\t}\n\t\t} else {\n\t\t\tuser = (User) Cache.get(uid);\n\t\t}\n\n\t\tif (user == null) {\n\t\t\tflash.error(\"Problem while getting user from store...\");\n\t\t\tAuthentifier.logout();\n\t\t}\n\n\t\tif (user.avatarURL == null) {\n\t\t\tuser.avatarURL = Gravatar.get(user.email, 100);\n\t\t}\n\n\t\t// push the user object in the request arguments for later display...\n\t\trenderArgs.put(PLAYUSER, user);\n\t}", "@RequestMapping(value = {\"/about\"}, method = RequestMethod.GET)\n public String aboutPage(ModelMap model) {\n model.addAttribute(LOGGED_USER, userService.getPrincipal());\n return ABOUT;\n }", "public abstract void onFirstUserVisible();", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n HttpSession session = request.getSession(false);\n if (session == null) {\n getServletContext().getRequestDispatcher(\"/WEB-INF/Login.jsp\").forward(request, response);\n }\n if (session.getAttribute(\"user\") == null) {\n getServletContext().getRequestDispatcher(\"/WEB-INF/Login.jsp\").forward(request, response);\n }\n getServletContext().getRequestDispatcher(\"/WEB-INF/Home.jsp\").forward(request, response);\n\n }", "@RequestMapping(value = \"/dashboard\",method = RequestMethod.GET) \n\tpublic ModelAndView dashboard(Principal principal, HttpServletRequest request) {\n\t\tif(request.getSession().getAttribute(\"userId\") == null)\n\t\t{\n\t\t\tUsers loggedInUser = userService.getUserByEmail(principal.getName());\n\t\t\trequest.getSession().setAttribute(\"userId\", loggedInUser.getId());\n\t\t}\n\t\tString loggedInUserName=principal.getName(); \n\t\treturn new ModelAndView(\"dashboard\", \"userName\", loggedInUserName); \n\t}", "public String getUserProfileAction()throws Exception{\n\t\tMap<String, Object> response=null;\n\t\tString responseStr=\"\";\n\t\tString userName=getSession().get(\"username\").toString();\n\t\tresponse = getService().getUserMgmtService().getUserProfile(userName);\n\t\tresponseStr=response.get(\"username\").toString()+\"|\"+response.get(\"firstname\").toString()+\"|\"+response.get(\"lastname\").toString()+\"|\"+response.get(\"emailid\")+\"|\"+response.get(\"role\");\n\t\tgetAuthBean().setResponse(responseStr);\n\t\tgetSession().putAll(response);\n\t\tinputStream = new StringBufferInputStream(responseStr);\n\t\tinputStream.close();\n\t\treturn SUCCESS;\n\t}", "@Override\n public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {\n\tUser user = (User) request.getSession().getAttribute(\"loggedInUser\");\n\tif (user == null) {\n\t response.sendRedirect(\"/home.html\");\n\t return false;\n\t}\n\n\treturn true;\n\n }", "private void checkIfLoggedIn() {\n LocalStorage localStorage = new LocalStorage(getApplicationContext());\n\n if(localStorage.checkIfAuthorityPresent()){\n Intent intent = new Intent(getApplicationContext(),AuthorityPrimaryActivity.class);\n startActivity(intent);\n } else if(localStorage.checkIfUserPresent()){\n Intent intent = new Intent(getApplicationContext(), UserPrimaryActivity.class);\n startActivity(intent);\n }\n }", "@Override\n protected void onFirstUserVisible() {\n }", "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}", "protected void processRequest(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n \n String url = WELCOME_PAGE;\n \n try { \n HttpSession session = request.getSession(false);\n if (session != null) {\n UserDTO currUser = (UserDTO) session.getAttribute(\"CURRENT_USER\");\n if (currUser != null && currUser.getRole().equals(\"Admin\")) {\n String userID = request.getParameter(\"txtUserID\");\n UsersDAO dao = new UsersDAO();\n UserDTO profileUser = dao.getCurrUserByID(userID); \n if (profileUser != null) {\n log(\"SEE_USER: \" + profileUser.getFullName() + \" - \" + profileUser.getUserID());\n \n UserProfileDAO profileDAO = new UserProfileDAO(); \n UserProfileDTO currProfile = profileDAO.getUserProfileByEmail(profileUser.getEmail());\n \n log(\"SEE_PROFILE: \" + currProfile.getGender() + \" - \" + currProfile.getPhone() + \" - \" + currProfile.getAddress());\n \n session.setAttribute(\"SEE_USER\", profileUser);\n session.setAttribute(\"SEE_PROFILE\", currProfile);\n \n url = RESULT_PAGE;\n }\n }\n }\n } catch (NumberFormatException | NamingException | SQLException ex) {\n url = ERROR_PAGE;\n log(ex.toString());\n } finally {\n response.sendRedirect(url);\n }\n }", "@Override\n public void switchToProfileByBottomNavigation() {\n mMainView.switchProfileUiInitiative();\n }", "@Override\r\n\tpublic void onAuthenticationSuccess(HttpServletRequest req, HttpServletResponse res,\r\n\t\t\tAuthentication auth) throws IOException, ServletException {\n\t\tlogger.info(\"Login Success !\");\r\n\t\tlogger.info(\"Login ID [ {} ].\",auth.getName());\r\n\t\t\r\n\t\tfor(GrantedAuthority a : auth.getAuthorities()) {\r\n\t\t\tlogger.info(\"authority = [ {} ].\",a.getAuthority());\r\n\t\t}\r\n\t\t\r\n\t\tlogger.info(auth.getDetails().toString());\r\n\t\tlogger.info(auth.getPrincipal().toString());\r\n\t\t\r\n\t\tUserDetails u = (UserDetails)auth.getPrincipal();\r\n\t\t\r\n\t\tlogger.info(String.valueOf(u.isAccountNonExpired()));\r\n\t\t\r\n\t\tlogger.info(\"sending URL..\");\r\n\t\t\r\n\t\tclearAuthenticationAttributes(req);\r\n\t\t\r\n\t\tint intRedirectStrategy = decideRedirectStrategy(req, res);\r\n\t\t\r\n\t\tswitch(intRedirectStrategy) {\r\n\t\t\r\n\t\tcase 1:\r\n\t\t\tuseTargetUrl(req, res);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 2:\r\n\t\t\tuseSessionUrl(req, res);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tcase 3:\r\n\t\t\tuseRefererUrl(req, res);\r\n\t\t\tbreak;\r\n\t\t\t\r\n\t\tdefault:\r\n\t\t\tuseDefaultUrl(req, res);\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp)\n\t\t\tthrows IOException, ServletException {\n\t\tCredential credential = getCredential();\n\n\t\t// Build the Plus object using the credentials\n\t\tPlus plus = new Plus.Builder(transport, jsonFactory, credential)\n\t\t\t\t.setApplicationName(GoogleOAuth2.APPLICATION_NAME).build();\n\t\t// Make the API call\n\t\tPerson profile = plus.people().get(\"me\").execute();\n\t\t// Send the results as the response\n\t\tPrintWriter respWriter = resp.getWriter();\n\t\tresp.setStatus(200);\n\t\tresp.setContentType(\"text/html\");\n\t\trespWriter.println(\"<img src='\" + profile.getImage().getUrl() + \"'>\");\n\t\trespWriter.println(\"<a href='\" + profile.getUrl() + \"'>\" + profile.getDisplayName() + \"</a>\");\n\n\t\tUserService userService = UserServiceFactory.getUserService();\n\t\trespWriter.println(\"<div class=\\\"header\\\"><b>\" + req.getUserPrincipal().getName() + \"</b> | \"\n\t\t\t\t+ \"<a href=\\\"\" + userService.createLogoutURL(req.getRequestURL().toString())\n\t\t\t\t+ \"\\\">Log out</a> | \"\n\t\t\t\t+ \"<a href=\\\"http://code.google.com/p/google-api-java-client/source/browse\"\n\t\t\t\t+ \"/calendar-appengine-sample?repo=samples\\\">See source code for \"\n\t\t\t\t+ \"this sample</a></div>\");\n\t}", "public void redirectUser(HttpServletResponse response) throws IOException {\n\n String url = \"/user/user.jsp\";\n\n log.debug(\"Accessing: \" + url);\n\n response.sendRedirect(url);\n\n log.debug(url + \" has successfully been loaded\");\n }", "private void setCredentialView() {\n //get user information\n String name = currentUser.getDisplayName();\n String email = currentUser.getEmail();\n Uri photoUrl = currentUser.getPhotoUrl();\n\n //set text in header in navigation view\n userNameHandler.setText(name);\n emailHandler.setText(email);\n\n //Picasso turns photoUrl to bitmap\n //then changes the pic in header in navigation view\n Picasso.get().load(photoUrl).into(imgHandler);\n }", "public void loadProfile(DnCxt cxt, DnRequestHandler handler) throws DnException {\n if (cxt.userProfile != null) {\n UserAuthHook.loadProfile.callHook(cxt, this, handler);\n }\n }", "@RequestMapping(value = \"/Access_Denied\", method = RequestMethod.GET)\n public String accessDeniedPage(ModelMap model) {\n model.addAttribute(\"loggedinuser\", appService.getPrincipal());\n return \"accessDenied\";\n }", "@RequestMapping(value = {\"/\", \"/homepage\"}, method = RequestMethod.GET)\n public String homePage(ModelMap model) {\n model.addAttribute(LOGGED_USER, userService.getPrincipal());\n return HOMEPAGE;\n }", "private void showProfile(User user){\n\n Intent i = new Intent(this, ProfileActivity.class);\n i.putExtra(\"user\", user);\n startActivity(i);\n }", "@Override\n public void onAuthenticationSuccess(HttpServletRequest arg0, HttpServletResponse arg1, Authentication authentication)\n throws IOException, ServletException {\n\n Collection <? extends GrantedAuthority> authorities = authentication.getAuthorities();\n authorities.forEach(authority -> {\n if(authority.getAuthority().equals(\"ROLE_STUDENT\")) {\n try {\n redirectStrategy.sendRedirect(arg0, arg1, \"/user\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else if(authority.getAuthority().equals(\"ROLE_ADMIN\")) {\n try {\n redirectStrategy.sendRedirect(arg0, arg1, \"/admin\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n } else {\n throw new IllegalStateException();\n }\n });\n\n }", "void setUpAuthorized(int userAuth, int acctAuth) {\n\t\tthis.isUpAuth = userAuth == 1 || acctAuth == 1;\n\t}", "private void checkIfUserIsAuthenticated() {\n splashViewModel.checkIfUserIsAuthenticated();\n splashViewModel.getIsUserAuthenticated().observe(this, user -> {\n if (!user.isAuthenticated()) {\n startAuthActivity();\n finish();\n } else {\n getUserFromDatabase(user.getUid());\n }\n });\n }", "@Then(\"^User should see home page with profile link$\")\n\tpublic void user_should_see_home_page_with_profile_link() throws Throwable {\n\t\twait.WaitForElement(profilepage.getywalletlink(), 60);\n\t\tprofilepage.verifyloginsuccess();\n\t\tThread.sleep(100);\n\t}", "public void goToUserProfile (View view){\n }", "@RequestMapping(value = \"/{username}\", method = RequestMethod.GET)\n public String getUserProfileByUsername(@PathVariable(\"username\") String username, Model model) {\n User user = userService.getByUsername(username);\n if (user == null) {\n return \"redirect:/\";\n } else {\n model.addAttribute(\"user\", user);\n return \"profile\";\n }\n }", "@Override\n\t public void onUserInfoFetched(GraphUser user) {\n\t \tupdateUI(user);\n\t \tif(user!=null)\n\t \t{\n\n\t \t}\n\t \telse{\n\t \t\t\n\t \t\tLog.d(\"username1\",\"you are not logged in\");\n\t \t}\n\t \n\t }", "@Override\n protected UserDetails getDetails(User user, boolean viewOwnProfile, PasswordPolicy passwordPolicy, Locale requestLocale, boolean preview) {\n return userService.getUserDetails(user);\n }", "public void doFilter(ServletRequest arg0, ServletResponse arg1,\n\t\t\tFilterChain arg2) throws IOException, ServletException {\n\t\tHttpServletRequest request=(HttpServletRequest)arg0;\n\t\tHttpServletResponse response=(HttpServletResponse)arg1;\n\t\tString url=request.getRequestURI();\n\t\tHttpSession session=request.getSession();\n\t\tString userAccount=(String)session.getAttribute(\"userAccount\");\n\t\tString adminAccount=(String)session.getAttribute(\"adminAccount\");\n\t\tif((userAccount==null&&adminAccount==null)&&(url.indexOf(\"login\")<0)){\n\t\t\tresponse.sendRedirect(request.getContextPath()+\"/jsp/login.jsp\");\n\t\t\treturn;\n\t\t}else{\n\t\t\tif((userAccount!=null&&adminAccount==null)&&(url.indexOf(\"main.\")>0)){\n\t\t\t\tresponse.sendRedirect(request.getContextPath()+\"/jsp/login.jsp\");\n\t\t\t\treturn;\n\t\t\t}else if((userAccount==null&&adminAccount!=null)&&(url.indexOf(\"main_normal.\")>0)){\n\t\t\t\tresponse.sendRedirect(request.getContextPath()+\"/jsp/login.jsp\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\targ2.doFilter(arg0, arg1);\n\t}", "private void profileButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_profileButtonActionPerformed\n // TODO add your handling code here:\n this.setVisible(false);\n this.parentNavigationController.getUserProfileController();\n }", "@Override\r\n public void initialize(URL url, ResourceBundle rb) {\r\n // display logged user\r\n \r\n }", "public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {\r\n \tif (((HttpServletRequest) request).getSession().getAttribute(UserController.AUTH_KEY) == null) {\r\n \t\t//System.out.println(\"User is not authenticated! Redirecting to login page.\");\r\n\t ((HttpServletResponse) response).sendRedirect(\"/index.xhtml\");\r\n\t } \r\n \t\r\n \telse\r\n\t chain.doFilter(request, response);\r\n\r\n }", "@Override\n String execute(HttpServletRequest request, HttpServletResponse response) throws LegohusException {\n String email = request.getParameter(\"email\");\n String password = request.getParameter(\"password\");\n User user = LogicFacade.login(email, password);\n HttpSession session = request.getSession();\n session.setAttribute(\"user\", user);\n \n return \"WEB-INF/\" + user.getRole() + \"page\";\n }", "@Override\n public void onAuthenticationSuccess(HttpServletRequest httpServletRequest,\n HttpServletResponse httpServletResponse,\n Authentication authentication) throws IOException, ServletException {\n httpServletResponse.setStatus(HttpServletResponse.SC_OK);\n\n for (GrantedAuthority auth : authentication.getAuthorities()) {\n if (\"ADMIN\".equals(auth.getAuthority())) {\n httpServletResponse.sendRedirect(\"/dashboard\");\n }\n }\n }", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n if (Authentication.isAdminInDbByCookies(req)) {\n // Authentication.log(req.getCookies()[0].getValue() + \" - redirect to /admin/registration/registration.html\");\n req.getRequestDispatcher(\"/admin/registration/registration.html\")\n .forward(req, resp);\n\n } else {\n // Authentication.log(req.getCookies()[0].getValue() + \" - redirect to / . Error Authorization.\");\n resp.sendRedirect(\"/\");\n }\n\n }", "private void composeProfile() {\n if(NetworkUtils.isConnectedToNetwork((ConnectivityManager) getSystemService(Context.CONNECTIVITY_SERVICE)) == false) {\n Toast.makeText(this.getApplicationContext(), \"Please check your network connection!\", Toast.LENGTH_LONG).show();\n return;\n }\n Intent i = new Intent(this, ProfileActivity.class);\n i.putExtra(\"screen_name\", (String) null);\n startActivity(i);\n }", "@RequestMapping(value=\"/ExternalUsers/EditProfile\", method = RequestMethod.GET)\n\t\tpublic String editProfile(ModelMap model) {\n\t\t\t// redirect to the editProfile.jsp\n\t\t\treturn \"/ExternalUsers/EditProfile\";\n\t\t\t\n\t\t}", "public void load() {\n setRemoteUser(\"\");\n setAuthCode(AuthSource.DENIED); \n \n if(pageContext==null) {\n return;\n }\n \n session=(HttpSession)getPageContext().getSession();\n setRemoteUser(Utilities.nvl((String)session.getAttribute(\"remoteUser\"), \"\"));\n setAuthCode(Utilities.nvl((String)session.getAttribute(\"authCode\"), AuthSource.DENIED));\n }", "@Override\n public void onAuthenticationSuccess(HttpServletRequest httpServletRequest,\n HttpServletResponse httpServletResponse,\n Authentication authentication)\n throws IOException, ServletException {\n HttpSession httpSession = httpServletRequest.getSession();\n httpSession.setMaxInactiveInterval(50000);\n\n\n\n\n System.out.println(\"Jab Ban: \" + httpServletRequest.getSession().getAttribute(\"EHAN_REDIRECT_URI\"));\n\n\n String redirectURI = (String) httpServletRequest.getSession().getAttribute(\"EHAN_REDIRECT_URI\");\n\n if (redirectURI == null)\n redirectURI = \"/\";\n\n\n for (GrantedAuthority grantedAuthority:\n authentication.getAuthorities()) {\n\n System.out.println(grantedAuthority.getAuthority());\n\n System.out.println(\"==============getDetails================\");\n System.out.println(authentication.getDetails());\n System.out.println(\"==============getPrincipal================\");\n System.out.println(authentication.getPrincipal());\n System.out.println(\"==============getCredentials================\");\n System.out.println(authentication.getCredentials());\n System.out.println(\"===============getAuthorities===============\");\n System.out.println(authentication.getAuthorities());\n System.out.println(\"===============getName===============\");\n System.out.println(authentication.getName());\n\n\n if (grantedAuthority.getAuthority().equals(\"ROLE_ADMIN\")) {\n redirectURI = \"/admin\";\n break;\n }\n else if (grantedAuthority.getAuthority().equals(\"ROLE_DBA\")) {\n redirectURI = \"/dba\";\n break;\n }\n else if (grantedAuthority.getAuthority().equals(\"ROLE_USER\")) {\n redirectURI = \"/user\";\n break;\n }\n \n }\n\n httpServletResponse.sendRedirect(redirectURI);\n\n }", "public void clickOnProfile() {\n\t\telement(\"link_profile\").click();\n\t\tlogMessage(\"User clicks on Profile on left navigation bar\");\n\t}", "@Override\r\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tif(req.getSession().getAttribute(\"Users\")!=null){\r\n\t\t\treq.getSession().removeAttribute(\"Users\");\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tresp.sendRedirect(PathUtil.getBasePath(req,\"index.jsp\"));\r\n\t\r\n\t}", "@Override\n public void onAuthStateChanged(@NonNull FirebaseAuth firebaseAuth) {\n user = firebaseAuth.getCurrentUser(); // con esto traemos el estado\n\n if(user!=null){\n Log.d(\"TAG\",\"Esta logueado: con el id: \" + user.getUid());\n\n Toast.makeText(MainActivity.this, \"esta logueado\", Toast.LENGTH_SHORT).show();\n\n finish();\n\n //and open profile activity\n startActivity(new Intent(getApplicationContext(), Ingreso.class));\n\n\n }else{\n Log.d(\"TAG\",\"NO Esta logueado\");\n\n }\n\n }", "private void editProfile() {\n Log.d(TAG, \"Starting volley request to API\");\n try {\n String authority = String.format(Constants.AUTHORITY,\n Constants.TENANT,\n Constants.EDIT_PROFILE_POLICY);\n\n User currentUser = Helpers.getUserByPolicy(\n sampleApp.getUsers(),\n Constants.EDIT_PROFILE_POLICY);\n\n sampleApp.acquireToken(\n this,\n Constants.SCOPES.split(\"\\\\s+\"),\n currentUser,\n UiBehavior.SELECT_ACCOUNT,\n null,\n null,\n authority,\n getEditPolicyCallback());\n } catch(MsalClientException e) {\n /* No User */\n Log.d(TAG, \"MSAL Exception Generated while getting users: \" + e.toString());\n }\n\n }", "@RequestMapping(value = \"/id{id}\", method = RequestMethod.GET)\n public String getUserProfileById(@PathVariable(\"id\") BigInteger id, Model model) {\n User user = userService.getById(id);\n if (user == null) {\n return \"redirect:/\";\n } else {\n model.addAttribute(\"user\", user);\n return \"profile\";\n }\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n frame.setVisible(false);//when user clicks my profile button the visibility of the frame for the home screen will be set to false \n new MyProfile();//displays the user's profile page\n }", "@RequestMapping(value=\"/listall/users\", method = RequestMethod.GET) \n\t\n\tpublic String findByUsername(ModelMap model) {\n\t\t \n\t return \"displayUserProfile\" ;\t\n\t}", "@Override\n\tprotected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n\t\tServletOutputStream out=resp.getOutputStream();\n\t\tHttpSession session=req.getSession();\n\t\tUserInfo info=(UserInfo) session.getAttribute(Constants.SESSION_USER_KEY);\n\t\tif(info==null) {\n\t\t\tresp.sendRedirect(this.getServletContext().getContextPath()+\"/login\");\n\t\t\t\n\t\t}\n\t\tout.println(\"<html>\");\n out.println(\"<head><title>Session example</title></head>\");\n \n out.println(\"<body>\");\n \n out.println(\"<h3>User Info:</h3>\");\n \n out.println(\"<p>User Name:\" + info.getUserName() + \"</p>\");\n out.println(\"<p>Country:\" + info.getCountry() + \"</p>\");\n out.println(\"<p>Post:\" + info.getPost() + \"</p>\");\n \n out.println(\"</body>\");\n out.println(\"<html>\");\n\t}", "private void verifyActiveUser(){\r\n\t\tif(request.getUserPrincipal() == null)\r\n\t\t{\t\t\r\n\t\t\trequest.getSession().removeAttribute(\"isActive\");\r\n\t\t\trequest.getSession().invalidate();\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tresponse.sendRedirect(\"login.jsp\");\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "@Override\n public boolean onProfileChanged(View view, IProfile profile, boolean current) {\n Intent intent = null;\n if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_ADD_ACCOUNT) {\n intent = new Intent(MainActivity.this, AddAccountActivity.class);\n //TODO: Save profile\n //TODO: Create profile drawer item from saved profile and show it in UI\n /*\n IProfile profileNew = new ProfileDrawerItem()\n .withNameShown(true)\n .withName(\"New Profile\")\n .withEmail(\"[email protected]\")\n .withIcon(getResources().getDrawable(R.drawable.profile_new));\n\n if (accountHeader.getProfiles() != null) {\n //we know that there are 2 setting elements. set the new profile above them\n accountHeader.addProfile(profileNew, accountHeader.getProfiles().size() - 2);\n } else {\n accountHeader.addProfiles(profileNew);\n }\n */\n } else if (profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_HEADER_MANAGE_ACCOUNT) {\n intent = new Intent(MainActivity.this, ManageAccountActivity.class);\n //TODO: update the UI\n }else if(profile instanceof IDrawerItem && ((IDrawerItem) profile).getIdentifier() == IDENTIFIER_USER) {\n Toast.makeText(sApplicationContext, \"The User\", Toast.LENGTH_SHORT).show();\n SharedPreferences sp = sApplicationContext.getSharedPreferences(PREF_NAME, MODE_PRIVATE);\n String currentUserUUIDString = sp.getString(PREF_CURRENT_USER_UUID, null);\n if(((UserProfile)profile).getId().toString().equalsIgnoreCase(currentUserUUIDString)){\n Toast.makeText(sApplicationContext, \"SAME User\", Toast.LENGTH_SHORT).show();\n //TODO:\n }else{\n Toast.makeText(sApplicationContext, \"Different User\", Toast.LENGTH_SHORT).show();\n //TODO:\n SharedPreferences.Editor spe = sp.edit();\n spe.putString(PREF_CURRENT_USER_UUID, ((UserProfile)profile).getId().toString());\n spe.commit();\n\n UpdateContentUI();\n }\n }\n\n if(intent != null){\n MainActivity.this.startActivity(intent);\n }\n\n //false if you have not consumed the event And it should close the drawer\n return false;\n }", "@Override\n public void onAuthenticated(AuthData authData) {\n\n Context context = getApplicationContext();\n CharSequence text = \"Logged in\";\n int duration = Toast.LENGTH_SHORT;\n\n Toast toast = Toast.makeText(context, text, duration);\n toast.show();\n //save uid\n //remove uid\n SharedPreferences sharedPref = getApplicationContext().getSharedPreferences(\n getString(R.string.preference_file_key), Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n editor.putString(\"uid\", authData.getUid().toString());\n editor.commit();\n\n Intent goToNextActivity = new Intent(getApplicationContext(), MainActivity.class);\n startActivity(goToNextActivity);\n }", "public static Result index() {\n // Check that the email matches a confirmed user before we redirect\n String email = ctx().session().get(\"email\");\n if (email != null) {\n User user = User.findByEmail(email);\n if (user != null && user.validated) {\n return GO_DASHBOARD;\n } else {\n Logger.debug(\"Clearing invalid session credentials\");\n session().clear();\n }\n }\n\n return GO_HOME;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString url = mAuth.getAuthUrl();\n\t\t\t\tshowPopUp(url);\n\t\t\t}", "@RequestMapping(value = \"/restricted\", method = RequestMethod.GET)\r\n public String homeRestricted(HttpServletRequest request, ModelMap model) throws ServletException, IOException {\r\n return(renderPage(request, model, \"home\", null, null, null, false)); \r\n }", "public static com.sawdust.gae.logic.User getUser(final HttpServletRequest request, final HttpServletResponse response, final AccessToken accessData)\r\n {\n if (null != response)\r\n {\r\n setP3P(response); // Just always set this...\r\n }\r\n\r\n com.sawdust.gae.logic.User user = null;\r\n\r\n if (null == user)\r\n {\r\n try\r\n {\r\n LOG.finer(String.format(\"Attempting google authorization...\"));\r\n user = getUser_Google(request, accessData, user);\r\n }\r\n catch (final Throwable e)\r\n {\r\n \tLOG.warning(Util.getFullString(e));\r\n }\r\n }\r\n\r\n if (null == user)\r\n {\r\n try\r\n {\r\n LOG.finer(String.format(\"Attempting facebook authorization...\"));\r\n user = getUser_Facebook(request, user);\r\n }\r\n catch (final Throwable e)\r\n {\r\n \tLOG.warning(Util.getFullString(e));\r\n }\r\n }\r\n\r\n if (null == user)\r\n {\r\n try\r\n {\r\n LOG.finer(String.format(\"Attempting signed-cookie authorization...\"));\r\n user = getUser_Cookied(request, user);\r\n }\r\n catch (final Throwable e)\r\n {\r\n \tLOG.warning(Util.getFullString(e));\r\n }\r\n }\r\n\r\n if (null == user)\r\n {\r\n LOG.finer(String.format(\"Using guest authorization...\"));\r\n final String email = getGuestId(request, response);\r\n if (null == email) \r\n {\r\n return null;\r\n }\r\n user = new com.sawdust.gae.logic.User(UserTypes.Guest, email, null);\r\n }\r\n LOG.fine(String.format(\"User is %s\", user.getId()));\r\n if (user.getUserID().endsWith(\"facebook.null\"))\r\n {\r\n user.setSite(\"http://apps.facebook.com/sawdust-games/\");\r\n }\r\n else if (user.getUserID().endsWith(\"facebook.beta\"))\r\n {\r\n user.setSite(\"http://apps.facebook.com/sawdust-games-beta/\");\r\n }\r\n return user;\r\n }", "@Given(\"^User should see profile page$\")\n\tpublic void user_should_see_profile_page() throws Throwable {\n\t\twait.WaitForElement(profileTestInsurancePage.gettestinsuranceheading(), 60);\n\t\tprofileTestInsurancePage.verifyprofileTestInsurancePage();\n\t}", "private void openProfilePage(int position) {\n\n UserBasic userProfileToOpen = this.users.get(position);\n FragmentTransaction fragmentTransaction = context.getActivity().\n getSupportFragmentManager().beginTransaction();\n fragmentTransaction.replace(R.id.frame,\n ProfilePage.newInstance(userProfileToOpen.getLogin(),\n this.mainUsername, this.authHead));\n fragmentTransaction.commit();\n\n }", "public void displayDetails() {\r\n\t\tSystem.out.println(\"*******************Profile Details*********************\");\r\n\t\tSystem.out.println(\"\\tUsername :\\t\" + uName);\r\n\t\tSystem.out.println(\"\\tFull Name :\\t\" + fullName);\r\n\t\tSystem.out.println(\"\\tPhone :\\t\" + phone);\r\n\t\tSystem.out.println(\"\\tE-Mail :\\t\" + email);\r\n\t}", "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public String home(Model model, Authentication authentication){\n if(authentication != null) {\n User currUser = customUserDetailsService.findByUsername(authentication.getName());\n model.addAttribute(\"user\", currUser);\n }\n // The string \"Index\" that is returned here is the name of the view\n // (the Index.jsp file) that is in the path /main/webapp/WEB-INF/jsp/\n // If you change \"Index\" to something else, be sure you have a .jsp\n // file that has the same name\n return \"Index\";\n }", "void setBrowseAuthorized(int userAuth, int acctAuth) {\n\t\tthis.isBrowseAuth = userAuth == 1 || acctAuth == 1;\n\t}", "@Override\n public ModelAndView getUserInfo(String userName, @PathVariable String email,\n HttpServletRequest req, HttpServletResponse res, ModelMap model) {\n return null;\n }", "private void checkAuthorization(RoutingContext context, List<CaptureMap> resolvedCaptureCollections,\n Handler<AsyncResult<Boolean>> handler) {\n AuthHandler auth = context.get(AuthenticationController.AUTH_HANDLER_PROP);\n if (auth != null && auth instanceof RedirectAuthHandlerBt) {\n MemberUtil.getCurrentUser(context, getNetRelay(), result -> {\n if (result.failed()) {\n handler.handle(Future.failedFuture(result.cause()));\n } else {\n IAuthenticatable member = result.result();\n if (member == null) {\n // this is an error\n handler.handle(Future.failedFuture(\n new IllegalArgumentException(\"This should not happen, we need an instance of IAuthenticatable here\")));\n } else {\n checkAuthorization(resolvedCaptureCollections, auth, member, handler);\n }\n }\n });\n } else {\n handler.handle(Future.succeededFuture(true));\n }\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tString path = \"editprofile.html\";\n\t\tServletContext servletContext = getServletContext();\n\t\tfinal WebContext ctx = new WebContext(request, response, servletContext, request.getLocale());\n\t\ttemplateEngine.process(path, ctx, response.getWriter());\n\t}", "@Test\r\n public void DisplayCurrentUserAfterLogIn() {\n String username = ParseUser.getCurrentUser().getUsername();\r\n onView(withText(\"Welcome, \" + username)).check(ViewAssertions.matches(isDisplayed()));\r\n }", "@PreAuthorize(\"hasRole('ADMIN') AND hasRole('USER')\") \n\t@RequestMapping(\"/home\")\n @ResponseBody\n public String home(){\n\t return \"home\";\n }", "private void getUserProfile() {\n mFirstname.setText(\"FirstName: \"+userPreferences.getAgentFirstName());\n mLastname.setText(\"LastName: \"+userPreferences.getAgentLastName());\n\n\n Log.i(\"username\",userPreferences.getAgentUsername());\n if(userPreferences.getAgentUsername()==null){\n mUsernameTxt.setText(\"\");\n }else if(userPreferences.getAgentUsername().equals(\"null\")){\n mUsernameTxt.setText(\"\");\n }else{\n mUsernameTxt.setText(userPreferences.getAgentUsername());\n }\n\n mEmail.setText(\"Email: \"+userPreferences.getAgentEmail());\n mPhoneNum.setText(\"Phone No: \"+userPreferences.getAgentPhoneNUM());\n\n\n /* mPinProfileTxt.setText(\"Pin: \"+userPreferences.getPin());\n mBank.setText(\"Bank Name: \"+userPreferences.getBank());\n mAccountName.setText(\"Acct Name: \"+userPreferences.getAccountName());\n mAccountNumber.setText(\"Acct No: \"+userPreferences.getAccountNumber());*/\n\n mProgressBarProfile.setVisibility(View.VISIBLE);\n if(personal_img_url==null) {\n Glide.with(this).load(userPreferences.getAgentProfileImg()).apply(new RequestOptions().fitCenter().circleCrop()).into(mProfilePhoto);\n }else{\n Glide.with(this).load(personal_img_url).apply(new RequestOptions().fitCenter().circleCrop()).into(mProfilePhoto);\n\n }\n mProgressBarProfile.setVisibility(View.GONE);\n }" ]
[ "0.712764", "0.68719107", "0.68031806", "0.62909055", "0.62334365", "0.6223077", "0.614743", "0.6065636", "0.6020295", "0.5982296", "0.5917201", "0.58919567", "0.58806634", "0.58780307", "0.58580613", "0.5845319", "0.57250905", "0.57096153", "0.57096034", "0.56684655", "0.5632485", "0.5588507", "0.55793726", "0.55609214", "0.5559451", "0.55557555", "0.5552306", "0.55353683", "0.55277544", "0.5514736", "0.5513612", "0.5495456", "0.5483907", "0.5467701", "0.54656756", "0.5458575", "0.5456249", "0.5448837", "0.54452467", "0.5405968", "0.54009545", "0.53796077", "0.53793395", "0.53747195", "0.5353366", "0.5334478", "0.53336114", "0.5325515", "0.53063124", "0.5306188", "0.53017765", "0.52891815", "0.52819175", "0.5280071", "0.5271711", "0.527039", "0.5269268", "0.5265211", "0.5264546", "0.52566665", "0.52537465", "0.525262", "0.52494687", "0.52464545", "0.52336806", "0.52258873", "0.52245206", "0.5223163", "0.5220425", "0.5218757", "0.5217914", "0.52147865", "0.5214653", "0.5213883", "0.5206478", "0.5205162", "0.5196096", "0.5192673", "0.5189373", "0.51803726", "0.51782525", "0.51782215", "0.5170985", "0.5169143", "0.5168517", "0.51602346", "0.51521385", "0.5151967", "0.5141676", "0.51405424", "0.51389235", "0.51366895", "0.5134849", "0.5133813", "0.5127266", "0.51208186", "0.5113607", "0.51121664", "0.5110413", "0.510427" ]
0.63787264
3
Prepares current user's level information.
private void prepareLevel(User user, HttpServletRequest req, Language lang) { LocalizedLevel level = userService.getLevelByUserId(user.getUserId(), lang); req.getSession().setAttribute("currentLocalizedLevel", level); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserLevel(Integer userLevel) {\n this.userLevel = userLevel;\n }", "public void setUserLevel(int userLevel) {\n\t\t\tthis.userLevel = userLevel;\n\t\t}", "public void setLevelInfo(){\n setTitle(\"\");\n Objects.requireNonNull(getSupportActionBar()).setElevation(0);\n// SET LEVEL TITLE\n String levelTitleString = (getString(R.string.level) + \" \" + String.valueOf(level));\n levelTitle.setText(levelTitleString);\n// todo: underline guessesleft\n guessesLeft = guessesLeft + 10;\n String guessesLeftString = (\"You have \" + String.valueOf(guessesLeft) + \" guesses.\");\n guessesLeftView.setText(guessesLeftString);\n }", "private void prepareAchievements(User user,\n HttpServletRequest req,\n Language lang) {\n List<Achievement> achievements = achService.findAllAchForUser(\n user.getUserId(), lang);\n req.getSession().setAttribute(\"currentUserAch\", achievements);\n }", "public void initLevel(){\n baseLevel = levelCreator.createStaticGrid(this.levelFile);\n dynamicLevel= levelCreator.createDynamicGrid(levelFile);\n colDetector = new CollisionHandler();\n goalTiles = baseLevel.getTilePositions('x');\n }", "public void createLevel() {\n room = 1;\n currentLevelFinish = false;\n createRoom();\n }", "private void loadUserPrivileges() {\n\t\t// Get the UserPrivilege details after a successful log in.\n\t\tuserPrivilege = new UserPrivilegeImpl(this.session);\n\n\t\t// End problems here\n\t\tif ( userPrivilege == null ) throw new IllegalArgumentException(\"User Privileges given.\"); \t\t\n\t}", "public void generalLevelUp() {\n\t\tif(currentGenLevelXP >= nextGenLevelXP)\n\t\t\tcurrentGenLevelXP = currentGenLevelXP - nextGenLevelXP;\n\t\telse\n\t\t\tcurrentGenLevelXP = 0;\n\t\t\n\t\tif(generalLevel < 40) { // Level cap is 40\n\t\t\tgeneralLevel++;\n\t\t\tLogger.print(getName() + \" levels up to \" + generalLevel + \".\");\n\t\t\tstatUp();\n\t\t}\n\t\tsetGenExpReq();\n\t}", "protected void levelUp(){\r\n\t\tthis.level = this.level+1;\r\n\t\tint prevMaxHp = this.getHitPoints();\r\n\t\tint prevAtk = this.getAttackRating();\r\n\t\tint prevDef = this.getDefenseRating();\r\n\r\n\t\tif(level>=2 && level<=9){\r\n\t\t\tthis.maxHitPoints += 7;\r\n\t\t\tthis.attackRating += 3;\r\n\t\t\tthis.defenseRating += 3;\r\n\t\t}\r\n\r\n\t\tif(level>=10){\r\n\t\t\tthis.maxHitPoints+=2;\r\n\t\t\tthis.attackRating+=1;\r\n\t\t\tthis.defenseRating+=1;\r\n\t\t}\r\n\r\n\t\tthis.experienceValue+=15;\r\n\t\tthis.hitPoints = maxHitPoints;\r\n\r\n\t\tSystem.out.format(\"\\n|----LEVEL-UP----|\");\r\n\t\tSystem.out.print(\"\\n\" + this.getName() + \" is now level \" + this.getLevel());\r\n\t\tSystem.out.format(\"%nMax Hit Points: %2d ---> %2d\", prevMaxHp, this.getMaxHitPoints());\r\n\t\tSystem.out.format(\"%nAttack rating: %2d ---> %2d\", prevAtk, this.getAttackRating());\r\n\t\tSystem.out.format(\"%nDefense Rating: %d ---> %2d\", prevDef, this.getDefenseRating());\r\n\t\tSystem.out.format(\"%nNext level: %3dXP%n%n\", (calcLevel(1,0) - this.getExperiencePoints()));\r\n\r\n\r\n\t}", "private void checkLevelUp() {\n // Count the number of levels gained, if any\n int levels = 0;\n int required;\n while (exp >= (required = classData.getRequiredExp(level + levels)) && level + levels < classData.getMaxLevel()) {\n exp -= required;\n levels++;\n }\n\n // Give the levels if applicable\n if (levels > 0) {\n giveLevels(levels);\n\n // Level up message\n if (SkillAPI.getSettings().isShowLevelMessages()) {\n TitleManager.show(\n player.getPlayer(),\n TitleType.LEVEL_UP,\n NotificationNodes.LVL,\n RPGFilter.LEVEL.setReplacement(level + \"\"),\n RPGFilter.CLASS.setReplacement(classData.getName()),\n RPGFilter.POINTS.setReplacement(points + \"\"),\n Filter.AMOUNT.setReplacement(levels + \"\")\n );\n }\n }\n }", "public Integer getUserLevel() {\n return userLevel;\n }", "@Override\n public void enterInitLevel(statsDSLParser.InitLevelContext ctx) {\n final StatsData statsData = new StatsData();\n\n ctx.statDef().forEach((statDefContext) -> {\n\n final String number = statDefContext.NUMBER().getText();\n\n if (statDefContext.stat().AGI() != null) {\n statsData.setAgi(number);\n }\n else if (statDefContext.stat().ATK() != null) {\n statsData.setAtk(number);\n }\n else if (statDefContext.stat().DEF() != null) {\n statsData.setDef(number);\n }\n else if (statDefContext.stat().MAG() != null) {\n statsData.setMag(number);\n }\n else if (statDefContext.stat().HP() != null) {\n statsData.setHp(number);\n }\n });\n\n statsData.setForLevel(ctx.NUMBER().getText());\n statsData.setNeededXp(ctx.xpDef().NUMBER().getText());\n if(!statsData.isValid()) {\n throw new RuntimeException(\"Error in stats data at \" + ctx.getText());\n }\n\n currentClassData.addStatsData(statsData);\n }", "public void setLevel(Level level) { this.currentLevel = level; }", "public int getUserLevel() {\n\t\t\treturn userLevel;\n\t\t}", "public void setLevel(Level level) throws SQLException\r\n\t{\r\n\t\tif (level == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET level =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, level.name());\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLevel(Level \"+ level.name() + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "protected void levelUp() {\n\t\tlevel++;\n\t\t// set up floors for next level\n\t\tint[] nextFloors = floors[level];\n\t\tint[] nextFurnishing = furnishings[level];\n\t\tfor(int i = 0; i < nextFloors.length; i++) {\n\t\t\tFloor newFloor = game.getFloorByKey(nextFloors[i]);\n\t\t\ttiles[i].setFloor(newFloor);\n\t\t\tif(nextFurnishing[i] != 0) {\n\t\t\t\tFurnishingDirectory newFurn = game.getFurnishingByKey(nextFurnishing[i]);\n\t\t\t\tnew Furnishing(newFurn, tiles[i]);\n\t\t\t}\n\t\t}\n\t}", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public void setupLevelAndPoints(){\r\n \t\tint[] levelAndPoints = new int[]{0, 0, 0};\r\n \t\tlevelAndPoints = DashboardActivity.getLevelAndPoints();\r\n \t\tLog.i(\"levelAndPoints content\", levelAndPoints.toString());\r\n\t\t\r\n \t\t//Setting up level\r\n \t\tlevelImage = (ImageView) findViewById(R.id.levelImageView);\r\n \t\tif(levelAndPoints[0] == 1){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_one));\r\n \t\t}else if(levelAndPoints[0] == 2){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_two));\r\n \t\t}else if(levelAndPoints[0] == 3){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_three));\r\n \t\t}else if(levelAndPoints[0] == 4){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_four));\r\n \t\t}else if(levelAndPoints[0] == 5){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_five));\r\n \t\t}else if(levelAndPoints[0] == 6){\r\n \t\t\tlevelImage.setImageDrawable(getResources().getDrawable(R.drawable.profile_level_six));\r\n \t\t}\r\n \t\t\r\n \t\t//Setting up progressbar and points above bar\r\n \t\tlevelProgressBar = (ProgressBar) findViewById(R.id.levelProgressBar);\r\n \t\tlevelProgressBar.setVisibility(ProgressBar.VISIBLE);\r\n \t\tlevelProgressBar.setMax(levelAndPoints[2]);\r\n \t\tlevelProgressBar.setProgress(levelAndPoints[1]);\r\n \r\n \t\tshowPointsAboveProgressBar = (TextView) findViewById(R.id.pointsInProgressBar);\r\n \t\tshowPointsAboveProgressBar.setText(levelAndPoints[1] + \"/\" + levelAndPoints[2]);\r\n \t}", "private void initLevel () \n {\n score = 0;\n scoreVisual = score;\n level = new Level(Constants.LEVEL_01);\n cameraHelper.setTarget(level.bird);\n initPhysics();\n }", "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n //TODO: CONVERSION 2\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.CONVERSION);\n beginnerSkills.add(SkillFactory.SHARPEN);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(7, new ArrayList<Integer>(Arrays.asList(SkillFactory.PSYBEAM)));\n levelUpSkills.put(12, new ArrayList<Integer>(Arrays.asList(SkillFactory.AGILITY)));\n levelUpSkills.put(18, new ArrayList<Integer>(Arrays.asList(SkillFactory.RECOVER)));\n //TODO: MAGNET RISE 23\n levelUpSkills.put(29, new ArrayList<Integer>(Arrays.asList(SkillFactory.SIGNAL_BEAM)));\n //TODO: RECYCLE 34\n levelUpSkills.put(40, new ArrayList<Integer>(Arrays.asList(SkillFactory.DISCHARGE)));\n levelUpSkills.put(45, new ArrayList<Integer>(Arrays.asList(SkillFactory.LOCK_ON)));\n levelUpSkills.put(50, new ArrayList<Integer>(Arrays.asList(SkillFactory.TRI_ATTACK)));\n //TODO: MAGIC COAT 56\n levelUpSkills.put(62, new ArrayList<Integer>(Arrays.asList(SkillFactory.ZAP_CANNON)));\n }", "public void setCurrentLevel(String initCurrentLevel)\n {\n currentLevel = initCurrentLevel;\n }", "public void setLevel (String newLevel)\n {\n this.level = newLevel; \n }", "public void setLevel(int newlevel)\n {\n level = newlevel; \n }", "private void initUser() {\n\t}", "public void initializeClientSkills()\n\t{\n\t\tServerMessage skillLevels = new ServerMessage(ClientPacket.SKILL_LVL_UP);\n\t\tskillLevels.addInt(getTrainingLevel());\n\t\tskillLevels.addInt(getBreedingLevel());\n\t\tskillLevels.addInt(getFishingLevel());\n\t\tskillLevels.addInt(getCoordinatingLevel());\n\t\tgetSession().Send(skillLevels);\n\t}", "private static void standardize(LevelPack pack) {\n\t\t// TODO: kill this once we have the LevelPacks stored at a standardized\n\t\t// state.\n\n\t\t// If level header info was not stored originally, check to make sure\n\t\t// there are not nulls after the deserialization.\n\t\tif (pack.levels == null)\n\t\t\tpack.levels = new WorldList();\n\t\tif (pack.levelTitles == null)\n\t\t\tpack.levelTitles = new ArrayList<String>();\n\t\tif (pack.levelDescriptions == null)\n\t\t\tpack.levelDescriptions = new ArrayList<String>();\n\t\tif (pack.levelEmblems == null)\n\t\t\tpack.levelEmblems = new ImageList();\n\n\t\t// If the level header stuff wasn't originally stored, it may be\n\t\t// necessary to populate header info with dummy data. There will always\n\t\t// be at least one level title/description/emblem, even if the levels\n\t\t// themselves don't exist.\n\t\tpack.levelCount = Math.max(1, Math.max(pack.levels.size(),\n\t\t\t\tMath.max(pack.levelTitles.size(), Math.max(pack.levelDescriptions.size(), pack.levelEmblems.size()))));\n\t\twhile (pack.levelTitles.size() < pack.levelCount)\n\t\t\tpack.levelTitles.add(\"Unnamed level.\");\n\t\twhile (pack.levelDescriptions.size() < pack.levelCount)\n\t\t\tpack.levelDescriptions.add(\"No description.\");\n\t\twhile (pack.levelEmblems.size() < pack.levelCount)\n\t\t\tpack.levelEmblems.add((BufferedImage) UIBuilder.getImage(\"images/ice_cave.jpg\"));\n\n\t\t// The lock is something new added, but it defaults to false anyway.\n\n\t}", "public void levelUp(int newLvl) {\n\t\tsuper.levelUp(newLvl);\n\n\t\t// Add artifacts bonus stats\n\t\tif (armor != null) {\n\t\t\tdefense += armor.getDefense();\n\t\t}\n\t\tif (helm != null) {\n\t\t\tmaxHp += helm.getHp();\n\t\t\thp = maxHp;\n\t\t}\n\t\tif (weapon != null) {\n\t\t\tattack += weapon.getAttack();\n\t\t}\n\n\t\t// Update after levelUp\n\t\tneededXp = level * 1000 + (int)Math.pow(level - 1, 2) * 450;\n\t\txp = tmpXp;\n\t}", "@Override\n public void levelUp(){\n //System.out.println(\"Level: \" + getLevel());\n if (getLevel() > 5) return;\n\n /* System.out.println(\"\\n-------\");\n System.out.println(\"Level: \" + getLevel());\n System.out.println(\"Se va a aumentar: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n*/\n double percentage = growth(getLevel()) + growthRate;\n\n setHealth((int) (getHealth() + getHealth() * percentage));\n strokePerTime = (int) (strokePerTime + strokePerTime * percentage);\n\n // Aumenta el rango si el nivel es 3 o 5\n // Luego quedan muy rotos xD\n if (getLevel() % 2 != 0) range++;\n setLevel(getLevel() + 1);\n\n /* System.out.println(\"resultado: \" + getName() + \"Stacks actuales: Health\" + getHealth() + \" range: \" + range + \" stroke\" + strokePerTime+ \" speed: \" + getSeep());\n System.out.println(\"-------\\n\");*/\n }", "private void setLevel(int level) {\n setStat(level, currentLevel);\n }", "public static void initPlayer() {\n\t\tuser = game.getUsers().get(game.getUserTurn());\n\t\tlblBudgetText.setText(user.getBudget()+\"\");\n\t\tdisplayUserTeam();\n\t}", "void createNewLevel(int level);", "public void setLevel(String newLevel) {\n level = newLevel;\n }", "public void level1() {\n\t\tlevel = new Level(1); //Create Level object, passing 1 to constructor for level 1\n\t\tplayer = new Player(100, 100); //Set player y position); //Create player object, place in middle of screen, position will later be determined by level png\n\t}", "public void init(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "@Override\n protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n helper.init(req, resp);\n Language locale = Language.getByLocale(\n (String) helper.getSessionAttribute(SESSION_LANGUAGE));\n\n User user = (User) helper.getSessionAttribute(SESSION_CURRENT_USER);\n\n if (user != null) {\n Optional<User> opt = userService.findById(user.getUserId(), locale);\n if (opt.isPresent()) {\n user = opt.get();\n\n prepareLevel(user, req, locale);\n prepareAchievements(user, req, locale);\n prepareProgression(user, req, locale);\n\n helper.setSessionAttribute(SESSION_CURRENT_USER, user);\n }\n helper.dispatch(Destination.GOTO_PROFILE);\n } else {\n helper.redirect(Destination.GOTO_AUTHORIZATION);\n }\n }", "private void populateUserInfo() {\n User user = Session.getInstance().getUser();\n labelDisplayFirstname.setText(user.getFirstname());\n labelDisplayLastname.setText(user.getLastname());\n lblEmail.setText(user.getEmail());\n lblUsername.setText(user.getUsername());\n }", "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.LEER);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(5, new ArrayList<Integer>(Arrays.asList(SkillFactory.EMBER)));\n levelUpSkills.put(8, new ArrayList<Integer>(Arrays.asList(SkillFactory.WORK_UP)));\n levelUpSkills.put(11, new ArrayList<Integer>(Arrays.asList(SkillFactory.HEADBUTT)));\n levelUpSkills.put(15, new ArrayList<Integer>(Arrays.asList(SkillFactory.NOBLE_ROAR)));\n levelUpSkills.put(20, new ArrayList<Integer>(Arrays.asList(SkillFactory.TAKE_DOWN)));\n levelUpSkills.put(23, new ArrayList<Integer>(Arrays.asList(SkillFactory.FIRE_FANG)));\n levelUpSkills.put(28, new ArrayList<Integer>(Arrays.asList(SkillFactory.ENDEAVOR)));\n levelUpSkills.put(33, new ArrayList<Integer>(Arrays.asList(SkillFactory.ECHOED_VOICE)));\n levelUpSkills.put(36, new ArrayList<Integer>(Arrays.asList(SkillFactory.FLAMETHROWER)));\n levelUpSkills.put(39, new ArrayList<Integer>(Arrays.asList(SkillFactory.CRUNCH)));\n levelUpSkills.put(43, new ArrayList<Integer>(Arrays.asList(SkillFactory.HYPER_VOICE)));\n levelUpSkills.put(46, new ArrayList<Integer>(Arrays.asList(SkillFactory.INCINERATE)));\n levelUpSkills.put(50, new ArrayList<Integer>(Arrays.asList(SkillFactory.OVERHEAT)));\n }", "public void setLevel(int level) {\n if(level > Constant.MAX_LEVEL){\n this.level = Constant.MAX_LEVEL;\n }else {\n this.level = level;\n }\n this.expToLevelUp = this.expValues[this.level];\n }", "private void setLevel(){\n\t\tif(getD(y) <= T)\n\t\t\tlevel = \"lower\";\n\t\telse\n\t\t\tlevel = \"higher\";\n\t}", "public void addLevel()\r\n {\r\n tables.addFirst( new HashMap<String,T>() );\r\n counts.addFirst( 0 );\r\n }", "public void newlevel() {\n\t\tblack = new Background(COURT_WIDTH, COURT_HEIGHT); // reset background\n\t\tcannon = new Cannon(COURT_WIDTH, COURT_HEIGHT); // reset cannon\n\t\tdeadcannon = null;\n\t\tbullet = null;\n\t\tshot1 = null;\n\t\tshot2 = null;\n\t\t// reset top row\n\t\tfor (int i = 0; i < alien1.length; i++) {\n\t\t\talien1[i] = new Alien(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien1[i].pos_x = alien1[i].pos_x + 30*i;\n\t\t\talien1[i].v_x = level + alien1[i].v_x;\n\t\t}\n\t\t// reset second row\n\t\tfor (int i = 0; i < alien2.length; i++) {\n\t\t\talien2[i] = new Alien2(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien2[i].pos_x = alien2[i].pos_x + 30*i;\n\t\t\talien2[i].v_x = level + alien2[i].v_x;\n\t\t}\n\t\t// reset third row\n\t\tfor (int i = 0; i < alien3.length; i++) {\n\t\t\talien3[i] = new Alien3(COURT_WIDTH, COURT_HEIGHT);\n\t\t\talien3[i].pos_x = alien3[i].pos_x + 30*i;\n\t\t\talien3[i].v_x = level + alien3[i].v_x;\n\t\t}\n\t}", "private void levelUp() {\n\t\t\n\t\tfor (ArrayList<Invader> row : enemyArray) {\n\t\t\tfor (Invader a : row) {\n\t\t\t\tif (a.getVisibility()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tresetInvaders();\n\t\taddRow();\n\t\t\n\t\tenemyShotList.add(new Shot(0, 0, SHOT_WIDTH, SHOT_HEIGHT, 15));\n\t\tlevel++;\n\t\t\n\t\tint powerupx = (int) (Math.random()*(WIDTH-PLAYER_WIDTH));\n\t\tdouble poweruprandom = Math.random();\n\t\t\n\t\tif (poweruprandom < 0.25) {\n\t\t\tarmorPiercing.reset(powerupx);\n\t\t}\n\t\t\n\t\tif (poweruprandom >= 0.25 && poweruprandom < 0.5) {\n\t\t\texplosive.reset(powerupx);\n\t\t}\n\t}", "@Override\n protected void initLevelUpSkills() {\n List<Integer> beginnerSkills = new ArrayList<Integer>();\n beginnerSkills.add(SkillFactory.MEGAHORN);\n beginnerSkills.add(SkillFactory.TACKLE);\n beginnerSkills.add(SkillFactory.TAIL_WHIP);\n beginnerSkills.add(SkillFactory.WATER_GUN);\n beginnerSkills.add(SkillFactory.WATER_SPORT);\n levelUpSkills.put(0, beginnerSkills);\n levelUpSkills.put(5, new ArrayList<Integer>(Arrays.asList(SkillFactory.TAIL_WHIP)));\n levelUpSkills.put(7, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_GUN)));\n levelUpSkills.put(11, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_SPORT)));\n levelUpSkills.put(13, new ArrayList<Integer>(Arrays.asList(SkillFactory.FOCUS_ENERGY)));\n levelUpSkills.put(18, new ArrayList<Integer>(Arrays.asList(SkillFactory.RAZOR_SHELL)));\n levelUpSkills.put(21, new ArrayList<Integer>(Arrays.asList(SkillFactory.FURY_CUTTER)));\n levelUpSkills.put(26, new ArrayList<Integer>(Arrays.asList(SkillFactory.WATER_PULSE)));\n levelUpSkills.put(29, new ArrayList<Integer>(Arrays.asList(SkillFactory.REVENGE)));\n levelUpSkills.put(34, new ArrayList<Integer>(Arrays.asList(SkillFactory.AQUA_JET)));\n //39 ENCORE\n levelUpSkills.put(46, new ArrayList<Integer>(Arrays.asList(SkillFactory.AQUA_TAIL)));\n //51 RETALIATE\n levelUpSkills.put(58, new ArrayList<Integer>(Arrays.asList(SkillFactory.SWORDS_DANCE)));\n levelUpSkills.put(63, new ArrayList<Integer>(Arrays.asList(SkillFactory.HYDRO_PUMP)));\n initEvolutionSkills();\n }", "private synchronized static void setLevelSync(final Logger.LEVEL desiredLevel) {\n if (null == desiredLevel) {\n return;\n }\n level = desiredLevel;\n if (null != context) {\n SharedPreferences prefs = context.getSharedPreferences (SHARED_PREF_KEY, Context.MODE_PRIVATE);\n prefs.edit ().putString (SHARED_PREF_KEY_level, level.toString ()).commit();\n // we still processed the setCapture call, but when SHARED_PREF_KEY_level_from_server is present, it is used for the level field value (it's an override)\n level = Logger.LEVEL.fromString(prefs.getString(SHARED_PREF_KEY_level_from_server, level.toString()));\n }\n }", "protected void setLevel(int level){\r\n this.level = level;\r\n }", "private void initNewLevel() {\n\t\tmaze = new Maze(\"maze.xml\");\n\t\tPoint position = Cell.positionOfCell(26, 13);\n\t\tposition.x += 7;\n\t\tif (highScore.getScore() == 0)\n\t\t\tpacman = new Pacman(maze, position, maze.cellAt(26, 13),\n\t\t\t\t\tDirection.RIGHT, 3);\n\t\telse\n\t\t\tpacman = new Pacman(maze, position, maze.cellAt(26, 13),\n\t\t\t\t\tDirection.RIGHT, pacman.getNumberOfLives());\n\t\tinitGhosts();\n\n\t\ttimer.stop();\n\t\tlevelStartTimer.restart();\n\t}", "public void populateUserInformation()\n {\n ViewInformationUser viewInformationUser = new ViewFXInformationUser();\n\n viewInformationUser.buildViewProfileInformation(clientToRegisteredClient((Client) user), nameLabel, surnameLabel, phoneLabel, emailLabel, addressVbox);\n }", "public void setLevel(String level);", "protected int[] levelUp() {\n level = Math.min(level + 1, MAX_LEVEL);\n if (level == MAX_LEVEL) {\n Game.getPlayer().getMedalCase().increase(MedalTheme.LEVEL_100_POKEMON);\n }\n\n // Update stats and return gain\n return this.setStats();\n }", "public void setLevel(String level){\n\t\tthis.level = level;\n\t}", "protected void setLevel(int level)\n {\n this.level = level;\n }", "public static void setLevel(int current)\r\n\t{\r\n\t\tGame.level = current;\r\n\t}", "public void setLevel(String value) {\n this.level = value;\n }", "@Override\n protected void initializeLevelSpecificChances()\n {\n shopRoomChance = 0.05F;\n restRoomChance = 0.12F;\n treasureRoomChance = 0.0F;\n eventRoomChance = 0.22F;\n eliteRoomChance = 0.08F;\n\n smallChestChance = 50;\n mediumChestChance = 33;\n largeChestChance = 17;\n\n commonRelicChance = 50;\n uncommonRelicChance = 33;\n rareRelicChance = 17;\n\n colorlessRareChance = 0.3F;\n if (AbstractDungeon.ascensionLevel >= 12) {\n cardUpgradedChance = 0.125F;\n } else {\n cardUpgradedChance = 0.25F;\n }\n }", "public void setLevel(int level) { \r\n\t\tthis.level = level; \r\n\t}", "@Override\n\tprotected void initData() {\n\t\trequestUserInfo();\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tif (userManager.getCurrentUser() != null) {\n\t\t\t// ÿ���Զ���½��ʱ�����Ҫ�����µ�ǰλ�úͺ��ѵ�����\n\t\t\tupdateUserInfos();\n\t\t\tmHandler.sendEmptyMessageDelayed(GO_HOME, 2000);\n\t\t} else {\n\t\t\tmHandler.sendEmptyMessageDelayed(GO_LOGIN, 2000);\n\t\t}\n\t}", "private void loadCurrentUserInformation() {\n if(currentUser!=null){\n currentUserUid=currentUser.getUid();\n databaseReference.child(\"Users Data\").child(\"Sign Up Info\").child(\"UID \"+currentUserUid).addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n\n currentUserName=(String) dataSnapshot.child(\"Name\").getValue();\n currentUserPassword=(String)dataSnapshot.child(\"Password\").getValue();\n currentUserCity=(String)dataSnapshot.child(\"City\").getValue();\n currentProfileImage=(String)dataSnapshot.child(\"Profile Image Url\").getValue();\n displayUserProfile();\n }\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n }\n }", "private void populateLevel() {\r\n\r\n\r\n\t\t// Setup Goal\r\n\t\tJsonValue goalVal = levelAssets.get(\"goal\");\r\n\t\tfloat gWidth = goalTile.getRegionWidth()/scale.x;\r\n\t\tfloat gHeight = goalTile.getRegionHeight()/scale.y;\r\n\t\tfloat gX = goalVal.get(\"pos\").getFloat(0) + gWidth / 2;\r\n\t\tfloat gY = goalVal.get(\"pos\").getFloat(1) + gHeight / 2;\r\n\t\tgoalDoor = new DoorModel(gX, gY, gWidth, gHeight);\r\n\t\tgoalDoor.setBodyType(BodyDef.BodyType.StaticBody);\r\n\t\tgoalDoor.setDensity(constants.get(\"goal\").getFloat(\"density\", 0));\r\n\t\tgoalDoor.setFriction(constants.get(\"goal\").getFloat(\"friction\", 0));\r\n\t\tgoalDoor.setRestitution(constants.get(\"goal\").getFloat(\"restitution\", 0));\r\n\t\tgoalDoor.setSensor(true);\r\n\t\tgoalDoor.setDrawScale(scale);\r\n\t\tgoalDoor.setTexture(goalTile);\r\n\t\tgoalDoor.setName(\"goal\");\r\n\t\taddObject(goalDoor);\r\n\t\taddObjectTo(goalDoor, LevelCreator.allTag);\r\n\r\n\t\t// Get default values\r\n\t\tJsonValue defaults = constants.get(\"defaults\");\r\n\t\tJsonValue objs = levelAssets.get(\"objects\");\r\n\r\n\t\t//group platform constants together for access in following for-loop\r\n\t\tTextureRegion[] xTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\tlightningLightTexture, lightningDarkTexture, lightningAllTexture,\r\n\t\t\trainLightTexture, rainDarkTexture, rainAllTexture,\r\n\t\t\t\tcrumbleLightTexture, crumbleDarkTexture, crumbleAllTexture};\r\n\r\n\t\tTextureRegion[] reducedXTexture = {lightTexture, darkTexture, allTexture,\r\n\t\t\t\tlightningLightTextureReduced, lightningDarkTextureReduced, lightningAllTextureReduced,\r\n\t\t\t\trainLightTextureReduced, rainDarkTextureReduced, rainAllTextureReduced,\r\n\t\t\t\tcrumbleLightTextureReduced, crumbleDarkTextureReduced, crumbleAllTextureReduced};\r\n\r\n\r\n\t\t// Setup platforms\r\n\t\tfor(int i=0; i < (objs != null ? objs.size : 0); i++)\r\n\t\t{\r\n\t\t\tJsonValue obj = objs.get(i);\r\n\r\n\t\t\t// Get platform attributes\r\n\t\t\tint platformType = obj.get(\"type\").asInt();\r\n\t\t\tint property = obj.get(\"property\") == null ? 0: obj.get(\"property\").asInt();\r\n\t\t\tJsonValue platformArgs = obj.get(\"positions\");\r\n\t\t\tJsonValue pathsArgs = obj.get(\"paths\");\r\n\r\n\t\t\tfor (int j = 0; j < platformArgs.size; j++) {\r\n\t\t\t\tfloat[] bounds = platformArgs.get(j).asFloatArray();\r\n\t\t\t\tfloat x = bounds[0], y = bounds[1], width = bounds[2], height = bounds[3];\r\n\t\t\t\tTextureRegion newXTexture;\r\n\t\t\t\tTextureRegion crumbleTexture = null;\r\n\t\t\t\tTexture originalTexture = null;\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// temporary - need to refactor asset directory\r\n\t\t\t\t\tJsonValue assetName = obj.get(\"assetName\");\r\n\t\t\t\t\tint assetIndex = assetName.asInt();\r\n\t\t\t\t\tnewXTexture = new TextureRegion(tutorial_signs[assetIndex]);\r\n\t\t\t\t} catch(Exception e) {\r\n\t\t\t\t\tint platIdx = platformType-1+(property - 1)*3;\r\n\t\t\t\t\tint crumbleIdx = platIdx + 3;\r\n\t\t\t\t\tnewXTexture = new TextureRegion(xTexture[platIdx]);\r\n\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t// For crumble animation\r\n\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\tcrumbleTexture = new TextureRegion(xTexture[crumbleIdx]);\r\n//\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// If the platform size is the same as the spritesheet size\r\n\t\t\t\t\tif (originalTexture.getWidth() > 32 && width%(originalTexture.getWidth()/32) == 0) {\r\n\t\t\t\t\t\tnewXTexture = new TextureRegion(reducedXTexture[platIdx]);\r\n\t\t\t\t\t\toriginalTexture = newXTexture.getTexture();\r\n\t\t\t\t\t\tif (platIdx > 5) {\r\n\t\t\t\t\t\t\tcrumbleTexture = new TextureRegion(reducedXTexture[crumbleIdx]);\r\n//\t\t\t\t\t\t\tcrumbleTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n//\t\t\t\t\tnewXTexture.setRegion(0, 0, width, height);\r\n\t\t\t\t}\r\n\t\t\t\tPlatformModel platformModel = new PlatformModel(bounds, platformType, property, newXTexture, scale,\r\n\t\t\t\t\t\tdefaults.getFloat( \"density\", 0.0f ), defaults.getFloat( \"friction\", 0.0f ) ,\r\n\t\t\t\t\t\tdefaults.getFloat( \"restitution\", 0.0f ), originalTexture, crumbleTexture);\r\n\t\t\t\tplatformModel.setTag(platformType);\r\n\t\t\t\tplatformModel.setProperty(property);\r\n\t\t\t\taddObject(platformModel);\r\n\t\t\t\taddObjectTo(platformModel, platformType);\r\n\t\t\t\t//TODO: Moving platforms\r\n\r\n\r\n\t\t\t\tif (pathsArgs != null) {\r\n\t\t\t\t\tfloat[] paths = pathsArgs.get(j).asFloatArray();\r\n\r\n\t\t\t\t\t//** Moving platform if > 1 path or different path from starting position\r\n\t\t\t\t\tif (hasValidPath(x, y, paths)) {\r\n\t\t\t\t\t\tplatformModel.setBodyType(BodyDef.BodyType.KinematicBody);\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\r\n\t\t\t\t\t\tPooledList<Vector2> pathList = new PooledList<>();\r\n\t\t\t\t\t\tfor (int k = 0; k < paths.length; k+=2) {\r\n\t\t\t\t\t\t\tpathList.add(new Vector2(paths[k], paths[k+1]));\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tfloat velocity = 3;\r\n\r\n\t\t\t\t\t\tplatformModel.setGravityScale(0);\r\n\t\t\t\t\t\tplatformModel.setPaths(pathList);\r\n\t\t\t\t\t\tplatformModel.setVelocity(velocity);\r\n\r\n\t\t\t\t\t\tmovingObjects.add(platformModel);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// This world is heavier\r\n\t\tworld.setGravity( new Vector2(0,defaults.getFloat(\"gravity\",0)) );\r\n\r\n\t\t// Set level background index\r\n\t\tint backgroundTextureIndex = levelAssets.get(\"background\").asInt();\r\n\t\tbackgroundLightTexture = backgrounds[backgroundTextureIndex - 1];\r\n\t\tbackgroundDarkTexture = backgrounds[backgroundTextureIndex];\r\n\t\tbackgroundTexture = backgroundLightTexture;\r\n\r\n\t\t// Initialize background animations\r\n\t\tactualBackgroundTexture = backgroundTexture.getTexture();\r\n\t\tbackgroundEntirePixelWidth = actualBackgroundTexture.getWidth();\r\n\t\tbackgroundNumAnimFrames = (int)(backgroundEntirePixelWidth/backgroundFramePixelWidth);\r\n\t\tbackgroundAnimator = new FilmStrip(backgroundTexture,1, backgroundNumAnimFrames, backgroundNumAnimFrames);\r\n\t\tbackgroundAnimator.setFrame(0);\r\n\t\tbackgroundAnimeframe = 0;\r\n\t\tbackgroundOrigin = new Vector2(backgroundAnimator.getRegionWidth()/2.0f, backgroundAnimator.getRegionHeight()/2.0f);\r\n\r\n\t\t// Set level bounds\r\n\t\twidthUpperBound = levelAssets.get(\"dimensions\").getInt(0);\r\n\t\theightUpperBound = levelAssets.get(\"dimensions\").getInt(1);\r\n\r\n\t\t// Setup Somni\r\n\r\n\t\tJsonValue somniVal = levelAssets.get(\"somni\");\r\n\t\tfloat sWidth = somniTexture.getRegionWidth()/scale.x;\r\n\t\tfloat sHeight = somniTexture.getRegionHeight()/scale.y;\r\n\t\tfloat sX = somniVal.get(\"pos\").getFloat(0) + sWidth / 2;\r\n\t\tfloat sY = somniVal.get(\"pos\").getFloat(1) + sHeight / 2;\r\n\t\tsomni = new CharacterModel(constants.get(\"somni\"), sX, sY, sWidth, sHeight, platformController.somnif, CharacterModel.LIGHT);\r\n\t\tsomni.setDrawScale(scale);\r\n\t\tsomni.setTexture(somniIdleTexture);\r\n\t\tsomni.setFilterData(platformController.somnif);\r\n\t\tsomni.setActive(true);\r\n\t\taddObject(somni);\r\n\t\taddObjectTo(somni, LevelCreator.allTag);\r\n\r\n\r\n\t\t// Setup Phobia\r\n\r\n\t\tJsonValue phobiaVal = levelAssets.get(\"phobia\");\r\n\t\tfloat pWidth = phobiaTexture.getRegionWidth()/scale.x;\r\n\t\tfloat pHeight = phobiaTexture.getRegionHeight()/scale.y;\r\n\t\tfloat pX = phobiaVal.get(\"pos\").getFloat(0) + pWidth / 2;\r\n\t\tfloat pY = phobiaVal.get(\"pos\").getFloat(1) + pHeight / 2;\r\n\t\tphobia = new CharacterModel(constants.get(\"phobia\"), pX, pY, pWidth, pHeight, platformController.phobiaf, CharacterModel.DARK);\r\n\t\tphobia.setDrawScale(scale);\r\n\t\tphobia.setTexture(phobiaIdleTexture);\r\n\t\tphobia.setFilterData(platformController.phobiaf);\r\n\t\taddObject(phobia);\r\n\t\taddObjectTo(phobia, LevelCreator.allTag);\r\n\t\tphobia.setActive(true);\r\n\r\n\t\t// Setup Combined\r\n\r\n\t\tfloat cWidth = combinedTexture.getRegionWidth()/scale.x;\r\n\t\tfloat cHeight = combinedTexture.getRegionHeight()/scale.y;\r\n\r\n\t\tcombined = new CharacterModel(constants.get(\"combined\"), 0, 0, cWidth, cHeight, platformController.combinedf, CharacterModel.DARK);\r\n\t\tcombined.setDrawScale(scale);\r\n\t\tcombined.setTexture(somniPhobiaTexture);\r\n\t\t//combined.setTag();\r\n\t\tcombined.setFilterData(platformController.combinedf);\r\n\t\taddObject(combined);\r\n\t\taddObjectTo(combined, LevelCreator.allTag);\r\n\t\tcombined.setActive(true);\r\n\r\n\t\t//Remove combined\r\n\t\tobjects.remove(combined);\r\n\t\tsharedObjects.remove(combined);\r\n\t\tcombined.setActive(false);\r\n\r\n\t\taction = 0;\r\n\r\n\t\tPreferences prefs = GDXRoot.getPreferences();\r\n\t\tvolume = prefs.contains(\"volume\") ? prefs.getFloat(\"volume\") : defaults.getFloat(\"volume\",\r\n\t\t\t\t1.0f);\r\n//\t\tSystem.out.println(volume);\r\n\r\n\t\tplatformController.applyFilters(objects);\r\n\t}", "public String getCurrentLevel() \n { \n return currentLevel; \n }", "public void setLevel(int level)\r\n {\r\n\tthis.level = level;\r\n }", "private USER_LEVEL getUserLevel(String[] parameters) {\n if (parameters == null) {\n return USER_LEVEL.DEFAULT;\n }\n for (String param : parameters) {\n if (param.startsWith(USER_LEVEL_TAG)) {\n int start = USER_LEVEL_TAG.length();\n String type = param.substring(start);\n return TwitchUserLevel.getUserLevel(type);\n }\n }\n return USER_LEVEL.DEFAULT;\n }", "public void initializeStatusFields(NbaUserVO user, NbaLob lob, RequirementInfo requirementInfo) throws NbaBaseException {\n initializeStatusFields(user, lob, null, requirementInfo); \n}", "public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\n }", "public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\n }", "public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\n }", "public void setLevel(String level) {\n this.level = level == null ? null : level.trim();\n }", "@Override\n public UserInfo loadUserInfo() {\n // load the user directly from the database. the instance returned from currentUser() might not\n // be with the latest changes\n return userGroupService.findUser(userGroupService.currentUser().getUsername());\n }", "private void initLevel(){\r\n\t\tBetterSprite doodleSprite = (BetterSprite)(getGroup(\"doodleSprite\").getSprites()[0]);\r\n\t\tinitControls(doodleSprite);\r\n\t\tinitEvents();\r\n\t}", "public void prepare()\n\t{\n\t\tsuper.prepare();\n\n\t\tojTreeNode_prepare();\n\t\tmenu_prepare();\n\t}", "@Override\r\n\tpublic void prepare() throws Exception {\n\t\tsName = (String) ActionContext.getContext().getSession().get(\"stuUser\");\r\n\t\t\r\n\t}", "public void initializeUserControls(View rootView) {\n\t\t\n\t\t// the user bar.\n\t\tmContainerUserBar = (RelativeLayout) rootView.findViewById(R.id.profile_user_bar);\n\t\tmImageUserThumbnail = (ImageView) mContainerUserBar.findViewById(R.id.profile_user_bar_user_thumbnail);\n\t\tmTextUserName = (TextView) mContainerUserBar.findViewById(R.id.profile_user_bar_text_user_name);\n\t\tmContainerUserCurrency = (RelativeLayout) mContainerUserBar.findViewById(R.id.profile_user_bar_currency);\n\t\tmTextUserCurrencyValue = (TextView) mContainerUserBar.findViewById(R.id.profile_user_bar_currency_text_value);\n\t\tmContainerUserDownloads = (RelativeLayout) mContainerUserBar.findViewById(R.id.profile_user_bar_download);\n\t\tmTextUserDownloadsValue = (TextView) mContainerUserBar.findViewById(R.id.profile_user_bar_download_text_value);\n\t\tmTextUserCurrentLevel = (TextView) rootView.findViewById(R.id.social_profile_user_bar_text_current_level);\n\t\t\n\t\tmMyCollectionText = (TextView) rootView.findViewById(R.id.profile_user_my_collection_text);\n\t\tmRedeemText = (TextView) rootView.findViewById(R.id.profile_user_redeem_text);\n\t\t\n\t\t// Level Bar.\n\t\tmContainerLevelBar = (RelativeLayout) rootView.findViewById(R.id.social_profile_user_bar_level_bar);\n\t\tmProgressLevelBar = (ProgressBar) mContainerLevelBar.findViewById(R.id.social_profile_user_bar_level);\n\t\tmTextLevelZero = (TextView) mContainerLevelBar.findViewById(R.id.social_profile_user_bar_level_bar_level1);\n\t\tmContainerLevels = (LinearLayout) mContainerLevelBar.findViewById(R.id.social_profile_user_bar_level_bar_level_container);\n\t\t\n\t\tmTextLevelZero.setVisibility(View.INVISIBLE);\n\t\t\n\t\t// Badges section.\n\t\tmContainerBadges = (LinearLayout) rootView.findViewById(R.id.social_profile_section_badges);\n\t\tmHeaderBadges = (LinearLayout) mContainerBadges.findViewById(R.id.social_profile_section_badges_header);\n\t\tmTextBadgesValue = (TextView) mContainerBadges.findViewById(R.id.social_profile_section_badges_header_value);\n\t\tmImageBadge1 = (ImageView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item1_image);\n\t\tmTextBadge1 = (TextView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item1_text);\n\t\tmImageBadge2 = (ImageView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item2_image);\n\t\tmTextBadge2 = (TextView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item2_text);\n\t\tmImageBadge3 = (ImageView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item3_image);\n\t\tmTextBadge3 = (TextView) mContainerBadges.findViewById(R.id.social_profile_section_badges_item3_text);\n\t\t\n\t\t// leaderboard section.\n\t\tmContainerLeaderboard = (RelativeLayout) rootView.findViewById(R.id.social_profile_section_leaderboard);\n\t\tmHeaderLeaderboard = (LinearLayout) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_header);\n\t\tmTextLeaderboardValue = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_header_value);\n\t\t\n\t\tmContainerLeaderboardUser1 = (RelativeLayout) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item1);\n\t\tmContainerLeaderboardUser2 = (RelativeLayout) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item2);\n\t\tmContainerLeaderboardUser3 = (RelativeLayout) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item3);\n\t\t\n\t\tmTextLeaderboardUser1Rank = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item1_rank);\n\t\tmTextLeaderboardUser1Name = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item1_user_name);\n\t\tmTextLeaderboardUser1TotalPoints = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item1_total_points);\n\t\tmTextLeaderboardUser2Rank = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item2_rank);\n\t\tmTextLeaderboardUser2Name = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item2_user_name);\n\t\tmTextLeaderboardUser2TotalPoints = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item2_total_points);\n\t\tmTextLeaderboardUser3Rank = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item3_rank);\n\t\tmTextLeaderboardUser3Name = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item3_user_name);\n\t\tmTextLeaderboardUser3TotalPoints = (TextView) mContainerLeaderboard.findViewById(R.id.social_profile_section_leaderboard_item3_total_points);\n\t\t\n\t\t// my playlists section.\n\t\tmContainerMyPlaylists = (LinearLayout) rootView.findViewById(R.id.social_profile_section_my_playlists);\n\t\tmHeaderMyPlaylists = (LinearLayout) rootView.findViewById(R.id.social_profile_section_my_playlists_header);\n\t\tmTextMyPlaylistsValue = (TextView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_header_value);\n\t\tmTextMyPlaylist1Name = (TextView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_item1);\n\t\tmTextMyPlaylist2Name = (TextView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_item2);\n\t\tmTextMyPlaylist3Name = (TextView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_item3);\n\t\tmImageMoreIndicator = (ImageView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_more_indicator);\n\t\tmTextMyPlaylistEmpty = (TextView) mContainerMyPlaylists.findViewById(R.id.social_profile_section_my_playlists_empty);\n\t\t\n\t\t// favorite albums.\n\t\tmContainerFavoriteAlbums = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_albums);\n\t\tmHeaderFavoriteAlbums = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_albums_header);\n\t\tmTextFavoriteFavoriteAlbumsValue = (TextView) mContainerFavoriteAlbums.findViewById(R.id.social_profile_section_fav_albums_header_value);\n\t\tmTextFavoriteFavoriteAlbum1 = (ImageView) mContainerFavoriteAlbums.findViewById(R.id.social_profile_section_fav_albumes_item1_image);\n\t\tmTextFavoriteFavoriteAlbum2 = (ImageView) mContainerFavoriteAlbums.findViewById(R.id.social_profile_section_fav_albumes_item2_image);\n\t\tmTextFavoriteFavoriteAlbum3 = (ImageView) mContainerFavoriteAlbums.findViewById(R.id.social_profile_section_fav_albumes_item3_image);\n\t\t\n\t\t// favorite songs.\n\t\tmContainerFavoriteSongs = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_songs);\n\t\tmHeaderFavoriteSongs = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_songs_header);\n\t\tmTextFavoriteSongsValue = (TextView) mContainerFavoriteSongs.findViewById(R.id.social_profile_section_fav_songs_header_value);\n\t\tmTextFavoriteSong1Name = (TextView) mContainerFavoriteSongs.findViewById(R.id.social_profile_section_fav_songs_item1);\n\t\tmTextFavoriteSong2Name = (TextView) mContainerFavoriteSongs.findViewById(R.id.social_profile_section_fav_songs_item2);\n\t\tmTextFavoriteSong3Name = (TextView) mContainerFavoriteSongs.findViewById(R.id.social_profile_section_fav_songs_item3);\n\t\t\n\t\t// favorite playlists.\n\t\tmContainerFavoritePlaylists = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_playlists);\n\t\tmHeaderFavoritePlaylists = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_playlists_header);\n\t\tmTextFavoritePlaylistValue = (TextView) mContainerFavoritePlaylists.findViewById(R.id.social_profile_section_fav_playlists_header_value);\n\t\tmTextFavoritePlaylist1Name = (TextView) mContainerFavoritePlaylists.findViewById(R.id.social_profile_section_fav_playlists_item1);\n\t\tmTextFavoritePlaylist2Name = (TextView) mContainerFavoritePlaylists.findViewById(R.id.social_profile_section_fav_playlists_item2);\n\t\tmTextFavoritePlaylist3Name = (TextView) mContainerFavoritePlaylists.findViewById(R.id.social_profile_section_fav_playlists_item3);\n\t\t\n\t\t// favorite videos.\n\t\tmContainerFavoriteVideos = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_videos);\n\t\tmHeaderFavoriteVideos = (LinearLayout) rootView.findViewById(R.id.social_profile_section_fav_videos_header);\n\t\tmTextFavoriteVideosValue = (TextView) mContainerFavoriteVideos.findViewById(R.id.social_profile_section_fav_videos_header_value);\n\t\tmTextFavoriteVideo1 = (ImageView) mContainerFavoriteVideos.findViewById(R.id.social_profile_section_fav_videos_item1_image);\n\t\tmTextFavoriteVideo2 = (ImageView) mContainerFavoriteVideos.findViewById(R.id.social_profile_section_fav_videos_item2_image);\n\t\tmTextFavoriteVideo3 = (ImageView) mContainerFavoriteVideos.findViewById(R.id.social_profile_section_fav_videos_item3_image);\n\t\t\n\t\t// favorite discoveries.\n\t\tmContainerDiscoveries = (LinearLayout) rootView.findViewById(R.id.social_profile_section_discoveries);\n\t\tmHeaderFavoriteDiscoveries = (LinearLayout) rootView.findViewById(R.id.social_profile_section_discoveries_header);\n\t\tmTextDiscoveriesValue = (TextView) mContainerDiscoveries.findViewById(R.id.social_profile_section_discoveries_header_value);\n\t\tmTextDiscoveriesItem1Name = (TextView) mContainerDiscoveries.findViewById(R.id.social_profile_section_discoveries_item1);\n\t\tmTextDiscoveriesItem2Name = (TextView) mContainerDiscoveries.findViewById(R.id.social_profile_section_discoveries_item2);\n\t\tmTextDiscoveriesItem3Name = (TextView) mContainerDiscoveries.findViewById(R.id.social_profile_section_discoveries_item3);\n\t}", "private void loadInitialValues() {\n // get the current user\n final FirebaseUser fUser = FirebaseAuth.getInstance().getCurrentUser();\n // get a reference to the firebase database.\n // NOTE: null pointer exception warning is not an issue as the user needs to be logged in to access this page\n DatabaseReference ref = FirebaseDatabase.getInstance().getReference();//.child(fUser.getUid());\n\n //change a value in the database to invoke event listener below\n ref.child(\"access\").setValue(RNG.generateNumber());\n\n //add an event listener to capture data on change\n ref.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n //get all users\n for (DataSnapshot ds : dataSnapshot.child(\"user\").getChildren()) {\n //check to see if user id in firebase matches with current user id of logged in user\n // NOTE: null pointer exception warning is not an issue as the user needs to be logged in to access this page\n if (ds.getKey().equals(fUser.getUid())) {\n //if so, get the data and set the appropriate fields\n User u = ds.getValue(User.class);\n m_ChangeName.setText(u.getName());\n m_ChangeAge.setText(u.getAge());\n m_ChangeBio.setText(u.getBio());\n if(u.getImage()!=null) {\n try {\n m_ProfilePic.setImageBitmap(decodeFromFirebaseBase64(u.getImage()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n\n\n }", "public void setLevel(int value) {\n this.level = value;\n }", "public void setLevel(int v)\n {\n m_level = v;\n }", "private static int levelUp(int playerLevel){\r\n int level = playerLevel + 1;\r\n System.out.println(\"You have leveled up!\"); \r\n //Tells the user what level they are\r\n System.out.println(\"You are now level \" + level + \"!\");\r\n return level;\r\n }", "public void setLevel(int level) {\n \t\tthis.level = level;\n \t}", "public void setLevel(int level){\n\t\tthis.level = level;\n\t}", "public void Setlevels(int lvl)\r\n {\r\n level = lvl;\r\n }", "public void setLevels(String levels) {\r\n\t\tthis.levels = levels;\r\n\t}", "private void prepareLevel(){\n levelAnimation = true;\n\n // Reset the menace level\n menaceInterval = 1200;\n\n // Here we will initialize all the game objects\n // Make a new player space ship\n defender = new Defender(context, PlayableX, PlayableY, ExcessX);\n\n // Prepare the players bullet\n bullet = new Bullet(context, PlayableX, PlayableY, (float) 1.2);\n\n // Initialize the invadersBullets array\n for(int i = 0; i < invadersBullets.length; i++){\n invadersBullets[i] = new Bullet(context, PlayableX, PlayableY, (float) 0.80);\n }\n\n // Build an army of invaders\n numInvaders = 0;\n for(int column = 0; column < invadersColumn; column ++ ){\n for(int row = 0; row < invadersRow; row ++ ){\n invaders[numInvaders] = new Invader(context, row, column, PlayableX, PlayableY, ExcessX);\n numInvaders ++;\n }\n }\n invadersLeft = numInvaders;\n\n try {\n // Create objects of the 2 required classes\n AssetManager assetManager = context.getAssets();\n explosionEffect = new Bitmap[12];\n for (int i=0; i < 12; i++) {\n explosionEffect[i] = Bitmap.createScaledBitmap(BitmapFactory.decodeStream(assetManager.open(\"explosion/\" + (i + 1) + \".png\")), (int) (invaders[0].getLength()*1.75), (int) (invaders[0].getLength()*1.75), true);\n }\n } catch (IOException e) {\n e.printStackTrace();\n // Print an error message to the console\n Log.e(\"error\", \"failed to load explosion effect image files\");\n }\n\n }", "@Override\n\t\n\tvoid level_specific_turret_setup(){\n\t}", "public void setLevel(String level) {\n this.level = level;\n }", "public void setLevel(String level) {\n this.level = level;\n }", "private void fillActiveLevels() \n\t{\n\t\tStringBuffer sb = new StringBuffer();\n\t\tfor(int i=0;i<level[0].length+2;i++){\n\t\t\tsb.append(\"-\");\n\t\t}\n\t\tString lineStartEnd = sb.toString();\n\t\tchar[] startEnd = lineStartEnd.toCharArray();\n\t\tlevelActive[0] = startEnd;\n\t\tlevelActive[levelActive.length-1] = startEnd;\n\t\tfor (int i = 1; i <= level.length; i++) \n\t\t{\n\t\t\tlevelActive[i][0] = '-';\n\t\t\tSystem.arraycopy(level[i - 1], 0, levelActive[i], 1, level[0].length);\n\t\t\tlevelActive[i][level[0].length+1] = '-';\n\t\t}\n\t}", "public void setLevel(int level) {\n\t\tthis.level = level;\t\n\t}", "private void prepare() {\n Menu menu = new Menu();\n addObject(menu, 523, 518);\n }", "public static void setMinimumLevel(Level level) {\n\t\tminLevel = level;\n\t}", "public void setLevel(Level level) {\r\n\t\tthis.level = level;\r\n\t}", "@Override\n protected void onStart() {\n checkUserStatus();\n super.onStart();\n }", "@Override\n protected void onStart() {\n checkUserStatus();\n\n super.onStart();\n }", "private void populateLocationsAndIssuingUsersDropDowns(MarriageRegister notice) {\n //get current users location displaying lists,initial values are set by the service\n locationList = commonUtil.populateActiveUserLocations(user, language);\n userList = new HashMap<String, String>();\n List<User> users = userLocationDAO.getMarriageCertificateSignUsersByLocationId(locationList.keySet().\n iterator().next(), true);\n for (User u : users) {\n MRDivision mrDivisionMaleNotice = notice.getMrDivisionOfMaleNotice();\n MRDivision mrDivisionFemaleNotice = notice.getMrDivisionOfFemaleNotice();\n if ((mrDivisionMaleNotice != null && user.isAllowedAccessToMRDSDivision(mrDivisionMaleNotice.getMrDivisionUKey())) ||\n (mrDivisionFemaleNotice != null && user.isAllowedAccessToMRDSDivision(mrDivisionFemaleNotice.getMrDivisionUKey()))) {\n userList.put(u.getUserId(), NameFormatUtil.getDisplayName(u.getUserName(), 50));\n }\n }\n }", "private void applyLvlUpCost() {\n }", "public void setLevel(int level) {\r\n\t\t\r\n\t\tthis.level = level;\r\n\t\t\r\n\t}", "public void levelUp1()\r\n {\r\n this.health = 900;\r\n Story.levelUp1Text();\r\n }", "private void initUIAfterLogin() {\n lnLoggedOutState.setVisibility(View.GONE);\n lnLoggedInState.setVisibility(View.VISIBLE);\n initUserProfileUI();\n }", "public void setLevel(Level level) {\n\t\tthis.level = level;\n\t}", "public void levelUp2()\r\n {\r\n this.health = 1200;\r\n Story.levelUp2Text();\r\n }", "public void loadPermissionLevel(final Layer model) {\r\n \t\tif(model != null) {\t\t\t\r\n \t\t\tUserData currentUser = authenticationController.getLoggedInUser();\r\n \t\t\tif(currentUser != null) {\r\n \t\t\t\tAclUtils.getHighestPermissionLevel(NodeType.LAYER, model.getId(), nodeService, new AsyncCallback<PermissionLevel>() {\r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tpublic void onSuccess(PermissionLevel result) {\r\n \t\t\t\t\t\tiisAdministrator = false;\r\n \t\t\t\t\t\tccanEdit = false;\r\n \t\t\t\t\t\tif(result == PermissionLevel.CAN_EDIT) {\r\n \t\t\t\t\t\t\tccanEdit = true;\r\n \t\t\t\t\t\t} else if(result == PermissionLevel.CAN_ADMINISTER) {\r\n \t\t\t\t\t\t\tccanEdit = true;\r\n \t\t\t\t\t\t\tiisAdministrator = true;\r\n \t\t\t\t\t\t}\r\n \t\t\t\t\t\tsetLayerDetails(model, iisAdministrator, ccanEdit);\r\n \t\t\t\t\t}\r\n \t\t\t\t\t\r\n \t\t\t\t\t@Override\r\n \t\t\t\t\tpublic void onFailure(Throwable caught) {\t\t\t\t\r\n \t\t\t\t\t\tview.showErrorMessage(DisplayConstants.ERROR_GETTING_PERMISSIONS_TEXT);\r\n \t\t\t\t\t\tiisAdministrator = false;\r\n \t\t\t\t\t\tccanEdit = false;\r\n \t\t\t\t\t\tsetLayerDetails(model, iisAdministrator, ccanEdit);\r\n \t\t\t\t\t}\t\t\t\r\n \t\t\t\t});\r\n \t\t\t} else {\r\n \t\t\t\t// because this is a public page, they can view\r\n \t\t\t\tiisAdministrator = false;\r\n \t\t\t\tccanEdit = false;\r\n \t\t\t\tsetLayerDetails(model, iisAdministrator, ccanEdit);\r\n \t\t\t}\r\n \t\t}\r\n \t\t\r\n \t}", "public void loadLevel(int level) {\n if (level == 0) {\n return;\n }\n if (this.levels[level] == null) {\n this.elevatorLevelsUnlocked = Math.max(this.elevatorLevelsUnlocked,\n (int)((level-1)/5.0));\n \n this.levels[level] = new MineLevel.Builder(level).buildLevel(this);\n }\n Iterator<Gateway> gateways = this.levels[level-1].getGateways();\n Gateway nextGateway;\n while (gateways.hasNext()) {\n nextGateway = gateways.next();\n if (nextGateway.getDestinationGateway() == null) {\n nextGateway.setDestinationArea(this.levels[level]);\n nextGateway.setDestinationGateway(this.levels[level].getEntranceGateway());\n }\n }\n }" ]
[ "0.612737", "0.5894323", "0.5887148", "0.5860362", "0.5689308", "0.5620872", "0.558161", "0.5503914", "0.5467846", "0.5467255", "0.5463999", "0.5437683", "0.5411873", "0.5349347", "0.5338598", "0.5330793", "0.5299341", "0.5250931", "0.524147", "0.5233182", "0.5233073", "0.5217372", "0.5210078", "0.51788706", "0.5162879", "0.51622444", "0.51591617", "0.51366204", "0.5135538", "0.5115822", "0.5105272", "0.50628686", "0.5061233", "0.50607425", "0.5059138", "0.50542134", "0.50523305", "0.50413936", "0.50374174", "0.5034158", "0.50128245", "0.501181", "0.49976978", "0.49956375", "0.49787337", "0.49573585", "0.4951105", "0.494377", "0.49372947", "0.49338526", "0.49306774", "0.49288076", "0.49170285", "0.49124753", "0.49097517", "0.4909052", "0.49037096", "0.48995915", "0.48949173", "0.48937535", "0.48822635", "0.48796734", "0.48789212", "0.48741913", "0.48741913", "0.48741913", "0.48741913", "0.4864187", "0.48636693", "0.48481622", "0.48427096", "0.48342326", "0.48246586", "0.48242253", "0.48225266", "0.4821334", "0.48104933", "0.48097408", "0.48095962", "0.47995102", "0.47730753", "0.476508", "0.47641188", "0.47641188", "0.47583944", "0.4754851", "0.47542238", "0.47458345", "0.4745103", "0.473713", "0.4736014", "0.4732", "0.47257444", "0.47252622", "0.47240028", "0.47087017", "0.47066084", "0.4697293", "0.46891847", "0.46865344" ]
0.724378
0
Prepares current user's achievements.
private void prepareAchievements(User user, HttpServletRequest req, Language lang) { List<Achievement> achievements = achService.findAllAchForUser( user.getUserId(), lang); req.getSession().setAttribute("currentUserAch", achievements); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void startAchievementActivity(Achievement achievement){\n\n setHeadline(achievement.getName());\n\n /*\n // Load all post items into the jorunal\n for(PostItem tmpPostItem : allPostItems){\n\n if(tmpPostItem.achievementName.equals(achievement.getName()) && tmpPostItem.getUser_id().equals(current_user_id)){\n\n achievementFragment.addJournalItem(tmpPostItem);\n }\n\n }\n */\n Bundle bundle2 = new Bundle();\n bundle2.putString(\"uid\",current_user_id);\n achievementFragment.setArguments(bundle2);\n achievementFragment.setAchievement(achievement);\n replaceFragment(achievementFragment);\n // Intent achievementIntent = new Intent(MainActivity.this, AchievementActivity.class);\n //startActivity(achievementIntent);\n //startActivity(achievementIntent);\n\n }", "public void setAchievements(int achievements) {\n this.achievements = achievements;\n }", "private void chekAchivements(String userName){\n\n\t\tAppUser appUser = appUserRepository.findOneByUsername(userName);\n\n if (appUser.getInstruction().size() > 0 ){\n \tString achievementName = \"Bronze instruction creator\";\n \tif(appUser.findAchievementByname(achievementName)){\n\n\t\t\t} else {\n\t\t\t\tAchievement achievement = new Achievement();\n\t\t\t\tachievement.setUsername(userName);\n\t\t\t\tachievement.setName(achievementName);\n\t\t\t\tachievement.setDescription(\"For make 0 instruction !!!\");\n\t\t\t\tachievement.setImageLink(\"http://res.cloudinary.com/demo/image/upload/pg_3/strawberries.png\");\n\t\t\t\tappUser.getAchievements().add(achievement);\n\t\t\t}\n }\n\n\t\tif (appUser.getInstruction().size() > 0 ){\n\t\t\tString achievementName = \"Silver instruction creator\";\n\t\t\tif(appUser.findAchievementByname(achievementName)){\n\n\t\t\t} else {\n\t\t\t\tAchievement achievement = new Achievement();\n\t\t\t\tachievement.setUsername(userName);\n\t\t\t\tachievement.setName(achievementName);\n\t\t\t\tachievement.setDescription(\"For make 0 instruction !!\");\n\t\t\t\tachievement.setImageLink(\"http://res.cloudinary.com/demo/image/upload/pg_3/strawberries.png\");\n\t\t\t\tappUser.getAchievements().add(achievement);\n\t\t\t}\n\t\t}\n\n\t\tfor (Instruction instruction:instructionRepository.findAllByCreatorName(userName)) {\n\t\t\tif (instruction.getSteps().size() > 0 ){\n\t\t\t\tString achievementName = \"Bronze step creator\";\n\t\t\t\tif(appUser.findAchievementByname(achievementName)){\n\t\t\t\t\treturn;\n\t\t\t\t} else {\n\t\t\t\t\tAchievement achievement = new Achievement();\n\t\t\t\t\tachievement.setUsername(userName);\n\t\t\t\t\tachievement.setName(achievementName);\n\t\t\t\t\tachievement.setDescription(\"For make 0 steps !!!\");\n\t\t\t\t\tachievement.setImageLink(\"http://res.cloudinary.com/demo/image/upload/w_200,\" +\n\t\t\t\t\t\t\t\"h_200,c_crop,g_auto/fat_cat.jpg\");\n\t\t\t\t\tappUser.getAchievements().add(achievement);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tappUserRepository.save(appUser);\n\t}", "@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_achievements);\n setUpMenuBar(this);\n\n AchievementManager.initManager(AchievementActivity.this);\n\n UserController userController = new UserController();\n username = userController.readUsername(AchievementActivity.this).toString();\n\n AchievementController achievementController = new AchievementController();\n achievements = achievementController.getAchievements();\n\n // display the users username\n final TextView userName = (TextView) findViewById(R.id.usernameText);\n userName.setText(username);\n userName.setTextColor(getResources().getColor(R.color.redTheme));\n userName.setTypeface(null, Typeface.BOLD_ITALIC);\n\n // display the users score\n final TextView userScore = (TextView) findViewById(R.id.scoreText);\n userScore.setText(\"Score: \" + String.valueOf(achievements.score));\n userScore.setTextColor(getResources().getColor(R.color.redTheme));\n userScore.setTypeface(null, Typeface.BOLD_ITALIC);\n\n ListView androidListView = (ListView) findViewById(R.id.test3_list);\n\n AchievementsAdapter achievementsAdapter = new AchievementsAdapter(AchievementActivity.this, R.layout.achievement_list, achievements.achievementsTitleArray);\n androidListView.setAdapter(achievementsAdapter);\n\n\n }", "public static void synchronizeAchievements(EntityPlayer player) {\n //getAchievementHolder(player).sendSyncPackets();\n if (!JaffasFood.achievementsDisabled) {\n getAchievementHolder(player).recreateAchievements();\n }\n }", "public static void addAll(){\n /* Add kill Achievements. */\n AchievementManager.addAchievement(kill1);\n AchievementManager.addAchievement(kill2);\n AchievementManager.addAchievement(kill3);\n AchievementManager.addAchievement(kill4);\n\n /* Add Death Achievements. */\n AchievementManager.addAchievement(death1);\n AchievementManager.addAchievement(death2);\n AchievementManager.addAchievement(death3);\n AchievementManager.addAchievement(death4);\n\n /* Add Score Achievements. */\n AchievementManager.addAchievement(score1);\n AchievementManager.addAchievement(score2);\n AchievementManager.addAchievement(score3);\n AchievementManager.addAchievement(score4);\n\n /* Add Time Achievements. */\n AchievementManager.addAchievement(time1);\n AchievementManager.addAchievement(time2);\n AchievementManager.addAchievement(time3);\n AchievementManager.addAchievement(time4);\n\n /* Random Achievements. */\n AchievementManager.addAchievement(tutorialAch);\n AchievementManager.addAchievement(secretAch);\n }", "void onShowAchievementsRequested();", "public void updateAchievements(String username, String achievementTitle, Boolean achieved){\n ContentValues updatedAch = new ContentValues();\n updatedAch.put(\"USERNAME\", username);\n updatedAch.put(\"TITLE\", achievementTitle);\n updatedAch.put(\"ACHIEVED\", achieved);\n\n String where=\"username = ?\";\n db.update(\"Achievement\", updatedAch, where, new String[]{username});\n\n }", "@BeforeEach\n\tpublic void steUp()\n\t{\n\t\tClientAchievementManager.getAquiredScoreAchievements().clear();\n\t\tClientAchievementManager.getPlayedGamesAchievements().clear();\n\t\tClientAchievementManager.getWonGamesAchievements().clear();\n\t}", "@Override\n\tpublic void getAchievementsGPGS() {\n\t\tstartActivityForResult(gameHelper.getGamesClient()\n\t\t\t\t.getAchievementsIntent(), 101);\n\n\t}", "private void initializeAchievementsControllers() {\n trUpdateMedalProgress = AchievementsControllersFactory.createTrUpdateMedalProgress();\n }", "public static void initPlayer() {\n\t\tuser = game.getUsers().get(game.getUserTurn());\n\t\tlblBudgetText.setText(user.getBudget()+\"\");\n\t\tdisplayUserTeam();\n\t}", "public void checkAchievements() {\n \t\tif (duration >= 1000*Achievements.LOCAL_SLOW_LONG_TIME) {\n \t\t\tAchievements.unlockLocalAchievement(Achievements.localSlowLongTime);\n \t\t}\n \t}", "@Override\n public void onSignInSucceeded() {\n\n if (ACCESS_ACHIEVEMENT) {\n\n //if we just came from achievements button and are now signed in, display ui\n displayAchievementUI();\n\n //flag back false\n ACCESS_ACHIEVEMENT = false;\n }\n\n //don't bypass auto login\n BYPASS_LOGIN = false;\n }", "private void writeAchievements() {\n\t\tDataStorage dataStorage = new DataStorage();\n\t\tdataStorage.setAchievements(jsonObject.toString());\n\t}", "public List<Achievement> getAchievements()\n\t{\n\t\treturn achievements;\n\t}", "public void showAchievements () {\n\t\tGPGAchievementController achController = new GPGAchievementController();\n\t\tachController.setAchievementDelegate(this);\n\t\tviewController.presentViewController(achController, true, null);\n\t}", "public AchievementsPagePresenter(ServiceRepository appServices, HandlerManager eventBus, AchievementsView display, Account user)\n\t{\n\t\tthis.appUser = user;\n\t\tthis.appServices = appServices;\n\t\tthis.eventBus = eventBus;\n\t\tthis.achievementsView = display;\n\t\tthis.dataBindAccount();\n\t}", "public Single<FeedbackResponse> getAchievements(String userName) {\n final String fetchAchievementUrlTemplate =\n wikiMediaToolforgeUrl + (ConfigUtils.isBetaFlavour() ? \"/feedback.py?labs=commonswiki\" : \"/feedback.py\");\n return Single.fromCallable(() -> {\n String url = String.format(\n Locale.ENGLISH,\n fetchAchievementUrlTemplate,\n userName);\n HttpUrl.Builder urlBuilder = HttpUrl.parse(url).newBuilder();\n urlBuilder.addQueryParameter(\"user\", userName);\n Timber.i(\"Url %s\", urlBuilder.toString());\n Request request = new Request.Builder()\n .url(urlBuilder.toString())\n .build();\n Response response = okHttpClient.newCall(request).execute();\n if (response != null && response.body() != null && response.isSuccessful()) {\n String json = response.body().string();\n if (json == null) {\n return null;\n }\n Timber.d(\"Response for achievements is %s\", json);\n try {\n return gson.fromJson(json, FeedbackResponse.class);\n } catch (Exception e) {\n return new FeedbackResponse(\"\", 0, 0, 0, new FeaturedImages(0, 0), 0, \"\", 0);\n }\n\n\n }\n return null;\n });\n }", "public int getAchievements() {\n return achievements;\n }", "public static void ReadAchievements()\n {\n try\n {\n BufferedReader file = new BufferedReader(new FileReader(achievements_file_name));\n int actualLine = 0, nb_achievements_done = 0;\n while(actualLine<Achievement.NB_ACHIEVEMENTS)\n {\n boolean currentValue = Utilities.IntToBool(Integer.parseInt(file.readLine()));\n Achievement.achievements_done[actualLine] = currentValue;\n if(currentValue)\n nb_achievements_done++;\n actualLine++;\n }\n file.close();\n Achievement.nb_achievements_done = nb_achievements_done;\n Achievement.CheckAllAchievements();\n } \n catch (Exception e) { SaveAchievements(); }\n }", "@BeforeMethod\n public void setUp() throws Exception {\n UserInterface.init();\n\n testUser = UserInterface.getUserInfo();\n testGoals = UserInterface.getGoals();\n Random rnd = new Random();\n\n if(testGoals.size() > 1) {\n randomGoalID = rnd.nextInt(testGoals.size() - 1);\n testGoal = testGoals.get(randomGoalID);\n }\n else {\n UserInterface.addGoal(\"ValidName\", \"ValidDesciption\");\n randomGoalID = 0;\n reloadTestGoal();\n }\n }", "public void setAchievement(String achievement, String username) {\n\t\tint achievementTypeID = getAchievementTypeID(achievement);\n\t\tAccountManager am = new AccountManager();\n\t\tint userID = am.getAccountId(username);\n\t\tString query = \"INSERT INTO \" + DBInfo.ACHIEVEMENTS + \" (USER_ID, TYPE_ID) VALUES (?, ?)\";\n\t\ttry {\n\t\t\tPreparedStatement preparedStatement = con.prepareStatement(query);\n\t\t\tpreparedStatement.setInt(1, userID);\n\t\t\tpreparedStatement.setInt(2, achievementTypeID);\n\t\t\tpreparedStatement.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void readAchievements() {\n\t\tDataStorage dataStorage = new DataStorage();\n\t\tjsonObject = JsonObject.readFrom(dataStorage.getAchievements()); // readFrom is buffered\n\t}", "private void assignAbility(int previousAbilities) {\n // If decreasing from 3 to 2 abilities, then the index needs to be reworked\n AbilityNamesies[] abilities = this.getPokemonInfo().getAbilities();\n if (previousAbilities == 3 && abilities.length == 2) {\n this.abilityIndex /= 2;\n }\n\n // Get the ability corresponding to the ability index\n final AbilityNamesies ability;\n if (abilities.length == 1) {\n ability = abilities[0];\n } else {\n ability = abilities[this.abilityIndex];\n }\n\n // Actually set the ability\n this.setAbility(ability);\n }", "private void setUpUser() {\n Bundle extras = getIntent().getExtras();\n mActiveUser = extras.getString(Helper.USER_NAME);\n mUser = mDbHelper.getUser(mActiveUser, true);\n Log.d(TAG, mUser.toString());\n\n if (mUser == null) {\n Toast.makeText(getBaseContext(), \"Error loading user data\", Toast.LENGTH_SHORT);\n return;\n }\n\n mIsNumPassword = Helper.isNumeric(mUser.getPassword());\n\n mKeyController = new KeyController(getApplicationContext(), mUser);\n }", "public List<Achievement> getAllAchievements() {\n return achievementList;\n }", "private void prepareProgression(User user,\n HttpServletRequest req,\n Language lang) {\n var countedSolvedAndAll = taskService\n .countProgression(user.getUserId(), lang);\n req.getSession().setAttribute(\"currentCountedTasks\", countedSolvedAndAll);\n }", "public void setCurrentUserPremium() {\n\t\tcurrentUser.setPremium(true);\n\t\tuserCatalog.modifyUser(currentUser);\n\t}", "public List< Achievement > getAchievementsList() {\n\t\treturn getPlayerstatsObject().getAchievements();\n\t}", "public void Prepare() {\n\t\tfor(String user: users) {\n\t\t\tbyte[] content = ProcessMsg.serialize(needVote.get(user));\n\t\t\tProjectLib.Message msgSend = new ProjectLib.Message(user,content);\n\t\t\tPL.sendMessage(msgSend);\n\t\t\tneedVote.remove(user);\n\t\t}\n\t}", "public synchronized void flushUserProfileAssignments()\n {\n profileAssignments.clear();\n }", "@Override\n\tpublic void getAchievementsGPGS() {\n\t}", "private void setupProfileOptions() {\n String userId;\n\n if (profile == null) {\n userId = this.userId;\n\n if (userId == null)\n throw new IllegalStateException(\"ViewProfileActivity profile is null, but so is it's userId. One of either must not be null\");\n } else {\n userId = profile.getUserId();\n\n if (userId == null)\n throw new IllegalStateException(\"ViewProfileActivity's profile#getUserId() returned null. Was setUserId called when the profile was retrieved?\");\n }\n\n final String finalUserId = userId;\n ConstraintLayout goalLayout = findViewById(R.id.goalsLayout);\n goalLayout.setOnClickListener(v -> {\n Intent intent = new Intent(this, GoalsActivity.class);\n intent.putExtra(GoalsActivity.USER_ID_EXTRA, finalUserId);\n startActivity(intent);\n });\n\n ConstraintLayout activitiesLayout = findViewById(R.id.activitiesLayout);\n activitiesLayout.setOnClickListener(v -> {\n Intent intent = new Intent(this, ListActivitiesActivity.class);\n intent.putExtra(ListActivitiesActivity.USER_ID_EXTRA, finalUserId);\n startActivity(intent);\n });\n\n ConstraintLayout postsLayout = findViewById(R.id.postsLayout);\n postsLayout.setOnClickListener(v -> {\n Intent intent = new Intent(this, ProfilePostsActivity.class);\n intent.putExtra(ProfilePostsActivity.USER_ID_EXTRA, finalUserId);\n startActivity(intent);\n });\n }", "public void becomePremium() {\n\t\tif (this.account >= 100 && this.premium == false) {\n\t\t\tthis.account -= 100;\n\t\t\tthis.premium = true;\n\t\t\tSystem.out.println(\"Premium transaction successful\");\n\n\t\t} else if (this.premium == true) {\n\t\t\tSystem.out.println(\"They are already a premium user!\");\n\n\t\t} else {\n\t\t\tSystem.err.println(\n\t\t\t\t\t\"Error - not enough funds in account.\\nPremium charge is $100\\nBalance: $\" + this.getBalance() + \"\\nPlease top up account manually.\\nReturning to main menu.\");\n\t\t}\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n FirebaseUser currentUser = mAuth.getCurrentUser();\n if (currentUser != null){\n UpdateUI();\n }\n }", "private static Achievement createFollowedAchievement(){\n\n ArrayList<String> picturesPaths = new ArrayList<>();\n picturesPaths.add(\"followed_none\");\n picturesPaths.add(\"followed_bronze\");\n picturesPaths.add(\"followed_silver\");\n picturesPaths.add(\"followed_diamond\");\n\n ArrayList<String> picturesLabels = new ArrayList<>();\n picturesLabels.add(\"No followers\");\n picturesLabels.add(\"Followed Chef\");\n picturesLabels.add(\"Famous Chef\");\n picturesLabels.add(\"Renowned Chef\");\n\n ArrayList<Integer> levelSteps = new ArrayList<>();\n levelSteps.add(1);\n levelSteps.add(30);\n levelSteps.add(100);\n\n Function<User, Integer> getUserNbFollowers = u -> u.getSubscribers().size();\n\n return new Achievement(\"followed\", STANDARD_NB_LEVELS, picturesPaths, picturesLabels, levelSteps, getUserNbFollowers);\n }", "private void updateUI() {\n mAdapter = new GoalAdapter(userGoals);\n goalRecyclerView.setAdapter(mAdapter);\n }", "private void populateUserProfile() {\n setProfilePic();\n mDisplayNameTextView.setText(user.getName());\n mUsernameTextView.setText(String.format(\"@%s\", user.getUsername()));\n mBioTextView.setText(user.getBio());\n setAdapterForUserStories();\n\n new Thread(new Runnable() {\n public void run(){\n setFollowingCount();\n setFollowersCount();\n setStoriesCount();\n queryStoriesFromUser();\n }\n }).start();\n }", "@Override\n public void onStart() {\n super.onStart();\n\n if (mAuth.getCurrentUser() != null) {\n //finish();\n\n // Changed accountFragment to ProfileFragment, should rename account fragment to setup\n //SetupFragment accountFragment = new SetupSetupFragment();\n FragmentManager manager = getFragmentManager();\n manager.beginTransaction().replace(R.id.fragment_container,\n new SettingsFragment()).commit();\n }\n }", "Response<List<Achievement>> getEarnedAchievements(String username, String uniqueIdentifier);", "public static void SaveAchievements()\n {\n try\n {\n StartSaveAnimation();\n PrintWriter writer = new PrintWriter(achievements_file_name, \"UTF-8\");\n int actualLine = 0, nb_achievements_done = 0;\n while(actualLine<Achievement.NB_ACHIEVEMENTS)\n {\n boolean currentValue = Achievement.achievements_done[actualLine];\n if(currentValue)\n nb_achievements_done++;\n writer.print(Utilities.BoolToInt(currentValue) + \"\\r\\n\");\n actualLine++;\n }\n writer.close();\n Achievement.nb_achievements_done = nb_achievements_done;\n }\n catch(Exception e) { System.out.println(\"Problem writing in the file \" + achievements_file_name + \".\"); }\n }", "public void activate(Game g) {\n\t\tPlayer owner = g.getCurrentPlayer();\r\n\t\tPlayer opponent = g.getOpposingPlayer();\r\n\t\topponent.subtractVictoryPoints(1);\r\n\t\towner.collectVictoryPoints(1);\r\n\t}", "@Test\n\tpublic void doesLoadAchievementsFromFileTest()\n\t{\n\t\tFileAccessorMock mock = new FileAccessorMock();\n\t\tcreateAchievementsFile(mock);\n\t\t\n\t\tassertEquals(1, ClientAchievementManager.getPlayedGamesAchievements().size());\n\t\tassertEquals(\"Gespielte Spiele I\", ClientAchievementManager.getPlayedGamesAchievements().get(0).getName());\n\t\tassertEquals(\"test1\", ClientAchievementManager.getPlayedGamesAchievements().get(0).getDescription());\n\t\tassertEquals(10, ClientAchievementManager.getPlayedGamesAchievements().get(0).getRequired());\n\t\t\n\t\tassertEquals(1, ClientAchievementManager.getWonGamesAchievements().size());\n\t\tassertEquals(\"Gewonnene Spiele I\", ClientAchievementManager.getWonGamesAchievements().get(0).getName());\n\t\tassertEquals(\"test2\", ClientAchievementManager.getWonGamesAchievements().get(0).getDescription());\n\t\tassertEquals(11, ClientAchievementManager.getWonGamesAchievements().get(0).getRequired());\n\t\t\n\t\tassertEquals(1, ClientAchievementManager.getAquiredScoreAchievements().size());\n\t\tassertEquals(\"Gesammelte Punkte I\", ClientAchievementManager.getAquiredScoreAchievements().get(0).getName());\n\t\tassertEquals(\"test3\", ClientAchievementManager.getAquiredScoreAchievements().get(0).getDescription());\n\t\tassertEquals(12, ClientAchievementManager.getAquiredScoreAchievements().get(0).getRequired());\n\t}", "@Override\n public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n session = SessionManager.getInstance();\n\n userImage = (ImageView) getView().findViewById(R.id.user_image);\n userName = (TextView) getView().findViewById(R.id.user_name);\n userNickName = (TextView) getView().findViewById(R.id.user_nickname);\n userTotalPoints = (TextView) getView().findViewById(R.id.user_total_points);\n userActualPoints = (TextView) getView().findViewById(R.id.user_actual_points);\n userCreationDate = (TextView) getView().findViewById(R.id.gobro_since);\n userBirthDate = (TextView) getView().findViewById(R.id.user_birthdate);\n userEmail = (TextView) getView().findViewById(R.id.user_email);\n ImageButton editUser = (ImageButton) getView().findViewById(R.id.edit_profile_button);\n TextView textView = (TextView) getView().findViewById(R.id.exchangedRewards);\n if (!(\"user\".equals(session.getRole()))) textView.setVisibility(View.GONE);\n LinearLayout pointsLinear = (LinearLayout) getView().findViewById(R.id.linearLayout_Points);\n if (!(\"user\").equals(session.getRole())) pointsLinear.setVisibility(View.GONE);\n\n editUser.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n FragmentManager manager = ((FragmentActivity) getContext()).getSupportFragmentManager();\n FragmentTransaction transaction = manager.beginTransaction();\n Fragment fragment = (Fragment) new UserProfileEditFragment();\n transaction.replace(R.id.flContent, fragment);\n transaction.addToBackStack(UserProfileEditFragment.class.getName()).commit();\n }\n });\n\n new GetInfoUser().execute(\"http://10.4.41.145/api/users/\" + session.getUsername());\n\n }", "private void prepareDatabaseStats(Player player) {\n this.plugin.getServer().getScheduler().runTaskAsynchronously(this.plugin, () -> {\n synchronized (this.statsController) {\n if (this.statsController.getByPlayer(player) == null) {\n PlayerMeta meta;\n if ((meta = this.playerMetaController.getByUUID(player.getUniqueId())) == null) {\n meta = this.playerMetaController.create(player);\n this.playerMetaController.store(meta);\n }\n final Stats stats = this.statsController.create();\n stats.setPlayerId(meta.getId());\n this.statsController.store(stats);\n }\n }\n });\n }", "private void populateUser() {\n // After user is authenticated, grab their data from the net\n // TODO This will ping the net on every resume (which is probably frequent).\n userListener = saplynService.viewUser();\n\n userListener.subscribeOn(Schedulers.newThread())\n .observeOn(AndroidSchedulers.mainThread())\n .subscribe(\n\n // We got a valid user from the web. Populate our local object and spawn\n // the dashboard.\n user -> {\n this.user = user;\n FragmentTransaction ft = fm.beginTransaction();\n ft.add(R.id.main_fragment_container_home, new DashboardFragment());\n ft.commit();\n },\n throwable -> {\n if(throwable instanceof HttpException) {\n ResponseBody body = ((HttpException) throwable).response().errorBody();\n Log.e(TAG, \"onErrorFromPopulateUser: \"\n + body.toString());\n }\n }\n );\n }", "public void accomplishGoal() {\r\n isAccomplished = true;\r\n }", "proto.AchievementOrBuilder getAchievementsOrBuilder(\n int index);", "void processAchievementEvent(AchieveSettings settings, String title, Achievement achievement, String category);", "proto.Achievement getAchievements(int index);", "AchievementModel createAchievementModel(AchievementModel achievementModel);", "@Override\n public void onStart() {\n super.onStart();\n // Check if user is signed in (non-null) and update UI accordingly.\n FirebaseUser currentUser = mAuth.getCurrentUser();\n }", "public void setPlayerAwaitingAuthy(Boolean playerAwaitingAuthy) {\n\t\tthis.playerAwaitingAuthy = playerAwaitingAuthy;\n\t}", "private void loadUserPrivileges() {\n\t\t// Get the UserPrivilege details after a successful log in.\n\t\tuserPrivilege = new UserPrivilegeImpl(this.session);\n\n\t\t// End problems here\n\t\tif ( userPrivilege == null ) throw new IllegalArgumentException(\"User Privileges given.\"); \t\t\n\t}", "Response<List<Achievement>> getAchievements();", "private static Achievement createFavoriteAchievement(){\n\n ArrayList<String> picturesPaths = new ArrayList<>();\n picturesPaths.add(\"favorite_none\");\n picturesPaths.add(\"favorite_bronze\");\n picturesPaths.add(\"favorite_silver\");\n picturesPaths.add(\"favorite_diamond\");\n\n ArrayList<String> picturesLabels = new ArrayList<>();\n picturesLabels.add(\"No favorite\");\n picturesLabels.add(\"Curious Chef\");\n picturesLabels.add(\"Local Chef\");\n picturesLabels.add(\"Library Chef\");\n\n ArrayList<Integer> levelSteps = new ArrayList<>();\n levelSteps.add(1);\n levelSteps.add(10);\n levelSteps.add(50);\n\n Function<User, Integer> getUserNbFavorites = u -> u.getFavourites().size();\n\n return new Achievement(\"favorite\", STANDARD_NB_LEVELS, picturesPaths, picturesLabels, levelSteps, getUserNbFavorites);\n }", "protected void apply() {\r\n\t\tplayer.setAutoRoll(autoroll);\r\n\t\tplayer.setMission(mission);\r\n\t\tplayer.setState(state);\r\n\t\tplayer.getCards().setArtillery(cards.getArtillery());\r\n\t\tplayer.getCards().setCavalry(cards.getCavalry());\r\n\t\tplayer.getCards().setInfantry(cards.getInfantry());\r\n\t\tplayer.getCards().setJokers(cards.getJokers());\r\n\t\tMember member = player.getMember();\r\n\t\tif(score == Score.WIN) {\r\n\t\t\tmember.setScore(member.getScore() + player.getGame().getPlayers().size() - 1);\r\n\t\t\tmember.setWins(member.getWins() + 1);\r\n\t\t} else if(score == Score.LOSS) {\r\n\t\t\tmember.setScore(member.getScore() - 1);\r\n\t\t\tmember.setLosses(member.getLosses() + 1);\r\n\t\t}\r\n\t}", "@Override\n public void onStart() {\n super.onStart();\n //Se toma el usuario actual ... si está validado\n FirebaseUser currentUser = mAuth.getCurrentUser();\n updateUI(currentUser);\n }", "void setUpAuthorized(int userAuth, int acctAuth) {\n\t\tthis.isUpAuth = userAuth == 1 || acctAuth == 1;\n\t}", "protected void checkTakeAchievements(ItemStack debug1) {}", "@Override\r\n protected void onStart() {\r\n super.onStart();\r\n if(mAuth.getCurrentUser() !=null)\r\n {\r\n finish();\r\n startActivity(new Intent(this,Account.class));\r\n }\r\n }", "public void action(Player myPlayer)\n {\n if (getNbUtilisation() == 0) {\n System.out.println(\"Not possible\");\n } else {\n int nHealthy = getPointsHealthy();\n myPlayer.addLifePoints(nHealthy);\n\n }\n }", "private void populateUserControlls() {\n\t\tif (mIsApplicationUser) {\n\t\t\tmContainerUserCurrency.setOnClickListener(this);\n\t\t\tmContainerUserDownloads.setOnClickListener(this);\n\t\t}\n\t\t\n\t\t/*\n\t\t * Initializes the image fetcher.\n\t\t */\n\t\t\n//\t\t// calculates the cache.\n//\t\tmImageUserThumbnail.measure(0, 0);\n//\t\tint thumbSize = mImageUserThumbnail.getMeasuredHeight();\n//\t\t\n//\t\tImageCache.ImageCacheParams cacheParams =\n// new ImageCache.ImageCacheParams(getActivity(), DataManager.FOLDER_THUMBNAILS_CACHE);\n// cacheParams.setMemCacheSizePercent(getActivity(), 0.10f);\n// cacheParams.compressFormat = CompressFormat.PNG;\n// \n//\t\tmImageFetcher = new ImageFetcher(getActivity(), thumbSize);\n//\t\tmImageFetcher.setLoadingImage(R.color.white);\n//\t\tmImageFetcher.addImageCache(getChildFragmentManager(), cacheParams);\n//\t\t// WARNING: Do Not set this boolean to true\n// mImageFetcher.setImageFadeIn(false);\n \n // populates the user bar.\n populdateUserBar();\n\n \t// populates the badges section.\n populateBadgesSection();\n \t\n \t// populates the leader board section.\n populdateLeaderboardSection();\n \n // populates the user's playlists if is the application's user.\n if (mIsApplicationUser) {\n \tpopulateUserPlaylitstsSection();\n \t\n } else {\n \tmContainerMyPlaylists.setVisibility(View.GONE);\n }\n \t\n populateFavoritesSections();\n \n populateUserDiscoveriesSection();\n \n //populdateLevelBar();\n populdateLevelBarNew();\n\t}", "@Override\r\n\t\tprotected void onPreExecute() {\r\n\t\t\tsuper.onPreExecute();\r\n\t\t\tpDialog = new ProgressDialog(ProfileActivity.this);\r\n\t\t\tpDialog.setMessage(\"Loading profile ...\");\r\n\t\t\tpDialog.setIndeterminate(false);\r\n\t\t\tpDialog.setCancelable(false);\r\n\t\t\tpDialog.show();\r\n\t\t}", "@Override\n public void onStart(){\n super.onStart();\n //Check if user is signed in and update UI accordingly\n FirebaseUser currentUser = mAuth.getCurrentUser();\n\n if (currentUser != null){\n //User is signed in\n updateUI(\"User Signed In\");\n }\n else {\n // User is signed out\n updateUI(\"User Signed Out\");\n }\n\n // Check for existing Google Sign In account, if the user is already signed in\n // the GoogleSignInAccount will be non-null.\n GoogleSignInAccount account = GoogleSignIn.getLastSignedInAccount(this);\n if(account != null) {\n accountEmail = account.getEmail();\n updateUI(account.toString());\n }\n }", "public User(){\n userOptionalInfoList = new ArrayList<>();\n workHistoryList = new ArrayList<>();\n educationHistoryList = new ArrayList<>();\n setState(AccountState.PENDING_APPROVAL);\n }", "@Override\n protected void onStart() {\n checkUserStatus();\n\n super.onStart();\n }", "public void addAchievements(String body, long id,HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {\n\t\tboolean flag = new Tutor().addAchievement(body, id);\n\t\tHttpSession session = request.getSession();\n\t\tString homepage = session.getAttribute(\"Homepage\").toString();\n\t\tif (flag)\n\t\t{\n\t\t\t PrintWriter out = response.getWriter();\n\t\t\t out.println(\"<script>alert('Added achievement');</script>\");\n\t\t\t/* \n\t\t\t RequestDispatcher rd=request.getRequestDispatcher(homepage); \n\t\t\t rd.include(request, response); \n\t\t\t */\n\t\t\t response.sendRedirect(homepage);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t PrintWriter out = response.getWriter();\n\t\t\t out.println(\"<script>alert('Could not Add Achievement');</script>\");\n\t\t\t/* \n\t\t\t RequestDispatcher rd=request.getRequestDispatcher(homepage); \n\t\t\t rd.include(request, response); \n\t\t\t */\n\t\t\t response.sendRedirect(homepage);\n\t\t}\n\t\t\n\t}", "public String[] listAchievements(long id) {\n\t\treturn new Tutor().listAchievements(id);\n\t}", "@Override\n protected void onStart() {\n checkUserStatus();\n super.onStart();\n }", "public void beginTakingPlayers() {\n currentQuestionIndex = 0;\n setGameState(GameState.AWAITING_PLAYERS);\n }", "@Override\n protected void onResume() {\n super.onResume();\n progressBar.show();\n getGoals();\n }", "private void useInventoryByAI() {\n\t\tChampion AI = currentTask.getCurrentChamp();\n\t\tArrayList<Collectible> inventory = ((Wizard)AI).getInventory();\n\t\tif(inventory.size()>0){\n\t\t\tint randomPotion = (int)(Math.random()*inventory.size());\n\t\t\tcurrentTask.usePotion((Potion)inventory.get(randomPotion));\n\t\t}\n\n\t\t\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n\n if(mAuth.getCurrentUser() == null){\n finish();\n startActivity(new Intent(this, MainActivity.class));\n\n }\n }", "private static Achievement createCuistotAchievement(){\n\n ArrayList<String> picturesPaths = new ArrayList<>();\n picturesPaths.add(\"cuistot_none\");\n picturesPaths.add(\"cuistot_bronze\");\n picturesPaths.add(\"cuistot_silver\");\n picturesPaths.add(\"cuistot_diamond\");\n\n ArrayList<String> picturesLabels = new ArrayList<>();\n picturesLabels.add(\"No recipes\");\n picturesLabels.add(\"Starting Chef\");\n picturesLabels.add(\"Casual Chef\");\n picturesLabels.add(\"Legacy Chef\");\n\n ArrayList<Integer> levelSteps = new ArrayList<>();\n levelSteps.add(1);\n levelSteps.add(10);\n levelSteps.add(50);\n\n Function<User, Integer> getUserNbRecipes = u -> u.getRecipes().size();\n\n return new Achievement(\"cuistot\", STANDARD_NB_LEVELS, picturesPaths, picturesLabels, levelSteps, getUserNbRecipes);\n }", "pb4client.AchievementInfo getAchieveInfo(int index);", "private void populateUserView()\n\t{\n\t\t/* create dummy user properties, throw away later */\n\t\tPlayerViewModel userViewModel = new PlayerViewModel(currentUser.getString(\"facebookId\"), \n\t\t\t\t\t\t\t\t\t\tcurrentUser.getString(\"profilePicUrl\")+\"?type=large\", \n\t\t\t\t\t\t\t\t\t\tlocalCountMap.get(currentUser.getString(\"facebookId\")), \n\t\t\t\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\t\t\t\tfalse);\n\t\t\n\t\t/* create adapter for user view */\n\t\tuserCheeseTextView = (TextView) findViewById(R.id.cheeseCountTextView);\n\t\t//userProfileImageView = (ImageView) findViewById(R.id.userProfileImageView);\n\t\tuserProfileImageView = (CircularImageView) findViewById(R.id.userProfileImageView);\n\t\tuserViewAdapter = new UserViewAdapter(this, userCheeseTextView, userProfileImageView);\n\t\t\n\t\t/* set display values via adapter */\n\t\tuserViewAdapter.setUser(userViewModel);\t\t\n\t}", "Response<Achievement> achievementEarned(String achievementId, String username, String uniqueIdentifier);", "void prepareNewActorsIfNeeded(boolean isNext) {\n if (getTotalPhotoPage() <= ACTORS_HOLDER_SIZE) {\n return;\n }\n\n if (isNext) {\n // prepare new ActorNext\n resetActor(getNextPageIndex(), mActorNext);\n mHandler.post(new Runnable() {\n public void run() {\n setPhotoActorContent(getNextPageIndex(), mActorNext);\n }\n });\n } else {\n // prepare new ActorBefore\n resetActor(getPrevPageIndex(), mActorBefore);\n mHandler.post(new Runnable() {\n public void run() {\n setPhotoActorContent(getPrevPageIndex(), mActorBefore);\n }\n });\n }\n }", "public void prepareGame() {\n setInitialPosition();\n\n //Check NickName\n boolean nickNameEstablished = checkNickName();\n if (!nickNameEstablished) {\n Intent intent = new Intent(this, NickNameActivity.class);\n startActivityForResult(intent, NICKNAME_ACTIVITY_REQUEST_CODE);\n } else {\n setDynamicBackground();\n }\n }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (getArguments() != null) {\n username = getArguments().getString(ARG_PARAM1);\n mainUsername = getArguments().getString(ARG_PARAM2);\n authHead = getArguments().getString(ARG_PARAM3);\n pageType = getArguments().getString(ARG_PARAM4);\n }\n\n }", "@Test\n\tpublic void doesCreateNewAchievementsIfFileNotExistsTest()\n\t{\n\t\tClientAchievementManager.initialize(new FileAccessorMock());\n\t\tassertEquals(5, ClientAchievementManager.getAquiredScoreAchievements().size());\n\t\tassertEquals(5, ClientAchievementManager.getPlayedGamesAchievements().size());\n\t\tassertEquals(5, ClientAchievementManager.getWonGamesAchievements().size());\n\t}", "public void updateUserCapabilities() {\n\n currentUser = loginService.getLoggedInUser();\n UserPropertiesDao userPropertiesDao = db.userProperties;\n UserProperties userProperties = userPropertiesDao.findByUserId(currentUser.getId());\n SharedPreferences preferences = Objects.requireNonNull(userCapabilitiesFragment.getPreferenceManager().getSharedPreferences());\n\n userProperties.setHasKids(preferences.getBoolean(\"pref_kids\", false));\n userProperties.setHasCatAllergies(preferences.getBoolean(\"pref_cat_allergy\", false));\n userProperties.setHasDogAllergies(preferences.getBoolean(\"pref_dog_allergy\", false));\n userProperties.setGreenAreas(preferences.getBoolean(\"pref_garden\", false));\n userProperties.setFreeTime(preferences.getBoolean(\"pref_exercise\", false));\n userPropertiesDao.update(userProperties);\n }", "protected static void initUser(User user) throws ApiException, IOException {\n\n\t\tif (questAdmin.getAdminKey() == null\n\t\t\t\t|| questAdmin.getQuestKeys().length == 0) {\n\t\t\tquestAdmin.init(dao);\n\t\t}\n\t\tfor (Quest quest : getQuests(questAdmin.getAdminKey())) {\n\n\t\t\tif (quest != null) {\n\n\t\t\t\tassignQuest(quest, user, false);\n\t\t\t}\n\t\t}\n\n\t}", "private UserAchievementProto(Builder builder) {\n super(builder);\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\n\t\tprgUserData = new ProgressDialog(this);\n\t\tprgUserData.setMessage(getString(R.string.please_wait_uploading));\n\t\tprgUserData.setCancelable(false);\n\n\t\tView decorView = getWindow().getDecorView();\n\t\t// Hide the status bar.\n\t\tint uiOptions = View.SYSTEM_UI_FLAG_FULLSCREEN;\n\t\tdecorView.setSystemUiVisibility(uiOptions);\n\t\t// Remember that you should never show the action bar if the\n\t\t// status bar is hidden, so hide that too if necessary.\n\t\t/*ActionBar actionBar = getActionBar();\n\t\tactionBar.hide();*/\n\n\t\tFileOperations.enableLogging(true); //later can be optional\n\n\t\tIntent it = getIntent();\n\t\tBundle b= it.getExtras();\n\t\ttry{\n\n\t\t\tuserSchool = b.getString(\"schoolname\");\n\n\t\t}catch(Exception ex){\n\n\t\t\tLog.d(\"debug\",\"School name not available\");\n\t\t\tuserSchool = \"\";\n\n\t\t}\n\n\t\tuserlist = (Button) findViewById(R.id.user_list);\n\t\tupsync = (Button) findViewById(R.id.upsync);\n\t\tdownsync = (Button) findViewById(R.id.downsync);\n\t\tdump = (Button) findViewById(R.id.dump);\n\t\tregister = (Button) findViewById(R.id.newUser);\n\n\t\tSchool = (ListView) findViewById(R.id.school_list);\n\n\t\tDB = new Database(this);\n\t\tsDB = new SessionDetailsTable(this);\n\n\n\t\tschools = DB.getSchoolName();\n\n\t\tif(schools ==null){\n\t\t\tschools = new String[1];\n\t\t\tschools[0]=getResources().getString(R.string.no_users_in_db);\t\t\n\n\t\t}\t\n\t\tLog.d(\"debug\",\"School list not null\");\n\n\t\tCustomArrayAdapter adapter = new CustomArrayAdapter(this,schools); \n\t\tSchool.setAdapter(adapter);\n\n\n\t\t//Update view when data changes\n\t\t((CustomArrayAdapter) School.getAdapter()).notifyDataSetChanged(); \n\n\t\tSchool.setOnItemClickListener(this);\n\t\t/*new OnItemClickListener(){\n\n\t\t\t@SuppressWarnings(\"null\")\n\t\t\t@Override\n\n\t\t\tpublic void onItemSelected(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\t// TODO Auto-generated method stub\n\n\t\t\t\tuserSchool = School.getSelectedItem().toString();\n\t\t\t\tuserlist.setEnabled(true);\n\t\t\t\tupsync.setEnabled(true);\n\t\t\t\tdownsync.setEnabled(true);\n\t\t\t\tdump.setEnabled(true);\n\t\t\t\tLog.d(\"debug\",\"Item selected from School list\");\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onNothingSelected(AdapterView<?> parent) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tLog.d(\"debug\",\"No item selected from School list\");\n\t\t\t}\n\n\t\t});*/\n\n\t\t//}\n\n\t\tuserlist.setOnClickListener(this);\n\t\tupsync.setOnClickListener(this);\n\t\tdownsync.setOnClickListener(this);\n\t\tdump.setOnClickListener(this);\n\t\tregister.setOnClickListener(this);\n\n\t\tif(sDB.isPhraseTablePopulated() == false)\n\t\t\tsDB.populatePhrasesTable();\t\n\t\telse\n\t\t\tLog.d(\"xml\",\"phrase table exists\");\n\t\t//int c = sDB.getTotalSessionCount();\n\t\tif(userSchool!=null){\n\n\t\t\tint i;\n\t\t\tfor(i=0; i<schools.length;i++){\n\t\t\t\tif(userSchool.compareToIgnoreCase(schools[i])==0)\n\t\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif(i <schools.length){\n\t\t\t\tCustomArrayAdapter clva = (CustomArrayAdapter) School.getAdapter();\n\t\t\t\tclva.setSelectedIndex(i);\n\t\t\t}\n\n\t\t}\n\n\n\t}", "@Override\n protected void onCreate(final Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n mAsyncQueryHandler = new AsyncQueryHandler(getContentResolver()) {\n };\n setContentView(R.layout.main);\n googlePlayGamesViewFlipper = (ViewFlipper) findViewById(R.id.google_play_games);\n final Button newGameBtn = (Button) findViewById(R.id.new_game);\n newGameBtn.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(final View v) {\n newGame();\n }\n });\n final Button statsBtn = (Button) findViewById(R.id.stats);\n statsBtn.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(final View v) {\n StatsDialogFragment.createInstance(stats).show(getFragmentManager(), \"stats\");\n }\n });\n // Set up sign in button\n final SignInButton signInBtn = (SignInButton) findViewById(R.id.sign_in);\n signInBtn.setOnClickListener(new OnClickListener() {\n @SuppressWarnings(\"synthetic-access\")\n @Override\n public void onClick(final View v) {\n beginUserInitiatedSignIn();\n }\n });\n // Set up Google Play Games buttons\n final Button achievementsBtn = (Button) findViewById(R.id.achievements);\n achievementsBtn.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(final View v) {\n startActivityForResult(getGamesClient().getAchievementsIntent(), REQUEST_ACHIEVEMENTS);\n }\n });\n final Button leaderboardsBtn = (Button) findViewById(R.id.leaderboards);\n leaderboardsBtn.setOnClickListener(new OnClickListener() {\n @Override\n public void onClick(final View v) {\n startActivityForResult(getGamesClient().getAllLeaderboardsIntent(), REQUEST_LEADERBOARDS);\n }\n });\n getLoaderManager().initLoader(0, null, this);\n }", "private void assignAssistants(Player owner, Assistant a) {\n\t\towner.setAssistants(owner.getAssistants() + a.getNumber());\n\t}", "@Override\n protected void onStart() {\n super.onStart();\n FirebaseUser currentUser = mAuth.getCurrentUser(); // get current user\n if(currentUser != null){\n sendToMain(); // sends user to mainactivity\n }\n }", "private void prepareDeal(){\n\t\tdeck.shuffle();\n\t\tplayers.clear(); //Remove any possible rubbish\n\t\tfor(Player p : seatPlayers){\n\t\t\tif(p != null){\n\t\t\t\tList<BlackjackHand> hands = new ArrayList<>();\n\t\t\t\tBlackjackHand hand = new BlackjackHandPlayer();\n\t\t\t\thands.add(hand);\n\t\t\t\thistoricalActions.put(hand, new ArrayList<>());\n\t\t\t\tplayers.put(p, hands);\n\t\t\t}\n\t\t}\n\t\tdealerHand = new BlackjackHandDealer();\n\t}", "java.util.List<pb4client.AchievementInfo> \n getAchieveInfoList();", "private void parseGoal(User user, JSONObject jsonObject) {\n JSONObject goalJsonObject = jsonObject.getJSONObject(\"goal\");\n int targetCalories = goalJsonObject.getInt(\"target calories\");\n int targetProtein = goalJsonObject.getInt(\"target protein\");\n int targetFat = goalJsonObject.getInt(\"target fat\");\n int targetCarbs = goalJsonObject.getInt(\"target carbs\");\n\n user.setCustomGoal(targetCalories,targetProtein,targetFat,targetCarbs);\n }", "private void initAccounts() {\n ((GenesisBlock) DependencyManager.getBlockchain().getGenesisBlock()).getAccountBalances().forEach((key, value) -> {\n Account account = getAccount(key);\n account.addBalance(value);\n });\n DependencyManager.getBlockchain().getChain().getChain().forEach(this::parseBlock);\n }", "@Override\n protected void onStart() {\n super.onStart();\n // RASTREAR USUÁRIO LOGADO (sempre que o usuário fizer login ou logout)\n mAuth.addAuthStateListener(mAuthListener);\n if (mAuth != null) {\n mUser = mAuth.getCurrentUser();\n }\n // RASTREAR USUÁRIO LOGADO *** fim ***\n\n telaCheia(true);\n\n // Animation (Logotipo)\n Animation animation = AnimationUtils.loadAnimation(this, R.anim.translate_top_to_center);\n ImageView mLogo = findViewById(R.id.img_LogoSplash);\n mLogo.setImageResource(R.drawable.te_transp_amarelo);\n mLogo.setAlpha(1.0F);\n mLogo.startAnimation(animation);\n // Animation *** fim ***\n\n // ProgressBar\n /*\n Aqui está sendo utilizada uma interface (ProgressBarInterface) para que possa ser\n tratado o retorno (quando acaba)\n */\n mProgressBar = findViewById(R.id.progressBar);\n textViewPB = findViewById(R.id.textView_Carregando);\n ProgressBarInterface pbi = new ProgressBarInterface() {\n @Override\n // Implementa ação para retorno da ProgressBar\n public void retornoProgressBar(boolean isSucesso, String msg) {\n boolean logado = false;\n String userName = \"\";\n Intent intent;\n // USUÁRIO LOGADO -->> DIRECIONA PARA: intent = InicialTeste\n if (mUser != null) {\n logado = true;\n userName = mUser.getDisplayName();\n intent = new Intent(ScruizActivity.this, InicialTesteActivity.class);\n // USUÁRIO NÃO LOGADO -->> DIRECIONA PARA: intent = Chooser\n } else {\n userName = \"[off-line]\";\n intent = new Intent(ScruizActivity.this, ChooserActivity.class);\n }\n textViewPB.setText(userName);\n telaCheia(false);\n intent.putExtra(\"#usuario\", userName);\n intent.putExtra(\"#logado\", logado);\n startActivity(intent);\n }\n };\n mpb = new MinhaProgressBar(this, mProgressBar, textViewPB, pbi);\n mpb.execute();\n // ProgressBar *** fim ***\n\n }", "@Override\n public void initialize() {\n numPlayers = game().numPlayers();\n haveSeen = new ArrayList<>();\n goldProb = new double[3];\n Probability = new double[numPlayers];\n oldBoard = game().board().copy();\n //sets all of the players to miners at first\n //the lower the value the higher the player is predicted as Saboteur\n for (int i = 0; i < numPlayers; i++) {\n Probability[i] = 0.5;\n haveSeen.add(new int[3]);\n }\n for(int i=0; i<3; i++) {\n //top is 0, middle is 1, bottom is 2\n goldProb[i]=0.1;\n }\n if(role() == Role.SABOTEUR) Probability[index()]=0;\n else if(role() == Role.GOLD_MINER) Probability[index()]=1;\n }", "private void initializeCurrentUser() {\n if (enableLoginActivity && mAuth.getCurrentUser() != null) {\n try {\n initializeUser();\n refreshGoogleCalendarToken();\n } catch (PetRepeatException e) {\n Toast toast = Toast.makeText(this, getString(R.string.error_pet_already_existing),\n Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (mAuth.getCurrentUser() != null) {\n mAuth.getCurrentUser().getIdToken(false).addOnCompleteListener(task -> {\n user.setToken(Objects.requireNonNull(task.getResult()).getToken());\n });\n }\n }\n }", "@Override\n public void onProgressChanged(SeekBar seekBar, int currentParticipants, boolean fromUser) {\n totalParticipants = currentParticipants;\n setParticipants();\n }", "@Override\n public void execute() {\n String nextPlayer = CModel.getInstance().getCurrGame().advancePlayerTurn();\n if(nextPlayer.equals(CModel.getInstance().getMyUser().getUserName())) {\n CModel.getInstance().setCurrGameState(new MyTurn());\n }\n else {\n //update the player stats\n CModel.getInstance().setCurrGameState(new NotMyTurn());\n }\n CModel.getInstance().updatePlayerStatsView();\n }", "public void startTurn() {\n nMovesBeforeGrabbing = 1;\n nMovesBeforeShooting = 0;\n\n if (damages.size() > 2)\n nMovesBeforeGrabbing = 2;\n\n if (damages.size() > 5)\n nMovesBeforeShooting = 1;\n\n playerStatus.isActive = true;\n }" ]
[ "0.5991319", "0.59573615", "0.5862238", "0.57606053", "0.5650534", "0.54807657", "0.5472183", "0.54604614", "0.5458231", "0.54532963", "0.53749204", "0.52679247", "0.52630675", "0.52592206", "0.518778", "0.5184596", "0.5180215", "0.51249355", "0.51221424", "0.5111789", "0.5046467", "0.50313187", "0.5023198", "0.5012237", "0.4945308", "0.49364418", "0.49336478", "0.49281135", "0.49166444", "0.48978668", "0.4897409", "0.488593", "0.48793784", "0.48507735", "0.48230892", "0.48185393", "0.48161826", "0.48124623", "0.47919244", "0.4750085", "0.47486976", "0.47184527", "0.47068533", "0.46813694", "0.46563226", "0.46532416", "0.46393088", "0.46193314", "0.46126074", "0.46093398", "0.46082062", "0.46078694", "0.4606187", "0.4593366", "0.4592148", "0.45916802", "0.45857668", "0.45842826", "0.45773816", "0.4570413", "0.45684984", "0.45679298", "0.4558189", "0.4517165", "0.45096326", "0.45042935", "0.45034763", "0.44981045", "0.448713", "0.44858178", "0.4481157", "0.4478316", "0.44746485", "0.447415", "0.44641757", "0.4458995", "0.44516912", "0.4439946", "0.44382697", "0.44335648", "0.4432218", "0.4430768", "0.4424123", "0.44216368", "0.44205013", "0.44202796", "0.44143206", "0.4407944", "0.44070575", "0.44050252", "0.4403354", "0.4395901", "0.43956077", "0.4394227", "0.43851566", "0.43817657", "0.43806377", "0.4378115", "0.43715414", "0.4369623" ]
0.7756677
0
Prepares current user's tasks overall progression.
private void prepareProgression(User user, HttpServletRequest req, Language lang) { var countedSolvedAndAll = taskService .countProgression(user.getUserId(), lang); req.getSession().setAttribute("currentCountedTasks", countedSolvedAndAll); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void Prepare() {\n\t\tfor(String user: users) {\n\t\t\tbyte[] content = ProcessMsg.serialize(needVote.get(user));\n\t\t\tProjectLib.Message msgSend = new ProjectLib.Message(user,content);\n\t\t\tPL.sendMessage(msgSend);\n\t\t\tneedVote.remove(user);\n\t\t}\n\t}", "protected void startProcessAndCompleteUserTask() {\n runtimeService.startProcessInstanceByKey(\"HistoryLevelTest\");\n Task task = taskService.createTaskQuery().singleResult();\n taskService.complete(task.getId());\n }", "protected void onPreExecute() {\n\t\t\t\tsuper.onPreExecute();\n\t\t\t\tmProgressDialogTeacher = new ProgressDialog(getActivity());\n\t\t\t\tmProgressDialogTeacher.setTitle(getResources().getString(R.string.please_wait));\n\t\t\t\tmProgressDialogTeacher\n\t\t\t\t\t\t.setMessage(getResources().getText(R.string.loading));\n\t\t\t\tmProgressDialogTeacher.setIndeterminate(false);\n\t\t\t\tmProgressDialogTeacher.setCanceledOnTouchOutside(false);\n\t\t\t\tmProgressDialogTeacher.show();\n\t\t\t}", "private void initTaskViews(){\n for (Task t : taskManager.getTasksList()){\n submit(t.getName(), t.getIdInView(), t.getTimeForTask(), t.isFinished());\n }\n }", "@Override\n protected void onPreExecute() {\n myProgress = 0;\n }", "protected void onPreExecute() {\n\t \t\tsuper.onPreExecute();\n\t\t\tmProgressDialogTeacher = new ProgressDialog(getActivity());\n\t\t\tmProgressDialogTeacher.setTitle(getResources().getString(R.string.please_wait));\n\t\t\tmProgressDialogTeacher.setMessage(getResources().getText(R.string.loading));\n\t\t\tmProgressDialogTeacher.setIndeterminate(false);\n\t\t\tmProgressDialogTeacher.setCanceledOnTouchOutside(false);\n\t\t\tmProgressDialogTeacher.show();\n\t\t}", "@Override\n protected void onPreExecute() {\n\n myProgress = 0;\n }", "@Override\n protected void onPreExecute() {\n loading = new LoadingController();\n // Show a progress spinner\n loading.showProgress(UserEditActivity.this, viewLoading, true);\n }", "@Override\n protected void onPreExecute() {\n loading = new LoadingController();\n // Show a progress spinner\n loading.showProgress(UserEditActivity.this, viewLoading, true);\n }", "@Override\n\tpublic void initTask() {\n\t\tRankTempInfo rankInfo = RankServerManager.getInstance().getRankTempInfo(player.getPlayerId());\n\t\tif(rankInfo!=null){\n\t\t\tgetTask().getTaskInfo().setProcess((int)rankInfo.getSoul());\n\t\t}\n\t}", "public void clearFinishedTasks(){\n todayLayout.removeAllViewsInLayout();\n tomorrowLayout.removeAllViewsInLayout();\n weekLayout.removeAllViewsInLayout();\n laterLayout.removeAllViewsInLayout();\n expiredLayout.removeAllViewsInLayout();\n tasksNumber = 0;\n taskManager.updateTasksTimeTag();\n for (Task t : taskManager.getTasksList()){\n t.setIdInView(tasksNumber);\n updateTaskInDatabase(t);\n submit(t.getName(), tasksNumber, t.getTimeForTask(), t.isFinished());\n tasksNumber++;\n }\n }", "public void processTasks (List tasks) {\n if (!allNecessaryAssetsReported()) { // if need subordinates aren't there yet, way 10 seconds\n getAllAssets ();\n delayedTasks.addAll (tasks);\n\n if (logger.isInfoEnabled()) {\n\tlogger.info (getName() + \" - necessary subords have not reported, so waiting \" + waitTime + \n\t\t \" millis to process \" + delayedTasks.size () + \n\t\t \" tasks.\");\n\treportMissingAssets ();\n }\n\n examineBufferAgainIn (waitTime); // wait 10 seconds and check again\n }\n else { // ok, all subords are here, lets go!\n if (logger.isInfoEnabled()) {\n\tlogger.info (getName() + \" - all necessary subords have reported, so processing \" + tasks.size() + \n\t\t \" tasks.\");\n }\n\n tasks.addAll (delayedTasks);\n delayedTasks.clear();\n super.processTasks (tasks);\n }\n }", "public void prepare() {\n this.taskHandler.run(this::inlinePrepare);\n }", "@Override\n public Void doInBackground() {\n Random random = new Random();\n int progress = 0;\n //Initialize progress property.\n super.setProgress(0);\n while (progress < 100) {\n //Sleep for up to one second.\n try {\n Thread.sleep(random.nextInt(1000));\n } catch (InterruptedException ignore) {}\n //Make random progress.\n progress += random.nextInt(10);\n super.setProgress(Math.min(progress, 100));\n }\n return null;\n }", "@Override\n protected void onPreExecute() {\n\n progressDialog = new SafeProgressDialog(PlanningSettings.this);\n progressDialog.setMessage(\"Creating...\");\n progressDialog.setIndeterminate(false);\n progressDialog.setCancelable(true);\n progressDialog.show();\n super.onPreExecute();\n }", "public void myTasks() {\n mMyTasks = true;\n onResume();\n }", "void onTaskPrepare();", "void updateUserSetupCompleteAndPaired() {\n List<UserInfo> users = mUserManager.getAliveUsers();\n final int N = users.size();\n for (int i = 0; i < N; i++) {\n int userHandle = users.get(i).id;\n if (mInjector.settingsSecureGetIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 0,\n userHandle) != 0) {\n DevicePolicyData policy = getUserData(userHandle);\n if (!policy.mUserSetupComplete) {\n policy.mUserSetupComplete = true;\n if (userHandle == UserHandle.USER_SYSTEM) {\n mStateCache.setDeviceProvisioned(true);\n }\n synchronized (getLockObject()) {\n saveSettingsLocked(userHandle);\n }\n }\n }\n if (mIsWatch && mInjector.settingsSecureGetIntForUser(Settings.Secure.DEVICE_PAIRED, 0,\n userHandle) != 0) {\n DevicePolicyData policy = getUserData(userHandle);\n if (!policy.mPaired) {\n policy.mPaired = true;\n synchronized (getLockObject()) {\n saveSettingsLocked(userHandle);\n }\n }\n }\n }\n }", "@Override\n protected void onPreExecute() {\n this.progressDialog.setMessage(\"Adding workouts...\");\n this.progressDialog.show();\n }", "@Override\n protected void onPreExecute() {\n progressDialog = new ProgressDialog(getActivity());\n progressDialog.setTitle(getResources().getString(R.string.please_wait));\n progressDialog.setMessage(getResources().getString(R.string.fetching_data));\n progressDialog.show();\n }", "public abstract void prepareTasks() throws JobException;", "@Override\r\n\tprotected void onPreExecute()\r\n\t{\r\n\t\tprogress = new ProgressDialog(ctx);\r\n\t\tprogress.setTitle(\"Retrieving Parking Information\");\r\n\t\tprogress.setMessage(\"Please wait.\");\r\n\t\tprogress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\r\n\t\tprogress.show();\r\n\t\tsuper.onPreExecute();\r\n\t}", "@Override\n protected void onPreExecute()\n {\n taskCompleted = false;\n\n //display the progress dialog\n showProgressDialog();\n }", "@Override\n\t\t\tpublic void beginTask(String name, int totalWork) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void beginTask(String taskName, int totalWork) {\n nestedBeginTasks++;\n // Ignore nested begin task calls.\n if (nestedBeginTasks > 1) {\n return;\n }\n t0 = System.currentTimeMillis();\n this.taskName = taskName;\n this.totalWork = totalWork;\n // be safe: if the argument would cause math errors (zero or\n // negative), just use 0 as the scale. This disables progress for\n // this submonitor.\n scale = totalWork <= 0 ? 0 : (double) parentTicks / (double) totalWork;\n }", "@Override\n public void start(int totalTasks) {\n }", "@Override\r\n\tpublic void processWorkload() {\n this.spawnUser(periods.get(0).getPeriodStartTimePoint());\t\r\n\t}", "public ManageTasksUI(int userLoggedInID) {\n this.userLoggedInID = userLoggedInID;\n initComponents();\n fillInUserTaskList(userLoggedInID);\n fillInUnAllocatedTaskList(userLoggedInID);\n }", "private void setupProjectIncompleteDripFlow() {\n List<DProjects> projects = AppConfig.getInstance().getdProjectsDAO().findAllInternal();\n if (projects == null || projects.isEmpty()) return;\n\n // 5 days old project created\n Date recentEnoughProjectAccessed = new Date(lastRunDate.getTime() - 5*ONE_DAY_MILISEC);\n\n //3 days old login.\n Date recentEnoughLoginTime = new Date(lastRunDate.getTime() - 3*ONE_DAY_MILISEC);\n\n // one notification per user is enough.\n Map<DUsers, DProjects> userProjectMap = new HashMap<>();\n // find projects which are not complete.\n for (DProjects project : projects) {\n\n // ignore old projects (accessed older than 5 days), they may be already in the flow.\n if (lastAccessTime(project).before(recentEnoughProjectAccessed)) {\n continue;\n }\n\n ProjectDetails details = Controlcenter.getProjectSummary(project);\n long totalDone = details.getTotalHitsDone() + details.getTotalHitsSkipped();\n // if > 70% done, then ignore.\n if (details.getTotalHits() == 0 || (totalDone/(double)details.getTotalHits()) < .70) {\n // Find all the project users.\n List<DProjectUsers> projectUsers = AppConfig.getInstance().getdProjectUsersDAO().findAllByProjectIdInternal(project.getId());\n if (projectUsers == null || projectUsers.isEmpty()) break;\n\n for (DProjectUsers projectUser : projectUsers) {\n //not sending to contributors as we add everyone to default projects,\n // would be sad to send them mail asking them to finish Default projects.\n if (projectUser.getRole() == DTypes.Project_User_Role.OWNER) {\n DUsers user = AppConfig.getInstance().getdUsersDAO().findByIdInternal(projectUser.getUserId());\n //if the user has not logged in anytime soon.\n if (user != null && user.getUpdated_timestamp().before(recentEnoughLoginTime)) {\n userProjectMap.put(user, project);\n }\n }\n }\n }\n }\n LOG.info(\"setupProjectIncompleteDripFlow userProjectMap = \" + userProjectMap.size());\n DripFlows.addToProjectIncompleteFlow(userProjectMap);\n\n }", "public final void execute() {\n\t\tLogUtils.i(TAG, \"execute\");\n\t\tpurelySetState(TaskState.Preparing);\n\t\tTaskQueue.addTask(this);\n\t}", "@Override\n protected void onPreExecute() {\n this.progressDialog.setMessage(\"Retrieving workouts list...\");\n this.progressDialog.show();\n }", "public void setupTask(TaskAttemptContext context) throws IOException {\n }", "private void populateUserProfile() {\n setProfilePic();\n mDisplayNameTextView.setText(user.getName());\n mUsernameTextView.setText(String.format(\"@%s\", user.getUsername()));\n mBioTextView.setText(user.getBio());\n setAdapterForUserStories();\n\n new Thread(new Runnable() {\n public void run(){\n setFollowingCount();\n setFollowersCount();\n setStoriesCount();\n queryStoriesFromUser();\n }\n }).start();\n }", "public static void resetGlobals(int numTasks){\n time = 0;\n terminatedCount = 0;\n removeSet.clear();\n resourceArr = maxResourceArr.clone();\n releaseArr = new int [numResources];\n taskPointers = new int [numTasks];\n taskList = bankersTaskList;\n waitingList.clear();\n\n }", "public void prepareForDeferredProcessing() {\n\n }", "private void setupHitsDoneDripFlow() {\n List<DUsers> users = AppConfig.getInstance().getdUsersDAO().findAllInternal();\n if (users == null || users.isEmpty()) return;\n\n List<DUsers> usersWhoRecentlyCompletedHits = new ArrayList<>();\n for (DUsers user: users) {\n List<DHitsResult> userHits = AppConfig.getInstance().getdHitsResultDAO().findAllByUserIdInternal(user.getId());\n\n // people who would have crossed 100 hits in the last run (some might have done a long time back, don't re-add them.\n // Checking when they did the latest hit, if it was in the last interval then they might have\n // crossed 100 in the last interval unless they have been\n // continuosly using and then might already have done more than 500 hits (these might already be in flow in some previous interval).\n if (userHits != null && userHits.size() > 100 && userHits.size() < 500) {\n Date latestHitDone = userHits.get(0).getUpdated_timestamp();\n for (DHitsResult hitsResult : userHits) {\n if (hitsResult.getUpdated_timestamp().after(latestHitDone)) {\n latestHitDone = hitsResult.getUpdated_timestamp();\n }\n }\n\n if (latestHitDone.after(lastRunDate)) {\n usersWhoRecentlyCompletedHits.add(user);\n }\n }\n }\n\n LOG.info(\"setupHitsDoneDripFlow usersWhoRecentlyCompletedHits = \" + usersWhoRecentlyCompletedHits.size());\n if (usersWhoRecentlyCompletedHits.isEmpty()) return;\n\n DripFlows.removeFromSignInFlow(usersWhoRecentlyCompletedHits);\n DripFlows.addToManyHitsDownFlow(usersWhoRecentlyCompletedHits);\n }", "@Override\n\tpublic void preExecution() {\n\t\tshowProgressBar();\n\t}", "@Override\n protected Void doInBackground(Void... params) {\n while (myProgress < 100) {\n myProgress++;\n publishProgress(myProgress);\n SystemClock.sleep(50);\n }\n return null;\n }", "public void setProgress(final int percentage, final String user) {\r\n\t\tif (this.statusBar != null) {\r\n\t\t\tif (this.progressBarUser == null || user == null || this.progressBarUser.equals(user)) {\r\n\t\t\t\tif (percentage > 99 | percentage == 0)\r\n\t\t\t\t\tthis.progressBarUser = null;\r\n\t\t\t\telse\r\n\t\t\t\t\tthis.progressBarUser = user;\r\n\r\n\t\t\t\tif (Thread.currentThread().getId() == DataExplorer.application.getThreadId()) {\r\n\t\t\t\t\tthis.statusBar.setProgress(percentage);\r\n\t\t\t\t\tif (this.taskBarItem != null) {\r\n\t\t\t\t\t\tif (user == null)\r\n\t\t\t\t\t\t\tthis.taskBarItem.setProgressState(SWT.DEFAULT);\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\tthis.taskBarItem.setProgressState(GDE.IS_MAC ? SWT.PAUSED : SWT.NORMAL);\r\n\r\n\t\t\t\t\t\tthis.taskBarItem.setProgress(percentage);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tGDE.display.asyncExec(new Runnable() {\r\n\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\tDataExplorer.this.statusBar.setProgress(percentage);\r\n\t\t\t\t\t\t\tif (DataExplorer.this.taskBarItem != null) {\r\n\t\t\t\t\t\t\t\tif (user == null)\r\n\t\t\t\t\t\t\t\t\tDataExplorer.this.taskBarItem.setProgressState(SWT.DEFAULT);\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t\tDataExplorer.this.taskBarItem.setProgressState(GDE.IS_MAC ? SWT.PAUSED : SWT.NORMAL);\r\n\r\n\t\t\t\t\t\t\t\tDataExplorer.this.taskBarItem.setProgress(percentage);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t\t\t}\r\n\t\t\t\tthis.progessPercentage = percentage;\r\n\t\t\t\tif (percentage >= 100) DataExplorer.this.resetProgressBar();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void resetTask() {}", "public TaskManager() {\n\t\tcompletedTasks = new ArrayList<Tasks>();\n\t}", "private void setUpProgressBar() {\n DatabaseHelper database = new DatabaseHelper(this);\n Cursor cursor = database.getAllDataForScavengerHunt();\n\n int totalLocationCount = 0;\n double visitedCount = 0;\n\n while (cursor.moveToNext()) {\n totalLocationCount++;\n int visited = cursor.getInt(cursor.getColumnIndex(database.COL_VISITED));\n if (visited == 1) visitedCount++;\n }\n\n int progress = (int) (visitedCount / totalLocationCount * 100);\n ProgressBar progressBar = findViewById(R.id.progress);\n TextView progressText = findViewById(R.id.progress_text);\n progressBar.setProgress(progress);\n progressText.setText(\" \" + progress + \"%\");\n }", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n /*mProgress.setMessage(\"Please Wait\");\n mProgress.show();\n mProgress.setCancelable(false);*/\n }", "@Override\n public void addTasksToRun() {\n //gets the tasks that are ready for execution from the list with new tasks\n List<Task> collect = tasks.stream().filter((task) -> (task.getDate() == TIME))\n .collect(Collectors.toList());\n //sort the tasks inserted. The sort is based in \"priority\" value for all the tasks.\n collect.sort(new Comparator<Task>() {\n @Override\n public int compare(Task o1, Task o2) {\n return o1.getPriority() - o2.getPriority();\n }\n });\n //Change the status of tasks for READY\n collect.stream().forEach((task) -> {\n task.setStatus(Task.STATUS_READY);\n });\n //Adds the tasks to the queue of execution\n tasksScheduler.addAll(collect);\n\n //Removes it from list of new tasks\n tasks.removeAll(collect);\n }", "void Assignment(Task[] taskList) {\n quickSort(taskList, 0, taskList.length - 1); //sorts from largest-greatest, not dong that\r\n\r\n //INITIALIZE VARIABLES\r\n for (int i = 0; i < taskList.length; i++) {\r\n taskList[i].index = new int[numProcessors]; //which processor its on\r\n taskList[i].f = new double[numProcessors]; //amount on a processor\r\n taskList[i].lag = new double[numProcessors];\r\n taskList[i].numMigrations = 0; //numMigrations\r\n for (int k = 0; k < numProcessors; k++) {\r\n taskList[i].f[k] = -1;\r\n taskList[i].index[k] = -1;\r\n taskList[i].lag[k] = -10;\r\n }\r\n\r\n taskList[i].identifier = i;\r\n }\r\n\r\n int i = 0;\r\n int j = 0;\r\n double tempUtilization = 0;\r\n\r\n while (i < taskList.length) {\r\n //assign utilization to tasks\r\n if (taskList[i].utilization <= (1 - servers[j].utilization) && taskList[i].index[0] < 0) {\r\n //there is room to add it to this processor\r\n servers[j].utilization = taskList[i].utilization;\r\n\r\n //change parameters to represent fixed status\r\n taskList[i].utilization = 0;\r\n taskList[i].fixed = true; //not migrating task\r\n taskList[i].index[0] = j;\r\n taskList[i].numMigrations = 1;\r\n taskList[i].f[j] = 1;\r\n\r\n } else if (taskList[i].utilization <= (1 - servers[j].utilization) && taskList[i].index[0] > -1) {\r\n //this will be a migrating task, that ends now.\r\n\r\n taskList[i].f[j] = (taskList[i].utilization) / tempUtilization; //should be accurate f\r\n\r\n int k = 0; //get appropiate place in index to add to\r\n while (taskList[i].index[k] > -1) {\r\n k++;\r\n taskList[i].fixed = false;\r\n }\r\n taskList[i].index[k] = j;\r\n servers[j].utilization = servers[j].utilization + taskList[i].utilization;\r\n\r\n taskList[i].utilization = 0;\r\n taskList[i].fixed = false; //migrating task\r\n taskList[i].numMigrations++;\r\n\r\n } else if ((1 - servers[j].utilization == 0)) {\r\n //skip this processor, dont record its numMigrations or index\r\n } else if (taskList[i].utilization > (1 - servers[j].utilization)) {\r\n\r\n //this will be a migrating task, that fills the processor, but doesnt finish\r\n taskList[i].f[j] = (1 - servers[j].utilization) / tempUtilization; //should be accurate f\r\n\r\n int k = 0; //get appropiate place in index to add to\r\n while (taskList[i].index[k] > -1) {\r\n k++;\r\n }\r\n taskList[i].index[k] = j;\r\n taskList[i].utilization = taskList[i].utilization - (1 - servers[j].utilization);\r\n servers[j].utilization = 1;\r\n taskList[i].numMigrations++;\r\n\r\n }\r\n //Move processors\r\n j++;\r\n j = j % numProcessors; //cycle through\r\n\r\n if (taskList[i].utilization <= 0) { //maybe change after testing\r\n i++; //advance through\r\n if (i < taskList.length) {\r\n tempUtilization = taskList[i].utilization;\r\n }\r\n\r\n }\r\n }\r\n\r\n this.Tasks = taskList;\r\n\r\n //this fixes the number of \r\n for (i = 0; i < taskList.length; i++) {\r\n\r\n for (int k = 0; k < taskList[i].numMigrations; k++) {\r\n\r\n taskList[i].lag[taskList[i].index[k]] = 0;\r\n }\r\n\r\n }\r\n\r\n }", "@Override\n\tpublic void onTaskPreExecute() {\n\t\tLog.i(TAG, \"pre executing\");\n\t}", "@Override\r\n\t\t protected void onPreExecute() {\n \t\tprogress= ProgressDialog.show(\r\n \t\t\t\tDetailProgramActivity.this, \r\n \t\t\t\t\"\", \r\n \t\t\t\tgetString(R.string.loading_data), \r\n \t\t\t\ttrue);\r\n \t}", "@Override\n protected void onPreExecute() {\n progressBar.setProgress(0);\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n pDialog = new ProgressDialog(getActivity());\n pDialog.setMessage(\"Please wait...\");\n pDialog.setCancelable(false);\n pDialog.setIndeterminate(false);\n pDialog.setMax(100);\n pDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n pDialog.show();\n// progressBar.setVisibility(View.VISIBLE);\n// progressBar.setProgress(0);\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n progress = new ProgressDialog(hostContext);\n progress.setMessage(\"Wait while books are being downloaded...\");\n progress.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progress.show();\n }", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\r\n\t\t\tivProfileProgress.setVisibility(View.VISIBLE);\r\n\t\t}", "@Override\n protected void onPreExecute() {\n Log.e(TAG, \"onPreExecute\");\n\n // showing the ProgressBar \n //simpleWaitDialog = ProgressDialog.show(settingslistactivity.this, \"loading records from datastore...\", \"excecuting task...\");\n //simpleWaitDialog.setCancelable(true);\n\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n Log.e(TAG, \"onPreExecute\");\n\n // showing the ProgressBar \n //simpleWaitDialog = ProgressDialog.show(settingslistactivity.this, \"loading records from datastore...\", \"excecuting task...\");\n //simpleWaitDialog.setCancelable(true);\n\n super.onPreExecute();\n }", "@Override\n\tprotected void onPreExecute() {\t\t\n\t\t// setup dialog\n\t\tif (dialog!=null){\n\t\t\tdialog.setProgress(0);\n\t\t\tdialog.setMessage(\"Initialized\");\n\t\t}\n\t\t\n\t\tif (callback!=null){\n\t\t\tcallback.onTaskUpdate(null, 0);\n\t\t}\n\t}", "@Override\n \t\tprotected Void doInBackground(Void... params) \n \t\t{\n \t\t\ttry \n \t\t\t{\n \t\t\t\twhile(m_progress < 100) {\n \t\t\t\t\t//Get the current thread's token\n \t\t\t\t\tsynchronized (this) \n \t\t\t\t\t{\n \t\t\t\t\t\tthis.wait();\n \t\t\t\t\t\t//Set the current progress. \n \t\t\t\t\t\t//This value is going to be passed to the onProgressUpdate() method.\n \t\t\t\t\t\tpublishProgress(m_progress);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t} \n \t\t\tcatch (InterruptedException e) \n \t\t\t{\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t\treturn null;\n \t\t}", "public void postponeNext()\n {\n\tif (toDo.size() > 0)\n\t {\n\t\tTask t = toDo.get(0);\n\t\ttoDo.remove(0);\n\t\ttoDo.add(t);\n\t }\n }", "@Override\n protected void onPreExecute() {\n progressDialog.setMessage(\"Creating Account...\");\n progressDialog.show();\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute(){\n //do before task doing in background\n }", "protected void onPreExecute() {\n // Display the progress dialog on async task start\n // mProgressDialog.show();\n }", "public int addTaskToDoneGrid(InProgress inProgress) {\n try {\n return jdbcTemplate.update(\"INSERT INTO done (`task_details`, `finish_date`, `difficulty`) VALUES (?,?,?) \",\n inProgress.getTaskDetails(), inProgress.getFinishDate(),inProgress.getDifficultyLevel());\n } catch (Exception e) {\n return 0;\n }\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\tprogressDialog = new ProgressDialog(ListActivity.this);\n\t\t\tprogressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n\n\t\t\tprogressDialog.setMessage(\"Loading Programs. .\");\n\t\t\tprogressDialog.setCancelable(false);\n\n\t\t\tprogressDialog.show();\n\t\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tsuper.onPreExecute();\n\t\t\ttoggleShowProgressDialog(true);\n\t\t}", "@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 saveProgress() {\n\t\tsaveUsers();\n\t\tsaveMaterials();\n\t\tsaveBorrowings();\n\t}", "@Override\r\n protected void onPreExecute() {\n if( progressDialog == null ) {\r\n progressDialog = ProgressDialog.show( context, context.getString(R.string.pref_sync_callings_now_title),\"\");\r\n }\r\n }", "@Override\n protected void onPreExecute() {\n progressDialog.setProgress(0);\n //progressBar.setProgress(0);\n super.onPreExecute();\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tprogressDialog = ProgressDialog.show(MainActivity.this, \"\",\n\t\t\t\t\t\"Loading...\");\n\t\t}", "@Override\n\t protected void onPreExecute() {\n\t super.onPreExecute();\n\t progressBar.setProgress(0);\n\t }", "@Override\n protected void onPreExecute()\n {\n // Create a new progress dialog\n progressDialog = new ProgressDialog(MainActivity.this);\n // Set the progress dialog spinner progress bar\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n // Set the dialog title to 'Loading...'\n progressDialog.setTitle(\"Loading...\");\n // Set the dialog message to 'Loading application View, please wait...'\n progressDialog.setMessage(\"Loading application, please wait...\");\n // This dialog can't be canceled by pressing the back key\n progressDialog.setCancelable(false);\n // This dialog isn't indeterminate\n progressDialog.setIndeterminate(false);\n // The maximum number of items is 100\n progressDialog.setMax(100);\n // Set the current progress to zero\n progressDialog.setProgress(0);\n // Display the progress dialog\n progressDialog.show();\n }", "@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}", "public void actions() {\n\t\t\tProvider p = array_provider[theTask.int_list_providers_that_tried_task.get(0)];\n\t\t\t\n\t\t\t//there is a percentage of probability that the user will fail to complete the task\n\t\t\tif(random.draw((double)PERCENTAGE_TASK_FAILURE/100)){ // SUCCESS\n\n\t\t\t\ttot_success_tasks++;\n\t \tthrough_time += time() - theTask.entryTime;\n\t\t\t\ttheTask.out();\n\t\t\t\t\n\t\t\t\tif(FIXED_EARNING_FOR_TASK) earning_McSense = earning_McSense + FIXED_EARNING_VALUE;\n\t\t\t\telse {\n\n\t\t\t\t\t//Provider p = (Provider) theTask.providers_that_tried_task.first();\n\t\t\t\t\tearning_McSense = earning_McSense + (p.min_price*PERCENTAGE_EARNING)/100;\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t\n\t\t\telse { // FAILURE\n\t\t\t\t//we should check again and if the check fails insert the task in rescheduled_waiting\n\t\t\t\ttheTask.into(taskrescheduled);\n\t\t\t\ttot_failed_tasks++;\n\t\t\t\t//new StartTaskExecution(theTask).schedule(time());\n\n\t\t\t}\n\t\t\t// the provider frees one slot\n\t\t\tp.number_of_task_executing--;\n\t\t\ttot_scheduled_completed_in_good_or_bad_tasks++;\n\n \t}", "@Override\n \t\tprotected void onPreExecute() \n \t\t{\n \t\t\t//Create a new progress dialog\n \t\t\tprogressDialog = new ProgressDialog(MainActivity.this);\n \t\t\t//Set the progress dialog to display a horizontal progress bar \n \t\t\tprogressDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n \t\t\t//Set the dialog title to 'Loading...'\n \t\t\tprogressDialog.setTitle(\"Loading Game...\");\n \t\t\t//Set the dialog message to 'Loading application View, please wait...'\n \t\t\tprogressDialog.setMessage(\"Please wait...\");\n \t\t\t//This dialog can't be canceled by pressing the back key\n \t\t\tprogressDialog.setCancelable(false);\n \t\t\t//This dialog isn't indeterminate\n \t\t\tprogressDialog.setIndeterminate(false);\n \t\t\t//The maximum number of items is 100\n \t\t\tprogressDialog.setMax(100);\n \t\t\t//Set the current progress to zero\n \t\t\tprogressDialog.setProgress(0);\n \t\t\t//Display the progress dialog\n \t\t\tprogressDialog.show();\n \t\t}", "public void prepareFreezingTaskBounds() {\n for (int stackNdx = this.mTaskStackContainers.getChildCount() - 1; stackNdx >= 0; stackNdx--) {\n ((TaskStack) this.mTaskStackContainers.getChildAt(stackNdx)).prepareFreezingTaskBounds();\n }\n }", "@Override\n\tprotected void onPreExecute() {\n\t\tUtils.showProcessingDialog(_context);\n\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);\n progressDialog.setMessage(\"Please wait. Loading...\");\n progressDialog.setCanceledOnTouchOutside(false);\n progressDialog.show();\n }", "@Override\n\t\t\tprotected void onPreExecute() {\n\t \t\tprogressBar = new ProgressDialog(SiQuoiaLeaderboardActivity.this);\n\t\t\t\tprogressBar.setIndeterminate(true);\n\t\t\t\tprogressBar.setCancelable(false);\n\t\t\t\tprogressBar.setMessage(\"Getting Leaderboard.\");\n\t\t\t\tprogressBar.show();\t\t\t\n\t\t\t}", "public void beginTakingPlayers() {\n currentQuestionIndex = 0;\n setGameState(GameState.AWAITING_PLAYERS);\n }", "void prepareForExecution(boolean alwaysPopulateWorkGraph);", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n\n mprogress = new ProgressDialog(LoginActivity.this);\n mprogress.setTitle(\"Checking/Downloading Update.\");\n mProgress.setMessage(\"Please Wait\");\n mprogress.setCancelable(false);\n mprogress.setIndeterminate(false);\n mprogress.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL);\n mprogress.setMax(100);\n mprogress.show();\n\n\n }", "@Override\n protected void onPreExecute() {\n\n dialog = new ProgressDialog(AddFoodAdvActivity.this);\n dialog.setMessage(\"Please Wait...!\");\n dialog.show();\n super.onPreExecute();\n }", "@Override\n protected void onPreExecute() {\n Utils.showProcessingDialog(_context);\n }", "@SuppressLint(\"NewApi\") @Override\n\t\t\t\t\tprotected void onPreExecute() {\n\t\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t\t\t// Shows Progress Bar Dialog and then call doInBackground method\n\t\t\t\t\t\tshowDialog(progress_bar_type);\n\t\t\t\t\t\t\n\t\t\t\t\t\tprgDialog.setProgress(0);\n\t\t\t\t\t\t\n\t\t\t\t\t\t// \n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t// ===============================================\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}", "@PostConstruct\n public void setUpTasks() {\n final Iterable<Task> findAll = taskService.findAll();\n if (findAll != null) {\n findAll.forEach(task -> {\n\n final RunnableTask runnableTask = new RunnableTask(task.getId(), runTaskService);\n\n if (task.getCronExpression() != null) {\n log.info(\"Adding cron schedule for {} : {}\", task.getId(), task.getCronExpression());\n threadPoolTaskScheduler.schedule(runnableTask, new CronTrigger(task.getCronExpression()));\n }\n else if (task.getDelayPeriod() > 0) {\n log.info(\"Adding periodic schedule for {} : {}\", task.getId(), task.getDelayPeriod());\n threadPoolTaskScheduler.schedule(runnableTask, new PeriodicTrigger(task.getDelayPeriod()));\n }\n else {\n log.error(\"Invalid task {}\", task.getId());\n }\n\n });\n }\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tshowLoadingProgressDialog();\n\t\t}", "private void getTasks(){\n\n currentFirebaseUser = FirebaseAuth.getInstance().getCurrentUser();\n if(currentFirebaseUser !=null){\n Log.e(\"Us\", \"onComplete: good\");\n } else {\n Log.e(\"Us\", \"onComplete: null\");\n }\n\n\n mDatabaseReference.child(currentFirebaseUser.getUid())\n .addValueEventListener(new ValueEventListener() {\n //если данные в БД меняются\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n if (mTasks.size() > 0) {\n mTasks.clear();\n }\n for (DataSnapshot postSnapshot : dataSnapshot.getChildren()) {\n Task task = postSnapshot.getValue(Task.class);\n mTasks.add(task);\n if (mTasks.size()>2){\n\n }\n }\n setAdapter(taskId);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n\n });\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t Toast.makeText(getBaseContext(),\"Task Completed\",Toast.LENGTH_LONG).show();\n\t progressStatus=0; \n\t myProgress=0;\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n protected void onPreExecute() {\n super.onPreExecute();\n pdia = new ProgressDialog(SignUpActivity.this);\n pdia.setMessage(\"Loading...\");\n pdia.show();\n pdia.setCancelable(false);\n }", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tmainProBar.setVisibility(ProgressBar.VISIBLE);\n\t\t\tToast.makeText(MainActivity.this, \"Fetching news list ...\", 500).show();\n\t\t}", "public void sortTasks() {\n tasks.sort(null);\n }", "public void doPreSaveActions() {\n\t\tcalculateBlockedPartitions();\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n\n // Don't retrieve tasks if it's still running\n if (mTaskRetriever != null) {\n return;\n }\n\n // get tasks\n mTaskRetriever = new TaskRetriever();\n mTaskRetriever.execute((Void) null);\n }", "public void processUserRequest() throws AbortException {\n\t\tthis.waitIfPauseRequested() ;\n\t\tthis.abortOnRequested();\n\t}", "@Override\n\t\tprotected void onPreExecute() {\n\t\t\tmyDialog = ProgressDialog.show\n\t\t\t\t\t(\n\t\t\t\t\t\t\tgetActivity(),\n\t\t\t\t\t\t\t\"Loading...\",\n\t\t\t\t\t\t\t\"Please Wait\",\n\t\t\t\t\t\t\ttrue\n\t\t\t\t\t\t\t);\n\t\t}", "@Override\n\tpublic void preExecuteTask(Task t,Map context) {\n\t\tlog.info(\"Task Id:\"+t.getTaskId()+\"--Task Name:\"+t.getTaskName()+\"--Task begin execute!\");\n\t}", "protected void resumePausedTasks() {\n synchronized (this.lifecycleMonitor) {\n if (!this.pausedTasks.isEmpty()) {\n for (Iterator<?> it = this.pausedTasks.iterator(); it.hasNext(); ) {\n Object task = it.next();\n try {\n doRescheduleTask(task);\n it.remove();\n if (logger.isDebugEnabled()) {\n logger.debug(\"Resumed paused task: \" + task);\n }\n } catch (RuntimeException ex) {\n logRejectedTask(task, ex);\n // Keep the task in paused mode...\n }\n }\n }\n }\n }", "@Override\r\n\t\tprotected void onPreExecute() {\n\t\t\trefreshMenuItem.setActionView(R.layout.action_progressbar);\r\n\r\n\t\t\trefreshMenuItem.expandActionView();\r\n\t\t}", "public TaskBookBuilder addUnfinishedTasks() {\n addUnfinishedFloatingTasks();\n addUnfinishedDeadlineTasks();\n addUnfinishedEventTasks();\n return this;\n }", "protected void onPreExecute() {\r\n \tdialog = new ProgressDialog(context);\r\n \t\tdialog.setMessage(\"Loading...\");\r\n \t\tdialog.show();\r\n }", "protected abstract void createTasks();", "public void completeTask()\n throws NumberFormatException, NullPointerException, IndexOutOfBoundsException {\n System.out.println(LINEBAR);\n try {\n int taskNumber = Integer.parseInt(userIn.split(\" \")[TASK_NUMBER]);\n\n int taskIndex = taskNumber - 1;\n\n tasks.get(taskIndex).markAsDone();\n storage.updateFile(tasks.TaskList);\n System.out.println(\"Bueno! The following task is marked as done: \\n\" + tasks.get(taskIndex));\n } catch (NumberFormatException e) {\n ui.printNumberFormatException();\n } catch (NullPointerException e) {\n ui.printNullPtrException();\n } catch (IndexOutOfBoundsException e) {\n ui.printIndexOOBException();\n }\n System.out.println(LINEBAR);\n }" ]
[ "0.5800983", "0.56687033", "0.5546875", "0.54977185", "0.5456486", "0.54549867", "0.5428783", "0.5426357", "0.5426357", "0.54153067", "0.5412494", "0.54052436", "0.5378593", "0.53755486", "0.53589237", "0.53385806", "0.5309768", "0.52986944", "0.5295171", "0.52887183", "0.5287443", "0.5274174", "0.52698636", "0.5264779", "0.5211435", "0.5205099", "0.5164486", "0.51499873", "0.5116297", "0.5111462", "0.50977516", "0.50933176", "0.5081188", "0.5077286", "0.5068185", "0.505428", "0.5052705", "0.5050441", "0.50502604", "0.5048854", "0.5046183", "0.50429076", "0.5029121", "0.5026404", "0.50185925", "0.5009175", "0.5004031", "0.4998492", "0.4988188", "0.498638", "0.49850506", "0.497161", "0.497161", "0.49658692", "0.4955777", "0.49430677", "0.4942585", "0.49399522", "0.49394235", "0.49275142", "0.49255684", "0.49227828", "0.49173763", "0.4915609", "0.49116334", "0.49081904", "0.4903971", "0.4896889", "0.48887122", "0.4886908", "0.4878261", "0.4872795", "0.48622045", "0.48601568", "0.48596174", "0.4857585", "0.48567042", "0.48566648", "0.48544833", "0.4851523", "0.48506263", "0.48495188", "0.4842324", "0.48385113", "0.48347548", "0.48339546", "0.4832283", "0.48315093", "0.48299524", "0.48258358", "0.48228183", "0.48200732", "0.48193315", "0.48183015", "0.48138988", "0.48119363", "0.4810356", "0.48074892", "0.4806242", "0.4801023" ]
0.7165815
0
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 Gradiliste)) { return false; } Gradiliste other = (Gradiliste) object; if ((this.idGradiliste == null && other.idGradiliste != null) || (this.idGradiliste != null && !this.idGradiliste.equals(other.idGradiliste))) { 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
Constructor. NOTE: Please use RequestUtils.decodeParameters() if you wish to properly decode a request URL.
public ValueMap(final String keyValuePairs) { this(keyValuePairs, ","); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Request() {}", "private Request() {}", "public HTTPGetUtility(String requestURL) {\n super(requestURL, \"GET\");\n }", "private HttpRequestRouterParametersMap(final HttpRequest request) {\n super();\n this.request = request;\n }", "private Request() {\n initFields();\n }", "public Klient(String urlParameters) {\n url = baseURL + \"?\" + urlParameters;\n }", "public Request(){\n\t\tthis(null, null, null);\n\t}", "public HttpRequest(URL url) throws IOException {\r\n this(url.openConnection());\r\n }", "public HTTPUtility(String requestURL, String method) {\n this.requestURL = requestURL;\n this.method = method;\n }", "public UBERequest() {\r\n }", "public Request() {\n }", "private WebRequest() {\n initFields();\n }", "public HttpRequest(String urlString) throws IOException {\r\n this(new URL(urlString));\r\n }", "public Request() {\n\n }", "public PostRequest(String urlParameters) {\n this.urlParameters = urlParameters;\n }", "public RequestPacket(double version, String method, String url) {\n super(version);\n this.method = Method.valueOf(method);\n this.url = url;\n }", "@Override\n\tpublic void initRequest() {\n\n\t}", "public Http()\n {\n numberOfParameters = -1;\n }", "private BaseRequest(int method, String url, @Nullable Response.Listener<T> listener,\n @Nullable Response.ErrorListener errorListener) {\n super(method, url, errorListener);\n this.listener = listener;\n }", "public GWIRequest(int method, Map<String, String> params,\n String url, Object request,\n Type resType,\n Response.Listener<R> listener,\n Response.ErrorListener errorListener) {\n super(method, url, errorListener);\n mParams = params;\n mBodyRequest = request;\n this.mResType = resType;\n this.mListener = listener;\n mGson = new GsonBuilder().registerTypeAdapter(Date.class, new DotNetDateAdapter()).setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE)\n .create();\n }", "public CalculationRequest(String rawRequest_)\n\t{\n\t\trawRequest = rawRequest_;\n\t}", "public FellowCommuReq() {\n super();\n setRequestUrl(\"FellowCommuReq\");\n }", "MovilizerRequest getRequestFromString(String requestString);", "public GWIRequest(int method, Map<String, String> params,\n String url, Object request,\n Type resType,\n Response.Listener<R> listener,\n Response.ErrorListener errorListener, Gson gson) {\n super(method, url, errorListener);\n mParams = params;\n mBodyRequest = request;\n this.mResType = resType;\n this.mListener = listener;\n if (gson == null) {\n mGson = new GsonBuilder().registerTypeAdapter(Date.class,\n new DotNetDateAdapter()).setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE).create();\n } else {\n mGson = gson;\n }\n }", "public Request(IHTTPSession session, ArrayList<String> params) {\n\t\tthis.session = session;\n\t\tthis.params = params;\n\t}", "public WMS100MapRequest() {\n\n }", "public HttpRequest(HttpRequestBuilder builder){\r\n mUrl = builder.Url;\r\n mMethodType = builder.MethodType;\r\n mCallback = builder.Callback;\r\n mJsonRequestParams = builder.JsonRequestParams;\r\n }", "public Request(final FullHttpRequest request) {\n this.request = request;\n }", "public RequestParams(final String key, final String value) {\n this(new HashMap<String, String>() {\n {\n put(key, value);\n }\n });\n }", "public Request(String requestType, ArrayList<String> requestParameters) {\n this.requestType = requestType;\n this.requestParameters = requestParameters;\n }", "private URLHelper() {\n\n }", "protected BaseErrorRequest(final byte[] request) {\n super(request);\n this.errorDescription = null;\n }", "public HttpPoster(final String url, final String requestData) {\n\t\tsuper(url, HttpMethod.POST, requestData);\n\t}", "@Override\n\tpublic String init_request() {\n\t\treturn null;\n\t}", "public URIParameters() {\r\n this._parameters = new HashMap<String, String[]>();\r\n }", "@Override\n\t\tpublic StringBuffer getRequestURL() {\n\t\t\treturn null;\n\t\t}", "BaseResource(RequestContext.RequestType requestType, RequestParser<HttpHeaders> parser) {\n this.requestType = requestType;\n this.parser = parser;\n }", "public HttpPoster(final URL url, final String requestData) {\n\t\tsuper(url, HttpMethod.POST, requestData);\n\t}", "public RPCRequest()\n\t{\n\t\tsuper();\n\t}", "private HttpUriRequest createHttpRequest(String url, String method,\n\t\t\tList<NameValuePair> params) throws UnsupportedEncodingException {\n\t\tHttpUriRequest request;\n\t\tif (method.toUpperCase().equals(\"GET\")) {\n\t\t\trequest = new HttpGet(url);\n\t\t} else if (method.toUpperCase().equals(\"POST\")) {\n\t\t\tHttpPost post = new HttpPost(url);\n\t\t\tpost.setEntity(new UrlEncodedFormEntity(params));\n\t\t\trequest = post;\n\t\t} else if (method.toUpperCase().equals(\"PUT\")) {\n\t\t\trequest = new HttpPut(url);\n\t\t} else if (method.toUpperCase().equals(\"DELETE\")) {\n\t\t\trequest = new HttpDelete(url);\n\t\t} else {\n\t\t\trequest = new HttpGet();\n\t\t}\n\n\t\treturn request;\n\t}", "private RequestExecution() {}", "private void initRequest()\n\t{\n\t\tthis.request = new RestClientReportRequest();\n\t\tRequestHelper.copyConfigsToRequest(this.getConfigs(), this.request);\n\t\tRequestHelper.copyParamsToRequest(this.getParams(), this.request);\n\t\t\n\t\tthis.performQuery();\n\t}", "public UrlInfo(String urlString) throws IOException {\n URL url = new URL(urlString);\n this.urlConnection = url.openConnection();\n }", "private StringRequest createStringRequest(final project.software.uni.positionprediction.datatypes.Request request,\r\n String url,\r\n Response.Listener<String> responseListener,\r\n Response.ErrorListener errorListener){\r\n\r\n return new StringRequest(Request.Method.GET, url,\r\n responseListener,\r\n errorListener\r\n )\r\n\r\n {\r\n @Override\r\n public Map <String, String> getHeaders() {\r\n HashMap< String, String > headers = new HashMap <> ();\r\n String creds = String.format(\"%s:%s\",username,password);\r\n String encodedCredentials = Base64.encodeToString(creds.getBytes(), Base64.DEFAULT);\r\n headers.put(\"Authorization\", \"Basic \" + encodedCredentials);\r\n\r\n return headers;\r\n }\r\n\r\n @Override\r\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\r\n statusMap.put(new Integer(request.getId()), new Integer(response.statusCode));\r\n\r\n return super.parseNetworkResponse(response);\r\n }\r\n };\r\n\r\n }", "public URLCodec() {\n/* 104 */ this(\"UTF-8\");\n/* */ }", "@SuppressWarnings(\"unused\")\n protected HttpOperation(String path, HashMap<String, String> parameters,\n HttpRequest.NetworkOperationType requestType) {\n this(path, parameters, requestType, null);\n }", "public QBXMLRequest() {\n }", "public AbstractRequestParser()\n {\n super();\n \n //set flag\n this.initialized=false;\n }", "public OfflineRequest(String qq){\r\n\t this.qq = qq;\r\n }", "public AuthorizationRequest() { }", "void setQueryRequestUrl(String queryRequestUrl);", "public SubRequestFacade(Request request) {\n super(request);\n }", "public RestRequest(String url, RequestUrlSpec urlSpec, Method method,\n boolean isAnonymous, String contentType) {\n mUrl = url;\n mUrlSpec = urlSpec;\n mMethod = method;\n mHeaderList = new ArrayList<Header>(HEADER_LIST_SIZE);\n mRequsetId = generateRequestId();\n mPriority = RequestPriority.NORMAL;\n mIsAnonymous = isAnonymous;\n mContentType = contentType;\n }", "public JwtRequest()\n\t{\n\t\t\n\t}", "public HttpUrlFetcher(Call.Factory factory) {\n super(factory);\n Intrinsics.checkParameterIsNotNull(factory, \"callFactory\");\n }", "public RestRequest(String url, RequestUrlSpec urlSpec, Method method) {\n this(url, urlSpec, method, true);\n }", "public HttpRequest (final InputStream inputStream)\n {\n in = new HttpInputStream (new BufferedInputStream (inputStream));\n headers = new HashMap <String, String> ();\n }", "public abstract String toURLParam();", "public Request(Request other) {\n __isset_bitfield = other.__isset_bitfield;\n if (other.isSetUrl()) {\n this.url = other.url;\n }\n if (other.isSetMethod()) {\n this.method = other.method;\n }\n if (other.isSetMeta()) {\n Map<String,String> __this__meta = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.meta.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__meta_copy_key = other_element_key;\n\n String __this__meta_copy_value = other_element_value;\n\n __this__meta.put(__this__meta_copy_key, __this__meta_copy_value);\n }\n this.meta = __this__meta;\n }\n if (other.isSetBody()) {\n this.body = other.body;\n }\n if (other.isSetHeaders()) {\n Map<String,String> __this__headers = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.headers.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__headers_copy_key = other_element_key;\n\n String __this__headers_copy_value = other_element_value;\n\n __this__headers.put(__this__headers_copy_key, __this__headers_copy_value);\n }\n this.headers = __this__headers;\n }\n if (other.isSetCookies()) {\n Map<String,String> __this__cookies = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.cookies.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__cookies_copy_key = other_element_key;\n\n String __this__cookies_copy_value = other_element_value;\n\n __this__cookies.put(__this__cookies_copy_key, __this__cookies_copy_value);\n }\n this.cookies = __this__cookies;\n }\n if (other.isSetEncoding()) {\n this.encoding = other.encoding;\n }\n this.priority = other.priority;\n }", "private ApiUrlCreator() {\n }", "public DefaultHttpRequest() {\n }", "private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }", "private Request build() {\n Request.Builder builder =\n new Request.Builder().cacheControl(new CacheControl.Builder().noCache().build());\n\n HttpUrl.Builder urlBuilder = HttpUrl.parse(url).newBuilder();\n for (Map.Entry<String, String> entry : queryParams.entrySet()) {\n urlBuilder = urlBuilder.addEncodedQueryParameter(entry.getKey(), entry.getValue());\n }\n builder = builder.url(urlBuilder.build());\n\n for (Map.Entry<String, String> entry : headers.entrySet()) {\n builder = builder.header(entry.getKey(), entry.getValue());\n }\n\n RequestBody body = (bodyBuilder == null) ? null : bodyBuilder.build();\n builder = builder.method(method.name(), body);\n\n return builder.build();\n }", "String getRequestURL();", "private void initConnection() throws MalformedURLException, IOException {\n httpConnection = (HttpURLConnection) new URL(initUrlParameter())\n .openConnection();\n httpConnection.setDoOutput(true);\n httpConnection.setDoInput(true);\n httpConnection.setRequestMethod(\"GET\");\n httpConnection.setRequestProperty(\"Content-Type\", \"application/json\");\n httpConnection.setRequestProperty(\"Authorization\",\n authentificator.generateBasicAuthorization());\n\n }", "protected abstract HttpUriRequest getHttpUriRequest();", "String getRequest(String url);", "@Test\n public void getRequest4() {\n str = METHOD_GET + \"http://foo.com/someservlet.jsp?param1=foo \" + HTTP_VERSION + ENDL +\n ACCEPT + \": text/jsp\" + ENDL +\n CONNECTION_CLOSE;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n\n assertEquals(request.getMethod(), HttpMethod.GET);\n assertEquals(request.getUrn(), \"foo.com/someservlet.jsp\");\n assertEquals(request.getDomainName(), \"foo.com\");\n assertEquals(request.getHeader(ACCEPT), \"text/jsp\");\n assertEquals(request.getHeader(CONNECTION), CLOSE_STR);\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n\n assertEquals(request.getParameter(\"param1\"), \"foo\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "public PURL(PURL source) {\n if (source.Name != null) {\n this.Name = new String(source.Name);\n }\n if (source.Protocol != null) {\n this.Protocol = new String(source.Protocol);\n }\n if (source.Namespace != null) {\n this.Namespace = new String(source.Namespace);\n }\n if (source.Qualifiers != null) {\n this.Qualifiers = new Qualifier[source.Qualifiers.length];\n for (int i = 0; i < source.Qualifiers.length; i++) {\n this.Qualifiers[i] = new Qualifier(source.Qualifiers[i]);\n }\n }\n if (source.Subpath != null) {\n this.Subpath = new String(source.Subpath);\n }\n if (source.Version != null) {\n this.Version = new String(source.Version);\n }\n }", "public RequestBuilder() {\n this.https = false;\n }", "public ServletServerHttpRequest(HttpServletRequest servletRequest)\r\n/* 33: */ {\r\n/* 34: 65 */ Assert.notNull(servletRequest, \"'servletRequest' must not be null\");\r\n/* 35: 66 */ this.servletRequest = servletRequest;\r\n/* 36: */ }", "private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }", "public JwtRequest() {\n\t}", "public MessageRequest() {\n\t}", "public JSONPostUtility(String requestURL)\n throws IOException {\n //call super constructor\n super(requestURL, \"POST\");\n //set the content type\n super.addHeader(\"Content-Type\", \"application/json;charset=\" + super.charset);\n super.addHeader(\"Accept\", \"application/json\");\n }", "private RequestContext() {\n\t\tencoding = DEFAULT_ENCODING;\n\t\tstatusCode = DEFAULT_STATUS_CODE;\n\t\tstatusText = DEFAULT_STATUS_TEXT;\n\t\tmimeType = DEFAULT_MIME_TYPE;\n\t\tcontentLength = DEFAULT_CONTENT_LENGHT;\n\t\theaderGenerated = DEFAULT_HEADER_GENERATED;\n\t\tcharset = Charset.forName(encoding);\n\t}", "private JDBCMiddler(String controlador, String url) {\n this.controlador = controlador;\n this.url = url;\n }", "public Request(String typeString, String path, String portString, String versionString) throws UnknownRequestException, UnknownHTTPVersionException, URISyntaxException{\n\t\t\tpath = new URI(Parser.convertToReadableURL(path)).getPath();\n\t\t\tif (path.length() == 0){\n\t\t\t\tpath = \"/\";\n\t\t\t}\n\t\t\t\n\t\t\tthis.path = path;\n\t\t\tthis.version = Parser.extractVersion(versionString);\n\t\t\tthis.type = Parser.extractType(typeString);\n\t\t\tList<String> content = new ArrayList<String>();\n\t\t\tsetContent(content);\n\t\t}", "public ImageSearchParams(String imageUrl) {\n super(imageUrl);\n }", "public HttpPost() {\n super();\n parameters = new HashMap<>();\n }", "private CartReceiptRequest buildRequestFromParameters(String[] requestParameters) throws ParseException {\n CartReceiptRequest receiptRequest = new CartReceiptRequest();\n LOGGER.debug(\"localeParam =\" + requestParameters[2] + \" \\t applicationId =\" + requestParameters[1]);\n /* Building request for the Reprint API */\n receiptRequest.setUserId(Long.valueOf(requestParameters[0]));\n receiptRequest.setApplicationId(Long.valueOf(requestParameters[1]));\n receiptRequest.setLocale(requestParameters[2]);\n receiptRequest.setCartId(Long.valueOf(requestParameters[3]));\n Long milliSeconds = Long.parseLong(requestParameters[4]);\n Date date = new Date(milliSeconds);\n receiptRequest.setCartDate(date);\n /* Returning constructed API request*/\n return receiptRequest;\n }", "public RequestLine(String rawRequestLine) {\n\t\tparseRequestLine(rawRequestLine);\n\t}", "public GsonRequest(int method, String url, Class<T> clazz, Map<String, String> headers, Response.Listener<T> listener, Response.ErrorListener errorListener) {\n super(method, url, errorListener);\n this.clazz = clazz;\n this.headers = headers;\n this.listener = listener;\n }", "public Request(String username, Resource resource) {\n this.username = username;\n this.resource = resource;\n this.resourceName = resource.getTitle();\n\n }", "public LinkedIntegrationRuntimeRequest() {\n }", "protected MovieRepository(String url) {\n URL = url;\n }", "public RequestOptions() {}", "public ClearRequest() {\n // default constructor\n }", "public TestBSSVRequest() {\r\n }", "public UrlEncapsulation() {\r\n\t\t\r\n\t\tthis(null\r\n\t\t\t\t, null, null, null, null\r\n\t\t\t\t, false, null, null, null, null, null, null, null);\r\n\t\t\r\n\t}", "private AutoCompleteGalRequest() {\n this((String) null);\n }", "public HttpComponentsClientHttpRequest(HttpClient httpClient, HttpUriRequest httpRequest)\r\n/* 25: */ {\r\n/* 26:54 */ this.httpClient = httpClient;\r\n/* 27:55 */ this.httpRequest = httpRequest;\r\n/* 28: */ }", "protected void initialize() throws AspException\n {\n try {\n super.initialize();\n /* Parse out all of the param/value pairs */\n Map paramValues = Tools.parseQueryString(wholeString);\n Tools.convertToMultiValue(this, paramValues, true);\n } finally {\n setReadOnly();\n }\n }", "@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }", "@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }", "public RPCRequest(String request) throws JSONException\n\t{\n\t\tsuper(request);\n\n\t\t// read all KEYS now so JSONExceptions are squeezed out during construction...\n\n\t\tif (has(PARAMS)) params = getJSONObject(PARAMS);\n\n\t\tif (has(JSONRPC)) jsonrpc = getString(JSONRPC);\n\t\telse throw new JSONException(\"The 'jsonrpc' key is required.\");\n\t\tif (!jsonrpc.equals(VERSION)) throw new JSONException(\"Bad version. Expected \"+VERSION+\", received \"+jsonrpc+\".\");\n\n\t\tif (has(ID)) id = getString(ID);\n\t\telse id = null; // a \"notification\"\n\n\t\tif (has(METHOD)) method = getString(METHOD);\n\t\telse throw new JSONException(\"The 'method' key is required.\");\n\t}", "public TboFlightSearchRequest() {\n}", "public ServiceRequest() {\n super();\n this.addNamespaceToRequest = true;\n }", "BaseRequest(@Nullable Response.Listener<T> listener,\n @Nullable Response.ErrorListener errorListener) {\n this(Method.GET, \"\", listener, errorListener);\n }", "public RequestLine(HttpMethod method, URI uri, HttpVersion httpVersion) {\n\t\tthis.method = method;\n\t\tthis.uri = uri;\n\t\tthis.httpVersion = httpVersion;\n\t}", "public UrlInfo(URL url) throws IOException {\n this.urlConnection = url.openConnection();\n }" ]
[ "0.64766115", "0.64766115", "0.6462339", "0.6420431", "0.63789386", "0.6355192", "0.63436115", "0.630731", "0.63042974", "0.6245687", "0.62238824", "0.6221545", "0.6217876", "0.615979", "0.60607153", "0.6044586", "0.6039728", "0.60096985", "0.60045844", "0.59700596", "0.595036", "0.5932333", "0.5927207", "0.58808494", "0.587507", "0.5856323", "0.5830004", "0.5821482", "0.58191615", "0.5818907", "0.58071476", "0.57954663", "0.5782495", "0.5778714", "0.5764712", "0.57392263", "0.573566", "0.57334554", "0.5731027", "0.57154864", "0.5711807", "0.5708514", "0.5705103", "0.56982636", "0.5691598", "0.5675868", "0.5646785", "0.56453973", "0.56395495", "0.56304306", "0.56277406", "0.56043494", "0.5599702", "0.55958843", "0.5589812", "0.5589413", "0.55813885", "0.5571106", "0.5570456", "0.5564552", "0.5564115", "0.55584776", "0.55584526", "0.5557468", "0.55562216", "0.555471", "0.5541034", "0.55343735", "0.5519874", "0.5519182", "0.5509381", "0.5507852", "0.54934907", "0.5492335", "0.5486923", "0.548691", "0.5481322", "0.54792935", "0.5469651", "0.5465751", "0.5463141", "0.54509753", "0.5450821", "0.5449944", "0.54480326", "0.54443985", "0.5438317", "0.5429948", "0.5422924", "0.54214877", "0.54210967", "0.54177755", "0.541496", "0.54096514", "0.54096514", "0.5399932", "0.5399085", "0.5398457", "0.53886425", "0.5388088", "0.5380725" ]
0.0
-1
Constructor. NOTE: Please use RequestUtils.decodeParameters() if you wish to properly decode a request URL.
public ValueMap(final String keyValuePairs, final String delimiter) { super(); int start = 0; int equalsIndex = keyValuePairs.indexOf('='); int delimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex); if (delimiterIndex == -1) { delimiterIndex = keyValuePairs.length(); } while (equalsIndex != -1) { if (delimiterIndex < keyValuePairs.length()) { int equalsIndex2 = keyValuePairs.indexOf('=', delimiterIndex + 1); if (equalsIndex2 != -1) { delimiterIndex = keyValuePairs.lastIndexOf(delimiter, equalsIndex2); } else { delimiterIndex = keyValuePairs.length(); } } String key = keyValuePairs.substring(start, equalsIndex); String value = keyValuePairs.substring(equalsIndex + 1, delimiterIndex); add(key, value); if (delimiterIndex < keyValuePairs.length()) { start = delimiterIndex + 1; equalsIndex = keyValuePairs.indexOf('=', start); if (equalsIndex != -1) { delimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex); if (delimiterIndex == -1) { delimiterIndex = keyValuePairs.length(); } } } else { equalsIndex = -1; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Request() {}", "private Request() {}", "public HTTPGetUtility(String requestURL) {\n super(requestURL, \"GET\");\n }", "private HttpRequestRouterParametersMap(final HttpRequest request) {\n super();\n this.request = request;\n }", "private Request() {\n initFields();\n }", "public Klient(String urlParameters) {\n url = baseURL + \"?\" + urlParameters;\n }", "public Request(){\n\t\tthis(null, null, null);\n\t}", "public HttpRequest(URL url) throws IOException {\r\n this(url.openConnection());\r\n }", "public HTTPUtility(String requestURL, String method) {\n this.requestURL = requestURL;\n this.method = method;\n }", "public UBERequest() {\r\n }", "public Request() {\n }", "private WebRequest() {\n initFields();\n }", "public HttpRequest(String urlString) throws IOException {\r\n this(new URL(urlString));\r\n }", "public Request() {\n\n }", "public PostRequest(String urlParameters) {\n this.urlParameters = urlParameters;\n }", "public RequestPacket(double version, String method, String url) {\n super(version);\n this.method = Method.valueOf(method);\n this.url = url;\n }", "@Override\n\tpublic void initRequest() {\n\n\t}", "public Http()\n {\n numberOfParameters = -1;\n }", "private BaseRequest(int method, String url, @Nullable Response.Listener<T> listener,\n @Nullable Response.ErrorListener errorListener) {\n super(method, url, errorListener);\n this.listener = listener;\n }", "public GWIRequest(int method, Map<String, String> params,\n String url, Object request,\n Type resType,\n Response.Listener<R> listener,\n Response.ErrorListener errorListener) {\n super(method, url, errorListener);\n mParams = params;\n mBodyRequest = request;\n this.mResType = resType;\n this.mListener = listener;\n mGson = new GsonBuilder().registerTypeAdapter(Date.class, new DotNetDateAdapter()).setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE)\n .create();\n }", "public CalculationRequest(String rawRequest_)\n\t{\n\t\trawRequest = rawRequest_;\n\t}", "public FellowCommuReq() {\n super();\n setRequestUrl(\"FellowCommuReq\");\n }", "MovilizerRequest getRequestFromString(String requestString);", "public GWIRequest(int method, Map<String, String> params,\n String url, Object request,\n Type resType,\n Response.Listener<R> listener,\n Response.ErrorListener errorListener, Gson gson) {\n super(method, url, errorListener);\n mParams = params;\n mBodyRequest = request;\n this.mResType = resType;\n this.mListener = listener;\n if (gson == null) {\n mGson = new GsonBuilder().registerTypeAdapter(Date.class,\n new DotNetDateAdapter()).setFieldNamingPolicy(FieldNamingPolicy.UPPER_CAMEL_CASE).create();\n } else {\n mGson = gson;\n }\n }", "public Request(IHTTPSession session, ArrayList<String> params) {\n\t\tthis.session = session;\n\t\tthis.params = params;\n\t}", "public WMS100MapRequest() {\n\n }", "public HttpRequest(HttpRequestBuilder builder){\r\n mUrl = builder.Url;\r\n mMethodType = builder.MethodType;\r\n mCallback = builder.Callback;\r\n mJsonRequestParams = builder.JsonRequestParams;\r\n }", "public Request(final FullHttpRequest request) {\n this.request = request;\n }", "public RequestParams(final String key, final String value) {\n this(new HashMap<String, String>() {\n {\n put(key, value);\n }\n });\n }", "public Request(String requestType, ArrayList<String> requestParameters) {\n this.requestType = requestType;\n this.requestParameters = requestParameters;\n }", "private URLHelper() {\n\n }", "protected BaseErrorRequest(final byte[] request) {\n super(request);\n this.errorDescription = null;\n }", "public HttpPoster(final String url, final String requestData) {\n\t\tsuper(url, HttpMethod.POST, requestData);\n\t}", "@Override\n\tpublic String init_request() {\n\t\treturn null;\n\t}", "public URIParameters() {\r\n this._parameters = new HashMap<String, String[]>();\r\n }", "@Override\n\t\tpublic StringBuffer getRequestURL() {\n\t\t\treturn null;\n\t\t}", "BaseResource(RequestContext.RequestType requestType, RequestParser<HttpHeaders> parser) {\n this.requestType = requestType;\n this.parser = parser;\n }", "public HttpPoster(final URL url, final String requestData) {\n\t\tsuper(url, HttpMethod.POST, requestData);\n\t}", "public RPCRequest()\n\t{\n\t\tsuper();\n\t}", "private HttpUriRequest createHttpRequest(String url, String method,\n\t\t\tList<NameValuePair> params) throws UnsupportedEncodingException {\n\t\tHttpUriRequest request;\n\t\tif (method.toUpperCase().equals(\"GET\")) {\n\t\t\trequest = new HttpGet(url);\n\t\t} else if (method.toUpperCase().equals(\"POST\")) {\n\t\t\tHttpPost post = new HttpPost(url);\n\t\t\tpost.setEntity(new UrlEncodedFormEntity(params));\n\t\t\trequest = post;\n\t\t} else if (method.toUpperCase().equals(\"PUT\")) {\n\t\t\trequest = new HttpPut(url);\n\t\t} else if (method.toUpperCase().equals(\"DELETE\")) {\n\t\t\trequest = new HttpDelete(url);\n\t\t} else {\n\t\t\trequest = new HttpGet();\n\t\t}\n\n\t\treturn request;\n\t}", "private RequestExecution() {}", "private void initRequest()\n\t{\n\t\tthis.request = new RestClientReportRequest();\n\t\tRequestHelper.copyConfigsToRequest(this.getConfigs(), this.request);\n\t\tRequestHelper.copyParamsToRequest(this.getParams(), this.request);\n\t\t\n\t\tthis.performQuery();\n\t}", "public UrlInfo(String urlString) throws IOException {\n URL url = new URL(urlString);\n this.urlConnection = url.openConnection();\n }", "private StringRequest createStringRequest(final project.software.uni.positionprediction.datatypes.Request request,\r\n String url,\r\n Response.Listener<String> responseListener,\r\n Response.ErrorListener errorListener){\r\n\r\n return new StringRequest(Request.Method.GET, url,\r\n responseListener,\r\n errorListener\r\n )\r\n\r\n {\r\n @Override\r\n public Map <String, String> getHeaders() {\r\n HashMap< String, String > headers = new HashMap <> ();\r\n String creds = String.format(\"%s:%s\",username,password);\r\n String encodedCredentials = Base64.encodeToString(creds.getBytes(), Base64.DEFAULT);\r\n headers.put(\"Authorization\", \"Basic \" + encodedCredentials);\r\n\r\n return headers;\r\n }\r\n\r\n @Override\r\n protected Response<String> parseNetworkResponse(NetworkResponse response) {\r\n statusMap.put(new Integer(request.getId()), new Integer(response.statusCode));\r\n\r\n return super.parseNetworkResponse(response);\r\n }\r\n };\r\n\r\n }", "public URLCodec() {\n/* 104 */ this(\"UTF-8\");\n/* */ }", "@SuppressWarnings(\"unused\")\n protected HttpOperation(String path, HashMap<String, String> parameters,\n HttpRequest.NetworkOperationType requestType) {\n this(path, parameters, requestType, null);\n }", "public AbstractRequestParser()\n {\n super();\n \n //set flag\n this.initialized=false;\n }", "public QBXMLRequest() {\n }", "public OfflineRequest(String qq){\r\n\t this.qq = qq;\r\n }", "public AuthorizationRequest() { }", "void setQueryRequestUrl(String queryRequestUrl);", "public SubRequestFacade(Request request) {\n super(request);\n }", "public RestRequest(String url, RequestUrlSpec urlSpec, Method method,\n boolean isAnonymous, String contentType) {\n mUrl = url;\n mUrlSpec = urlSpec;\n mMethod = method;\n mHeaderList = new ArrayList<Header>(HEADER_LIST_SIZE);\n mRequsetId = generateRequestId();\n mPriority = RequestPriority.NORMAL;\n mIsAnonymous = isAnonymous;\n mContentType = contentType;\n }", "public JwtRequest()\n\t{\n\t\t\n\t}", "public HttpUrlFetcher(Call.Factory factory) {\n super(factory);\n Intrinsics.checkParameterIsNotNull(factory, \"callFactory\");\n }", "public RestRequest(String url, RequestUrlSpec urlSpec, Method method) {\n this(url, urlSpec, method, true);\n }", "public HttpRequest (final InputStream inputStream)\n {\n in = new HttpInputStream (new BufferedInputStream (inputStream));\n headers = new HashMap <String, String> ();\n }", "public abstract String toURLParam();", "public Request(Request other) {\n __isset_bitfield = other.__isset_bitfield;\n if (other.isSetUrl()) {\n this.url = other.url;\n }\n if (other.isSetMethod()) {\n this.method = other.method;\n }\n if (other.isSetMeta()) {\n Map<String,String> __this__meta = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.meta.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__meta_copy_key = other_element_key;\n\n String __this__meta_copy_value = other_element_value;\n\n __this__meta.put(__this__meta_copy_key, __this__meta_copy_value);\n }\n this.meta = __this__meta;\n }\n if (other.isSetBody()) {\n this.body = other.body;\n }\n if (other.isSetHeaders()) {\n Map<String,String> __this__headers = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.headers.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__headers_copy_key = other_element_key;\n\n String __this__headers_copy_value = other_element_value;\n\n __this__headers.put(__this__headers_copy_key, __this__headers_copy_value);\n }\n this.headers = __this__headers;\n }\n if (other.isSetCookies()) {\n Map<String,String> __this__cookies = new HashMap<String,String>();\n for (Map.Entry<String, String> other_element : other.cookies.entrySet()) {\n\n String other_element_key = other_element.getKey();\n String other_element_value = other_element.getValue();\n\n String __this__cookies_copy_key = other_element_key;\n\n String __this__cookies_copy_value = other_element_value;\n\n __this__cookies.put(__this__cookies_copy_key, __this__cookies_copy_value);\n }\n this.cookies = __this__cookies;\n }\n if (other.isSetEncoding()) {\n this.encoding = other.encoding;\n }\n this.priority = other.priority;\n }", "private ApiUrlCreator() {\n }", "public DefaultHttpRequest() {\n }", "private String initUrlParameter() {\n StringBuffer url = new StringBuffer();\n url.append(URL).append(initPathParameter());\n return url.toString();\n }", "private void initConnection() throws MalformedURLException, IOException {\n httpConnection = (HttpURLConnection) new URL(initUrlParameter())\n .openConnection();\n httpConnection.setDoOutput(true);\n httpConnection.setDoInput(true);\n httpConnection.setRequestMethod(\"GET\");\n httpConnection.setRequestProperty(\"Content-Type\", \"application/json\");\n httpConnection.setRequestProperty(\"Authorization\",\n authentificator.generateBasicAuthorization());\n\n }", "private Request build() {\n Request.Builder builder =\n new Request.Builder().cacheControl(new CacheControl.Builder().noCache().build());\n\n HttpUrl.Builder urlBuilder = HttpUrl.parse(url).newBuilder();\n for (Map.Entry<String, String> entry : queryParams.entrySet()) {\n urlBuilder = urlBuilder.addEncodedQueryParameter(entry.getKey(), entry.getValue());\n }\n builder = builder.url(urlBuilder.build());\n\n for (Map.Entry<String, String> entry : headers.entrySet()) {\n builder = builder.header(entry.getKey(), entry.getValue());\n }\n\n RequestBody body = (bodyBuilder == null) ? null : bodyBuilder.build();\n builder = builder.method(method.name(), body);\n\n return builder.build();\n }", "String getRequestURL();", "protected abstract HttpUriRequest getHttpUriRequest();", "String getRequest(String url);", "@Test\n public void getRequest4() {\n str = METHOD_GET + \"http://foo.com/someservlet.jsp?param1=foo \" + HTTP_VERSION + ENDL +\n ACCEPT + \": text/jsp\" + ENDL +\n CONNECTION_CLOSE;\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n\n assertEquals(request.getMethod(), HttpMethod.GET);\n assertEquals(request.getUrn(), \"foo.com/someservlet.jsp\");\n assertEquals(request.getDomainName(), \"foo.com\");\n assertEquals(request.getHeader(ACCEPT), \"text/jsp\");\n assertEquals(request.getHeader(CONNECTION), CLOSE_STR);\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n\n assertEquals(request.getParameter(\"param1\"), \"foo\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "public PURL(PURL source) {\n if (source.Name != null) {\n this.Name = new String(source.Name);\n }\n if (source.Protocol != null) {\n this.Protocol = new String(source.Protocol);\n }\n if (source.Namespace != null) {\n this.Namespace = new String(source.Namespace);\n }\n if (source.Qualifiers != null) {\n this.Qualifiers = new Qualifier[source.Qualifiers.length];\n for (int i = 0; i < source.Qualifiers.length; i++) {\n this.Qualifiers[i] = new Qualifier(source.Qualifiers[i]);\n }\n }\n if (source.Subpath != null) {\n this.Subpath = new String(source.Subpath);\n }\n if (source.Version != null) {\n this.Version = new String(source.Version);\n }\n }", "public RequestBuilder() {\n this.https = false;\n }", "public ServletServerHttpRequest(HttpServletRequest servletRequest)\r\n/* 33: */ {\r\n/* 34: 65 */ Assert.notNull(servletRequest, \"'servletRequest' must not be null\");\r\n/* 35: 66 */ this.servletRequest = servletRequest;\r\n/* 36: */ }", "private DownloadRequestState(\r\n String name )\r\n {\r\n super( name );\r\n }", "public JwtRequest() {\n\t}", "public MessageRequest() {\n\t}", "private RequestContext() {\n\t\tencoding = DEFAULT_ENCODING;\n\t\tstatusCode = DEFAULT_STATUS_CODE;\n\t\tstatusText = DEFAULT_STATUS_TEXT;\n\t\tmimeType = DEFAULT_MIME_TYPE;\n\t\tcontentLength = DEFAULT_CONTENT_LENGHT;\n\t\theaderGenerated = DEFAULT_HEADER_GENERATED;\n\t\tcharset = Charset.forName(encoding);\n\t}", "public JSONPostUtility(String requestURL)\n throws IOException {\n //call super constructor\n super(requestURL, \"POST\");\n //set the content type\n super.addHeader(\"Content-Type\", \"application/json;charset=\" + super.charset);\n super.addHeader(\"Accept\", \"application/json\");\n }", "private JDBCMiddler(String controlador, String url) {\n this.controlador = controlador;\n this.url = url;\n }", "public Request(String typeString, String path, String portString, String versionString) throws UnknownRequestException, UnknownHTTPVersionException, URISyntaxException{\n\t\t\tpath = new URI(Parser.convertToReadableURL(path)).getPath();\n\t\t\tif (path.length() == 0){\n\t\t\t\tpath = \"/\";\n\t\t\t}\n\t\t\t\n\t\t\tthis.path = path;\n\t\t\tthis.version = Parser.extractVersion(versionString);\n\t\t\tthis.type = Parser.extractType(typeString);\n\t\t\tList<String> content = new ArrayList<String>();\n\t\t\tsetContent(content);\n\t\t}", "public ImageSearchParams(String imageUrl) {\n super(imageUrl);\n }", "public HttpPost() {\n super();\n parameters = new HashMap<>();\n }", "private CartReceiptRequest buildRequestFromParameters(String[] requestParameters) throws ParseException {\n CartReceiptRequest receiptRequest = new CartReceiptRequest();\n LOGGER.debug(\"localeParam =\" + requestParameters[2] + \" \\t applicationId =\" + requestParameters[1]);\n /* Building request for the Reprint API */\n receiptRequest.setUserId(Long.valueOf(requestParameters[0]));\n receiptRequest.setApplicationId(Long.valueOf(requestParameters[1]));\n receiptRequest.setLocale(requestParameters[2]);\n receiptRequest.setCartId(Long.valueOf(requestParameters[3]));\n Long milliSeconds = Long.parseLong(requestParameters[4]);\n Date date = new Date(milliSeconds);\n receiptRequest.setCartDate(date);\n /* Returning constructed API request*/\n return receiptRequest;\n }", "public GsonRequest(int method, String url, Class<T> clazz, Map<String, String> headers, Response.Listener<T> listener, Response.ErrorListener errorListener) {\n super(method, url, errorListener);\n this.clazz = clazz;\n this.headers = headers;\n this.listener = listener;\n }", "public RequestLine(String rawRequestLine) {\n\t\tparseRequestLine(rawRequestLine);\n\t}", "public Request(String username, Resource resource) {\n this.username = username;\n this.resource = resource;\n this.resourceName = resource.getTitle();\n\n }", "public LinkedIntegrationRuntimeRequest() {\n }", "protected MovieRepository(String url) {\n URL = url;\n }", "public RequestOptions() {}", "public ClearRequest() {\n // default constructor\n }", "public UrlEncapsulation() {\r\n\t\t\r\n\t\tthis(null\r\n\t\t\t\t, null, null, null, null\r\n\t\t\t\t, false, null, null, null, null, null, null, null);\r\n\t\t\r\n\t}", "public TestBSSVRequest() {\r\n }", "private AutoCompleteGalRequest() {\n this((String) null);\n }", "protected void initialize() throws AspException\n {\n try {\n super.initialize();\n /* Parse out all of the param/value pairs */\n Map paramValues = Tools.parseQueryString(wholeString);\n Tools.convertToMultiValue(this, paramValues, true);\n } finally {\n setReadOnly();\n }\n }", "public HttpComponentsClientHttpRequest(HttpClient httpClient, HttpUriRequest httpRequest)\r\n/* 25: */ {\r\n/* 26:54 */ this.httpClient = httpClient;\r\n/* 27:55 */ this.httpRequest = httpRequest;\r\n/* 28: */ }", "@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }", "@Override\n protected Map<String, String> getParams() {\n return requestParams;\n }", "public TboFlightSearchRequest() {\n}", "public RPCRequest(String request) throws JSONException\n\t{\n\t\tsuper(request);\n\n\t\t// read all KEYS now so JSONExceptions are squeezed out during construction...\n\n\t\tif (has(PARAMS)) params = getJSONObject(PARAMS);\n\n\t\tif (has(JSONRPC)) jsonrpc = getString(JSONRPC);\n\t\telse throw new JSONException(\"The 'jsonrpc' key is required.\");\n\t\tif (!jsonrpc.equals(VERSION)) throw new JSONException(\"Bad version. Expected \"+VERSION+\", received \"+jsonrpc+\".\");\n\n\t\tif (has(ID)) id = getString(ID);\n\t\telse id = null; // a \"notification\"\n\n\t\tif (has(METHOD)) method = getString(METHOD);\n\t\telse throw new JSONException(\"The 'method' key is required.\");\n\t}", "public ServiceRequest() {\n super();\n this.addNamespaceToRequest = true;\n }", "BaseRequest(@Nullable Response.Listener<T> listener,\n @Nullable Response.ErrorListener errorListener) {\n this(Method.GET, \"\", listener, errorListener);\n }", "public RequestLine(HttpMethod method, URI uri, HttpVersion httpVersion) {\n\t\tthis.method = method;\n\t\tthis.uri = uri;\n\t\tthis.httpVersion = httpVersion;\n\t}", "public UrlInfo(URL url) throws IOException {\n this.urlConnection = url.openConnection();\n }" ]
[ "0.64746314", "0.64746314", "0.6460837", "0.6417543", "0.637722", "0.635597", "0.6340915", "0.6306205", "0.6302491", "0.62434655", "0.6221155", "0.62208587", "0.6217345", "0.6157125", "0.605934", "0.604289", "0.60381573", "0.60094655", "0.6003856", "0.59676456", "0.594802", "0.59311783", "0.59254116", "0.58788866", "0.5873317", "0.58550483", "0.5829054", "0.58186364", "0.58175385", "0.58157074", "0.580824", "0.57930624", "0.57818705", "0.57780933", "0.5764299", "0.57388705", "0.57344425", "0.5732972", "0.5728881", "0.57143915", "0.57102394", "0.57069796", "0.57067996", "0.56958693", "0.5693183", "0.56747776", "0.56447244", "0.56446975", "0.5638845", "0.56287897", "0.5626408", "0.5601165", "0.5598412", "0.55940247", "0.5590258", "0.5588119", "0.5579053", "0.55725", "0.5568797", "0.5565686", "0.55628407", "0.5560407", "0.5557374", "0.5556746", "0.5556653", "0.555293", "0.55392706", "0.5532968", "0.5521534", "0.551782", "0.55082893", "0.5507113", "0.5491594", "0.5490372", "0.5485959", "0.54850525", "0.54825276", "0.54791087", "0.5470118", "0.54646933", "0.5460424", "0.5450267", "0.54493433", "0.5448926", "0.5446108", "0.5445818", "0.5436689", "0.54278576", "0.542276", "0.5422031", "0.5420432", "0.5416454", "0.5415907", "0.5407521", "0.5407521", "0.53977746", "0.5397376", "0.5396392", "0.53878075", "0.5386936", "0.53815424" ]
0.0
-1
Adds the value to this ValueMap with the given key. If the key already is in the ValueMap it will combine the values into a String array, else it will just store the value itself.
public final Object add(final String key, final String value) { checkMutability(); final Object o = get(key); if (o == null) { return put(key, value); } else if (o.getClass().isArray()) { int length = Array.getLength(o); String destArray[] = new String[length + 1]; for (int i = 0; i < length; i++) { final Object arrayValue = Array.get(o, i); if (arrayValue != null) { destArray[i] = arrayValue.toString(); } } destArray[length] = value; return put(key, destArray); } else { return put(key, new String[] { o.toString(), value }); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void add(K key, V value) {\n if(containsKey(key)){\n List<V> v = getValues(key);\n if(v.contains(value)){return;}\n }\n internalGetValue(key).add(value);\n }", "public void addToValueAtKey(String aKey, String aValue) {\n if (cars.containsKey(aKey)) {\n cars.get(aKey).add(aValue);\n }\n }", "public V add(K key, V value);", "public Payload add(String key, String value) {\n getData().put(key, value);\n return this;\n }", "public V add(K key, V value)\r\n\t{\r\n\t\tint slot = findSlot(key, false); // check if key already exists\r\n\t\tV oldVal = null;\r\n\t\t\r\n\t\tif (slot >= 0)\r\n\t\t{\r\n\t\t\tMapEntry<K, V> e = table[slot];\r\n\t\t\toldVal = e.setValue(value);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tslot = findSlot(key, true); // find empty slot for adding\r\n\t\t\ttable[slot] = new MapEntry<>(key, value);\r\n\t\t\tcount++;\r\n\t\t\tif (count >= maxCount)\r\n\t\t\t{\r\n\t\t\t\trehash();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn oldVal;\r\n\t}", "public void add(String key, JsonValue value, boolean asArray) {\n if (asArray) {\n toArray(key);\n }\n\n // 2. If value is an array, then for each element v in value, use add value\n // recursively to add v to key in entry.\n if (JsonUtils.isArray(value)) {\n value.asJsonArray().forEach(v -> add(key, v, asArray));\n\n // 3.\n } else {\n\n final Object original = map.get(key);\n\n // 3.1\n if (original != null) {\n\n if (original instanceof JsonValue) {\n\n if (JsonUtils.isArray((JsonValue)original)) {\n map.put(key, Json.createArrayBuilder(((JsonValue)original).asJsonArray()).add(value));\n\n } else {\n map.put(key, Json.createArrayBuilder().add((JsonValue)original).add(value));\n }\n\n } else if (original instanceof JsonArrayBuilder) {\n ((JsonArrayBuilder)original).add(value);\n\n } else if (original instanceof JsonMapBuilder) {\n map.put(key, Json.createArrayBuilder().add(((JsonMapBuilder)original).build()));\n\n } else {\n throw new IllegalStateException();\n }\n\n // 3.2\n } else {\n map.put(key, value);\n }\n }\n }", "private void addValueToStatMap(HashMap<String, ArrayList<Double>> map, String key, Double value) {\r\n if (!map.containsKey(key)) {\r\n map.put(key, new ArrayList<Double>());\r\n }\r\n map.get(key).add(value);\r\n }", "public void setValue(K key, V value) {\n this.add(key, value);\n }", "public void addKey(String key){\n itemMap.put(key, new ArrayList<>());\n }", "public String getValue(final String key)\r\n {\r\n m_keys.addElement(key);\r\n return m_value;\r\n }", "public boolean add(K key, V value);", "public void put(String key, JsonArray value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}", "public void addField(String key, Object value) {\n\t\tput(key, value);\n\t}", "void add(K key, V value);", "public void add(Key key, Value value) {\n\n\t\tif (2 * this.size > this.capacity) {\n\t\t\tresize(2 * this.capacity);\n\t\t}\n\n\t\t// Add this item to the hash table in the expected location.\n\n\t\tint index = locate(key);\n\t\tthis.keys[index] = key;\n\t\tthis.values[index] = value;\n\t\tthis.size++;\n\t}", "public void addKeyValue (String key, String value){\r\n\t\tcodebook.put(key, value);\r\n\t}", "public Collection<V> put(K key, V value) {\r\n\r\n \tCollection<V> values = map.get(key);\r\n\r\n if (values == null) {\r\n \tvalues = newCollection();\r\n \tvalues.add(value);\r\n map.put(key, values);\r\n }\r\n else {\r\n \tvalues.add(value);\r\n }\r\n\r\n return values;\r\n }", "public static <K, V> void addToMapList(Map<K, List<V>> map, K key, V value)\n {\n List<V> list = map.get(key);\n\n if (list == null)\n {\n list = CollectionFactory.newList();\n map.put(key, list);\n }\n\n list.add(value);\n }", "public void add(String key, Object value) {\n Object oldValue = null;\n if (value instanceof String) {\n editor.putString(key, (String) value);\n oldValue = get(key, \"\");\n } else if (value instanceof Boolean) {\n editor.putBoolean(key, (Boolean) value);\n oldValue = get(key, false);\n } else if (value instanceof Integer) {\n editor.putInt(key, (Integer) value);\n oldValue = get(key, -1);\n } else if (value instanceof Long) {\n editor.putLong(key, (Long) value);\n oldValue = get(key, -1l);\n } else {\n if (value != null)\n Log.e(TAG, \"Value not inserted, Type \" + value.getClass() + \" not supported\");\n else\n Log.e(TAG, \"Cannot insert null values in sharedprefs\");\n }\n editor.apply();\n\n //notifying the observers\n notifyObservers(key, oldValue, value);\n }", "public V add(K key, V value)\n { \n checkInitialization();\n if ((key == null) || (value == null))\n throw new IllegalArgumentException();\n else\n { \n V result = null; \n int keyIndex = locateIndex(key); \n if ((keyIndex < numberOfEntries) && \n key.equals(dictionary[keyIndex].getKey()))\n {\n // Key found; return and replace entry's value\n result = dictionary[keyIndex].getValue(); // Get old value\n dictionary[keyIndex].setValue(value); // Replace value \n }\n else // Key not found; add new entry to dictionary\n { \n makeRoom(keyIndex);\n dictionary[keyIndex] = new Entry(key, value);\n numberOfEntries++;\n ensureCapacity(); // Ensure enough room for next add\n } // end if \n return result;\n } // end if\n }", "public void addValue(HashMap<String, HashSet<String>> table, String key, String newValue) {\n\t\tHashSet<String> currentValue = table.get(key);\n\t\tif (currentValue == null) {\n\t\t\tcurrentValue = new HashSet<String>();\n\t\t\ttable.put(key, currentValue);\n\t\t}\n\t\tcurrentValue.add(newValue);\n\t}", "public void add(String key,String value){\n int index=hash(key);\n if (arr[index] == null)\n {\n arr[index] = new Llist();\n }\n arr[index].add(key, value);\n\n\n }", "public String addItemByKey(String key, String value) throws DictionaryException {\n\t\tSystem.out.println(\"Going to add value : \" + value + \" for Key : \" + key);\n\t\tMap<String, List<String>> dictMap = getDictionary();\n\t\tif (dictMap != null && dictMap.isEmpty() != true) {\n\t\t\t// Check if key exists and add the item\n\t\t\tif (dictMap.containsKey(key)) {\n\t\t\t\tList<String> membersList = dictMap.get(key);\n\t\t\t\tif (membersList.contains(value)) {\n\t\t\t\t\t//Already existing value\n\t\t\t\t\tthrow new DictionaryException(ExceptionConstant.ADD_ERROR);\n\t\t\t\t} else {\n\t\t\t\t\tmembersList.add(value);\n\t\t\t\t\tdictMap.put(key, membersList);\n\t\t\t\t\tdictionary.setMultiValueDict(dictMap);\n\t\t\t\t}\n\t\t\t\t// Code for a fresh key and value insert\n\t\t\t} else {\n\t\t\t\tList<String> valueList = new ArrayList<>();\n\t\t\t\tvalueList.add(value);\n\t\t\t\tdictMap.put(key, valueList);\n\t\t\t}\n\t\t\t// First time entry of items in map\n\t\t} else {\n\t\t\tList<String> valueList = new ArrayList<>();\n\t\t\tvalueList.add(value);\n\t\t\tdictMap.put(key, valueList);\n\n\t\t}\n\t\treturn ApplicationMessage.ADD_SUCCESS_MSG;\n\t}", "void addEntry(String key, Object value) {\n this.storageInputMap.put(key, value);\n }", "private void put(String aKey, Object aValue) {\n\t\tmData.put(aKey, getValue(aValue));\n\t}", "void addEntry(K key, V value);", "void putValue(String key, Object data);", "@Override\n public void putValue(String key, Object value) {\n\n }", "private void put(K key, V value) {\n\t\t\tif (key == null || value == null)\n\t\t\t\treturn;\n\t\t\telse if (keySet.contains(key)) {\n\t\t\t\tvalueSet.set(keySet.indexOf(key), value);\n\t\t\t} else {\n\t\t\t\tkeySet.add(key);\n\t\t\t\tvalueSet.add(keySet.indexOf(key), value);\n\t\t\t\tsize++;\n\t\t\t}\n\t\t}", "public static void put(final String key, final Object value) {\r\n\t\tMap<String, String> map = new HashMap<String, String>(data.get());\r\n\t\tif (value == null) {\r\n\t\t\tmap.remove(key);\r\n\t\t} else {\r\n\t\t\tmap.put(key, value.toString());\r\n\t\t}\r\n\t\tdata.set(Collections.<String, String> unmodifiableMap(map));\r\n\t}", "public void addData(Key key, Value value) {\r\n\t\t\tdata.reset();\r\n\t\t\t\r\n\t\t\t//if no data or should be placed first\r\n\t\t\tif (data.size() == 0 || data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\telse {\r\n\t\t\t\t//find insert position\r\n\t\t\t\twhile (data.hasNext()) {\r\n\t\t\t\t\tif (data.next().getKey().compareTo(key) > 0) break;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t//if before last\r\n\t\t\t\tif (data.get().getKey().compareTo(key) > 0) \r\n\t\t\t\t\tdata.insert(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t\t//if after last\r\n\t\t\t\telse\r\n\t\t\t\t\tdata.add(new KeyValuePair<Key, Value>(key, value));\r\n\t\t\t}\r\n\t\t}", "@Override\n\tpublic V add(K key, V value) {\n\t\tV result = null;\n\t\tNode currentNode = firstNode;\n\t\t\n\t\tif(currentNode != null && key.equals(currentNode.getKey())){\n\t\t\tresult = (V) currentNode.getValue();\n\t\t\tcurrentNode.setValue(value);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tNode newNode = new Node(key, value);\n\t\t\tif(currentNode == null){\n\t\t\t\tnewNode.setNextNode(firstNode);\n\t\t\t\tfirstNode = newNode;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tfirstNode.setNextNode(newNode);\n\t\t\t}\n\t\tnumberOfEntries++;\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public void put(@NonNull final String key, final JSONArray value) {\n put(key, value, -1);\n }", "public void addValue(String value) {\n synchronized (values) {\n values.add(value);\n }\n }", "public void put(String key, String value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}", "public static <\n K,\n V> void addToCollectionMap(K key, V valueToAdd, Map<K, Collection<V>> map) {\n if (key != null && valueToAdd != null && map != null) {\n map.computeIfAbsent(key, Suppliers.asFunction(ArrayList::new)).add(valueToAdd);\n }\n }", "void addCorrect(String key, String val) {\n List<String> list = map.get(key);\n if (list == null) {\n list = Collections.synchronizedList(new ArrayList<>());\n List<String> exist = map.putIfAbsent(key, list);\n if (exist != null) {\n list = exist;\n }\n }\n list.add(val);\n }", "public void addResult(String key, String value) {\n Preconditions.checkArgument(!results.containsKey(key), \"the result already contains that key\");\n results.put(key, value);\n }", "private void add(String key) {\n dict = add(dict, key, 0);\n }", "public void put(String key, V value) {\n map.computeIfAbsent(key, k -> keepOrder ? new LinkedHashSet<>() : new HashSet<>()).add(value);\n }", "@Override\n\tpublic V add(K key, V value) {\n\t\tcheckNullKey(key);\n\t\tcheckNullValue(value);\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\treturn cache.put(key, value);\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}", "public Builder addData(String key, String value)\n {\n data.put(key, value);\n return this;\n }", "public boolean add(String key, String value){\r\n // takes a key and turns it into a hashed thing\r\n int arrIndex = hash(key);\r\n\r\n Entry entry = new Entry(key, value);\r\n\r\n if (hashTableArray[arrIndex] == null){\r\n hashTableArray[arrIndex] = new LinkedList<>();\r\n }\r\n if(contains(key)) {\r\n return false; // the key is already in use, so don't use it.\r\n } else {\r\n hashTableArray[arrIndex].add(entry); // add the key and value pair to the linked list.\r\n }\r\n return true;\r\n }", "public boolean put(K key, V value)\r\n\t{\r\n\t\treturn data.addUpdate(new Entry(key, value));\r\n\t}", "public void put(String key, String value) {\n if (key != null && value != null) {\n \tmStringParams.put(key, value);\n }\n }", "void addBroken(String key, String val) {\n List<String> list = map.get(key);\n if (list == null) {\n list = Collections.synchronizedList(new ArrayList<>());\n map.put(key, list);\n }\n list.add(val);\n }", "@Override\n public V put(K key, V value) {\n if (!containsKey(key)) {\n keys.add(key);\n }\n\n return super.put(key, value);\n }", "public ModelMessage add(String key, String value) {\n super.add(key, value);\n return this;\n }", "public void add(K key,V value) {\n DictionaryPair pair = new DictionaryPair(key,value);\n int index = findPosition(key);\n\n if (index!=DsConst.NOT_FOUND) {\n list.set(index,pair);\n } else {\n list.addLast(pair);\n this.count++;\n }\n }", "void add(String key);", "public void put(Value key, Value value) {\n\t\tstorage.put(key, value);\n\t}", "public void put(String key, Object value)\n\t{\n\t\tverifyParseState();\n\t\tvalues.put(key, ValueUtil.createValue(value));\n\t}", "private void addToGeoLocationContext(String key, Object value) {\n if (key != null && value != null && !key.isEmpty() ||\n (value instanceof String) && !((String) value).isEmpty()) {\n this.geoLocationPairs.put(key, value);\n }\n }", "public void addValue(Object value)\n\t{\n\t\tif (!values.contains(value))\n\t\t{\n\t\t\tvalues.add(value + \"\");\n\t\t}\n\t}", "public static <K, T extends Number> void addToMap(Map<K, T> m, K key, T value) {\n m.put(key, m.containsKey(key) ? (T) (Double) (value.doubleValue() + m.get(key).doubleValue()) : value);\n }", "@Override\n\tpublic V put(K key, V value) {\n\t\tV v = map.put(key, value);\n\t\tif (map.containsKey(key))\n\t\t\tkeys.add(key);\n\t\t\n\t\treturn v;\n\t}", "public void put(Key key, Value val);", "public boolean add(K key, V value){\r\n int loc = find(key);\r\n if(needToRehash()){\r\n rehash();\r\n }\r\n Entry<K,V> newEntry = new Entry<>(key,value);\r\n if(hashTable[loc]!= null && hashTable[loc].equals(key))\r\n return false;\r\n else{\r\n hashTable[loc] = newEntry;\r\n size++;\r\n return true;\r\n }\r\n }", "public void put(Keys key, String value) {\n\t\tp.put(getRegKey(key), value); //$NON-NLS-1$\n\t}", "void add(KeyType key, ValueType value);", "void addCorrect8(String key, String val) {\n List<String> list = map.computeIfAbsent(key,\n k -> Collections.synchronizedList(new ArrayList<>()));\n list.add(val);\n }", "@Override\n\tpublic ContinuousValue addValue(String value) {\n\t\tif(excludedValues.contains(value))\n\t\t\treturn this.getEmptyValue();\n\t\tContinuousValue iv = getValue(value);\n\t\tif(value == null) {\n\t\t\tiv = this.getInstanceValue(value);\n\t\t\tvalues.put(iv.getActualValue(), iv);\n\t\t}\n\t\treturn iv;\n\t}", "boolean add(Object key, Object value);", "@Override\r\n\tpublic void addKeyValuePair(String key, String value) {\r\n\t\t\r\n\t\t// if key is empty\r\n if (key == null || key.equals(\" \") || value == null || value.equals(\" \")) {\r\n System.out.println(\"Key cannot be Empty\");\r\n return;\r\n }\r\n // create new Node to be inserted\r\n Node newNode = new Node(new Data(key, value));\r\n // call recursive function traverse from root to correct Position to add newNode\r\n this.root = insertRecursively(this.root, newNode);\r\n return;\r\n\t\t\r\n\t}", "public Dataset addTagsEntry(String key, String value) {\n if (null == this.tags) {\n this.tags = new java.util.HashMap<String, String>();\n }\n if (this.tags.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.tags.put(key, value);\n return this;\n }", "public V put(String key, V value) {\n int index = hashOf(key);\n while (index > capacity) grow();\n Object oldValue = values[index];\n values[index] = value;\n if (oldValue == null) size++;\n return (V) oldValue;\n }", "@Override\n public V put(final K key, final V value) {\n if (key == null) {\n throw new NullPointerException(\"key\");\n }\n entries.add(new SimpleEntry<K,V>(key, value));\n size = UNKNOWN_SIZE;\n return null;\n }", "@NonNull\n\t\tBuilder addProperty(@NonNull String key, Object value);", "public void put(String key, Object value) {\n\t\tgetMap(value.getClass()).put(key, value);\n\t}", "public void insertIntoMap(String key, String name) {\n\t\tif (mapNames.containsKey(key)) {\n\t\t\t// Add new name onto the end of the existing ArrayList.\n\t\t\tmapNames.get(key).add(name);\n\t\t} else {\n\n\t\t\t// Create new ArrayList with the unparsed name as the value\n\t\t\tArrayList<String> arrName = new ArrayList<String>();\n\t\t\tarrName.add(name);\n\t\t\tmapNames.put(key, arrName);\n\t\t}\n\t}", "public void put(String key, String value) {\n Strings.requireNonNullAndNotEmpty(key);\n if(value == null) {\n value = Strings.EMPTY;\n }\n\n map.put(key.toLowerCase(Locale.ROOT), value);\n isDirty = true;\n }", "public void putInOrder(String key, ValueType value) {\n\n if (null != key && (key.charAt(0) != '$' || key.startsWith(ABSORB_DATA_PREFIX_DEFAULT))) {\n if (null == orderedKeys)\n orderedKeys = new ArrayList<>();\n\n if (!containsKey(key)) {\n orderedKeys.add(key);\n\n // use ArrayList as container if no container set\n if (null == values)\n values = (ContainerType) new ArrayList();\n values.add(value);\n }\n }\n else\n throw new IllegalArgumentException(\"Key cannot contain special character $\");\n\n put(key, value);\n }", "public V put(K key, V value);", "public int add(String key, E value) {\r\n int index = items.size();\r\n keys.put(key, index);\r\n items.add(value);\r\n return index;\r\n }", "public void addParameter(String key, Object value) {\n params.put(key, value.toString());\n }", "public ObjectMap put(String key, String value) throws JsonException {\r\n\t\tobjectMap.put(check_Key(key), value);\r\n\t\treturn this;\r\n\t}", "public boolean put(String key, String value);", "public void put(String key, Value val)\r\n {\r\n if (key.equals(\"\")) {\r\n if (null_str_val == null) ++N;\r\n null_str_val = val;\r\n return;\r\n }\r\n root = put(root, key, val, 0);\r\n }", "public void add(String k, String v) throws RemoteException, Error;", "public void addProperty(String key,\n Object value) {\n if (this.ignoreCase) {\n key = key.toUpperCase();\n }\n\n this.attributes.put(key, value.toString());\n }", "@Override\n public T put(String key, T value) {\n T old = null;\n // Do I have an entry for it already?\n Map.Entry<String, T> entry = entries.get(key);\n // Was it already there?\n if (entry != null) {\n // Yes. Just update it.\n old = entry.setValue(value);\n } else {\n // Add it to the map.\n map.put(prefix + key, value);\n // Rebuild.\n rebuildEntries();\n }\n return old;\n }", "@Override\n public synchronized Object put(Object key, Object value) {\n if (value instanceof String) {\n value = ((String) value).trim();\n }\n String strkey = key.toString();\n if (this.ignoreCase) {\n this.keyMap.put(strkey.toLowerCase(), strkey);\n }\n return super.put(strkey, value);\n }", "@Override\n\tpublic T put(String key, T value) {\n\t\tString uKey = key.toUpperCase();\n\t\tif ( containsKey(uKey)){\n\t\t\treturn super.get(uKey);\n\t\t}else{\n\t\t\treturn super.put(uKey, value);\n\t\t}\n\t\t\n\t}", "public void addProperty(String key, String value);", "public synchronized boolean add(String key, String content) {\n if (store.get(key) != null) {\n logger.warning(\"Key \" + key + \" already in store\");\n return false;\n }\n logger.info(\"Adding key \" + key);\n ensureMapSize();\n MapData mapData = new MapData();\n mapData.setContent(content);\n mapData.setTime((new Date()).getTime());\n store.put(key, mapData);\n tally.put(key, 0);\n return true;\n }", "public void put(R key, S ...values) {\n if (!map.containsKey(key)){\n if (listType == ARRAY_LIST){\n map.put(key, Collections.synchronizedList(new ArrayList<S>()));\n } else if (listType == LINKED_LIST){\n map.put(key, Collections.synchronizedList(new LinkedList<S>()));\n }\n }\n List<S> list = map.get(key);\n for (S value : values) {\n list.add(value);\n }\n }", "@Override\n public void put(K key, V value) {\n // Note that the putHelper method considers the case when key is already\n // contained in the set which will effectively do nothing.\n root = putHelper(root, key, value);\n size += 1;\n }", "public String put(String key, String value) {\n PairStringString p = new PairStringString(key, value);\n Node pos = find(key);\n if (pos == null) {\n head = new Node(p, head, null);\n if (head.next != null) {\n head.next.prev = head;\n }\n size++;\n return null;\n } else {\n PairStringString tmp = pos.pairStringString;\n pos.pairStringString = p;\n return tmp.getValue();\n }\n }", "public void addAttribute(String key, String value) {\r\n this.mapAttributes.put(key, value);\r\n }", "public Canary addTagsEntry(String key, String value) {\n if (null == this.tags) {\n this.tags = new java.util.HashMap<String, String>();\n }\n if (this.tags.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.tags.put(key, value);\n return this;\n }", "public synchronized void put(String key,String val){\n map.put(key, val); \n }", "public StringSetFieldBuilder plusValue(final String... value) {\n if (this.value == null) {\n this.value = new ArrayList<>();\n }\n this.value.addAll(Arrays.asList(value));\n return this;\n }", "V put(final K key, final V value);", "public V put(K key, V value) {\n System.out.println(\"SimpleHashMap.put\");\n return mMap.put(key, value);\n }", "public void setData(@NotNull String key, @NotNull Object value) {\n data.put(key, value);\n }", "private void addToMobileContext(String key, String value) {\n if (key != null && value != null && !key.isEmpty() && !value.isEmpty()) {\n this.mobilePairs.put(key, value);\n }\n }", "public void put(String key, String value){\n if(key != null && value != null) {\n urlParams.put(key, value);\n try {\n\t\t\t\tmJsonmap.put(key, value);\n\t\t\t} catch (JSONException e) {\n\t\t\t}\n }\n }", "public void put (String key, Object value) {\n if (trace) {\n getProfiler().checkPoint(\n String.format(\" %s='%s' [%s]\", key, value, Thread.currentThread().getStackTrace()[2])\n );\n }\n getMap().put (key, value);\n synchronized (this) {\n notifyAll();\n }\n }", "public void setValue(K key, V value);", "@Override\n public void put(K key, V value) {\n int index = Math.floorMod(key.hashCode(), entryArr.length);\n if(containsKey(key)) {\n LinkedList<Entry<K, V>> pointer = entryArr[index];\n for(int i = 0; i < pointer.size(); i++) {\n if(pointer.get(i).keyEquals(new Entry<K, V>(key, null))) {\n pointer.get(i).value = value;\n break;\n }\n }\n } else {\n if(loadFactor()>maxLoad) {\n resize();\n }\n if (entryArr[index] == null) {\n entryArr[index] = new LinkedList<Entry<K, V>>();\n }\n entryArr[index].addLast(new Entry<K, V>(key, value));\n size++;\n }\n }" ]
[ "0.69976634", "0.6525393", "0.64108944", "0.63789964", "0.630283", "0.6287074", "0.6187362", "0.61569774", "0.61559945", "0.6143997", "0.606798", "0.6053254", "0.6020712", "0.60206765", "0.6011262", "0.59706485", "0.59673125", "0.5961348", "0.5943385", "0.59413016", "0.5908999", "0.5893904", "0.58763236", "0.5869873", "0.57934904", "0.5792472", "0.57874393", "0.5772939", "0.57251734", "0.5723588", "0.57169044", "0.5703353", "0.5688485", "0.56832784", "0.5682301", "0.5671701", "0.5669908", "0.56499517", "0.56473637", "0.56361765", "0.5634375", "0.56182253", "0.5598155", "0.5573515", "0.5572181", "0.55720365", "0.5568827", "0.5555049", "0.5534149", "0.551802", "0.5502659", "0.5499063", "0.5498967", "0.54907733", "0.5481069", "0.5477556", "0.54635847", "0.5458382", "0.54508835", "0.54207665", "0.5420106", "0.5417684", "0.5417274", "0.5413189", "0.54107064", "0.5401114", "0.5397373", "0.53962046", "0.5382683", "0.5375446", "0.5374974", "0.537292", "0.537215", "0.53603387", "0.5354148", "0.53486925", "0.5347579", "0.5344322", "0.53379714", "0.53180754", "0.5309604", "0.5304164", "0.529813", "0.52925795", "0.52903867", "0.5285148", "0.5272649", "0.52689815", "0.5267432", "0.52647585", "0.52643865", "0.52615005", "0.52592194", "0.525019", "0.52398527", "0.52397853", "0.52291214", "0.5224422", "0.52195877", "0.5218325" ]
0.71866035
0
Generates a String representation of this object.
@Override public String toString() { final AppendingStringBuffer buffer = new AppendingStringBuffer(); boolean first = true; for (Map.Entry<String, Object> entry : entrySet()) { if (first == false) { buffer.append(' '); } first = false; buffer.append(entry.getKey()); buffer.append(" = \""); final Object value = entry.getValue(); if (value == null) { buffer.append("null"); } else if (value.getClass().isArray()) { buffer.append(Arrays.asList((Object[])value)); } else { buffer.append(value); } buffer.append('\"'); } return buffer.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }", "public String toString() { return stringify(this, true); }", "public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }", "@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }", "@Override\n public String toString() {\n return new Gson().toJson(this);\n }", "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\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}", "@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }", "public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}", "@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "public String toString() {\n\t\treturn this.toJSON().toString();\n\t}", "@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }", "@Override\n public String toString() {\n final Map<String, Object> augmentedToStringFields = Reflect.getStringInstanceVarEntries(this);\n augmentToStringFields(augmentedToStringFields);\n return Reflect.joinStringMap(augmentedToStringFields, this);\n }", "@Override\n public String toString() {\n return gson.toJson(this);\n }", "@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }", "public String toString() {\n\t\treturn toString(true);\n\t}", "@Override\n public String toString() {\n return toString(false, true, true, null);\n }", "public String toString() {\n\t\treturn toString(this);\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}", "@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }", "public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}", "@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 public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }", "@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }", "public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}", "@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}", "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 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 final String toString() {\n return asString(0, 4);\n }", "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}", "@Override\n public String toString() {\n return Helper.concat(this.getClass().getName(), \"{\",\n \"id:\", getId(),\n \", name:\", getName(),\n \", positions:\", positions,\n \", resourceRoles:\", resourceRoles,\n \"}\");\n }", "public String toString ( ) {\r\n String returnString = _name + \"{ id: \" + _uniqueID + \" pos: [\"+ getPosition().getPosition() + \"] }\";\r\n return returnString;\r\n }", "public String toString() {\n\treturn createString(data);\n }", "public String toString() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\tDocument document = XMLUtils.newDocument();\n\t\tdocument.appendChild(toXML(document));\n\t\tXMLUtils.write(bos, document);\n\n\t\treturn bos.toString();\n\t}", "public String toString(){\r\n\t\tString output=\"\";\r\n\t\toutput+=super.toString();\r\n\t\treturn output;\r\n\t}", "public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToString(\"ProjectName\", getProjectName()));\n buffer.append(objectToStringFK(\"DataProvider\", getDataProvider()));\n buffer.append(objectToStringFK(\"PrimaryInvestigator\", getPrimaryInvestigator()));\n buffer.append(objectToStringFK(\"CreatedBy\", getCreatedBy()));\n buffer.append(objectToString(\"CreatedTime\", getCreatedTime()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }", "public String toString() {\n\t\t//TODO add your own field name here\t\t\n\t\t//return buffer.append(this.yourFieldName).toString();\n\t\treturn \"\";\n\t}", "@Override public String toString();", "public String toString() {\n\t\treturn toString(0, 0);\n\t}", "public String toString () {\n\t\tString resumen = \"\";\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tresumen = resumen + this.get(i).toString();\n\t\t}\n\t\treturn resumen;\n\t}", "@Override\r\n public String toString() {\r\n return \"Generator internal generated id = \" + id + \", \\nname = \" + name + \", \\ncapacity = \" + \r\n capacity + \", \\nserialNumber = \" + serialNumber + \", \\noperatorEmail = \" + operatorEmail + \", \\nsiteCode = \" + siteCode;\r\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\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}", "@Override String toString();", "@Override\n\tpublic String toString() {\n\t\tif (repr == null)\n\t\t\trepr = toString(null);\n\n\t\treturn repr;\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn \"\";\r\n\t}", "public String toString() {\n StringBuilder stringBuilder = new StringBuilder(40);\n stringBuilder.append(\"property '\").append(this.getName()).append(\"' (\");\n if (this._accessorMethod != null) {\n stringBuilder.append(\"via method \").append(this._accessorMethod.getDeclaringClass().getName()).append(\"#\").append(this._accessorMethod.getName());\n } else {\n stringBuilder.append(\"field \\\"\").append(this._field.getDeclaringClass().getName()).append(\"#\").append(this._field.getName());\n }\n if (this._serializer == null) {\n stringBuilder.append(\", no static serializer\");\n } else {\n stringBuilder.append(\", static serializer of type \" + this._serializer.getClass().getName());\n }\n stringBuilder.append(')');\n return stringBuilder.toString();\n }", "public String toString()\n\t{\n\t\tString output=\"\";\n\n\n\n\n\n\n\t\treturn output+\"\\n\\n\";\n\t}", "@Override\r\n\tpublic String toString();", "@Override\n public String toString() {\n return stringBuilder.toString() + OBJECT_SUFFIX;\n }", "public String toString() {\n return \"\";\n }", "public String toString() {\n return \"\";\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}", "public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}", "@Override\r\n String toString();", "@Override\n\tpublic String toString() {\n\t\treturn new StringBuilder()\n\t\t\t.append(this.getClass().getSimpleName())\n\t\t\t.append(\" { id:\").append(id)\n\t\t\t.append(\", version:\").append(version)\n\t\t\t.append(\" }\")\n\t\t\t.toString();\n\t}", "public String toString() {\r\n return ToStringBuilder.reflectionToString(this,\r\n ToStringStyle.MULTI_LINE_STYLE);\r\n }", "public String toString(){ \n //--------------------------------------------------------------------------- \n StringBuffer buffer=new StringBuffer(\"*****GeneratorProperties:\"); \n buffer.append(\"\\tdatabaseDriver\"+databaseDriver); \n buffer.append(\"\\turlString\"+urlString); \n buffer.append(\"\\tuserName=\"+userName); \n buffer.append(\"\\tpassword=\"+password); \n buffer.append(\"\\tpackageName=\"+packageName); \n buffer.append(\"\\toutputDirectory=\"+outputDirectory); \n buffer.append(\"\\tjarFilename=\"+jarFilename); \n buffer.append(\"\\twhereToPlaceJar=\"+whereToPlaceJar); \n buffer.append(\"\\ttmpWorkDir=\"+tmpWorkDir); \n buffer.append(\"\\taitworksPackageBase=\"+aitworksPackageBase); \n buffer.append(\"\\tincludeClasses=\"+includeClasses); \n buffer.append(\"\\tincludeSource=\"+includeSource); \n buffer.append(\"\\tgeneratedClasses=\"+generatedClasses); \n return buffer.toString();\n }", "public String toString() {\n\t\tString resultString = \"I am a weighted Instances object.\\r\\n\" + \"I have \" + numInstances()\n\t\t\t\t+ \" instances and \" + (numAttributes() - 1) + \" conditional attributes.\\r\\n\"\n\t\t\t\t+ \"My weights are: \" + Arrays.toString(weights) + \"\\r\\n\" + \"My data are: \\r\\n\"\n\t\t\t\t+ super.toString();\n\n\t\treturn resultString;\n\t}", "public String toString() {\n\n return this.getClass().getName() + \" -- \" \n\n + \" [Id:\" + this.getSequenceNumber()\n\n + \", ts:\" + this.getTimeStamp() + \"]\";\n\n }", "@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }", "@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(this.getName());\n sb.append(\"\\n name=\").append(this.getName());\n sb.append(\"\\n type=\").append(this.getType());\n sb.append(\"\\n parentType=\").append(this.getParentType());\n sb.append(\"\\n resourceUrl=\").append(this.getResourceUrl());\n sb.append(\"\\n restUrl=\").append(this.getRestUrl());\n sb.append(\"\\n soapUrl=\").append(this.getSoapUrl());\n sb.append(\"\\n thumbnailUrl=\").append(this.getThumbnailUrl());\n sb.append(\"\\n capabilities=\").append(this.getCapabilities());\n sb.append(\"\\n creator=\").append(this.getCreator());\n sb.append(\"\\n description=\").append(this.getDescription());\n sb.append(\"\\n keywords=\").append(this.getKeywords());\n if (this.getEnvelope() != null) {\n if (this.getEnvelope() instanceof EnvelopeN) {\n EnvelopeN envn = (EnvelopeN) this.getEnvelope();\n sb.append(\"\\n envelope=\");\n sb.append(envn.getXMin()).append(\", \").append(envn.getYMin()).append(\", \");\n sb.append(envn.getXMax()).append(\", \").append(envn.getYMax());\n if (envn.getSpatialReference() != null) {\n sb.append(\" wkid=\").append(envn.getSpatialReference().getWKID());\n }\n }\n }\n return sb.toString();\n }", "public String toString() {\n return toDisplayString();\n }", "@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}", "public String toString() {\n \n TmpStringBuffer = new StringBuffer(1000);\n TmpStringBuffer.append(this.getClass().getName());\n \n return TmpStringBuffer.toString();\n \n }", "public String toString() {\n \n TmpStringBuffer = new StringBuffer(1000);\n TmpStringBuffer.append(this.getClass().getName());\n \n return TmpStringBuffer.toString();\n \n }", "public String toString() {\n \n TmpStringBuffer = new StringBuffer(1000);\n TmpStringBuffer.append(this.getClass().getName());\n \n return TmpStringBuffer.toString();\n \n }", "public String toString() {\n \n TmpStringBuffer = new StringBuffer(1000);\n TmpStringBuffer.append(this.getClass().getName());\n \n return TmpStringBuffer.toString();\n \n }", "public String toString() {\r\n return \"\";\r\n }", "public String toString() { return \"\"; }", "public String toString() { return \"\"; }", "public String toString() {\n String output = \"\\nName: \" + name;\n output += \"\\nType: \" + type;\n output += \"\\nContact Details: \" + contactNo;\n output += \"\\nEmail address: \" + email;\n output += \"\\nResidentail Address: \" + address;\n\n return output;\n }", "@Override\r\n public String toString();", "@Override\n public String toString()\n {\n return this.toLsString();\n }", "@Override\n String toString();", "@Override\n String toString();", "public String toString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tthis.createSpecSection(buffer);\n\t\tthis.createOperatorSection(buffer);\n\t\treturn buffer.toString();\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn toJSON().toString();\n\t}", "@Override\r\n\r\n public String toString() {\r\n StringBuilder s = new StringBuilder();\r\n s.append(\"#\").append(id).append(\" (\").append(name).append(\")\");\r\n return s.toString();\r\n }", "@Override\n public String toString() {\n return string;\n }", "@Override\n public String toString() {\n return (this.str);\n }", "public String toString()\n {\n return getClass().getName() + \n \t\t\" name=\" + name +\n \t\t\"\\n Movement=\" + movement + \n \t\t\"\\n Weapon Skill=\" + weaponSkill + \n \t\t\"\\n Balistic Skill=\" + balisticSkill +\n \t\t\"\\n Strength=\" + strength +\n \t\t\"\\n Toughness=\" + toughness +\n \t\t\"\\n Wounds=\" + wounds +\n \t\t\"\\n Initiative=\" + strength +\n \t\t\"\\n Attacks=\" + attacks ;\n }", "@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}", "@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn this.toAnticipatedString();\n\t}", "@Override\n public final String toString()\n {\n StringBuilder sb = new StringBuilder(64);\n appendDesc(sb);\n return sb.toString();\n }", "@Override\n\tpublic String toString();", "@Override\n\tpublic String toString()\n\t{\n\t\treturn this.str;\n\t}", "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()\r\n {\r\n String display = \"Title: \" + this.getType();\r\n display += \"\\nName: \" + this.getName();\r\n display += \"\\nSurname: \" + this.getSurname();\r\n display += \"\\nTelephone Number: \" + this.getPhoneNum();\r\n display += \"\\nEmail Address: \" + this.getEmailAddress();\r\n display += \"\\nPhysical Address: \" + this.getPhysicalAddress() + \"\\n\";\r\n\r\n return display;\r\n }", "public String toString() ;", "@Override\n public String toString() {\n return MoreObjects.toStringHelper(this) //\n .add(\"name\", getName()) //\n .add(\"phNumber\", getPhNumber()) //\n .add(\"emailId\", getEmailId()) //\n .add(\"parent\", getParent()) //\n .toString();\n }", "public String toString();", "public String toString();", "public String toString();" ]
[ "0.8036225", "0.7878638", "0.78235054", "0.7797589", "0.77370137", "0.77114594", "0.77071726", "0.7672415", "0.7651887", "0.76494217", "0.764361", "0.764361", "0.7636319", "0.7528525", "0.7527102", "0.7526945", "0.75225836", "0.7485144", "0.7464781", "0.7445109", "0.7430353", "0.7424222", "0.7424222", "0.7424222", "0.7417135", "0.74164385", "0.73936385", "0.73833776", "0.7382549", "0.7382504", "0.73790646", "0.73790646", "0.7363887", "0.73543715", "0.7354355", "0.7354355", "0.7352408", "0.7345071", "0.73447514", "0.7335286", "0.733468", "0.73315716", "0.732555", "0.732469", "0.73200905", "0.73069125", "0.7303622", "0.7297455", "0.7282482", "0.7267684", "0.7258909", "0.7251653", "0.7243469", "0.72372216", "0.7233252", "0.72304446", "0.7221949", "0.7221949", "0.72105634", "0.71987927", "0.71926004", "0.7183411", "0.718045", "0.71782434", "0.71774906", "0.7176275", "0.7166596", "0.71659994", "0.71632713", "0.71591073", "0.71562725", "0.71562725", "0.71562725", "0.71562725", "0.71501124", "0.71481353", "0.71481353", "0.7147612", "0.7142807", "0.7136325", "0.71299464", "0.71299464", "0.7122762", "0.7121545", "0.71197826", "0.71178657", "0.7114284", "0.71121913", "0.7108623", "0.7107304", "0.7106932", "0.7104662", "0.7102915", "0.7102431", "0.71003556", "0.70892256", "0.70879525", "0.7085015", "0.7082887", "0.7082887", "0.7082887" ]
0.0
-1
Throws an exception if ValueMap is immutable.
private void checkMutability() { if (immutable) { throw new UnsupportedOperationException("Map is immutable"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void valuesTest()\n {\n map.putAll(getAMap());\n assertNotNull(map.values());\n }", "public void verifyMap() {\r\n // TODO: implement test to ensure that map is the same as confirmed if\r\n // its values were converted into collections.\r\n }", "public void verifyValues() {\r\n // update the values view to the latest version, then proceed to verify\r\n // as usual. \r\n values = map.values();\r\n super.verifyValues();\r\n }", "public static void main(String[] args){\n\n\n\n Map<Integer,StringBuilder> map=new HashMap<Integer,StringBuilder>();\n map.put(1,new StringBuilder(\"c1\"));\n map.put(2,new StringBuilder(\"c2\"));\n map.put(3,new StringBuilder(\"c3\"));\n\n Map<Integer,StringBuilder> unmodifiableMap= Collections.unmodifiableMap(map);\n //这时候如果再往unmodifiableMap中添加元素,会发生错误\n //unmodifiableMap.put(4,new StringBuilder(\"c4\"));\n System.out.println(\" unmodifiableMap before : \" + unmodifiableMap.get(3));\n System.out.println(\" map before : \" + map.get(3));\n unmodifiableMap.get(3).append(\"new\");\n System.out.println(\" map after : \" + map.get(3));\n System.out.println(\" unmodifiableMap after : \" + unmodifiableMap.get(3));\n\n }", "public static java.util.Map unmodifiableMap(java.util.Map arg0)\n { return null; }", "public void testNormalValues()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkValues(pmf,\r\n HashMap1.class,\r\n ContainerItem.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap1.class);\r\n clean(ContainerItem.class);\r\n }\r\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void updateValuesSizeException() {\n\n\t\tset.updateValues(new float[] {1f, 2f});\n\t}", "public abstract void map(String key, String value) throws Exception;", "public interface Map<K, V> {\n /** Returns the number of entries in the map. */\n public int size();\n\n /** Returns whether the map is empty or not. */\n public boolean isEmpty();\n\n /**\n * Puts a given key and value pair into the map, replaces the previous\n * one, if exits. And returns the old value, if exits, otherwise returns\n * null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V put(K key, V value) throws InvalidKeyException;\n\n /**\n * Gets the value by given key.\n * If the key cannot be found, return null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V get(K key) throws InvalidKeyException;\n\n /**\n * Removes the key-value pair by given key.\n * Returns the value if found the key, otherwise return null.\n *\n * @throws com.rainicy.chapter8.InvalidKeyException if the key is invalid.\n */\n public V remove(K key) throws InvalidKeyException;\n\n /**\n * Returns iterable object containing all the keys in the map.\n */\n public Iterable<K> keys();\n\n /**\n * Returns iterable object containing all the values in the map.\n */\n public Iterable<V> values();\n\n /**\n * Returns iterable object containing all the entries in the map.\n */\n public Iterable<Entry<K, V>> entries();\n}", "protected void validateVALUETypeInvariants(final Value subject,\n final Map map) {\n EnumerationValue ev = (EnumerationValue)subject;\n validate(map.values().contains(ev));\n validate(ev.equals(map.get(ev.toString())));\n }", "Object getValue(final TCServerMap map, final L lockID, final Object key) throws AbortedOperationException;", "RegularImmutableBiMap(Map.Entry<?, ?>[] entriesToAdd) {\n/* 104 */ int n = entriesToAdd.length;\n/* 105 */ int tableSize = Hashing.closedTableSize(n, 1.2D);\n/* 106 */ this.mask = tableSize - 1;\n/* 107 */ ImmutableMapEntry[] arrayOfImmutableMapEntry1 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 108 */ ImmutableMapEntry[] arrayOfImmutableMapEntry2 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 109 */ ImmutableMapEntry[] arrayOfImmutableMapEntry3 = (ImmutableMapEntry[])createEntryArray(n);\n/* 110 */ int hashCode = 0;\n/* */ \n/* 112 */ for (int i = 0; i < n; i++) {\n/* */ \n/* 114 */ Map.Entry<?, ?> entry = entriesToAdd[i];\n/* 115 */ K key = (K)entry.getKey();\n/* 116 */ V value = (V)entry.getValue();\n/* 117 */ CollectPreconditions.checkEntryNotNull(key, value);\n/* 118 */ int keyHash = key.hashCode();\n/* 119 */ int valueHash = value.hashCode();\n/* 120 */ int keyBucket = Hashing.smear(keyHash) & this.mask;\n/* 121 */ int valueBucket = Hashing.smear(valueHash) & this.mask;\n/* */ \n/* 123 */ ImmutableMapEntry<K, V> nextInKeyBucket = arrayOfImmutableMapEntry1[keyBucket];\n/* 124 */ for (ImmutableMapEntry<K, V> keyEntry = nextInKeyBucket; keyEntry != null; \n/* 125 */ keyEntry = keyEntry.getNextInKeyBucket()) {\n/* 126 */ checkNoConflict(!key.equals(keyEntry.getKey()), \"key\", entry, keyEntry);\n/* */ }\n/* 128 */ ImmutableMapEntry<K, V> nextInValueBucket = arrayOfImmutableMapEntry2[valueBucket];\n/* 129 */ for (ImmutableMapEntry<K, V> valueEntry = nextInValueBucket; valueEntry != null; \n/* 130 */ valueEntry = valueEntry.getNextInValueBucket()) {\n/* 131 */ checkNoConflict(!value.equals(valueEntry.getValue()), \"value\", entry, valueEntry);\n/* */ }\n/* 133 */ ImmutableMapEntry<K, V> newEntry = (nextInKeyBucket == null && nextInValueBucket == null) ? new ImmutableMapEntry.TerminalEntry<K, V>(key, value) : new NonTerminalBiMapEntry<K, V>(key, value, nextInKeyBucket, nextInValueBucket);\n/* */ \n/* */ \n/* */ \n/* 137 */ arrayOfImmutableMapEntry1[keyBucket] = newEntry;\n/* 138 */ arrayOfImmutableMapEntry2[valueBucket] = newEntry;\n/* 139 */ arrayOfImmutableMapEntry3[i] = newEntry;\n/* 140 */ hashCode += keyHash ^ valueHash;\n/* */ } \n/* */ \n/* 143 */ this.keyTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry1;\n/* 144 */ this.valueTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry2;\n/* 145 */ this.entries = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry3;\n/* 146 */ this.hashCode = hashCode;\n/* */ }", "@Override\n public void putAll(Map<? extends K, ? extends V> map) {\n throw new UnsupportedOperationException();\n }", "@Override\r\n public void updateEntryValue(Object key, Object value) throws Exception\r\n {\n }", "private ImmutableEnumMap(EnumMap<K, V> delegate) {\n/* 53 */ this.delegate = delegate;\n/* 54 */ Preconditions.checkArgument(!delegate.isEmpty());\n/* */ }", "public interface Map<K, V> {\n\n /**\n *\n * Returns the number of elements in this map (its cardinality).\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * </ol><br />\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> The number of elements in the map being represented\n * is returned as output. </li>\n * <li> The represented map has not been changed. </li>\n * </ol>\n *\n * @return The size of the set being represented\n *\n */\n\n int size ();\n\n /**\n *\n * Reports whether the given key has a value defined for it in this map.\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> An element k of type K has been supplied as input. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied </li>\n * <li> The Map being represented has not been changed </li>\n * <li> The value true is returned as output if a value is\n * defined for the input key k, and false is returned\n * otherwise.\n * </li>\n * </ol>\n *\n * @param k A key whose inclusion in the Map is being queried\n * @return true if a value is defined for the key k, and false otherwise\n *\n */\n\n boolean defined(K k);\n \n /**\n *\n * Reports the value defined for a given key.\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> An element k of type K has been supplied as input. </li>\n * </ol><br />\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> The Map being represented has not been changed. </li>\n * <li> If a value is defined for the input key k then this\n * value is returned as output. An UndefinedException\n * is thrown, otherwise. </li>\n * </ol>\n *\n * @param k A key whose inclusion in the Map is being queried\n * @return The value associated with this key in this Map\n * @throws UndefinedException if no value is sssocated with this\n * key in this Map\n *\n */\n\n V get(K k) throws UndefinedException;\n\n /**\n *\n * Defines or changes the value associated with a given key.\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> A key k of type K and value v of type V are supplied as input. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> If this is a Bounded Map, there is no value already associated\n * with the input key k, and the size of this map is less than its\n * capacity, then the input value is associated (under this map)\n * to the input key k. If there is no value already associated\n * with the input key and the size of this Map is already equal to\n * its capacity, then an OverflowException is thrown and the\n * represented map is not changes. Finally, if there is already a\n * value associated with the input key k then this value is replaced\n * by the input value v.\n * </li>\n * <li> If this is an Unbounded Map and there is no value already\n * associated with the input key ke, then the input value v\n * is associated with the input key. If there is already a value\n * assocated with the input key k then this value is replaced\n * by the input value v.\n * </li>\n * </ol>\n *\n * @param k the key whose value is to be defined\n * @param v the value to be associated with the input key\n * @throws OverflowException if this is a Bounded Map, k does not already\n * have a value associated with it, and the Bounded Map&rsquo;Set\n * size is already equal to its capacity\n *\n */\n\n void set(K k, V v) throws OverflowException;\n\n /**\n *\n * Removes the value associated with an input key (effectively causing\n * the mapping to be &ldquo;undefined&rdquo; at the input key, if a value\n * is already associated with the input key\n * <br />\n *\n * <p>\n * <strong>Precondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> A key k of type K is supplied as input. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> If there is currently a value associated with the input key k\n * then this part of the mapping is removed, so that the\n * mapping is now &ldquo;undefined&rdquo; at&nbsp;k.\n * Otherwise the mapping is not changed.\n * </li>\n * </ol>\n *\n * @param k for which the mapping should now become &ldquo;undefined&rdquo;\n *\n */\n\n void unset(K k);\n\n\n /**\n *\n * Returns an iterator over the keys for which the mappins is defined.\n * The keys are returned in no particular order (unless this Map\n * is also an instance of some class that provides a guarantee).\n * <br />\n *\n * <p>\n * <strong>Preconditon:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * </ol>\n * <p>\n * <strong>Postcondition:</strong>\n * </p>\n * <ol style=\"list-style-type: lower-alpha\">\n * <li> The Map invariant is satisfied. </li>\n * <li> An Iterator over the keys for which values are defined\n * is returned as output. </li>\n * <li> The Map being represented has not been changed. </li>\n * </ol>\n *\n * @return an iterator over the keys for which values are defined\n *\n */\n\n Iterator<K> iterator();\n\n}", "Object getValueUnlocked(final TCServerMap map, final Object key) throws AbortedOperationException;", "public ImmutableMultimap(ImmutableMap immutableMap) {\n this.A00 = immutableMap;\n }", "public static <K, V> Reference2ObjectMap<K, V> unmodifiable(Reference2ObjectMap<K, V> m) {\n/* 564 */ return new UnmodifiableMap<>(m);\n/* */ }", "public Map<String, Collection<V>> asUnmodifiableMap() {\n return Collections.unmodifiableMap(map);\n }", "public boolean isFamily2Dirty(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {\n\t throw new java.lang.UnsupportedOperationException(\"IsDirty is not supported on tombstones\");\n\t }", "@SuppressWarnings(\"unchecked\")\n @Test\n void shouldThrowExceptionWhenGivenEntriesIsEmpty() {\n DefaultValidator<Target> validator = new DefaultValidator<>(Target.class);\n assertThrows(IllegalArgumentException.class, () -> validator.ruleForMap(Target::getMap).doesNotContain(new MapEntry[0]));\n }", "@Override\r\n public void EditMap() throws Exception {\r\n printInvalidCommandMessage();\r\n }", "private XMLParseException invalidValueSet(String key) {\n String msg = \"Invalid value set (key = \\\"\" + key + \"\\\")\";\n return new XMLParseException(this.getTagName(), msg);\n }", "@Test\n public void testCreateSafeMap() {\n Map safeMap = safeCreator.createMap('S',mapSize);\n int size = safeMap.getSize();\n String type = safeMap.getType();\n assertEquals(10,size);\n assertEquals(\"Safe\",type);\n }", "@Override\n public final void operate(Map<String, ?> yamlValues, int patternData) {\n throw new IllegalStateException(\"Called operate with a map on a single translator\");\n }", "Object visitMapOfValues(MapOfValuesNode node, Object state);", "@Test(timeout = 4000)\n public void test193() throws Throwable {\n ErrorPage errorPage0 = new ErrorPage();\n // Undeclared exception!\n try { \n errorPage0.id(\"O=V>!a<w512kq\");\n fail(\"Expecting exception: UnsupportedOperationException\");\n \n } catch(UnsupportedOperationException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.util.AbstractMap\", e);\n }\n }", "@Test\n public void testSet() {\n Assert.assertTrue(map.set(\"key-1\", \"value-1\", 10));\n Assert.assertTrue(map.set(\"key-1\", \"value-2\", 10));\n Assert.assertTrue(map.set(\"key-2\", \"value-1\", 10));\n }", "@Test\n public void testGet() throws Exception {\n map.set(\"key-1\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-1\");\n \n map.set(\"key-1\", \"value-2\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-2\");\n \n map.set(\"key-2\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-2\"), \"value-1\");\n }", "VersionedObject getVersionedValue(final TCServerMap map, final Object key) throws AbortedOperationException;", "@Test\n public void testNotNullValues() throws Throwable {\n final byte[] rawFooValue = Tools.getBytesUtf8(\"Hello foo!\");\n final byte[] rawBarValue = Tools.getBytesUtf8(\"Hello bar!\");\n\n AsyncConsistentMap<String, byte[]> map =\n DistributedPrimitives.newNotNullMap(newPrimitive(\"testNotNullValues\"));\n\n map.get(\"foo\")\n .thenAccept(v -> assertNull(v)).join();\n map.put(\"foo\", null)\n .thenAccept(v -> assertNull(v)).join();\n map.put(\"foo\", rawFooValue).thenAccept(v -> assertNull(v)).join();\n map.get(\"foo\").thenAccept(v -> {\n assertNotNull(v);\n assertTrue(Arrays.equals(v.value(), rawFooValue));\n }).join();\n map.put(\"foo\", null).thenAccept(v -> {\n assertNotNull(v);\n assertTrue(Arrays.equals(v.value(), rawFooValue));\n }).join();\n map.get(\"foo\").thenAccept(v -> assertNull(v)).join();\n map.replace(\"foo\", rawFooValue, null)\n .thenAccept(replaced -> assertFalse(replaced)).join();\n map.replace(\"foo\", null, rawBarValue)\n .thenAccept(replaced -> assertTrue(replaced)).join();\n map.get(\"foo\").thenAccept(v -> {\n assertNotNull(v);\n assertTrue(Arrays.equals(v.value(), rawBarValue));\n }).join();\n map.replace(\"foo\", rawBarValue, null)\n .thenAccept(replaced -> assertTrue(replaced)).join();\n map.get(\"foo\").thenAccept(v -> assertNull(v)).join();\n }", "public void setValue(boolean value) throws ImmutableSymbolException {\n\t\t\n\t\t// If current symbol is not mutable, then thrown the exception\n\t\tif(!isMutable())\n\t\t\tthrow new ImmutableSymbolException(name);\n\t\t\n\n\t\tthis.value = value;\n\t}", "public void set(Map<Prop, Object> map, Object value) {\n if (value != null && !type.isInstance(value)) {\n throw new RuntimeException(\"value for property must have type \" + type);\n }\n map.put(this, value);\n }", "public ImmutableMapEntry(final K key, final V value) {\r\n this.value = value;\r\n this.key = key;\r\n }", "@SuppressWarnings(\"unchecked\")\n public V setValue(V oValue)\n {\n ObservableHashMap map = ObservableHashMap.this;\n synchronized (map)\n {\n // perform the entry update\n V oPrev = super.setValue(oValue);\n\n // note: previous to Coherence 3.1, there was an optimization\n // that would only raise an event if the reference was changing,\n // i.e. if (oPrev != oValue) {..}\n\n // issue update notification\n if (map.hasListeners())\n {\n map.dispatchEvent(new MapEvent(map, MapEvent.ENTRY_UPDATED,\n getKey(), oPrev, oValue));\n }\n\n return oPrev;\n }\n }", "public V put(K key, V value) {\n throw new UnsupportedOperationException();\n }", "public void testInverseValues()\r\n throws Exception\r\n {\r\n try\r\n {\r\n SCOMapTests.checkValues(pmf,\r\n HashMap2.class,\r\n HashMap2Item.class,\r\n String.class);\r\n }\r\n finally\r\n {\r\n clean(HashMap2.class);\r\n clean(HashMap2Item.class);\r\n }\r\n }", "@Test\n public void addOrderQuantityTest_withMap() {\n\n Map<Integer, IllegalArgumentException> testCasesQuantity = new HashMap<Integer, IllegalArgumentException>();\n\n testCasesQuantity.put(1, null);\n testCasesQuantity.put(10, null);\n testCasesQuantity.put(0, new IllegalArgumentException(\"Wrong quantity: 0\"));\n testCasesQuantity.put(11, new IllegalArgumentException(\"Wrong quantity: 11\"));\n\n runtestQuantity(testCasesQuantity);\n\n }", "public void clear()\n\t{\n\t\tthrow new UnsupportedOperationException(\"Read Only Map\");\n\t}", "@Override\n public T setValue(T newValue) {\n return entry.getValue().setValue(newValue);\n }", "@Test\n void shouldNotReturnFailureWhenActualDoesNotContainGivenEntries() {\n Target t = new Target(new HashMap<String, String>() {{\n put(\"hello\", \"world\");\n put(\"foo\", \"bar\");\n }});\n\n DefaultValidator<Target> validator = new DefaultValidator<>(Target.class);\n validator.ruleForMap(Target::getMap).doesNotContain(array(entry(\"name\", \"sean\")));\n\n ValidationResult validationResult = validator.validate(t);\n\n assertTrue(validationResult.isValid());\n }", "RegularImmutableBiMap(int n, ImmutableMapEntry.TerminalEntry<?, ?>[] entriesToAdd) {\n/* 56 */ int tableSize = Hashing.closedTableSize(n, 1.2D);\n/* 57 */ this.mask = tableSize - 1;\n/* 58 */ ImmutableMapEntry[] arrayOfImmutableMapEntry1 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 59 */ ImmutableMapEntry[] arrayOfImmutableMapEntry2 = (ImmutableMapEntry[])createEntryArray(tableSize);\n/* 60 */ ImmutableMapEntry[] arrayOfImmutableMapEntry3 = (ImmutableMapEntry[])createEntryArray(n);\n/* 61 */ int hashCode = 0;\n/* */ \n/* 63 */ for (int i = 0; i < n; i++) {\n/* */ \n/* 65 */ ImmutableMapEntry.TerminalEntry<?, ?> terminalEntry = entriesToAdd[i];\n/* 66 */ K key = (K)terminalEntry.getKey();\n/* 67 */ V value = (V)terminalEntry.getValue();\n/* */ \n/* 69 */ int keyHash = key.hashCode();\n/* 70 */ int valueHash = value.hashCode();\n/* 71 */ int keyBucket = Hashing.smear(keyHash) & this.mask;\n/* 72 */ int valueBucket = Hashing.smear(valueHash) & this.mask;\n/* */ \n/* 74 */ ImmutableMapEntry<K, V> nextInKeyBucket = arrayOfImmutableMapEntry1[keyBucket];\n/* 75 */ for (ImmutableMapEntry<K, V> keyEntry = nextInKeyBucket; keyEntry != null; \n/* 76 */ keyEntry = keyEntry.getNextInKeyBucket()) {\n/* 77 */ checkNoConflict(!key.equals(keyEntry.getKey()), \"key\", terminalEntry, keyEntry);\n/* */ }\n/* 79 */ ImmutableMapEntry<K, V> nextInValueBucket = arrayOfImmutableMapEntry2[valueBucket];\n/* 80 */ for (ImmutableMapEntry<K, V> valueEntry = nextInValueBucket; valueEntry != null; \n/* 81 */ valueEntry = valueEntry.getNextInValueBucket()) {\n/* 82 */ checkNoConflict(!value.equals(valueEntry.getValue()), \"value\", terminalEntry, valueEntry);\n/* */ }\n/* 84 */ ImmutableMapEntry<K, V> newEntry = (nextInKeyBucket == null && nextInValueBucket == null) ? (ImmutableMapEntry)terminalEntry : new NonTerminalBiMapEntry<K, V>((ImmutableMapEntry)terminalEntry, nextInKeyBucket, nextInValueBucket);\n/* */ \n/* */ \n/* */ \n/* 88 */ arrayOfImmutableMapEntry1[keyBucket] = newEntry;\n/* 89 */ arrayOfImmutableMapEntry2[valueBucket] = newEntry;\n/* 90 */ arrayOfImmutableMapEntry3[i] = newEntry;\n/* 91 */ hashCode += keyHash ^ valueHash;\n/* */ } \n/* */ \n/* 94 */ this.keyTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry1;\n/* 95 */ this.valueTable = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry2;\n/* 96 */ this.entries = (ImmutableMapEntry<K, V>[])arrayOfImmutableMapEntry3;\n/* 97 */ this.hashCode = hashCode;\n/* */ }", "public StandardValues() {\n super(ForwardingMap.this);\n }", "@Test(timeout = 4000)\n public void test087() throws Throwable {\n Range range0 = Range.ofLength(4294967244L);\n Object object0 = new Object();\n range0.equals(range0);\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "static <V> Value<V> of(Value<V> value) {\n return new ImmutableValue<>(value.get());\n }", "protected Map<String, Object> assertMap() {\n if (type == Type.LIST) {\n throw new FlexDataWrongTypeRuntimeException(type, Type.OBJECT); \n }\n if (entryCollectionMap == null) {\n entryCollectionMap = new LinkedHashMap<String, Object>();\n type = Type.OBJECT;\n }\n return entryCollectionMap;\n }", "public UnexpectedValueTypeException(int expectedValueType, int column, int row, Object value) {\n\t\t\tthis(\"Could not interpreted the value <b>\" + value + \"<//b> in row <b>\" + row + \"<//b> and column <b>\" + column\n\t\t\t\t\t+ \"<//b> as a <b>\" + Ontology.ATTRIBUTE_VALUE_TYPE.mapIndex(expectedValueType)\n\t\t\t\t\t+ \"<//b>. Plaese adjust to a proper value type or enable the operator's error tolerance.\",\n\t\t\t\t\texpectedValueType, column, row, value);\n\t\t}", "private void throwIfNullValue(final V value) {\n if (value == null) {\n throw new IllegalArgumentException(\"null values are not supported\");\n }\n }", "private boolean isEmptyMap(Object value) {\n try {\n return value instanceof Map && ((Map<?, ?>) value).isEmpty();\n } catch (Exception e) {\n return true;\n }\n }", "@Override\n\tpublic String update(Map<String, Object> entityMap)\n\t\t\tthrows DataAccessException {\n\t\treturn null;\n\t}", "@Test(timeout = 4000)\n public void test052() throws Throwable {\n Range range0 = Range.of((-81L));\n Range range1 = Range.of((-1L));\n range1.intersects(range0);\n range0.equals(range1);\n Range.Comparators.values();\n range0.getBegin();\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Override\n public boolean isMutable() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "protected void checkKey(Object key) {\n\tif (!canContainKey(key)) {\n throw new IllegalArgumentException(\n \"key is not valid for this LeaseMap\");\n }\n }", "private static void testMap(final OurMap<Integer, String> map) {\n System.out.printf(\"%n%s%n\", map.getClass());\n assert map.size() == 0;\n assert !map.containsKey(117);\n assert !map.containsKey(-2);\n assert map.get(117) == null;\n assert map.put(117, \"A\") == null;\n assert map.containsKey(117);\n assert map.get(117).equals(\"A\");\n assert map.put(17, \"B\") == null;\n assert map.size() == 2;\n assert map.containsKey(17);\n assert map.get(117).equals(\"A\");\n assert map.get(17).equals(\"B\");\n assert map.put(117, \"C\").equals(\"A\");\n assert map.containsKey(117);\n assert map.get(117).equals(\"C\");\n assert map.size() == 2;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n assert map.remove(117).equals(\"C\");\n assert !map.containsKey(117);\n assert map.get(117) == null;\n assert map.size() == 1;\n assert map.putIfAbsent(17, \"D\").equals(\"B\");\n assert map.get(17).equals(\"B\");\n assert map.size() == 1;\n assert map.containsKey(17);\n assert map.putIfAbsent(217, \"E\") == null;\n assert map.get(217).equals(\"E\");\n assert map.size() == 2;\n assert map.containsKey(217);\n assert map.putIfAbsent(34, \"F\") == null;\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v));\n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n map.reallocateBuckets();\n assert map.size() == 3;\n assert map.get(17).equals(\"B\") && map.containsKey(17);\n assert map.get(217).equals(\"E\") && map.containsKey(217);\n assert map.get(34).equals(\"F\") && map.containsKey(34);\n map.forEach((k, v) -> System.out.printf(\"%10d maps to %s%n\", k, v)); \n }", "abstract protected DataValue updateValue(String key);", "public interface Map<K,V> {\n\n int size();\n\n boolean isEmpty();\n\n boolean containsKey(Object key);\n\n boolean containsValue(Object value);\n\n V get(Object key);\n\n V put(K key, V value);\n\n void putAll(Map<? extends K, ? extends V > m);\n\n void clear();\n\n //views\n Set<K> keySet();\n\n Collection<V> values();\n\n Set<Map.Entry<K,V>> entrySet();\n\n interface Entry<K,V>{\n K getKey();\n\n V getValue();\n\n V setValue(V value);\n\n boolean equals(Object o);\n\n int hashCode();\n\n }\n\n boolean equals(Object o);\n\n int hashCode();\n\n}", "public abstract void removeFromMap();", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n Range range0 = Range.of(4294967244L);\n Object object0 = new Object();\n range0.equals(object0);\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "public interface Map<K,T> {\n\t/**\n\t * Puts a value <code>elem</code> associated with the <code>key</code>\n\t * @param key The key associated to the value\n\t * @param elem The value to store\n\t */\n\tpublic void put(K key, T elem);\n\t\n\t/**\n\t * Returns the corresponding element associated to the <code>key</code>\n\t * @param key The key identifying an element\n\t * @return The element associated to the <code>key</code>. If there is no such element, returns null\n\t */\n\tpublic T get(K key);\n\t\n\t/**\n\t * Returns the number of elements in the map\n\t * @return the number of elements in the map\n\t */\n\tpublic int size();\n\t\n\t/**\n\t * Returns a collection of the keys in the map.\n\t * @return a collection of the keys in the map\n\t */\n\tpublic List<K> keys();\n\t\n\t/**\n\t * Returns a collection of the values in the map.\n\t * @return a collection of the values in the map.\n\t */\n\tpublic List<T> values();\n\n\t/**\n\t * Removes the element correspondong to the <code>key</code> from the map\n\t * @param key\n\t */\n public void remove(K key);\n}", "@Test(timeout = 4000)\n public void test015() throws Throwable {\n HashMap<Double, Float> hashMap0 = new HashMap<Double, Float>();\n JSONObject jSONObject0 = new JSONObject((Map) hashMap0);\n try { \n jSONObject0.put((String) null, (Map) hashMap0);\n fail(\"Expecting exception: RuntimeException\");\n \n } catch(RuntimeException e) {\n //\n // Null key.\n //\n verifyException(\"wheel.json.JSONObject\", e);\n }\n }", "public interface Map<K, V>\n{\n // Adds the specified key-value pair to the map. Does nothing if the key already\n // exists in the map.\n void add(K key, V value);\n\n // Returns the value associated with the specified key, or null of that key doesn't\n // exist in the map\n V get(K key);\n\t\n // Removes the key-value pair with the specified key from the map. Does nothing if\n // the key doesn't exist in the map.\n void remove(K key);\n}", "@Override\n public boolean isImmutable() {\n return Stream.of(\"com.google.auto.value.AutoValue\",\n \"auto.parcel.AutoParcel\",\n \"org.immutables.value.Value.Immutable\")\n .filter(type -> Mirrors.findAnnotationMirror(element(), type).isPresent())\n .findAny().isPresent() ||\n annotationOf(Entity.class).map(Entity::immutable).orElse(false);\n }", "public UnmodifiableSortedMap(SortedMap<K, V> m) {\n\t\tsuper(m);\n\t\tthis.m = m;\n\t}", "@Test\n public void testWhitelistingForPrimitiveClass() throws Exception {\n StateHolder<Integer, Integer> testMap = stateRepository.getPersistentStateHolder(\"testMap\", Integer.class, Integer.class, Arrays.asList(StateRepositoryWhitelistingTest.Child.class)::contains, null);\n testMap.putIfAbsent(new Integer(10), new Integer(20));\n Assert.assertThat(testMap.get(new Integer(10)), Matchers.is(new Integer(20)));\n Assert.assertThat(testMap.entrySet(), Matchers.hasSize(1));\n }", "@Override\n\tpublic void setValue(Symbol symbol) throws IllegalSymbolValueException, TypeMismatchException, ImmutableSymbolException {\n\t\tif(!isMutable())\n\t\t\tthrow new ImmutableSymbolException(name);\n\t\t\n\t\tif(this.getDataType() == symbol.getDataType())\n\t\t\tthis.value = parseValue(symbol.getValue());\n\t\telse\n\t\t\tthrow new TypeMismatchException(symbol.getType(), this.getType());\n\t}", "@Test\n\tpublic void testPutAccessReodersElement() {\n\t\tmap.put(\"key1\", \"value1\");\n\n\t\tSet<String> keySet = map.keySet();\n\t\tassertEquals(\"Calling get on an element did not move it to the front\", \"key1\",\n\t\t\tkeySet.iterator().next());\n\n\t\t// move 2 to the top/front\n\t\tmap.put(\"key2\", \"value2\");\n\t\tassertEquals(\"Calling get on an element did not move it to the front\", \"key2\",\n\t\t\tkeySet.iterator().next());\n\t}", "boolean isImmutable();", "private void assertMapIsNotPublished(String mapId) throws IOException {\n Map map = engine.maps().get(mapId).execute();\n if (map.getVersions().contains(\"published\")) {\n throw new AssertionError(\"Map ID \" + mapId + \" is published, \"\n + \"please un-publish before deleting.\");\n }\n }", "@Immutable\npublic interface ImmutableCollection<E> extends Collection<E> {\n \n}", "static <V> Value<V> of(V value) {\n return new ImmutableValue<>(value);\n }", "public native Map<K, V> set(K key, V value);", "@Override\n public boolean isMutable()\n {\n return true;\n }", "Object doLogicalPutIfAbsentUnlocked(final TCServerMap map, final Object key, final Object value,\n MetaDataDescriptor mdd)\n throws AbortedOperationException;", "public abstract Value validateValue(Value value);", "public Hashtable getRemappedValues() throws Exception;", "@Override\n public void setValue(Value[] values) throws ValueFormatException,\n VersionException, LockException, ConstraintViolationException,\n RepositoryException {\n \n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void tesInvalidSetSquare_2() {\n\t\tGameState gameState = new GameState(1, \"assets/maps/map.json\");\n\t\tgameState.setSquare(new Location(0, 0), null);\n\t}", "@SuppressWarnings(\"ReturnValueIgnored\")\n private static <T> void verifyMap(\n Map<byte[], T> expectedMap, Map<byte[], T> mapView, Comparator<T> valueComparator) {\n List<Entry<byte[], T>> expectedElements = new ArrayList<>(expectedMap.entrySet());\n\n Random random = new Random(1237812387L);\n\n // Verify the size\n assertEquals(expectedMap.size(), mapView.size());\n\n // Verify random look ups\n Collections.shuffle(expectedElements, random);\n for (Entry<byte[], T> expected : expectedElements) {\n assertTrue(valueComparator.compare(expected.getValue(), mapView.get(expected.getKey())) == 0);\n }\n\n // Verify random contains\n Collections.shuffle(expectedElements, random);\n for (Entry<byte[], T> expected : expectedElements) {\n assertTrue(mapView.containsKey(expected.getKey()));\n }\n\n // Verify random key set contains\n Collections.shuffle(expectedElements, random);\n Set<byte[]> mapViewKeySet = mapView.keySet();\n for (Entry<byte[], T> expected : expectedElements) {\n assertTrue(mapViewKeySet.contains(expected.getKey()));\n }\n\n // Verify key set iterator\n Iterator<byte[]> mapViewKeySetIterator = mapView.keySet().iterator();\n assertEquals(expectedElements.size(), Iterators.size(mapViewKeySetIterator));\n try {\n mapViewKeySetIterator.next();\n fail(\"Expected to have thrown NoSuchElementException\");\n } catch (NoSuchElementException expected) {\n }\n\n // Verify random entry set contains\n Collections.shuffle(expectedElements, random);\n Set<Map.Entry<byte[], T>> mapViewEntrySet = mapView.entrySet();\n for (Entry<byte[], T> expected : expectedElements) {\n mapViewEntrySet.contains(new SimpleImmutableEntry<>(expected.getKey(), expected.getValue()));\n }\n\n // Verify entry set iterator\n Iterator<Map.Entry<byte[], T>> mapViewEntrySetIterator = mapView.entrySet().iterator();\n assertEquals(expectedElements.size(), Iterators.size(mapViewEntrySetIterator));\n try {\n mapViewEntrySetIterator.next();\n fail(\"Expected to have thrown NoSuchElementException\");\n } catch (NoSuchElementException expected) {\n }\n\n // Verify random value collection contains\n Collections.shuffle(expectedElements, random);\n Collection<T> mapViewValues = mapView.values();\n for (Entry<byte[], T> expected : expectedElements) {\n mapViewValues.contains(expected.getValue());\n }\n\n // Verify entry set iterator\n Iterator<T> mapViewValuesIterator = mapView.values().iterator();\n assertEquals(expectedElements.size(), Iterators.size(mapViewValuesIterator));\n try {\n mapViewValuesIterator.next();\n fail(\"Expected to have thrown NoSuchElementException\");\n } catch (NoSuchElementException expected) {\n }\n }", "protected void test_VALUES(final Map values, final Class clazz) {\n try {\n validate(values != null);\n validate(values.size() > 0);\n validate(!values.keySet().contains(null));\n validate(!values.values().contains(null));\n Iterator iter = values.entrySet().iterator();\n while (iter.hasNext()) {\n Map.Entry entry = (Map.Entry)iter.next();\n validate(entry.getValue().getClass() == clazz);\n validate(entry.getKey() instanceof String);\n }\n }\n catch (Throwable t) {\n unexpectedThrowable(t);\n }\n }", "@Test(timeout = 4000)\n public void test077() throws Throwable {\n Range range0 = Range.ofLength(0L);\n range0.toString();\n range0.getBegin();\n range0.intersects(range0);\n range0.getEnd();\n // Undeclared exception!\n try { \n Range.CoordinateSystem.valueOf(\"\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.CoordinateSystem.\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "public ValueOutOfBoundsException(String message){\n super(message);\n //do nothing else\n }", "public void remove()\n {\n throw new UnsupportedOperationException(\"remove() method is not \" +\n \"supported for ValueIterator().\");\n }", "@Override\r\n\tpublic void putAll( Map<? extends K, ? extends V> m ) {\r\n\t\tif(this.spaceLeft() - countNewElements( m ) < 0)\r\n\t\t\tthrow new IllegalStateException(\"There is not enough space to put whole passed map.\");\r\n\t\tsuper.putAll( m );\r\n\t}", "@Test\n public void testDelete() throws Exception {\n map.set(\"key-1\", \"value-1\", 10);\n \n Assert.assertEquals(map.get(\"key-1\"), \"value-1\");\n \n Assert.assertTrue(map.delete(\"key-1\", 0));\n \n Assert.assertNull(map.get(\"key-1\"));\n \n Assert.assertFalse(map.delete(\"no-set-key\", 0));\n }", "private NoValue(K key) {\n this.key = key;\n }", "public int insert( Map x ) {\n throw new UnsupportedOperationException(\n \"Method insert( Map ) not supported in MRC\" );\n }", "@SuppressWarnings(\"unchecked\")\n\t@Test\n\tpublic void testGetValueImmutability() throws java.text.ParseException {\n\n\t\tPropertyCollection prop = this.createCollectionProperty(\n\t\t\t\t\"<property name=\\\"test\\\"\" + \" targettype=\\\"org.rapidbeans.test.TestBean\\\"\" + \" />\", \",\", \"\\\\\");\n\n\t\t// originally prop's value is null (undefined)\n\t\tAssert.assertNull(prop.getValue());\n\n\t\tTestBean bean1 = new TestBean(\"\\\"Bluemel\\\" \\\"Martin\\\" \\\"19641014\\\"\");\n\t\tTestBean bean2 = new TestBean(\"\\\"Bluemel\\\" \\\"Johannes\\\" \\\"19641014\\\"\");\n\t\tCollection<Link> col = new ArrayList<Link>();\n\t\tcol.add(bean1);\n\t\tcol.add(bean2);\n\t\tprop.setValue(col);\n\n\t\t// then I try to remove an object of the collection via the iterator\n\t\t// returned by the getter\n\t\tCollection<Link> col1 = (Collection<Link>) prop.getValue();\n\t\ttry {\n\t\t\tcol1.clear();\n\t\t} catch (ImmutableCollectionException e) {\n\t\t\tAssert.assertTrue(true);\n\t\t}\n\n\t\t// of course our prop stays the same\n\t\tAssert.assertEquals(2, ((Collection<Link>) prop.getValue()).size());\n\t}", "protected SafeHashMap.ValuesCollection instantiateValuesCollection()\n {\n return new ValuesCollection();\n }", "public abstract Map<K, V> a();", "@Test\n public void test12() throws Throwable {\n\t\tfr.inria.diversify.sosie.logger.LogWriter.writeTestStart(1332,\"org.apache.commons.collections4.IteratorUtilsEvoSuiteTest.test12\");\n MapIterator<Class<StringTokenizer>, StringTokenizer> mapIterator0 = IteratorUtils.emptyMapIterator();\n MapIterator<Class<StringTokenizer>, StringTokenizer> mapIterator1 = IteratorUtils.unmodifiableMapIterator(mapIterator0);\n assertNotSame(mapIterator1, mapIterator0);\n }", "@Test\n public void testCreateHazardousMap2() {\n Map safeMap = safeCreator.createMap('s',mapSize);\n int size = safeMap.getSize();\n String type = safeMap.getType();\n assertEquals(10,size);\n assertEquals(\"Safe\",type);\n }", "public void setFamily2(java.util.Map<java.lang.CharSequence,java.lang.CharSequence> value) {\n\t throw new java.lang.UnsupportedOperationException(\"Set is not supported on tombstones\");\n\t }", "public MapAssertion<K, V> doesNotContainEntry(final K expectedKey, final V expectedValue) {\n Map<K, V> expected = new LinkedHashMap<>();\n expected.put(expectedKey, expectedValue);\n containsNone(expected);\n return this;\n }", "public synchronized V put(K key, V value)\n {\n // COH-6009: map mutations must be synchronized with event dispatch\n // to ensure in-order delivery\n return super.put(key, value);\n }", "public synchronized static final void throwSetterSignatureWarning() {\r\n\r\n\t\tthrow new TestUtilWarningException(\"The setter signature has no parameter and can not be TestUtil verified.\");\r\n\t}", "@Test(timeout = 4000)\n public void test123() throws Throwable {\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.SPACE_BASED;\n Range range0 = Range.of(range_CoordinateSystem0, (-128L), 273L);\n Object object0 = new Object();\n Range.CoordinateSystem range_CoordinateSystem1 = Range.CoordinateSystem.SPACE_BASED;\n Range range1 = Range.of(range_CoordinateSystem1, (-1354L), 273L);\n range0.equals(range1);\n Range.CoordinateSystem.values();\n Range.CoordinateSystem.values();\n range1.equals(range_CoordinateSystem1);\n Range.CoordinateSystem.values();\n // Undeclared exception!\n try { \n Range.Comparators.valueOf(\"@M8!uS|r?\");\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // No enum constant org.jcvi.jillion.core.Range.Comparators.@M8!uS|r?\n //\n verifyException(\"java.lang.Enum\", e);\n }\n }", "@Override\r\n \tpublic void setMap(Map m) {\n \t\t\r\n \t}", "@Override\n public void cannotRetrieveRemoteMapDetails() {\n // non implementato\n }" ]
[ "0.5848175", "0.5799151", "0.5795686", "0.568999", "0.56448436", "0.5575968", "0.5433646", "0.53797287", "0.5352769", "0.5323945", "0.5267376", "0.52602714", "0.5235766", "0.520441", "0.5204145", "0.5182645", "0.5161088", "0.5138792", "0.5135178", "0.5113841", "0.5108089", "0.50523174", "0.50509834", "0.5029562", "0.5023211", "0.5019519", "0.50156957", "0.5005068", "0.49942455", "0.49933586", "0.49913558", "0.49689353", "0.49648383", "0.4963436", "0.49477085", "0.49467617", "0.4941394", "0.49356923", "0.49135247", "0.49007922", "0.48989964", "0.4897494", "0.4890385", "0.48730248", "0.48488307", "0.48228675", "0.4821864", "0.48159915", "0.48140243", "0.47978267", "0.4797365", "0.4782203", "0.47786748", "0.4776808", "0.47753665", "0.47719404", "0.4762324", "0.47614226", "0.47613668", "0.47538444", "0.4751577", "0.4743673", "0.47370386", "0.47344425", "0.47195438", "0.47176304", "0.47141945", "0.4709948", "0.4708019", "0.47041953", "0.4700526", "0.46972996", "0.46948093", "0.46796012", "0.46792307", "0.4678468", "0.4670711", "0.46662137", "0.4664254", "0.46641555", "0.46604484", "0.46562514", "0.46560752", "0.46539536", "0.46500012", "0.4645193", "0.46449524", "0.46391225", "0.46375602", "0.46360683", "0.46313727", "0.46303216", "0.46261603", "0.46251166", "0.46181965", "0.4617955", "0.46161658", "0.4601312", "0.45982882", "0.45943835" ]
0.7424752
0
// // getAs convenience methods //
@Override public Boolean getAsBoolean(final String key) { if (!containsKey(key)) { return null; } try { return getBoolean(key); } catch (StringValueConversionException ignored) { return null; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "T as(String alias);", "public <T> T get(Class<T> as) {\n if (content == null) {\n return null;\n }\n if (as == null) {\n throw new IllegalArgumentException(\"Cannot cast content to null class\");\n }\n if (!as.isAssignableFrom(content.getClass())) {\n throw new IllegalArgumentException(\n \"Cannot cast \"+content.getClass().getName()+\" to \"+as.getName()\n );\n }\n @SuppressWarnings(\"unchecked\")\n T content = (T) get();\n return content;\n }", "public Object as() {\n Object[] objArr = this.aq;\n int i = this.ar + 1162984873;\n this.ar = i;\n return objArr[i * -285142937];\n }", "public ReactorResult<Contact> getAllInterpretedBy_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), INTERPRETEDBY, Contact.class);\r\n\t}", "gov.nih.nlm.ncbi.www.CodeBreakDocument.CodeBreak.Aa getAa();", "Object getFrom();", "public ReactorResult<Contact> getAllEncodedBy_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ENCODEDBY, Contact.class);\r\n\t}", "public java.lang.String getAsapcata() {\n return asapcata;\n }", "public Usuario[] getAmigos(Usuario usuario) {\n ArrayList<Usuario> amigos = new ArrayList<>();\n Iterator it = usuario.getAmigos().getIterador();\n while(it.hasNext()){\n Usuario pego = (Usuario) it.next();\n amigos.add(pego);\n }\n Usuario[] retorno = new Usuario[amigos.size()];\n return amigos.toArray(retorno);\n }", "Object[] toArray();", "Object[] toArray();", "Object[] toArray();", "@SuppressWarnings(\"unchecked\")\n\tpublic T[] asArray() {\n\t\t// have to use explicit cast because we cannot use the alternative signature of toArray(T[]), as you cannot instantiate an array of a\n\t\t// type parameter (not even an empty array)\n\t\treturn (T[]) this.itemList.toArray();\n\t}", "Attributes getAttributes();", "default <A> A getItemsAs( Class<A> arrayTypeClass ) {\n return DataConverter.get().convert( getRawItems(), arrayTypeClass );\n }", "Set<Authority> getAuthorities(User user);", "java.lang.String getAdresa();", "@Test void testAs() {\n final String expected = \"SELECT `AS`\\n\"\n + \"FROM `T`\";\n sql(\"select as from t\").ok(expected);\n }", "ASAFactory getASAFactory();", "Object getROIs();", "T[] toArray(T[] a);", "private jalview.datamodel.Sequence[] getVamsasAlignment(\n vamsas.objects.simple.Alignment valign)\n {\n vamsas.objects.simple.Sequence[] seqs = valign.getSeqs().getSeqs();\n jalview.datamodel.Sequence[] msa = new jalview.datamodel.Sequence[seqs.length];\n\n for (int i = 0, j = seqs.length; i < j; i++)\n {\n msa[i] = new jalview.datamodel.Sequence(seqs[i].getId(),\n seqs[i].getSeq());\n }\n\n return msa;\n }", "public MSA getMSA() { \r\n return getTyped(\"MSA\", MSA.class);\r\n }", "@Override\n default <T> T as(Class<T> type) {\n try { return type.cast(asObject()); }\n catch (ClassCastException ex) {\n LinkedList<Object> ascendingKeyChain = using(this).getAscendingKeyChainWithRoot();\n Object thisKey = ascendingKeyChain.pollLast();\n ascendingKeyChain.add(format(\"*%s*\", thisKey));\n throw new ClassCastException(format(\"'%s' miscast in path %s: %s. Avoid by checking \" +\n \"`if (aDynamic.is(%s.class)) ...` or using `aDynamic.maybe().as(%<s.class)`\",\n thisKey, LiteJoiner.on(ARROW).join(ascendingKeyChain), ex.getMessage(), type.getSimpleName()));\n }\n }", "public interface Aliasable<T> {\n\n /**\n * Alias the instance with the given valid name.\n *\n * @param alias name\n * @return type after aliasing\n */\n T as(String alias);\n\n /**\n * @return the current alias name.\n */\n String aliasName();\n}", "Array<Object> getInstanceValues();", "public List<Ant> getAnts()\n {\n return ants;\n }", "@SuppressWarnings(\"unchecked\")\n private <A extends Annotation> A[] getAnnotations(AnnotationBinding[] annoInstances, Class<A> annotationClass, boolean justTheFirst) {\n if (annoInstances == null || annoInstances.length == 0 || annotationClass == null)\n return null;\n String annoTypeName = annotationClass.getName();\n if (annoTypeName == null)\n return null;\n List<A> list = new ArrayList(annoInstances.length);\n for (AnnotationBinding annoInstance : annoInstances) {\n if (annoInstance == null)\n continue;\n AnnotationMirrorImpl annoMirror = createAnnotationMirror(annoTypeName, annoInstance);\n if (annoMirror != null) {\n list.add((A) Proxy.newProxyInstance(annotationClass.getClassLoader(), new Class[] { annotationClass }, annoMirror));\n if (justTheFirst)\n break;\n }\n }\n A[] result = (A[]) Array.newInstance(annotationClass, list.size());\n return list.size() > 0 ? (A[]) list.toArray(result) : null;\n }", "default Object[] toArray() {\n return toArray(new Object[0]);\n }", "public Object am() {\n Object[] objArr = this.aq;\n int i = this.ar - 2081709061;\n this.ar = i;\n return objArr[i * 1523192013];\n }", "public ReactorResult<java.lang.String> getAllContentType_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), CONTENTTYPE, java.lang.String.class);\r\n\t}", "AsrtPackage getAsrtPackage();", "public final void mT__71() throws RecognitionException {\n try {\n int _type = T__71;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalSpeADL.g:69:7: ( 'as' )\n // InternalSpeADL.g:69:9: 'as'\n {\n match(\"as\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic List<TypeAlarme> touslesTypeAlarme() {\n\t\tList<TypeAlarme> T = em.createQuery(\"from TypeAlarme t\").getResultList();\n\t\treturn T;\n\t}", "public Usuario[] getPedidoAmizade(Usuario usuario) {\n ArrayList<Usuario> amigos = new ArrayList<>();\n Iterator it = usuario.getPedidosAmizade().getIterador();\n while(it.hasNext()){\n Usuario pego = (Usuario) it.next();\n amigos.add(pego);\n }\n Usuario[] retorno = new Usuario[amigos.size()];\n return amigos.toArray(retorno);\n }", "public ArrayList<String> getAnalytes() {\n ArrayList<String> analytes = new ArrayList<>();\n getData(analytes, \"getAnalytes\");\n return analytes;\n }", "E[] toArray();", "public List<Atividade> getAtividades() {\n return associacao.getAtividades();\n }", "public final void rule__XCastedExpression__Group_1_0_0__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:7886:1: ( ( 'as' ) )\r\n // InternalDroneScript.g:7887:1: ( 'as' )\r\n {\r\n // InternalDroneScript.g:7887:1: ( 'as' )\r\n // InternalDroneScript.g:7888:2: 'as'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); \r\n }\r\n match(input,66,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXCastedExpressionAccess().getAsKeyword_1_0_0_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }", "public final void mT__24() throws RecognitionException {\r\n try {\r\n int _type = T__24;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:22:7: ( 'as' )\r\n // ../org.ow2.mindEd.adl.textual/src-gen/org/ow2/mindEd/adl/textual/parser/antlr/internal/InternalFractal.g:22:9: 'as'\r\n {\r\n match(\"as\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "IAttributes getAttributes();", "@SuppressWarnings(\"unchecked\")\n\tpublic List<TypeRia> touslesTypeRIA() {\n\t\tList<TypeRia> T = em.createQuery(\"from TypeRia t\").getResultList();\n\t\treturn T;\n\t}", "public String getAtype() {\n return atype;\n }", "public Object ak() {\n Object[] objArr = this.aq;\n int i = this.ar + 715964991;\n this.ar = i;\n return objArr[i * 1523192013];\n }", "String getFrom();", "String getFrom();", "String getFrom();", "String getFrom();", "public ReactorResult<Contact> getAllBackgroundArtist_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), BACKGROUNDARTIST, Contact.class);\r\n\t}", "public ReactorResult<DataObject> getAllGeneralEncapsulatedObject_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), GENERALENCAPSULATEDOBJECT, DataObject.class);\r\n\t}", "public ReactorResult<java.lang.String> getAllAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ALBUMTITLE, java.lang.String.class);\r\n\t}", "String asString();", "public String getAns(){\n String ans = null;\n switch (this.getStatus()){\n case RESULT_OK:\n ans = this.ans.getStr();\n break;\n case RESULT_EXPECTED_EXCEPTION:\n ans = null;\n break;\n case RESULT_UNEXPECTED_EXCEPTION:\n ans = \"\";\n break;\n }\n return ans;\n }", "@Override\n\tpublic List<Arco> obtenerArcos() {\n\t\treturn arcos;\n\t}", "@Override\n\t@Transactional\n\tpublic List<MAgama> getAgamas() {\n\t\treturn agamaDAO.getAgamas();\n\t}", "PToP.AS2Req getAS2Req();", "@SuppressWarnings( {\"unchecked\"})\n\t\t\tString[] getStuff() { \n\t\t\t\treturn (String[]) getSeveral().toArray(new String[getSeveral().size()]);\n\t\t\t}", "public List selectByExample(EpAssetsExample example) {\n List list = getSqlMapClientTemplate().queryForList(\"EP_ASSETS.abatorgenerated_selectByExample\", example);\n return list;\n }", "public Iterable<Arista> aristas() {\n Cola<Arista> mst = new Cola<Arista>();\n for (int v = 0; v < aristaHacia.length; v++) {\n Arista a = aristaHacia[v];\n if (a != null) {\n mst.entrarACola(a);\n }\n }\n return mst;\n }", "public List<Alias> getAliases()\n\t{\n\t\tList<Alias> aliases = new ArrayList<Alias>();\n\t\t\n\t\tAlias from = getFromIDAlias();\n\t\t\n\t\tif( from != null )\n\t\t{\n\t\t\taliases.add( from );\n\t\t}\n\n\t\tAlias to = getToIDAlias();\n\t\t\n\t\tif( to != null )\n\t\t{\n\t\t\taliases.add( to );\n\t\t}\n\t\t\n\t\treturn aliases;\n\t}", "public default T[] toArray() {\n Object[] array = new Object[size()];\n int i = 0;\n for (T t : this) {\n array[i++] = t;\n }\n return (T[]) array;\n }", "public List<Attribute> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"from Attribute As a\");\r\n return query.getResultList();\r\n }", "public ReactorResult<java.lang.String> getAllTime_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), TIME, java.lang.String.class);\r\n\t}", "public String getAcronym();", "public static List<AlphaTag> getAAS(int subId) {\n List<AlphaTag> atList = new ArrayList<AlphaTag>();\n int slot = SubscriptionManager.getSlotIndex(subId);\n if (slot <= SubInfoUtils.getInvalidSlotId()) {\n Log.e(TAG, \"[getAAS] slot=\" + slot);\n return atList;\n }\n // Here, force to refresh the list.\n Log.d(TAG, \"[getAAS] refreshAASList\");\n refreshAASList(subId);\n\n List<AlphaTag> list = sAasMap.get(slot);\n\n return list != null ? list : atList;\n }", "static <T> T[] toArray(T... args) {\n return args;\n }", "@SuppressWarnings(\"unchecked\")\n public <A extends Annotation> A[] getAnnotationsByType(AnnotationBinding[] annoInstances, Class<A> annotationClass) {\n A[] result = getAnnotations(annoInstances, annotationClass, false);\n return result == null ? (A[]) Array.newInstance(annotationClass, 0) : result;\n }", "public float[] getTypeAmts() {\n float[] newAmts = typeAmts;\n return newAmts;\n }", "List<Alimento> getAlimentos();", "String asString ();", "public Antecedent[] getAntecedents() {\n\t\treturn mAntecedents;\n\t}", "Object[] getValues();", "Object[] getValues();", "@Override\r\n\tpublic <T> T[] toArray(T[] a) {\n\t\treturn set.toArray(a);\r\n\t}", "public java.lang.Object[] getRutaTesauroAsArray()\r\n {\r\n return (rutaTesauro == null) ? null : rutaTesauro.toArray();\r\n }", "public List<Arbeitsgang> getArbeitsgang(Arbeitsgang ag);", "public Map<String, String> listAS() {\n\t\tMap<String, String> res = new HashMap<String, String>();\n\n\t\tDescribeAutoScalingGroupsRequest request = new DescribeAutoScalingGroupsRequest();\n\t\tDescribeAutoScalingGroupsResult response = asClient\n\t\t\t\t.describeAutoScalingGroups(request);\n\n\t\tList<AutoScalingGroup> ASList = response.getAutoScalingGroups();\n\t\tfor (AutoScalingGroup as : ASList) {\n\t\t\tres.put(as.getAutoScalingGroupName(), as.getStatus());// getStatus()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// can get\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// asStatus\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// while\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// deleting\n\t\t}\n\t\tlog.info(\"************************************************************************************************\");\n\t\tfor (String key : res.keySet()) {\n\t\t\tlog.info(key);\n\t\t}\n\t\treturn res;\n\t}", "java.util.List<java.lang.String>\n getAuthoritiesList();", "Element asElement();", "public static <T> T as(Object src, Class<T> type) {\n Class<?> t = type;\n while (t.isArray()) {\n t = t.getComponentType();\n }\n if (t == type) {\n // not an array at all\n return boxAs(src, type);\n } else { \n if (t.isPrimitive()) {\n return deepUnboxAs(src, type);\n } else {\n return deepBoxAs(src, type);\n }\n }\n }", "public String asString();", "public ReactorResult<Contact> getAllLeadArtist_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), LEADARTIST, Contact.class);\r\n\t}", "protected abstract EntityAliases[] getEntityAliases();", "public String[] getAlergias() {\n return Alergias;\n }", "public List<String> getAllCAs(){\n return myDatabase.getAllCAs();\n }", "public java.lang.Object[] getArbolesAsArray()\r\n {\r\n return (arboles == null) ? null : arboles.toArray();\r\n }", "public abstract Ability[] getAbilities();", "Object getAudience();", "T[] getValues();", "public final void mT__23() throws RecognitionException {\n try {\n int _type = T__23;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalEsm.g:17:7: ( 'as' )\n // InternalEsm.g:17:9: 'as'\n {\n match(\"as\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public ReactorResult<java.lang.String> getAllRecordingDate_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), RECORDINGDATE, java.lang.String.class);\r\n\t}", "public String getaar() {\n\t return aar;\n\t }", "public void extracAcronyms() {\n\t\tExtractAbbrev extractAbbrv = new ExtractAbbrev();\n\t\tthis.abbreviations = extractAbbrv.extractAbbrPairs(this.supportDocument);\t\t\t\n\t\t\n\t\tboolean acronym = true;\n\t\t\n\t\tfor (int j = 0; j < this.name.length(); j++) {\n\t\t\tif (Character.isLowerCase(this.name.charAt(j))) {\n\t\t\t\tacronym = false;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (acronym) {\n\t\t\t for (Abbreviations abbreviation : this.abbreviations) {\t\t\t\t\t\n\t\t\t\tif (abbreviation.getShortForm().equalsIgnoreCase(this.name)) {\n\t\t\t\t\tthis.alternative_names.add(abbreviation.getLongForm());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "String getArcrole();", "List<EcsAd> selectAll();", "public static List<Arena> getArenas() {\n return arenas;\n }", "public final void mT__237() throws RecognitionException {\n try {\n int _type = T__237;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // InternalMyDsl.g:235:8: ( 'as' )\n // InternalMyDsl.g:235:10: 'as'\n {\n match(\"as\"); \n\n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public List<ACR> getAcrs() {\n return acrs;\n }", "public static Sequence read (InputStream ins, Alphabet alphabet) throws IOException{\n\t\tFastaReader reader = new FastaReader(ins);\n\t\tSequence seq = (reader).nextSequence(alphabet);\n\t\treader.close();\n\t\treturn seq;\n\t}", "public Ant[] getAnts() {\n\t\treturn this.Ants;\n\t}", "@Override\r\n\tpublic Object[] toArray() {\n\t\treturn set.toArray();\r\n\t}" ]
[ "0.5838183", "0.5755754", "0.5390174", "0.53646016", "0.52194005", "0.51351684", "0.5080793", "0.50504196", "0.49208182", "0.4813299", "0.4813299", "0.4813299", "0.4741518", "0.47184572", "0.46942103", "0.468979", "0.4688799", "0.46466473", "0.46174145", "0.4606633", "0.45960253", "0.45954686", "0.45890173", "0.4578681", "0.45668396", "0.4562695", "0.45441982", "0.4541995", "0.45388308", "0.4532366", "0.4526837", "0.4517949", "0.45125204", "0.4509073", "0.45065323", "0.45042914", "0.44993106", "0.44942632", "0.44908595", "0.4490805", "0.44907212", "0.449042", "0.44890147", "0.4486962", "0.44834846", "0.44834846", "0.44834846", "0.44834846", "0.44752997", "0.44679663", "0.4463285", "0.44491312", "0.44472566", "0.4441481", "0.44396478", "0.4437735", "0.44295007", "0.44268963", "0.442688", "0.44238168", "0.44193578", "0.4415878", "0.4413117", "0.44127575", "0.44089466", "0.44062078", "0.44007647", "0.43919834", "0.43896616", "0.43803993", "0.43797746", "0.43755376", "0.43755376", "0.43695202", "0.43583977", "0.43583414", "0.4346489", "0.4342671", "0.43423414", "0.43417683", "0.43367746", "0.43322983", "0.43320367", "0.4331848", "0.4330056", "0.4329834", "0.43257087", "0.4321491", "0.4300401", "0.42960215", "0.42954904", "0.4294267", "0.42937312", "0.42929596", "0.42825067", "0.42740586", "0.4273936", "0.4267544", "0.42579046", "0.42569518", "0.42509946" ]
0.0
-1
explicitly pass T as type to be able to build with JDK 1.8. WICKET5427
@Override public <T extends Enum<T>> T getAsEnum(final String key, final Class<T> eClass) { return this.getEnumImpl(key, eClass, (T)null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void mo40877a(T t);", "void mo16691c(T t);", "void mo11495a(T t);", "void mo83698a(T t);", "void mo83696a(T t);", "int mo16689b(T t);", "void mo83695a(T t);", "void mo3312a(T t);", "int mo16684a(T t);", "public void testGenericMethod() {\n \n }", "void mo30271a(C11961o<T> oVar) throws Exception;", "public abstract void mo33222b(T t) throws IOException;", "void mo83706a(C32459e<T> eVar);", "boolean mo16692d(T t);", "void mo83704a(C32457c<T> cVar);", "public abstract <T> T mo33265b(Class<T> cls) throws Exception;", "public SimpleGeneric(T param) {\n this.objRef = param;\n }", "public interface C0056a<T> {\n}", "void mo83703a(C32456b<T> bVar);", "void mo16690b(T t, T t2);", "public void setGeneric(T t)\t\t//setting a generic var\n\t{\n\t\t\n\t\tthis.t=t;\n\t}", "boolean mo16688a(T t, T t2);", "static <T> T m61432a(T t, String str) {\n if (t != null) {\n return t;\n }\n throw new NullPointerException(str);\n }", "public static <T> T m23271a(T t) {\n if (t != null) {\n return t;\n }\n throw new NullPointerException();\n }", "public GenericContainer(T t){\n obj = t;\n }", "public interface TypeConvert<T> {\n\n /**\n * 1 byte = 8 bit\n */\n int BIT = 8;\n\n static Class<?> getTypeClazz(Class<? extends TypeConvert> typeConvert){\n return ClassUtils.getGenericsType(typeConvert);\n }\n\n static short getTypeIndex(Class<?> clazz) {\n return clazz.getAnnotation(Typed.class).index();\n }\n\n static TypeCache getTypeCache(Class<? extends TypeConvert> typeConvert, int index) {\n Class<?> genericsType = ClassUtils.getGenericsType(typeConvert);\n TypeCache typeCache = TypeCache.builder().index(index).typeClass(genericsType).typeConvert(typeConvert).build();\n return typeCache;\n }\n\n /**\n * 将{@code t}解码为字节流\n *\n * @param t obj\n * @return 字节流\n */\n ByteBuf encode(T t);\n\n /**\n * 将字节流编码为{@link T}\n *\n * @param byteBuf 字节流\n * @return obj\n */\n T decode(ByteBuf byteBuf);\n}", "void create(T t);", "public void setT(Type t) {\n \t\tthis.t = t;\n \t}", "public native void set(T value);", "@Override\n\tpublic void test(T1 t) {\n\t\t\n\t}", "private final boolean shouldProposeGenerics(IJavaProject project) {\n\t\treturn true;\n\t\t/*\n\t\tString sourceVersion;\n\t\tif (project != null)\n\t\t\tsourceVersion= project.getOption(JavaCore.COMPILER_SOURCE, true);\n\t\telse\n\t\t\tsourceVersion= JavaCore.getOption(JavaCore.COMPILER_SOURCE);\n\n\t\treturn sourceVersion != null && JavaCore.VERSION_1_5.compareTo(sourceVersion) <= 0;\n\t\t*/\n\t}", "void mo83705a(C32458d<T> dVar);", "public interface C11962p<T> {\n /* renamed from: a */\n void mo30271a(C11961o<T> oVar) throws Exception;\n}", "String buildFrom(T t);", "public static <T> void genericMethod() {\n ArrayList<T> tList = new ArrayList<>();\r\n }", "@Override\n public boolean isGeneric() { \n return false;\n }", "static Object resolveGeneric (FXLocal.Context context, Type typ) {\n if (typ instanceof ParameterizedType) {\n ParameterizedType ptyp = (ParameterizedType) typ;\n Type raw = ptyp.getRawType();\n Type[] targs = ptyp.getActualTypeArguments();\n if (raw instanceof Class) {\n String rawName = ((Class) raw).getName();\n if (FXClassType.SEQUENCE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (FXClassType.OBJECT_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return context.makeTypeRef(targs[0]);\n }\n if (FXClassType.SEQUENCE_VARIABLE_CLASSNAME.equals(rawName) &&\n targs.length == 1) {\n return new FXSequenceType(context.makeTypeRef(targs[0]));\n }\n if (rawName.startsWith(FXClassType.FUNCTION_CLASSNAME_PREFIX)) {\n FXType[] prtypes = new FXType[targs.length-1];\n for (int i = prtypes.length; --i >= 0; )\n prtypes[i] = context.makeTypeRef(targs[i+1]);\n FXType rettype;\n if (targs[0] == java.lang.Void.class)\n rettype = FXPrimitiveType.voidType;\n else\n rettype = context.makeTypeRef(targs[0]);\n return new FXFunctionType(prtypes, rettype);\n }\n }\n \n typ = raw;\n }\n if (typ instanceof WildcardType) {\n WildcardType wtyp = (WildcardType) typ;\n Type[] upper = wtyp.getUpperBounds();\n Type[] lower = wtyp.getLowerBounds();\n typ = lower.length > 0 ? lower[0] : wtyp.getUpperBounds()[0];\n if (typ instanceof Class) {\n String rawName = ((Class) typ).getName();\n // Kludge, because generics don't handle primitive types.\n FXType ptype = context.getPrimitiveType(rawName);\n if (ptype != null)\n return ptype;\n }\n return context.makeTypeRef(typ);\n }\n if (typ instanceof GenericArrayType) {\n FXType elType = context.makeTypeRef(((GenericArrayType) typ).getGenericComponentType());\n return new FXJavaArrayType(elType);\n }\n if (typ instanceof TypeVariable) {\n // KLUDGE\n typ = Object.class;\n }\n return typ;\n }", "@Test(timeout = 10000)\n public void genericType_sd834_failAssert3() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method recursiveEnum = getClass().getDeclaredMethod(\"generic\", Enum[].class);\n TypeName.get(recursiveEnum.getReturnType());\n TypeName.get(recursiveEnum.getGenericReturnType());\n TypeName genericTypeName = TypeName.get(recursiveEnum.getParameterTypes()[0]);\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_11 = TypeName.get(recursiveEnum.getGenericParameterTypes()[0]);\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_11.unbox();\n org.junit.Assert.fail(\"genericType_sd834 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "private T createInternalT(Class type) {\n\t\ttry {\n\t\t return (T)(type.newInstance());\n\t\t} catch( Exception e ) {\n\t\t return null;\n\t\t}\n\t}", "void set(T t);", "public static <T> T m23767a(T t) {\n if (t != null) {\n return t;\n }\n throw new NullPointerException(\"null reference\");\n }", "public abstract void mo36027a(Context context, T t);", "<T> T mo19025a(Object obj, Class<T> cls);", "public static void main(String a[]){\n SimpleGeneric<String> sgs = new SimpleGeneric<String>(\"JAVA2NOVICE\");\n sgs.printType();\n //we are going to create SimpleGeneric object with Boolean as type parameter\n SimpleGeneric<Boolean> sgb = new SimpleGeneric<Boolean>(Boolean.TRUE);\n sgb.printType();\n }", "R serializeData(T t);", "public native T get();", "T value();", "public interface GenericParadigmService<T> {\n}", "@Override\n\tpublic void test(Object t) {\n\t\t\n\t}", "@Override\n\tpublic void test(Object t) {\n\t\t\n\t}", "void mo83699a(T t, int i, int i2, String str);", "public static <T> T m23272a(T t, Object obj) {\n if (t != null) {\n return t;\n }\n throw new NullPointerException(String.valueOf(obj));\n }", "@Test(timeout = 10000)\n public void innerGenericInGenericType_sd19237_failAssert0() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method genericStringInner = getClass().getDeclaredMethod(\"testGenericInnerLong\");\n TypeName.get(genericStringInner.getReturnType());\n TypeName genericTypeName = TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(getClass().getDeclaredMethod(\"testGenericInnerInt\").getGenericReturnType());\n // StatementAdd: add invocation of a method\n genericTypeName.unbox();\n org.junit.Assert.fail(\"innerGenericInGenericType_sd19237 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "@Override\n boolean test(@NonNull T t);", "public void setValue(T value) {\n/* 134 */ this.value = value;\n/* */ }", "public <T> T cast();", "@Test(timeout = 10000)\n public void genericType_sd798_failAssert0() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method recursiveEnum = getClass().getDeclaredMethod(\"generic\", Enum[].class);\n TypeName.get(recursiveEnum.getReturnType());\n TypeName.get(recursiveEnum.getGenericReturnType());\n TypeName genericTypeName = TypeName.get(recursiveEnum.getParameterTypes()[0]);\n TypeName.get(recursiveEnum.getGenericParameterTypes()[0]);\n // StatementAdd: add invocation of a method\n genericTypeName.unbox();\n org.junit.Assert.fail(\"genericType_sd798 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "public interface C11153i4<T extends C11167j4> {\n}", "public interface C10965j<T> {\n /* renamed from: a */\n T mo26439a();\n}", "public static void basic_typed_system_test(TagBasedEncoder<?> tbe) {\n Object orig_1 = \"whatup\";\n Object orig_2 = false;\n Object orig_3 = (byte) 123;\n Object orig_4 = 65432;\n Object orig_5 = 45645674655L;\n Object orig_6 = true;\n Object orig_7 = (byte)-23;\n Object orig_8 = -6123123;\n Object orig_9 = -32472532423245L;\n Object orig_10 = new String[] {\"123123141\", \"234234234\", \"gsdkjlhgsjdfsjlg\", \"test\"};\n Object orig_11 = new boolean[]{false, true, true, false};\n Object orig_12 = new byte[]{-12, 13, 15, 93, -80};\n Object orig_13 = new int[]{121321, -123123, 123123, 123123, -14123, 876574};\n Object orig_14 = new long[]{-32472213123423245L, -32472212423245L, -32472532423242L};\n Object orig_15 = new String[][]{{\"test\", \"test\", \"test\"}, {\"1\", \"2\", \"3\"}};\n Object orig_16 = new LIbae();\n Object orig_17 = new LIse(\"hallo\", \"dies\", \"ist\", \"ein\", \"test\");\n\n tbe.addEntryT(\"#####1\", orig_1);\n tbe.addEntryT(\"#####2\", orig_2);\n tbe.addEntryT(\"#####3\", orig_3);\n tbe.addEntryT(\"#####4\", orig_4);\n tbe.addEntryT(\"#####5\", orig_5);\n tbe.addEntryT(\"#####6\", orig_6);\n tbe.addEntryT(\"#####7\", orig_7);\n tbe.addEntryT(\"#####8\", orig_8);\n tbe.addEntryT(\"#####9\", orig_9);\n tbe.addEntryT(\"#####10\", orig_10);\n tbe.addEntryT(\"#####11\", orig_11);\n tbe.addEntryT(\"#####12\", orig_12);\n tbe.addEntryT(\"#####13\", orig_13);\n tbe.addEntryT(\"#####14\", orig_14);\n tbe.addEntryT(\"#####15\", orig_15);\n tbe.addEntryT(\"#####16\", orig_16);\n tbe.addEntryT(\"#####17\", orig_17);\n\n String result_1 = tbe.getEntryT(\"#####1\", String.class);\n Boolean result_2 = tbe.getEntryT(\"#####2\", Boolean.class);\n Byte result_3 = tbe.getEntryT(\"#####3\", Byte.class);\n Integer result_4 = tbe.getEntryT(\"#####4\", Integer.class);\n Long result_5 = tbe.getEntryT(\"#####5\", Long.class);\n boolean result_6 = tbe.getEntryT(\"#####6\", boolean.class);\n byte result_7 = tbe.getEntryT(\"#####7\", byte.class);\n int result_8 = tbe.getEntryT(\"#####8\", int.class);\n long result_9 = tbe.getEntryT(\"#####9\", long.class);\n String[] result_10 = tbe.getEntryT(\"#####10\", String[].class);\n boolean[] result_11 = tbe.getEntryT(\"#####11\", boolean[].class);\n byte[] result_12 = tbe.getEntryT(\"#####12\", byte[].class);\n int[] result_13 = tbe.getEntryT(\"#####13\", int[].class);\n long[] result_14 = tbe.getEntryT(\"#####14\", long[].class);\n String[][] result_15 = tbe.getEntryT(\"#####15\", String[][].class);\n LIbae result_16 = tbe.getEntryT(\"#####16\", LIbae.class);\n LIse result_17 = tbe.getEntryT(\"#####17\", LIse.class);\n\n assertEquals(orig_1, result_1);\n assertEquals(orig_2, result_2);\n assertEquals(orig_3, result_3);\n assertEquals(orig_4, result_4);\n assertEquals(orig_5, result_5);\n assertEquals(orig_6, result_6);\n assertEquals(orig_7, result_7);\n assertEquals(orig_8, result_8);\n assertEquals(orig_9, result_9);\n assertArrayEquals((String[])orig_10, result_10);\n assertArrayEquals((boolean[]) orig_11, result_11);\n assertArrayEquals((byte[]) orig_12, result_12);\n assertArrayEquals((int[]) orig_13, result_13);\n assertArrayEquals((long[]) orig_14, result_14);\n assertArrayEquals((String[][]) orig_15, result_15);\n assertEquals(orig_16, result_16);\n assertEquals(orig_17, result_17);\n }", "@Test(timeout = 10000)\n public void genericType_sd810_failAssert1() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method recursiveEnum = getClass().getDeclaredMethod(\"generic\", Enum[].class);\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_4 = TypeName.get(recursiveEnum.getReturnType());\n TypeName.get(recursiveEnum.getGenericReturnType());\n TypeName genericTypeName = TypeName.get(recursiveEnum.getParameterTypes()[0]);\n TypeName.get(recursiveEnum.getGenericParameterTypes()[0]);\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_4.unbox();\n org.junit.Assert.fail(\"genericType_sd810 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "public void setValue(T value) {\n/* 89 */ this.value = value;\n/* */ }", "public abstract int zzu(T t);", "public static <T> T m23768a(T t, Object obj) {\n if (t != null) {\n return t;\n }\n throw new NullPointerException(String.valueOf(obj));\n }", "@Test(timeout = 10000)\n public void innerGenericInGenericType_sd19249_failAssert1() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method genericStringInner = getClass().getDeclaredMethod(\"testGenericInnerLong\");\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_4 = TypeName.get(genericStringInner.getReturnType());\n TypeName genericTypeName = TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(getClass().getDeclaredMethod(\"testGenericInnerInt\").getGenericReturnType());\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_4.unbox();\n org.junit.Assert.fail(\"innerGenericInGenericType_sd19249 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "private void m32174b(Context context, T t) {\n if (t != null) {\n mo36027a(context, t);\n return;\n }\n throw new NullPointerException();\n }", "public interface C32459e<T> {\n /* renamed from: a */\n void mo83698a(T t);\n }", "public abstract void create(T t);", "public static String toLegacyType(String keyword, String value) {\n/* 1300 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public abstract void zze(Object obj, T t);", "void mo123342a(C48857t tVar);", "public interface tm<T, V> {\n void a(V v);\n\n void a(boolean z);\n}", "public static void main(String[] args) {\n\t\tHolder<? super Number> h2 = new Holder<Object>();\r\n\t\tInteger i = 10;\r\n\t\th2.setT(i);\r\n\t\th2.setT(1.0);\r\n\t}", "public interface Value {\n Word asWord();\n\n int toSInt();\n\n BigInteger toBInt();\n\n short toHInt();\n\n byte toByte();\n\n double toDFlo();\n\n float toSFlo();\n\n Object toArray();\n\n Record toRecord();\n\n Clos toClos();\n\n MultiRecord toMulti();\n\n boolean toBool();\n\n char toChar();\n\n Object toPtr();\n\n Env toEnv();\n\n <T> T toJavaObj();\n\n public class U {\n static public Record toRecord(Value value) {\n if (value == null)\n return null;\n else\n return value.toRecord();\n }\n\n public static Value fromBool(boolean b) {\n return new Bool(b);\n }\n\n public static Value fromSInt(int x) {\n return new SInt(x);\n }\n\n public static Value fromArray(Object x) {\n return new Array(x);\n }\n\n public static Value fromBInt(BigInteger x) {\n return new BInt(x);\n }\n\n public static Value fromPtr(Object o) {\n return new Ptr(o);\n }\n\n public static Value fromSFlo(float o) {\n return new SFlo(o);\n }\n\n public static Value fromDFlo(double o) {\n return new DFlo(o);\n }\n\n public static Value fromChar(char o) {\n return new Char(o);\n }\n\n public static Value fromByte(byte o) {\n return new Byte(o);\n }\n\n public static Value fromHInt(short o) {\n return new HInt(o);\n }\n\n\tpublic static <T> Value fromJavaObj(T obj) {\n\t return new JavaObj<T>(obj);\n\t}\n }\n}", "void handle(T t);", "public void mo56529a(T t) {\n this.f96455c = t;\n }", "public static void main(String[] args) {\n MyGenericsClass<Integer> g = new MyGenericsClass();\n\n g.setMyVar(6);\n// g.setMyVar(6.1);\n// g.setMyVar(\"Java\");\n g.printValue();\n\n }", "private T thisT() {\n @SuppressWarnings(\"unchecked\")\n T thisT = (T) this;\n return thisT;\n }", "public abstract int zzp(T t);", "T build();", "T build();", "@Override\n @SuppressWarnings(\"unchecked\")\n public T toBeanType(Object value) {\n return (T) value;\n }", "public static <T> T m37329a(T t) {\n if (t != null) {\n return t;\n }\n throw new NullPointerException();\n }", "protected CollectionLikeType(TypeBase base, JavaType elemT)\n/* */ {\n/* 44 */ super(base);\n/* 45 */ this._elementType = elemT;\n/* */ }", "@Test(timeout = 10000)\n public void genericType_sd822_failAssert2() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method recursiveEnum = getClass().getDeclaredMethod(\"generic\", Enum[].class);\n TypeName.get(recursiveEnum.getReturnType());\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_6 = TypeName.get(recursiveEnum.getGenericReturnType());\n TypeName genericTypeName = TypeName.get(recursiveEnum.getParameterTypes()[0]);\n TypeName.get(recursiveEnum.getGenericParameterTypes()[0]);\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_6.unbox();\n org.junit.Assert.fail(\"genericType_sd822 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "public static void main(String[] args) {\n try {\n UnsafePokeBall pokeBall = new UnsafePokeBall();\n pokeBall.setPokemon(new Pikachu());\n Pokemon pokemon = pokeBall.getPokemon(); // type is lost\n Pikachu pikachu = (Pikachu) pokemon; // we have to cast to get the type back\n\n // somewhere later in our program, another developer does\n pokeBall.setPokemon(new Bulbasaur());\n //\n // and we do ...\n //\n pikachu = (Pikachu) pokeBall.getPokemon(); // java.lang.ClassCastException\n } catch (Exception e) {\n System.err.println(e);\n }\n\n // Using our typesafe PikeBall implementation:\n {\n PokeBall<Pikachu> pikatchuPokeBall = new PokeBall<Pikachu>();\n pikatchuPokeBall.setPokemon(new Pikachu());\n final Pikachu pikachu = pikatchuPokeBall.getPokemon(); // no casting needed\n // somewhere later in our program, another developer CANNOT do:\n // pikatchuPokeBall.setPokemon(new Bulbasaur());\n }\n\n {\n // Type parameter 'T' can hold all reference types, but not primitive types:\n new PokeBall<Object>();\n new PokeBall<Pokemon>();\n new PokeBall<Pikachu>();\n new PokeBall<Raichu>();\n new PokeBall<Bulbasaur>();\n new PokeBall<String>(); // ups ... not what we wanted\n new PokeBall<Integer>(); // ups ... not what we wanted\n // new PokeBall<int>(); // primitive types not allowed\n }\n\n // Using the diamond operator '<>', the compiler may be able to determine/infer the type\n // parameter automatically\n {\n final PokeBall<Pikachu> pikatchuPokeBall = new PokeBall<>();\n final PokeBall<Object> objectPokeBall = new PokeBall<>();\n final PokeBall<Raichu> raichuPokeBall = new PokeBall<>();\n }\n\n // You can also substitute a type parameter 'T' with a parameterized type (List<Pikachu>)\n {\n final PokeBall<List<Pikachu>> pikatchuListPokeBall = new PokeBall<>();\n final List<Pikachu> pikachuList = new ArrayList<>();\n pikachuList.add(new Pikachu());\n pikatchuListPokeBall.setPokemon(pikachuList);\n }\n\n // A raw type is the name of a generic class or interface without any type arguments.\n try {\n final PokeBall<Pikachu> pikachuPokeBall = new PokeBall<>();\n\n final PokeBall pokeBall = pikachuPokeBall; // OK, but raw use\n pokeBall.setPokemon(new Bulbasaur()); // unchecked call\n\n final PokeBall<Pikachu> pikachuPokeBall2 = pokeBall;\n\n final Pikachu pokemon = pikachuPokeBall2.getPokemon(); // ClassCastException\n } catch (Exception e) {\n System.err.println(e);\n }\n }", "@SuppressWarnings(\"unchecked\")\r\n private T[] makeArrayOfT(int size) {\r\n // This helper method is basically the same one we gave you\r\n // in ArrayDictionary and ChainedHashDictionary.\r\n //\r\n // As before, you do not need to understand how this method\r\n // works, and should not modify it in any way.\r\n return (T[]) (new Comparable[size]);\r\n }", "@SuppressWarnings(\"unchecked\")\r\n private T[] makeArrayOfT(int size) {\r\n // This helper method is basically the same one we gave you\r\n // in ArrayDictionary and ChainedHashDictionary.\r\n //\r\n // As before, you do not need to understand how this method\r\n // works, and should not modify it in any way.\r\n return (T[]) (new Comparable[size]);\r\n }", "@Test\n public void testRequireAtomString_GenericType_1() {\n LOGGER.info(\"requireAtomString\");\n final AtomString actual = new AtomString();\n final AtomString expected = requireAtomString(actual);\n assertEquals(expected, actual);\n }", "@Test(timeout = 10000)\n public void innerClassInGenericType_sd11099_failAssert0() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method genericStringInner = getClass().getDeclaredMethod(\"testGenericStringInner\");\n TypeName.get(genericStringInner.getReturnType());\n TypeName genericTypeName = TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(getClass().getDeclaredMethod(\"testGenericIntInner\").getGenericReturnType());\n // StatementAdd: add invocation of a method\n genericTypeName.unbox();\n org.junit.Assert.fail(\"innerClassInGenericType_sd11099 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "@Test\n void cannotInferType() {\n }", "@Override public abstract boolean test(T t);", "@Test(timeout = 10000)\n public void innerClassInGenericType_sd11111_failAssert1() throws Exception {\n // AssertGenerator generate try/catch block with fail statement\n try {\n Method genericStringInner = getClass().getDeclaredMethod(\"testGenericStringInner\");\n // StatementAdd: generate variable from return value\n TypeName __DSPOT_invoc_4 = TypeName.get(genericStringInner.getReturnType());\n TypeName genericTypeName = TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(genericStringInner.getGenericReturnType());\n TypeName.get(getClass().getDeclaredMethod(\"testGenericIntInner\").getGenericReturnType());\n // StatementAdd: add invocation of a method\n __DSPOT_invoc_4.unbox();\n org.junit.Assert.fail(\"innerClassInGenericType_sd11111 should have thrown UnsupportedOperationException\");\n } catch (UnsupportedOperationException eee) {\n }\n }", "protected void validateValue(T value) {\n }", "void success(T t);", "private void checkType(V value) {\n valueClass.cast(value);\n }", "public abstract JavaType resolveType(java.lang.reflect.Type jdkType);", "abstract T build();", "public Generic(){\n\t\tthis(null);\n\t}", "@SuppressWarnings(\"unchecked\")\n public static void main(String[] args) {\n gia = (Generic<Integer>[])new Generic[SIZE];\n System.out.println(gia.getClass().getSimpleName());\n gia[0] = new Generic<Integer>();\n //! gia[1] = new Object(); // Compile-time error\n // Discovers type mismatch at compile time:\n //! gia[2] = new Generic<Double>();\n }", "public T fjern();" ]
[ "0.7051287", "0.6936863", "0.684229", "0.678198", "0.6708296", "0.670292", "0.6568682", "0.6482914", "0.62775195", "0.58885634", "0.58641493", "0.5861468", "0.5814807", "0.5692822", "0.5667701", "0.56458294", "0.555838", "0.5533792", "0.5489544", "0.5486636", "0.5436773", "0.5386997", "0.5375406", "0.53549457", "0.5344652", "0.5338344", "0.5334941", "0.53276306", "0.5311445", "0.53057337", "0.52815384", "0.527913", "0.5269537", "0.52219135", "0.52131337", "0.520321", "0.5154672", "0.51539785", "0.51349026", "0.51299024", "0.5128185", "0.5119587", "0.5112404", "0.5112069", "0.51086366", "0.5081381", "0.50731665", "0.506851", "0.5065526", "0.5065526", "0.50598073", "0.50557697", "0.5049924", "0.5048895", "0.5044723", "0.5041389", "0.50293106", "0.50230217", "0.50214267", "0.5020996", "0.5017991", "0.50056654", "0.49958014", "0.4995191", "0.49884665", "0.49875647", "0.4981872", "0.49775767", "0.49747208", "0.49680382", "0.49634698", "0.4957394", "0.49569628", "0.49463055", "0.49463028", "0.49418598", "0.49374825", "0.49205422", "0.48933393", "0.48920643", "0.48920643", "0.48916048", "0.48872644", "0.48774475", "0.4869621", "0.48692483", "0.4863248", "0.4863248", "0.48625982", "0.4855215", "0.48502323", "0.48446456", "0.4835947", "0.48343658", "0.48318753", "0.48282695", "0.48159537", "0.47944936", "0.4790051", "0.478677", "0.47749865" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Scanner sc = new Scanner(System.in); Product p1 = new Product(); System.out.println("Informe o produto"); p1.nome = sc.next(); System.out.println("Informe o valor do produto"); p1.preco = sc.nextDouble(); System.out.println("Informe a quantidade em estoque"); p1.quant = sc.nextInt(); System.out.println("Produto: " + p1.nome); System.out.println("O prešo do produto Ú: " + p1.preco); System.out.println("Quantidade em estoque: " + p1.quant); System.out.println("Valor total em estoque: " + p1.totalValueStock()); //Para adicionar a quantidade do mesmo produto //int quant = sc.nextInt(); //p1.addProduct(quant); //Para diminuir a quantidade do mesmo produto //int quant =sc.nextInt(); //p1.removeProduct(quant); sc.close(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by User on 20160512.
public interface GetDialogResultListener { void getDialogResult(int mode, String result); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public void mo38117a() {\n }", "private stendhal() {\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 grabar() {\n\t\t\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "protected void mo6255a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected boolean func_70814_o() { return true; }", "public void mo55254a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo12930a() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void m50366E() {\n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void create() {\n\t\t\n\t}", "@Override\n\tpublic void create () {\n\n\t}", "@Override\n public int retroceder() {\n return 0;\n }", "public void mo6081a() {\n }", "public Pitonyak_09_02() {\r\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "public void mo21877s() {\n }", "public void mo1531a() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo9848a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "public final void mo91715d() {\n }", "@Override\n public Date getCreated()\n {\n return null;\n }", "public void method_4270() {}", "public void create() {\n\t\t\n\t}", "@Override\n public void memoria() {\n \n }", "@Override public int describeContents() { return 0; }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void create() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n public int getSize() {\n return 1;\n }", "public void mo21878t() {\n }", "public void mo12628c() {\n }", "CreationData creationData();", "public void mo115190b() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void m23075a() {\n }", "public abstract long getCreated();", "public int getVersion() { return 1; }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public int getVersion() {\n return 0;\n }", "public void mo3376r() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void create() {\n\r\n\t}", "@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic long getCreationTime() {\n\t\treturn 0;\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public void mo21793R() {\n }", "@Override\n\t\t\tpublic int describeContents() {\n\t\t\t\treturn 0;\n\t\t\t}", "@Override\n public int getID() {\n return 7;\n }", "private void getStatus() {\n\t\t\n\t}", "Consumable() {\n\t}", "@Override\n public void init() {}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "Petunia() {\r\n\t\t}", "@Override\r\n\tpublic void init() {}", "public void mo23813b() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "public void mo21779D() {\n }", "private Singletion3() {}" ]
[ "0.5995015", "0.5874905", "0.580878", "0.57814336", "0.5693129", "0.5693129", "0.5693129", "0.5693129", "0.5693129", "0.5693129", "0.5693129", "0.5658688", "0.56495863", "0.5635134", "0.55993104", "0.5597559", "0.5580534", "0.5553641", "0.55245465", "0.55062705", "0.55044234", "0.55004436", "0.54966354", "0.5493839", "0.5493543", "0.5493543", "0.5478283", "0.5475265", "0.54602665", "0.5451236", "0.5437801", "0.54290116", "0.54161257", "0.5408884", "0.5407533", "0.5406001", "0.54044056", "0.53766555", "0.5375449", "0.5371663", "0.53680885", "0.5367529", "0.53541225", "0.53540784", "0.53493756", "0.534595", "0.53430444", "0.53430444", "0.53430444", "0.53430444", "0.53430444", "0.53430444", "0.5341646", "0.5341646", "0.533831", "0.5331196", "0.532818", "0.53238064", "0.53235924", "0.53230673", "0.5319415", "0.53132343", "0.5313025", "0.53088605", "0.53037244", "0.5303718", "0.529778", "0.5295506", "0.5295153", "0.5292499", "0.52905035", "0.52852273", "0.5284181", "0.5283781", "0.5282477", "0.5276214", "0.5275477", "0.52728534", "0.52728534", "0.5271719", "0.52682686", "0.52682686", "0.52682686", "0.52682686", "0.52682686", "0.5264054", "0.5256463", "0.5254412", "0.5253938", "0.525345", "0.5251471", "0.52449197", "0.52417964", "0.5240361", "0.5238943", "0.5235504", "0.5234698", "0.52317625", "0.52306455", "0.5228903", "0.5226189" ]
0.0
-1
/ Will print out the instructions for this particular project and how the user will be able to utilize this program
public static void help(){ System.out.println("myRepositories USERNAME | --help\n"); System.out.println("\'myReposities\' returns a list of repositories based on username\n"); System.out.println("Version\t: 1.0.0"); System.out.println("Author\t: Miguel Menjivar"); System.out.println("Contact\t: [email protected]"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n System.out.println(\"Hi Everyone\");\n //it is needed to be able to work with the team remotely\n System.out.println(\"I am happy to learn something new\");\n //i need to focus on practicing\n }", "private static void help() {\n System.out.println(\"usage: pgen <project name> <args>\");\n System.out.println(\"Arguments:\");\n System.out.println(\"\\t-h | -help : help menu\");\n System.out.println(\"\\t-s | -size <example file amount> : the amount of example files to create. Defaults to 2\");\n System.out.println(\"\\t-t | -template <template> : the template to use. Defaults to java_default\");\n System.out.println(\"\\t\\tValid Templates:\");\n System.out.println(\"\\t\\t\\t* java_default\");\n System.out.println(\"\\t\\t\\t* cpp_default\");\n System.out.println(\"\\t-kattis : fetches the problems from Kattis and creates a makefile and test script for them\");\n System.out.println(\"\\t-local : fetches nothing and creates empty example files\");\n System.exit(0);\n }", "private static void writeShortManual() {\n System.out.println(\"\\nPromethean CLI v1.0.0\");\n System.out.println(\"Commands:\");\n System.out.println(\"\\tplan - create (and optionally execute) a plan given input json\");\n System.out.println(\"\\ttestgen - generate a test input file given initial and goal states\");\n System.out.println(\"Run <command> --help to see all options\\n\");\n }", "public static void mainText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'STU' 3.'FAC' 4.SQL query 5.'MORE' -for more detail about options\");\n\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tSystem.out.println(\"Second Project !!!\");\n\t\t\n\t\tSystem.out.println(\"Second Project Second Line !!!\");\n\t\t\n\t\tSystem.out.println(\"Second Project Third Line !!!\");\n\t\t\n\t\tSystem.out.println(\"Broweser is close !!!\");\n\t\t\n\t\tSystem.out.println(\"Interner Off !!!\");\n\t\t\n\t\tSystem.out.println(\"New Add Class Friends !!!\");\n\t\t\n\t}", "final private static void usage_print () {\n\t\tSystem.out.println (NAME + ' ' + VERSION + ' ' + COPYRIGHT) ;\n\t\tSystem.out.println () ;\n\n\t\tSystem.out.println (\n\t\t \"Usage: java bcmixin.Main [<options>] <modelname> <equationname>\"\n\t\t) ;\n\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\"where [<options>] include any of the following:\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\" -help\") ;\n\t\tSystem.out.println (\" Prints this helpful message, then exits.\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\" where <modelname> means the model name that you want to work on.\") ;\n\t\tSystem.out.println () ;\n\t\tSystem.out.println (\"where <equationname> provides the equation name, which must end with .equation.\") ;\n\t\tSystem.out.println () ;\n }", "void printUsage(){\n\t\tSystem.out.println(\"Usage: RefactorCalculator [prettyPrint.tsv] [tokenfile.ccfxprep] [cloneM.tsv] [lineM.tsv]\");\n\t\tSystem.out.println(\"Type -h for help.\");\n\t\tSystem.exit(1); //error\n\t}", "public static void proManMain(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Create a new Project Manager Profile\");\n System.out.println(\"2 - Search for Project Manager Profile\\n\");\n\n System.out.println(\"0 - Continue\");\n }", "public static void p_show_info_program() {\n System.out.println(\"╔══════════════════════════════╗\");\n System.out.println(\"║ SoftCalculator V1.2 ║\");\n System.out.println(\"║ Oscar Javier Cardozo Diaz ║\");\n System.out.println(\"║ 16/04/2021 ║\");\n System.out.println(\"╚══════════════════════════════╝\");\n }", "public static void intro() {\n System.out.println(\"-----------------------------------------------------------------------\");\n System.out.println(\"Project Phase One\\nCPSC 377\\nVincent Tennant\\n230099844\");\n System.out.println(\"A simple interface to do unit testsing, perform the XOR problem, and give an example of a\\n\" +\n \"rubix cube neural network. The XOR problem and the rubix cube problems will be performed using neural\\n\" +\n \"networks, and trained by stochastic backpropagation.\");\n }", "protected void help() {\n println(\"go - Begin execution at Start or resume execution from current pc location\");\n println(\"go <loc1> - Begin execution at <loc1>\");\n println(\"step - Execute next step\");\n println(\"dump <loc1> <loc2> - Dump memory locations from (including) <loc1> - <loc2>\");\n println(\"dumpr - Dump a table of registers\");\n println(\"exit - Exit debugger\");\n println(\"deas <loc1> <loc2> - Deassmble memory locations from (including) <loc1> - <loc2>\");\n println(\"brkt - List the current break point table\");\n println(\"sbrk <loc1> - Set break point at <loc1>\");\n println(\"cbrk <loc1> - Clear break point at <loc1>\");\n println(\"cbrkt - Clear breakpoint table\");\n println(\"help - Print a summary of debugger commands\");\n println(\"chngr <r#> <value> - Change the value of register <r#> to <value>\");\n println(\"chngm <loc1 <value> - Change the value of memory loaction <loc1> to <value>\");\n }", "public static void showSynopsis() {\n System.out\n .println(\"Usage: findbugs [general options] -textui [command line options...] [jar/zip/class files, directories...]\");\n }", "private void displayUsage() {\r\n System.err.println(\"\\nUSAGE: java -classpath ... \" + \"DiscourseImportTool\");\r\n System.err.println(\"Option descriptions:\");\r\n System.err.println(\"\\t-h\\t usage info\");\r\n System.err.println(\"\\t-e, email\\t send email if major failure\");\r\n System.err.println(\"\\t-b\\t batchSize number of items to batch during import\");\r\n System.err.println(\"\\t-discourse\\t discourse id to run the generator on\");\r\n System.err.println(\"\\t-project\\t project id to add discourse to\");\r\n }", "public static void main(String[] args) throws ParseException {\n System.out.println(\"Would you like to use the example project? (y/n) \");\n String selection = input.nextLine();\n if (selection.equals(\"y\")) {\n Project example = exampleProject();\n System.out.print(example.toString());\n menuSelection();\n } else {\n menuSelection();\n }\n }", "private static void printUsage() {\n\t\tSystem.out.println(\"[0] apk files directory\");\n\t\tSystem.out.println(\"[1] android-jar directory\");\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"Submitted Fourth project -branch 2 shelve\");\r\n\t}", "private static void help(){\r\n System.out.println(\"\\n\\t Something Went Wrong\\nType\\t java -jar nipunpassgen.jar -h\\t for mor info\");\r\n System.exit(0);\r\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Review Day\");\n\t\tSystem.out.println(\"Review Day locally\");\n\t\tSystem.out.println(\"Review Day\");\n\t\tSystem.out.println(\"Review Day\");\n\t\tSystem.out.println(\"Review Day - develop\");\n\t}", "public static void main(String[]args) {\r\n System.out.println(\"Name: Zachary Bedsole\");\r\n System.out.println(\"Previous Computer Courses:\");\r\n System.out.println(\" Intro to basic programming\");\r\n }", "public static void main(String[] args) {\n\t\t/* Project 1: Easy with plenty of time */\n\t\tSystem.out.println(\"You should \" + decision(12, 1) + \" Project 1\");\n\t\t/* Project 2: Hard with very little time */\n\t\tSystem.out.println(\"You should \" + decision(1, 9) + \" Project 2\");\n\t\t/* Project 3: Easy but with little time */\n\t\tSystem.out.println(\"You should \" + decision(2, 5) + \" Project 3\");\n\t\t/* Project 4: Hard but with lots of time */\n\t\tSystem.out.println(\"You should \" + decision(12, 8) + \" Project 4\");\n\t}", "private static void help() {\n\t\tSystem.out.println(\"\\n----------------------------------\");\n\t\tSystem.out.println(\"---Regatta Calculator Commands----\");\n\t\tSystem.out.println(\"----------------------------------\");\n\t\tSystem.out.println(\"addtype -- Adds a boat type and handicap to file. Format: name:lowHandicap:highHandicap\");\n\t\tSystem.out.println(\"format -- Provides a sample format for how input files should be arranged.\");\n\t\tSystem.out.println(\"help -- Lists every command that can be used to process regattas.\");\n\t\tSystem.out.println(\"podium -- Lists the results of the regatta, assuming one has been processed.\");\n\t\tSystem.out.println(\"regatta [inputfile] -- Accepts an input file as a parameter, this processes the regatta results outlined in the file.\");\n\t\tSystem.out.println(\"types -- lists every available boat type.\");\n\t\tSystem.out.println(\"write [outputfile] -- Takes the results of the regatta and writes them to the file passed as a parameter.\");\n\t\tSystem.out.println(\"----------------------------------\\n\");\n\t}", "@Override\n public void showActionsInformation() {\n System.out.println(\"\");\n System.out.println(\"To add a new task, please follow the instructions and press ENTER:\");\n System.out.println(\"IP.TodoListApplication.App.Task ID, IP.TodoListApplication.App.Task Title, Due Date (format: dd-mm-yyyy), IP.TodoListApplication.App.Task Status, Project Name\");\n System.out.println(\"\");\n System.out.println(\"Enter 0 to RETURN\");\n }", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"Welcome Abdullah Malik\");\r\n\t\tSystem.out.println(\"How Are You?\");\r\n\t\tSystem.out.println(\"What the progress of FYP?\");\r\n\t\tSystem.out.println(\"Its Good.\");\r\n\t\t\r\n\t\t\t}", "private static void help(){\n\t\tSystem.out.println(\"\\t\\tAge\\n\\tby Sayan Ghosh\\n\\n\"+\n\t\t\t\t\t\t\t\"Calculates Age of Person from Date of Birth (DD MM YYYY).\\n\"+\n\t\t\t\t\t\t\t\"Shows age in two forms:\\n\"+\n\t\t\t\t\t\t\t\t\"\\tAge in years, months, days\\n\"+\n\t\t\t\t\t\t\t\t\"\\tAge in years (as fraction)\\n\"+\n\t\t\t\t\t\t\t\"Syntax:\\n\"+\n\t\t\t\t\t\t\t\t\"\\tjava Age\\t\\t\\truns program and takes input\\n\"+\n\t\t\t\t\t\t\t\t\"\\tjava Age <dd mm yyyy>\\t\\tdirectly shows result taking dob as parameters\\n\"+\n\t\t\t\t\t\t\t\t\"\\tjava Age --help\\t\\t\\tshows this help\\n\");\n\t}", "private static void displayHelp(){\n System.out.println(\"1. (R)eport\");\n System.out.println(\"2. (M)inimum Spanning Tree\");\n System.out.println(\"3. (S)hortest Path from i j\");\n System.out.println(\"4. (D)own i j\");\n System.out.println(\"5. (U)p i j\");\n System.out.println(\"6. (C)hange Weight i j x\");\n System.out.println(\"7. (E)ulerian\");\n System.out.println(\"8. (Q)uit\");\n }", "private static void instructions()\n {\n System.out.println(\"Input integer on console to invoke method of your choice as follows:\\n\");\n System.out.println( \"0 User's Home Page BY DATE\\n\"\n + \"1 User's Home Page BY USER\\n\"\n + \"2 User's Home Page BY CONVERSATION\\n\"\n + \"3 LeaderBoard MOST SOCIAL\\n\"\n + \"4 LeaderBoard MOST TALKATIVE\\n\"\n + \"5 LeaderBoard LEAST TALKATIVE\\n\"\n + \"-1 To Quit\");\n }", "public static void main(String[] args) \n\t{\n\t\tSystem.out.println(\"Name: Rajat Patel\");\n\t\tSystem.out.println(\"DoB: 7/26/2002\");\n\t\tSystem.out.println(\"Hobbies: Video Games\");\n\t\tSystem.out.println(\"Fav. Book: None\");\n\t\tSystem.out.println(\"Fav. Movie: STVI\");\n\n\t}", "public static void main(String[] args) {\n Course introProgramming = new IntroToProgrammingCourse(\"Intro to Programming\", \"330\", 2);\n Course introJava = new IntroJavaCourse(\"Intro to Java Programming\", \"331\", 3, \"Intro to Programming\");\n AdvancedJavaCourse advancedJava = new AdvancedJavaCourse(\"Advanced Java Programming\", \"332\", 4, \"Intro to Java Programming\");\n System.out.println(introProgramming.printCourse());\n System.out.println(introJava.printCourse());\n System.out.println(advancedJava.printCourse());\n }", "private static void printUsage() {\n System.err.println(\"\\n\\nUsage:\\n\\tAnalyzeRandomizedDB [-p] [-v] [--enzyme <enzymeName> [--mc <number_of_missed_cleavages>]] <original_DB> <randomized_DB>\");\n System.err.println(\"\\n\\tFlag significance:\\n\\t - p : print all redundant sequences\\n\\t - v : verbose output (application flow and basic statistics)\\n\");\n System.exit(1);\n }", "public static void main(String[] args) {\n // write your code here - this is called comment and it always starts with double slash\n // and comlier will ignore this because of the // sign.\n // I am gonna say hello\n // JAVA IS CASE SENSITIVE LANGUAGE\n // System and system are very different things in java\n //Hello AND hello are different for java\n // System.out.println(\"Hello Batch 15!\");\n // System.out.println(\"I am still here.\");\n // System.out.println(\"I love Java.\");\n\n // Write a program to display your information.\n // When you run it, it should have this outcome.\n // I am your name here\n // I am from batch 15\n // I am from your city here\n // I love Java\n\n System.out.println(\"I am Sevim.\");\n System.out.println(\"I am from Batch 15.\");\n System.out.println(\"I'm from New Jersey.\");\n System.out.println(\"I love Java.\");\n\n\n\n }", "public static void archMain(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Create a new Architect Profile\");\n System.out.println(\"2 - Search for Architect Profile\\n\");\n\n System.out.println(\"0 - Continue\");\n }", "private static void printUsage() \r\n\t{\r\n\t\tSystem.err.println(\"Usage: java GeneBankSearch \"\r\n\t\t\t\t+ \"<0/1(no/with Cache)> <btree file> <query file> \"\r\n\t\t\t\t+ \"[<cache size>] [<debug level>]\\n\");\r\n\t\tSystem.exit(1); \r\n\t}", "public static void main(String[] args) {\n\r\n\t\tSystem.out.println(\"github\");\r\n\t\t\r\n\t\tSystem.out.println(\"changed it for job text\");\r\n\t}", "private static void menu()\r\n\t{\r\n\t\tSystem.out.println(\"0. ** FOR INSTRUCTOR **\");\r\n\t\tSystem.out.println(\" Seed 5 URLs, set 3 keywords, creates 1000 Producers and 10 Consumers\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"1. Add seed url\");\r\n\t\tSystem.out.println(\"2. Add consumer (Parser)\");\r\n\t\tSystem.out.println(\"3. Add producer (Fetcher)\");\r\n\t\tSystem.out.println(\"4. Add keyword search\");\r\n\t\tSystem.out.println(\"5. Print stats\");\r\n\t}", "public static void main(String[] args)\n {\n \t// Prints the name of the student.\n System.out.println(\"Walter Conway\");\n System.out.println();\n \t// Prints the short-term goal(s) of the student.\n System.out.println(\"Finish the Half Ironman in Augusta, GA.\"\n \t\t\t\t+ \" Pass my Fall semester courses.\"\n \t\t\t\t+ \" Find a part-time job.\"\n \t\t\t\t+ \" Find a apartment.\"\n \t\t\t\t+ \" Quit biting finger nails.\"\n \t\t\t\t\t\t+ \" Read the Bible daily.\");\n \t// Prints the medium-term goal(s) of the student.\n System.out.println(\"Find a co-op job for the summer semester.\"\n \t\t\t\t+ \" Switch my cell phone service to Verizon.\"\n \t\t\t\t+ \" Take the GRE exam to apply for graduate school.\"\n \t\t\t\t+ \" Finish reading the Bible cover to cover.\");\n \t// Prints the long-term goal(s) of the student.\n System.out.println(\"Become a better Christian\"\n \t\t\t\t+ \" with the Lord's help and guidance.\"\n \t\t\t\t+ \" Finish graduate school.\"\n \t\t\t\t+ \" Find a job or create a business.\"\n \t\t\t\t+ \" Get married to the right person that\"\n \t\t\t\t\t\t+ \" God has set aside for me to marry.\");\n }", "public static void main(String[] args) {\n\n Project project = new Project();\n project.setId(2L);\n project.setTitle(\"Title\");\n System.out.println(project);\n }", "protected static void printUsage() {\n\t}", "public static void main (String[] args){\n \n\t System.out.println(\" I am a Jave programmer\"); \n\t }", "public static void main(String[] args) {\nSystem.out.println(\"Diligence Is Our Problem As the Youth of Today\");\n\t}", "private static void printUsage(){\n\t\tprintLine(USAGE_STRING);\n\t}", "private static void printUsage() throws Exception {\n\t\tSystem.out.println(new ResourceGetter(\"uk/ac/cam/ch/wwmm/oscar3/resources/\").getString(\"usage.txt\"));\n\t}", "public static void printUsage() {\n System.out.println(\"*****\\t*****\\t*****\");\n System.out.println(\"Usage:\");\n System.out.println(\"par/seq, L/B, N, M, C, output file\");\n System.out.println(\"Using type of calculation: par(parallel) or seq(sequential)\");\n System.out.println(\"Using numbers: L - Long, B - BigInteger\");\n System.out.println(\"Program finds all prime numbers in range [N, M]\");\n System.out.println(\"That ends with number C\");\n System.out.println(\"N, M, C should be whole numbers and N must be less than M!\");\n System.out.println(\"Output is written into file \\\"output file\\\", first number is \");\n System.out.println(\"The quantity of prime numbers and after - all found prime numbers\");\n System.out.println(\"*****\\t*****\\t*****\");\n }", "private static void printUsage() {\r\n\t\t//TODO: print out clear usage instructions when there are problems with\r\n\t\t// any command line args\r\n\t\tSystem.out.println(\"This program expects three command-line arguments, in the following order:\"\r\n\t\t\t\t+ \"\\n -q for storing as a queue, -c for console output, and the input file name.\");\r\n\t}", "public static void printUserGuide() {\n System.out.println(Message.USER_COMMAND_GUIDE);\n System.out.println(\"Go ahead!\");\n }", "private static void printUsage(){\n\t\tSystem.err.println(\"USAGE : java -jar ExtractWebCamFeed <Web Cam Code> <Output File Path> <Image Count>\");\n\t\tSystem.err.println(\"Web Cam Code : \\n\\t1 : West Lawns Camera\");\n\t\tSystem.err.println(\"\\t2 : Memorial Union Camera Camera\");\n\t\tSystem.err.println(\"Output File Path : to store the path of the file ( must be .mov)\");\n\t\tSystem.err.println(\"Image Count : Specifies the length of the video \");\n\t}", "protected void showUsage() {\n\n\tStringBuffer usage = new StringBuffer();\n\tusage.append(\"------------------------------------------------------\\n\");\n\tusage.append(\" \" + APP_NAME + \" \" + APP_VERSION + \"\\n\");\n\tusage.append(\"------------------------------------------------------\\n\");\n\tusage.append(\"Prints the Tool Kit name for the given Branch and \\n\");\n\tusage.append(\"Component.\\n\");\n\tusage.append(\"\\n\");\n\tusage.append(\"USAGE:\\n\");\n\tusage.append(\"------\\n\");\n\tusage.append(APP_NAME + \" <-c component> <-b branch> [-y] [-h] [-db dbMode]\\n\");\n\tusage.append(\"\\n\");\n\tusage.append(\" component = Component name (ess, pds, model, einstimer ...).\\n\");\n\tusage.append(\" branch = Branch name.\\n\");\n\tusage.append(\" -y = (optional) Verbose mode (echo messages to screen)\\n\");\n\tusage.append(\" dbMode = (optional) DEV | PROD (defaults to PROD)\\n\");\n\tusage.append(\" -h = Help (shows this information)\\n\");\n\tusage.append(\"\\n\");\n\tusage.append(\"Return Codes\\n\");\n\tusage.append(\"------------\\n\");\n\tusage.append(\" 0 = application ran ok\\n\");\n\tusage.append(\" 1 = application error\\n\");\n\tusage.append(\"\\n\");\n\n\tSystem.out.println(usage);\n\n }", "private static void printUsage() {\n\t\tSystem.out.println(\"Usage: java UniqueUniqueChromosomeReconstructor [-h] input_file\");\n\t\tSystem.out.println(\" -h: Print usage information\");\n\t\tSystem.out.println(\" input_file: File containing input sequence data\");\n\t}", "public static void printUsage(){\n \n System.out.println(\"USAGE:\\njava -jar LMB.jar inputfilename\\n\"\n + \"\\nWhere: LMB is the executable of this program\"\n + \"\\ninputfilename is a plaintext file located in the ./text/ folder\"\n + \"\\nAll output files will be created and written to the \\\"lm\\\" directory in root\");\n System.exit(1);\n \n }", "private static void doUsage() {\r\n\t\tSystem.out.println(\"Usage: SpellChecker [-i] <dictionary> <document>\\n\"\r\n\t\t\t\t+ \" -d <dictionary>\\n\" + \" -h\");\r\n\t}", "public static void main(String[] args) { //this is main method, used for running the java\n System.out.println(\"Company Name: Amazon\");\n //print statemnets is used for priniting\n System.out.println(\"Employee Name: Javkhlantugs Jambaa\");\n System.out.println(\"Job Title: SDET\");\n System.out.println(\"Employee ID: 1992128\");\n System.out.println(\"Salary: $1500000\");\n\n\n }", "private static void help() {\n\t\t\n\t\tTask[] taskList = createTaskList();\n\t\t\n\t\tSystem.out.println(\"\\n---------------------------------[ HELP ]--------\"\n\t\t\t\t+ \"------------------------------\\n\");\n\t\t\n\t\t// Post1 Display help (Polymorphism)\n\t\tfor (Task task : taskList) {\n\t\t\ttask.displayHelp();\n\t\t}\n\t\t\n\t}", "private void printHelp() \n {\n Logger.Log(\"You have somehow ended up in this strange, magical land. But really you just want to go home.\");\n Logger.Log(\"\");\n Logger.Log(\"Your command words are:\");\n parser.showCommands();\n Logger.Log(\"You may view your inventory or your companions\");\n }", "public static void studentText(){\n\t\tSystem.out.println(\"Enter: 1.'EXIT' 2.'ADD' 3.'REMOVE' 4.'FIND 5.'ENROLL' 6.'WITHDRAW' 7.'SCHEDULE' 8.'MORE' -for more detail about options\");\n\t}", "private void showExecutionStart() {\n log.info(\"##############################################################\");\n log.info(\"Creating a new web application with the following parameters: \");\n log.info(\"##############################################################\");\n log.info(\"Name: \" + data.getApplicationName());\n log.info(\"Package: \" + data.getPackageName());\n log.info(\"Database Choice: \" + data.getDatabaseChoice());\n log.info(\"Database Name: \" + data.getDatabaseName());\n log.info(\"Persistence Module: \" + data.getPersistenceChoice());\n log.info(\"Web Module: \" + data.getWebChoice());\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"hello facebook by dev1\");\n\t\tSystem.out.println(\"how are you by dev1\");\n\t\tSystem.out.println(\"hello dev2\");\n\t\tSystem.out.println(\"changes through eclips by dev3\");\n\t\t\n\t\tSystem.out.println(\"changes made by upi feature branch\");\n\t\t\n\t\tSystem.out.println(\"changes made by upi feature branch\");\n\n\t}", "public static void main(String args[]) {\n System.err.println(TITLE + \" \" + VERSION + \" (\" + BUILD_DATE + \")\");\n System.err.println(VENDOR_NAME + \" (\" + VENDOR_URL + \")\");\n System.err.println(COPYRIGHT);\n }", "public static void main(String[] args) {\n\t\t\n\t\tSystem.out.println(\":Hi Hello from Project One\");\n\t\t\n\t}", "static String printInstructions() {\n return \"Hello, Test Subject 525. I am Charlie, your personal helper bot.\\n\\n\" +\n \"I suggest you pick up the cryonic files in the starting area, and inspect them before proceeding.\" +\n \" You may drop them afterwards if you wish.\\n\\n\" +\n \"You awaken in the Cryostasis Containment Chamber, which only contains 'cryonics files'.\\n\" +\n \"You can traverse the ship by using the north, south, east, or west buttons.\\n\" +\n \"You can see what is in the room you are in by typing 'look', or you can use the current room button.\\n\" +\n \"You can pick things up by typing 'pickup thing' where thing is what you see in the room.\\n\"+\n \"You can drop things you are carrying by typing 'drop thing' where thing names something you have.\\n\"+\n \"You can see your status by typing status, and quit by using the quit button.\\n\" +\n \"If you wish to view the instructions again, press the instructions button.\\n\\n\" +\n \"You can also inspect things you are carrying by typing 'inspect thing' where thing names\" +\n \" something you have.\\n\" +\n \"Inspected things may possess different functions, so inspect them thoroughly.\\n\" +\n \"If you use things in your bag when you're not supposed to, I'll inform you.\" +\n \" If you continually try to use things when you're not supposed to...\\n\" +\n \"you can see for yourself what'll happen.\\n\\n\" +\n \"OBJECTIVE: My sensors have detected a dangerous invader among us...quietly lurking around the ship.\\n\" +\n \"Search the ship for weapons to arm yourself with, and find a transmitter to contact home base.\\n\" +\n \"I suggest you act quickly before this creature finds you first, 525.\\n\\n\";\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the university.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Wow I really love this class!\");\n\t\tSystem.out.println(\"Thanks again for the V8 energy drink!\");\n\t\tSystem.out.println(\"I think next time im going to have a redbull though\");\n\t\tSystem.out.println(\"We can sip on some energy drinks and make more fun of JJ\");\n\t\tSystem.out.println(\"I still cant believe JJ had a baby\");\n\t\tSystem.out.println(\"You can call me Uncle Louie\");\n\t\tSystem.out.println(\"Does Uncle Louie sound like a creepy name though?\");\n\t\tSystem.out.println(\"Anyways, I think ill be a good uncle\");\n\t\tSystem.out.println(\"I just have to figure out how to properly hold a baby\");\n\t\tSystem.out.println(\"Well, thank you for reading. Can't wait to see what else this class has to offer!\");\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "private void printHelp() \n {\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "private void help() {\n System.out.println(\"PLACE X,Y,F #Placing the robot in (X,Y) facing F. \\n\" +\n \"\\tX and Y are numbers between 0 AND 5, F is NORTH, EAST, WEST, SOUTH directions\\n\" +\n \"MOVE #Move one position towards the current direction\\n\" +\n \"LEFT #Turn left\\n\" +\n \"RIGHT #Turn right\\n\" +\n \"REPORT #Prints current position and the direction\\n\" +\n \"HELP #Help menu\");\n }", "protected void helpPage() {\n \n System.out.println(\"Commands:\");\n System.out.println(\"\\tQ [filename]\\t\\t\\tquit and save to filename\"); \n System.out.println(\"\\t ~ is used for a space character\" ); \n System.out.println(\"\\tb [STRING] [INDEX]\\t\\tinsert [STRING] \" +\n \"before [INDEX]\");\n System.out.println(\"\\tr [START] [STOP]\\t\\tremove all charecters\" +\n \" from index start to stop\");\n System.out.println(\"\\td [CHAR]\\t\\t\\tremove all [CHAR] elements \" +\n \"in the list\");\n System.out.println(\"\\tr [CHAR1] [CHAR2]\\t\\treplace all \" + \n \"[CHAR1]'s with [CHAR2]\");\n System.out.println(\"\\tz\\t\\t\\t\\trandomly run other commands several\" +\n \" times\");\n System.out.println(\"\\tp [INDEX] [CLIPBOARD]\\t\\tpaste from \" +\n \"clipboard number [CLIPBOARD] to message index [INDEX]\");\n System.out.println(\"\\tc [START] [STOP] [CLIPBOARD]\\t\" + \n \"copy message values from index [START] to [STOP] to \" + \n \"clipboard [CLIPBOARD]\");\n System.out.println(\"\\tx [STOP] [START] [CLIPBOARD]\\tcut from \" +\n \"message index [START] to [STOP] to clipboard [CLIPBOARD]\");\n System.out.println(\"\\th\\t\\t\\t\\tmeans to show this help page\");\n }", "public static void main(String[] args){\n System.out.println(\" -----------\");\n System.out.println(\" | WELCOME |\");\n System.out.println(\" -----------\");\n System.out.println(\" ^ ^ ^ ^ ^ ^\");\n System.out.println(\" / \\\\/ \\\\/ \\\\/ \\\\/ \\\\/ \\\\\"); //Use double backslashes to only\n System.out.println(\"|-G--J--J--2--1--5-|\"); //print one of them.\n System.out.println(\" \\\\ /\\\\ /\\\\ /\\\\ /\\\\ /\\\\ /\");\n System.out.println(\" v v v v v v\");\n //Print out short autobioographic statement\n System.out.println(\"I've gone hiking in the Austrian Alps and I plan\");\n System.out.println(\"to go back to backpack Europe for a summer\");\n \n }", "private void help() {\n String border = \"=====================================================================================\";\n String title = \"AILearning API:\\n\";\n String template = \"arguments: numOfControls, controls..., quantityOfEach, hasHighContrast, hasDisabled, \" +\n \"hasNoise, isUnsorted\\n\";\n String numOfCon= \"numOfControls - integer number of controls (1 - 6)\\n\";\n String contrls = \"controls... - each control is string and number of strings equals numOfControls\";\n String namesOfControls = \"Every string is define symbol:\\nB - Button, TF - TextField, RB - RadioButton\" +\n \"Sp - Spinner, Sl - Slider, CB - CheckBox\\n\";\n String quantityOfEach = \"quantityOfEach - integer number of each control (0 - 1 000 000)\\n\";\n String highContrast = \"hasHighContrast - string (true or false)\\n\";\n String disabled = \"hasDisabled - string (true of false)\\nif true - some controls will be disabled\\n\";\n String noise = \"hasNoise - string (true or false)\\n\";\n String unsorted = \"isUnsorted - string (true or false)\\nif true - controls will be in one folder\\n\";\n String example = \"Example: 3 B TF RB 100 true true true false\";\n String meaning = \"It means that app will generate 100 Buttons, 100 TextFields, 100 RadioButtons \" +\n \"with high contrast, noise,\\nsome controls will be disabled and locate in different folders\";\n\n System.out.println(String.format(\"%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\\n%s\", border, title, template, numOfCon,\n contrls, namesOfControls, quantityOfEach, highContrast, disabled, noise, unsorted, example, meaning));\n }", "private static void displayHelp(){\n System.out.println(\"-host hostaddress: \\n\" +\n \" connect the host and run the game \\n\" +\n \"-help: \\n\" +\n \" display the help information \\n\" +\n \"-images: \\n\" +\n \" display the images directory \\n\" +\n \"-sound: \\n\" +\n \" display the sounds file directory \\n\"\n\n );\n }", "private void helpService() {\n output.println(\"Help command\");\n output.println(\"-calc <number> \\t Calculates the value of pi based on <number> points; quit \\t Exit from program \");\n }", "public static void main(String[] args) {\n System.out.println(\"Hello, World\");\n System.out.println(\" This is Balaji\")\n System.out.println(\"I am working as Devops Engineer\")\n System.out.println(\"Salary package is 11 LPA\")\n System.out.println(\"ha ha\")\n }", "public static void showUsage() {\n System.out.println(\"Usage:\");\n System.out.println(\"java -jar jira-changelog-builder.jar <JIRA_URL> <JIRA_username> <JIRA_password> <JIRA_project_key> <version> <template_list> [<flags>]\");\n System.out.println(\"<JIRA_URL>: The URL of the JIRA instance (e.g. https://somecompany.atlassian.net).\");\n System.out.println(\"<JIRA_username>: The username used to log into JIRA.\");\n System.out.println(\"<JIRA_password>: The password used to log into JIRA.\");\n System.out.println(\"<JIRA_project_key>: The key of the project in JIRA.\");\n System.out.println(\"<version>: Specifies up to which version the changelog should be generated.\");\n System.out.println(\"<template_root>: The path on disk to the directory that contains the template files.\");\n System.out.println(\"<template_list>: A CSV list of template file names. Each templated changelog is saved into a new file which can be processed at a later stage.\");\n System.out.println(\"<flags> (optional): One or more of the following flags:\");\n // TODO: If this JQL causes no issues to be returned, it causes a hard\n // error. Handle this more nicely.\n System.out.println(\"\\t--jql 'some arbitrary JQL': Append the given JQL to the issue filter. eg 'status = \\\"Ready for Build\\\"'\");\n System.out.println(\"\\t--object-cache-path /some/path: The path on disk to the cache, if you do not use this, no cache will be used. Using a cache is highly recommended.\");\n System.out.println(\"\\t--debug: Print debug/logging information to standard out. This will also force errors to go to the standard out and exit with code 0 rather than 1.\");\n System.out.println(\"\\t--changelog-description-field 'field_name': The name of the field in JIRA you wish to use as the changelog description field. If you do not use this, it will default to the summary field.\");\n System.out.println(\"\\t--eol-style (NATIVE|CRLF|LF): The type of line endings you wish the changelog files to use. Valid values are NATIVE (system line endings), CRLF (Windows line endings) or LF (UNIX line endings). If you do not use this, the changelogs will use the default system line endings.\");\n System.out.println(\"\\t--version-starts-with 'Version name prefix': Only display versions in the changelog that have a name starting with 'Version name prefix'. This cannot be used with --version-less-than-or-equal. This is useful for restricting what goes in the changelog if you are producing different version side-by-side.\");\n System.out.println(\"\\t--version-less-than-or-equal 'Version name': Only display versions in the changelog that have a name less than or equal to 'Version name'. This cannot be used with --version-starts-with. This uses a Java string comparison. This is useful for restricting what goes in the changelog if you are producing different version side-by-side.\");\n }", "public static void main(String []args) {\n\t\tSystem.out.println(school);\n\t\tgetInfo1();\n\t\t\n\t}", "private static void usage()\n {\n System.out.println(\"usage:\");\n System.out.println(\" ??? clock [-bg color] [-f fontsize] [-fg color]\");\n System.out.println(\" ??? formats\");\n System.out.println(\" ??? print [-f fmt] time\");\n System.out.println(\" ??? now [-r] [-f fmt]\");\n System.exit(1);\n }", "public static void help() {\n System.out.println(\"MENU : \");\n System.out.println(\"Step 1 to create a default character.\"); // create and display a character\n System.out.println(\"Step 2 to display characters.\");\n System.out.println(\"Step 3 to choice a character for list his details. \");\n System.out.println(\"Step 4 to start fight between 2 characters\");\n System.out.println(\"step 5 to remove a character.\");\n System.out.println(\"step 6 to create a Warrior.\");\n System.out.println(\"step 7 to create a Wizard.\");\n System.out.println(\"step 8 to create a Thief.\");\n System.out.println(\"Step 9 to exit the game. \");\n System.out.println(\"Step 0 for help ....\");\n\n }", "public static void main(String[] args) {\n\t\tProject h = new Project (\"Safiah\" , \"Dalal\");\r\n\t\tSystem.out.print(h.elevatorPitch());\r\n\t\t\r\n\r\n\t}", "void printHelp();", "public static void introduction()\r\n {\r\n System.out.println(\"this program will scanner the content in a file\");\r\n System.out.println(\"store words into a new file and count how many other same words appear\");\r\n System.out.println(\"all the output for all the word will be all lower case and in order\");\r\n System.out.println();\r\n }", "@Override\n protected void display() {\n System.out.println(\"Welcome to team builder tool!\");\n System.out.println(\"Current team: \" + team.getName());\n }", "public static void usage () {\n System.out.println(\"Usage:\");\n System.out.println(\" i[nformation]\");\n System.out.println(\" r[egister] <course>\");\n System.out.println(\" u[nregister] <course>\");\n System.out.println(\" q[uit]\");\n }", "public static void main(String[] args) {\n\t\tString make = \"Toyota\";\n\t\tString Model =\"Highlander\";\n\t\tSystem.out.println(\"My car is New \"+make+\" \"+Model);\n\t\tSystem.out.println(\"What Year is My Car \"+make+\" \"+Model);\n\t\t\n\t\t\n\t\tString Hello_$ =\"mmmmmmm\";\n\t\t\n\t\t\n\t\tString Ammi2019$ =\"jhihn\";\n\t\tSystem.out.println(\"Ammi ke abbu ke abbu\");\t\t\n\t\tString something999999_$$;\n\t\tString $____________________;\n\t\tint $;\n\t\tString String;\n\t\tString Static;\n\t\tString Public;\n\t\tString Boolean;\n\t\tString Abstract;\n\t\tString Else;\n\t\tString Protected;\n\t\tint if_;\n\t\tint ifabbu_;\n\t\tint count;\n\t\tint numberofPeople;\n\t\tString name = \"Goochi\";\n\t\tSystem.out.println(name);\n\t\t\n\t\n\t}", "private void print_help_and_exit() {\n System.out.println(\"A bunch of simple directus admin cli commands\");\n System.out.println(\"requires DIRECTUS_API_HOST and DIRECTUS_ADMIN_TOKEN environment variables to be set\");\n System.out.println();\n\n COMMAND_METHODS.values().forEach(c -> {\n for (String desriptionLine : c.descriptionLines) {\n System.out.println(desriptionLine);\n }\n System.out.println();\n });\n\n System.out.println();\n System.exit(-1);\n }", "public static void introProgram() {\n System.out.println(\"COMMISSION CALCULATOR\");\n System.out.println(\"=====================\");\n System.out.println(\"Welcome to the Commission Calculator. This program will calculate\");\n System.out.println(\"the commission to be paid to employees based on their weekly sales.\");\n System.out.println(\"\");\n System.out.println(\"First, enter the number of employees to calculate commission for. Then,\");\n System.out.println(\"enter the name and sales of each employee. The program will return each\");\n System.out.println(\"employee's commission, as well as total sales, and total and average\");\n System.out.println(\"commissions.\");\n }", "public static void main(String[] args) {\r\n\t\tProgProjGUI display = new ProgProjGUI();\r\n\t\tdisplay.setVisible(true);\r\n\t\t\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\tClassmate Kanvar = new Classmate();\n\t\tClassmate Drew = new Classmate();\n\t\tClassmate Keith = new Classmate();\n\t\tClassmate Toby = new Classmate();\n\t\tClassmate Melissa = new Classmate();\n\t\tClassmate Sherlin = new Classmate();\n\t\t// 4. set descriptions for each Classmate\n\t\tKanvar.setdescription(\n\t\t\t\t\"He LOVES Star Wars. Kanvar likes tasering Toby and pretzels. Kanvar is somehow in my class and not in second grade.\");\n\t\tToby.setdescription(\n\t\t\t\t\"He has a great Monday shirt, which says Vegan, Vegetarian, and Meatarian. Toby is also addicted to video games.\");\n\t\tDrew.setdescription(\n\t\t\t\t\"He is going to the University of Michigan for college. Drew is at CCA right now. He also likes jeans. \");\n\t\tMelissa.setdescription(\"She loves Justin Bieber and music. She likes streching\");\n\t\tSherlin.setdescription(\n\t\t\t\t\"She likes ponytails. She likes checking her emails and texts. She loves to check her typing speed.\");\n\t\tKeith.setdescription(\"He likes oats and honey bars. He got a new Hyundai today and he likes computers.\");\n\t\t// 5. Use your getter to print out each description\n\n\t\tString k = Kanvar.getdescription();\n\t\tString t = Toby.getdescription();\n\t\tString d = Drew.getdescription();\n\t\tString m = Melissa.getdescription();\n\t\tString s = Sherlin.getdescription();\n\t\tString ke = Keith.getdescription();\n\n\t\tJOptionPane.showMessageDialog(null, (k));\n\t\tJOptionPane.showMessageDialog(null, (t));\n\t\tJOptionPane.showMessageDialog(null, (d));\n\t\tJOptionPane.showMessageDialog(null, (s));\n\t\tJOptionPane.showMessageDialog(null, (s));\n\t\tJOptionPane.showMessageDialog(null, (ke));\n\t}", "public void printWelcome() {\n\t\tSystem.out.println(\"****************************************************\");\n\t\tSystem.out.println(\">> Welcome to TaskManager\");\n\t\tSystem.out.print(\">> You have \" + this.taskController.getUndoTaskNumber() + \" tasks to do\");\n\t\tSystem.out.println(\" and \" + this.taskController.getDoneTaskNumber() + \" tasks are done!\");\n\t\tSystem.out.println(\">> Pick an option:\");\n\t\tSystem.out.println(\">> (1) Show Task List by date\");\n\t\tSystem.out.println(\">> (2) Show Task List by project\");\n\t\tSystem.out.println(\">> (3) Add a New Task\");\n\t\tSystem.out.println(\">> (4) Edit a Task\");\n\t\tSystem.out.println(\">> (5) Remove a Task\");\n\t\tSystem.out.println(\">> (6) Save\");\n\t\tSystem.out.println(\">> (7) Exit\");\n\t\tSystem.out.println(\"****************************************************\\n\");\n\t}", "public void printUsage() {\n System.out.println(\"\\nHelp Invoked on \");\n System.out.println(\"[-hfs] \");\n System.out.println(\"\");\n\n System.out.println(\"Usage: \");\n System.out.println(\"-d [true|false]\");\n System.out.println(\"-f URL-file-pathame\");\n System.out.println(\"-h: invoke help\");\n System.out.println(\"-i: URL-list-input-source [ DEFAULT | USER | FILE ]\");\n System.out.println(\"-s URL-list-separator\");\n }", "public void printUsage() {\n printUsage(System.out);\n }", "public static void main(String[] args) {\n Last_coding_exercises.task17();\n\n\n }", "public static void help() {\n System.out.println(line(\"*\", 80));\n System.out.println(\"SUPPORTED COMMANDS\");\n System.out.println(\"All commands below are case insensitive\");\n System.out.println();\n System.out.println(\"\\tSELECT * FROM table_name; Display all records in the table.\");\n System.out.println(\"\\tSELECT * FROM table_name WHERE rowid = <value>; Display records whose rowid is <id>.\");\n System.out.println(\"\\tDROP TABLE table_name; Remove table data and its schema.\");\n System.out.println(\"\\tVERSION; Show the program version.\");\n System.out.println(\"\\tHELP; Show this help information\");\n System.out.println(\"\\tEXIT; Exit the program\");\n System.out.println();\n System.out.println();\n System.out.println(line(\"*\", 80));\n }", "public static void main(String [] args)\n {\n System.out.println(\"Programming is great fun!\");\n }", "private void printHelp() {\n System.out.println(\"Your available command words are:\");\n parser.showCommands();\n }", "private static void printUsageAndExit() {\n\t\t printUsageAndExit(null);\n\t\t }", "public void gameInstructions(){\n System.out.println(ANSI_GREEN + \"/**\\n\" +\n \" * @controls\\n\" +\n \" * \\\"play [sum]\\\" - spends 50 credits (\\\"play 50\\\") \\n\" +\n \" * \\\"add [sum]\\\" increases wallet (\\\"add 100\\\")\\n\" +\n \" * \\\"exit\\\" ends player session \\n\" +\n \" */\");\n }", "public static void main(String[] args) {\n System.out.print(\"-======================================================================-\");\n System.out.println(\" \");\n System.out.println(\" \");\n System.out.println(\" \");\n System.out.println(\" CAL'S DINER \");\n System.out.println(\" \");\n System.out.println(\" \");\n System.out.print(\"-======================================================================-\");\n \n \n //Display 3 special on menu\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\"\");\n System.out.println(\" Today's Special\");\n System.out.println(\" $26.00.......... 8oz Steak\");\n System.out.println(\" $16.00...........Spaghetti and Meatballs\");\n System.out.println(\" $17.00..........Homestyle Chicken Sandwich\");\n \n }", "private void printUsage() {\n \n // new formatter\n HelpFormatter formatter = new HelpFormatter();\n \n // add the text and print\n formatter.printHelp(\"arara [file [--log] [--verbose] [--timeout N] [--language L] | --help | --version]\", commandLineOptions);\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around in a dense woods.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n parser.showCommands();\n }", "public static void main(String[] args) {\n\t\tSystem.out.print(\"This is added code\");\n\t\tSystem.out.print(\"This is added code from GitHub\");\n\n\t}", "final private static void usage () {\n\t\t usage_print () ;\n\t\t System.exit (0) ;\n }", "private void printHelp() \n {\n System.out.println(\"You are lost. You are alone. You wander\");\n System.out.println(\"around at the prision.\");\n System.out.println();\n System.out.println(\"Your command words are:\");\n System.out.println(parser.showCommands());\n }", "private static void printUsage()\n {\n HelpFormatter hf = new HelpFormatter();\n String header = String.format(\n \"%nAvailable commands: ring, cluster, info, cleanup, compact, cfstats, snapshot [name], clearsnapshot, bootstrap\");\n String usage = String.format(\"java %s -host <arg> <command>%n\", NodeProbe.class.getName());\n hf.printHelp(usage, \"\", options, header);\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"My name is khan and i am not a terrorist\");\r\n\t\tSystem.out.println(\"I love my india\");\r\n\t\tSystem.out.println(\"Ye mera india\");\r\n\t\tSystem.out.println(\"Hello World\");\r\n\t\tSystem.out.println(\"Teri ma ki choot\")\r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"Just testing\");\r\n\t\t//lisää kommenttia\r\n\t\t\r\n\t}" ]
[ "0.73653996", "0.73086774", "0.7183156", "0.7154332", "0.7150216", "0.71369636", "0.7065674", "0.7038566", "0.698768", "0.69765985", "0.6953331", "0.6933147", "0.6931159", "0.6902168", "0.68985605", "0.68958336", "0.6891637", "0.6873645", "0.68164945", "0.6808313", "0.68068415", "0.67851174", "0.67594206", "0.6749534", "0.6720861", "0.67147106", "0.6676016", "0.6670313", "0.66612476", "0.66522247", "0.66462874", "0.66412383", "0.66396916", "0.66384864", "0.66328967", "0.661854", "0.6614353", "0.66106653", "0.66094196", "0.6608099", "0.6600673", "0.6595022", "0.6594276", "0.6592405", "0.65898246", "0.6574975", "0.65639156", "0.65624285", "0.6561098", "0.6548873", "0.65438956", "0.6541867", "0.6527903", "0.65237945", "0.6514619", "0.6512033", "0.65098697", "0.65083796", "0.6495166", "0.6489893", "0.6485558", "0.64854497", "0.6482203", "0.6470859", "0.64582455", "0.6458076", "0.6449988", "0.64489764", "0.6445455", "0.6436807", "0.6434054", "0.6430732", "0.64258605", "0.6421987", "0.6418235", "0.6414104", "0.6413601", "0.6409878", "0.64090717", "0.6408917", "0.64087886", "0.64052683", "0.6400318", "0.6397305", "0.6397155", "0.6392914", "0.6389927", "0.63869816", "0.63859326", "0.63786846", "0.637834", "0.63769144", "0.6372047", "0.63688153", "0.6362828", "0.63621193", "0.6361756", "0.6361391", "0.6360935", "0.63563645" ]
0.65704304
46
This method was generated by MyBatis Generator. This method returns the value of the database column user.id
public Long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}", "public Integer getUser_id() {\n\t\treturn user_id;\n\t}", "Integer getUserId();", "public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}", "Long getUserId();", "public int getIdUser() {\n return idUser;\n }", "public int getIdUser() {\n return idUser;\n }", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public long getUserId();", "public String findId(User user) throws Exception {\n\t\t\treturn sqlSession.selectOne(\"UserMapper.findId\", user);\n\t\t}", "public String getId() {\r\n\t\treturn userId.toString();\r\n\t}", "public int getIduser() {\n return iduser;\n }", "long getUserId();", "long getUserId();", "public Long getUserId() {\n return this.user.getId();\n }", "public Integer getUserId() {\r\n return userId;\r\n }", "public Integer getUserId() {\r\n return userId;\r\n }", "public Integer getUserID() {\n return userID;\n }", "@Override\n\tpublic long getUserId();", "@Override\n\tpublic long getUserId();", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public Integer getUserId() {\n return userId;\n }", "public int getUserId()\r\n\t{\r\n\t\treturn this.userId;\r\n\t}", "java.lang.String getUserId();", "java.lang.String getUserId();", "java.lang.String getUserId();", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserid() {\n return userid;\n }", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public Integer getUserId() {\r\n\t\treturn userId;\r\n\t}", "public Long getUserid() {\r\n return userid;\r\n }", "public Long getUserId() {\r\n return userId;\r\n }", "public Long getUserId() {\r\n return userId;\r\n }", "public Long getUserId() {\r\n return userId;\r\n }", "@Override\n\tpublic String getPrimaryKey() {\n\t\treturn \"user_id\";\n\t}", "String getUserId();", "String getUserId();", "public Integer getUserid() {\n\t\treturn this.userid;\n\t}", "public Integer getUserId() {\n\t\treturn userId;\n\t}", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public Long getUserId() {\n return userId;\n }", "public long getUserId() {\r\n return userId;\r\n }", "@Override\n\tpublic Long getUserId() {\n\t\treturn user.getKey().getId();\n\t}", "public long getUserId() {\n return userId;\n }", "public Integer getUserid() {\r\n\t\treturn userid;\r\n\t}", "public UserId getUserId() {\n\t\treturn this.userId;\n\t}", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public int getUserId() {\n return userId;\n }", "public String getIdUser() {\n\t\treturn idUser;\n\t }", "int getUserId() {\r\n\t\t\treturn userId;\r\n\t\t}", "public String getIdUser() {\n\t\treturn idUser;\n\t}" ]
[ "0.7426905", "0.73667943", "0.7356737", "0.7293998", "0.7268484", "0.71508896", "0.71508896", "0.70977414", "0.70977414", "0.70977414", "0.70977414", "0.70789707", "0.7066421", "0.7061277", "0.70410776", "0.70410776", "0.70267195", "0.6994408", "0.6994408", "0.6973708", "0.6964357", "0.6964357", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.6953453", "0.69256055", "0.69225013", "0.69225013", "0.69225013", "0.69196135", "0.69196135", "0.69196135", "0.69196135", "0.69196135", "0.69196135", "0.69196135", "0.69196135", "0.69196135", "0.69196135", "0.69196135", "0.69196135", "0.6909199", "0.6909199", "0.6909199", "0.69091374", "0.68827355", "0.68827355", "0.68827355", "0.68774706", "0.68655515", "0.68655515", "0.6856139", "0.68465084", "0.6845983", "0.6845983", "0.6845983", "0.6845983", "0.6845983", "0.6845983", "0.6845983", "0.6845983", "0.6845983", "0.6845983", "0.6845983", "0.6845983", "0.6845904", "0.6839833", "0.68273485", "0.68259954", "0.68241805", "0.6818778", "0.6818778", "0.6818778", "0.6818778", "0.6818778", "0.68144834", "0.67933923", "0.67729515" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column user.id
public void setId(Long id) { this.id = id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setIdUser(int value) {\n this.idUser = value;\n }", "public void setIdUser(Integer idUser) {\r\n\t\tthis.idUser = idUser;\r\n\t}", "public void setIdUser(String idUser) {\n\t\tthis.idUser = idUser;\n\t}", "public void setId_user(int id_user) {\r\n this.id_user = id_user;\r\n }", "public void setId_user(int id_user) {\n this.id_user = id_user;\n }", "public void setIduser(int aIduser) {\n iduser = aIduser;\n }", "public void setUserId(int value) {\n this.userId = value;\n }", "private void setUserId(int value) {\n \n userId_ = value;\n }", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "public void setUserId(long userId);", "@Override\n\tvoid setId(final UserId userId);", "private void setUserId(long value) {\n \n userId_ = value;\n }", "void setUserId(Long userId);", "private void setUserId(long value) {\n\n userId_ = value;\n }", "public void setUserId(long value) {\r\n this.userId = value;\r\n }", "void setUserId(int newId) {\r\n\t\t\tuserId = newId;\r\n\t\t}", "public void setUserId(long value) {\n this.userId = value;\n }", "@Override\n\tpublic void setUserId(long userId);", "@Override\n\tpublic void setUserId(long userId);", "public void setUserId(String id) {\n\t\t_userLoginId = id;\n\t}", "public void setUserID(int value) {\n this.userID = value;\n }", "void setUser(User user, int id) {\n this.user = user;\n this.id = id;\n }", "@Override\n public void setId(UserDetailsPk id) {\n this.id = id;\n }", "public void setUserid(java.lang.String value) {\n this.userid = value;\n }", "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "public void setUserId(Integer userId) {\r\n this.userId = userId;\r\n }", "public void setAD_User_ID (int AD_User_ID);", "public void setUserId(Long userId)\n/* */ {\n/* 80 */ this.userId = userId;\n/* */ }", "public void setUserid(Long userid) {\r\n this.userid = userid;\r\n }", "public int getIdUser() {\n return idUser;\n }", "public int getIdUser() {\n return idUser;\n }", "public void setUserId(java.lang.Long value) {\n this.userId = value;\n }", "public void setUserId(int userId) {\n this.mUserId = userId;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "public void setUserId(int userId) {\n this.userId = userId;\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_userSync.setUserId(userId);\n\t}", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(Integer userId) {\n this.userId = userId;\n }", "public void setUserId(String value) {\r\n setAttributeInternal(USERID, value);\r\n }", "public void setUserId( Integer userId ) {\n this.userId = userId;\n }", "private void setUserId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userId_ = value;\n }", "public void setUserId(int userId) {\n this.mUserId = userId;\n }", "@Override\n public void setUserId(long userId) {\n _usersCatastropheOrgs.setUserId(userId);\n }", "@Override\n\tpublic void setUserId(long userId) {\n\t\t_employee.setUserId(userId);\n\t}", "public Builder setUserId(long value) {\n \n userId_ = value;\n onChanged();\n return this;\n }", "public int getIduser() {\n return iduser;\n }", "public void setUserid(Integer userid) {\r\n\t\tthis.userid = userid;\r\n\t}", "public void setUserId(int userId)\r\n\t{\r\n\t\tthis.userId = userId;\r\n\t}", "public static void setUserId(int zUserId) {\n userId = zUserId;\n }", "public void setUserId(Long userId) {\r\n this.userId = userId;\r\n }", "public void setUserId(Long userId) {\r\n this.userId = userId;\r\n }", "public void setUserId(Long userId) {\r\n this.userId = userId;\r\n }", "public void setUserID(long userID) {\n UserID = userID;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public void setUserid(Integer userid) {\n this.userid = userid;\n }", "public Integer getIdUser() {\r\n\t\treturn idUser;\r\n\t}", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public void setUserId(Integer userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "public Integer getUser_id() {\n\t\treturn user_id;\n\t}", "public void setUser (User user) {\n userId = user.id != null ? user.id : User.getUserId(user.username);\n }", "public UserBuilder id(Long id){\r\n this.id =id;\r\n return this;\r\n }", "public void setUserId(int userId) {\r\n\t\tthis.userId = userId;\r\n\t}", "@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}", "@Override\n\tpublic void setUserId(long userId) {\n\t\tmodel.setUserId(userId);\n\t}" ]
[ "0.7717202", "0.75210536", "0.73440766", "0.72820354", "0.7247767", "0.71366644", "0.70673156", "0.7054328", "0.70278174", "0.70278174", "0.70278174", "0.70278174", "0.69791865", "0.696398", "0.6939535", "0.69093806", "0.68832195", "0.6852578", "0.68229914", "0.67886776", "0.67886776", "0.6709642", "0.66825926", "0.6670579", "0.6648245", "0.65751195", "0.6525453", "0.6525453", "0.6508077", "0.6468743", "0.64649457", "0.6454063", "0.6454063", "0.6451771", "0.6445719", "0.64372635", "0.64372635", "0.64372635", "0.6431638", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.6423692", "0.64173895", "0.6403049", "0.6397466", "0.6394656", "0.6378699", "0.63785195", "0.63781226", "0.63744026", "0.6372651", "0.63694084", "0.63642484", "0.6360046", "0.6360046", "0.6360046", "0.6349645", "0.634903", "0.634903", "0.634903", "0.634903", "0.634903", "0.634903", "0.634903", "0.634903", "0.634903", "0.634903", "0.634903", "0.634903", "0.63429713", "0.6314395", "0.6314395", "0.6314395", "0.6307074", "0.63065606", "0.6296982", "0.6277615", "0.62451905", "0.62451905" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column user.name
public String getName() { return name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUser_name() {\n return user_name;\n }", "public String getuserName() {\r\n return (String)getNamedWhereClauseParam(\"userName\");\r\n }", "public String getName() {\n return user.getName();\n }", "@AutoEscape\n\tpublic String getUser_name();", "public String getUsername() throws SQLException {\n\t\tloadFromDB();\n\t\treturn rev_user_text;\n\t}", "java.lang.String getUserName();", "java.lang.String getUserName();", "java.lang.String getUserName();", "@Override\r\n\tpublic String getFullname(String userId) {\n\t\tif (conn == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tString name = null;\r\n\t\ttry {\r\n\t\t\tString sql = \"SELECT username FROM users WHERE user_id = ? \";\r\n\t\t\tPreparedStatement statement = conn.prepareStatement(sql);\r\n\t\t\tstatement.setString(1, userId);\r\n\t\t\tResultSet rs = statement.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tname = rs.getString(\"username\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn name;\r\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn model.getUserName();\n\t}", "public String getJdbcUser()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_USER);\n }", "@Override\n\tpublic String getUserName() {\n\t\t\n\t\ttry {\n\t\t\treturn UserLocalServiceUtil.getUser(_dataset.getUserId()).getScreenName();\n\t\t} catch (PortalException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (SystemException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\treturn \"ERROR\";\n\t\t}\n\t}", "public String getName() {\r\n\t\treturn this.userName;\r\n\t}", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _second.getUserName();\n\t}", "@Override\n public String getUserName() {\n return name;\n }", "@Column(name = \"name\")\n public String getName() {\n return name;\n }", "public String getDbUser() {\n\t\treturn textFieldDbUser.getText();\n\t}", "public String getUserName() {\n\t\t\treturn name;\n\t\t}", "public String getUserName(){\n\t\treturn this.userName;\n\t}", "public String returnUserName() {\n\t\treturn this.registration_username.getAttribute(\"value\");\r\n\t}", "public String getUserName() {\n return sessionData.getUserName();\n }", "@Override\n public User getByName(String name) {\n return ChainWrappers.lambdaQueryChain(userMapper)\n .eq(User::getName, name).one();\n }", "public static String getUserName() {\n\t\treturn readTestData.getkeyData(\"SignUpDetails\", \"Key\", \"Value\", \"userName\");\n\t}", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _employee.getUserName();\n\t}", "public UTF8String getUserName() {\n return this.userName;\n }", "public String getUserName(int userId);", "public String getUsernameFieldName() {\n return getStringProperty(USERNAME_FIELD_NAME_KEY);\n }", "public Object userName() {\n return this.userName;\n }", "@AutoEscape\n\t@Override\n\tpublic String getUserName();", "@AutoEscape\n\t@Override\n\tpublic String getUserName();", "public String getUserName() {\n return this.userName;\n }", "public String getUserName() {\n return this.userName;\n }", "public String getUserName() {\n return this.userName;\n }", "@Basic\n @Column(name = \"name\", nullable = true, length = 30)\n public String getName() {\n return name;\n }", "@Override\n\tpublic String getRealNameByUserId(String userId) {\n\t\tMap<String,Object> map = new HashMap<String, Object>();\n\t\t//Map<String,Object> reqs = new HashMap<String, Object>();\n\t\tmap.put(\"userId\", userId);\n\t\tString sql = \"select * from tp_users where userId=:userId\";\n\t\t//reqs =joaSimpleDao.retrieve(\"tp_users\",map);\n\t\tList<Map<String, Object>> list = joaSimpleDao.queryForList(sql, map);\n\t\treturn list.get(0).get(\"realName\").toString();\n\t}", "public String getName(){\n\t\t\treturn columnName;\n\t\t}", "public String getName(long id) throws IASException, DBException {\n\t\tConnection conn = null;\n\t\tPreparedStatement ps = null;\n\t\ttry {\n\t\t\tconn = factory.getConnection();\n\t\t\tps = conn\n\t\t\t\t\t.prepareStatement(\"SELECT firstName, lastName FROM users WHERE id=?\");\n\t\t\tps.setLong(1, id);\n\t\t\tResultSet rs;\n\t\t\trs = ps.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tString result = rs.getString(\"firstname\") + \" \"\n\t\t\t\t\t\t+ rs.getString(\"lastname\");\n\t\t\t\trs.close();\n\t\t\t\tps.close();\n\t\t\t\treturn result;\n\t\t\t} else {\n\t\t\t\trs.close();\n\t\t\t\tps.close();\n\t\t\t\tthrow new IASException(\"User does not exist\");\n\t\t\t}\n\n\t\t} catch (SQLException | NamingException e) {\n\t\t\tthrow new DBException(e);\n\t\t} finally {\n\t\t\tDBUtil.closeConnection(conn, ps);\n\t\t}\n\t}", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "public String getUserName()\n\t{\n\t\treturn this.userName;\n\t}", "public String getName() {\n return (String) getObject(\"username\");\n }", "public String getName() {\n return columnName;\n }", "@Override\n\tpublic String getUserNameByUserId(String userId) {\n\t\tMap<String,Object> map = new HashMap<String, Object>();\n\t\tmap.put(\"userId\", userId);\n\t\tString sql = \"select *from tp_users where userId=:userId\";\n\t\tList<Map<String, Object>> list = joaSimpleDao.queryForList(sql, map);\n\t\treturn list.get(0).get(\"userName\").toString();\n\t\t\n\t}", "public static String getUserNameById(Integer id)\n\t{\n\t\ttry{\n\t\t\tConnection conn = DBConnection.getActiveConnection();\n\t\t\tString sql = \"select * from users WHERE `id`= ?\";\n\t\t\tPreparedStatement stmt;\n\t\t\tstmt = conn.prepareStatement(sql);\n\t\t\tstmt.setInt(1, id);\n\t\t\tResultSet rs = stmt.executeQuery();\n\t\t\tif(rs.next())\n\t\t\t{\n\t\t\t\treturn rs.getString(\"name\");\n\t\t\t}\t\n\t\t}catch(SQLException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\treturn null;\n\t}", "public java.lang.String getUserName() {\r\n return userName;\r\n }", "String getUserName();", "String getUserName();", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName() {\r\n return userName;\r\n }", "public String getUserName();", "public String getName(){\n return username;\n\t}", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public String getUserName()\n {\n return userName;\n }", "public String getUserName() {\n return userName;\n }", "public java.lang.String getUserName() {\n return userName;\n }", "String getUserName(String userId);", "public String getUserName() {\n\t\treturn this.userName;\n\t}", "public String getUserName() {\n\t \t return userName; \n\t}", "public User getUserByName(String name) {\n return getDbContext().select().from(USER).where(USER.USER_NAME.eq(name)).fetchOneInto(User.class);\n }", "@Override\n\tpublic java.lang.String getUserName() {\n\t\treturn _esfTournament.getUserName();\n\t}", "public ObservableValue<String> call(CellDataFeatures<User, String> u) {\n\n\t\t\t\t\treturn u.getValue().getLastName();\n\t\t\t\t}", "public String getUserName(){\n return this.userName;\n }", "public String getUserName(){\n return this.userName;\n }", "public String getPropertyName(){\n return SimpleTableField.mapPropName(this.columnName);\n }", "public String retrieveCurrentUsername()throws SQLException{\n String username2=null;\n\n database = dbH.getReadableDatabase();\n query=\"SELECT Username FROM CurrentUser\";\n cursor = database.rawQuery(query,null);\n\n if(cursor.moveToFirst())\n username2=cursor.getString(cursor.getColumnIndex(\"Username\"));\n cursor.close();\n dbH.close();\n return username2;\n\n }", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "@Override\n\tpublic String getUserName() {\n\t\treturn super.getUserName();\n\t}", "@Override\n\tpublic User getByName(String name) {\n\t\treturn userDao.getByName(name);\n\t}", "public String getUserName() {\n return (String) getAttributeInternal(USERNAME);\n }", "@Override\n public User getUserByName(final String name){\n Query query = sessionFactory.getCurrentSession().createQuery(\"from User where username = :name\");\n query.setParameter(\"name\", name);\n return (User) query.uniqueResult();\n }", "public ObservableValue<String> call(CellDataFeatures<User, String> u) {\n\n\t\t\t\t\treturn u.getValue().getUsername();\n\t\t\t\t}", "@ApiModelProperty(value = \"Gets and sets the name of the column.\")\n public String getName() {\n return name;\n }", "String getUserName() {\r\n\t\t\treturn username;\r\n\t\t}", "public String getUserLoginName() {\n return userLoginName;\n }", "public String getName() {\n\t\treturn this.username;\n\t}", "@Override\n\tpublic User getuserId(String name) {\n\t\treturn userdao.getuserId(name);\n\t}", "public String getName() { return _sqlName; }", "@Override\r\n\tpublic user selectByName(String name) {\n\t\treturn userM.selectByName(name);\r\n\t\r\n\t}" ]
[ "0.69681174", "0.6902906", "0.6882616", "0.6822542", "0.68148047", "0.6644521", "0.6644521", "0.6644521", "0.66209996", "0.6593828", "0.6593828", "0.6559034", "0.6528046", "0.6506284", "0.64950126", "0.6486422", "0.6462972", "0.6451985", "0.64451176", "0.6416343", "0.6407941", "0.64005446", "0.6398415", "0.6392919", "0.6391495", "0.638292", "0.63353586", "0.6323273", "0.6322943", "0.6313613", "0.6313613", "0.6304572", "0.6304572", "0.6304572", "0.6282532", "0.62792015", "0.6279018", "0.6270842", "0.62635565", "0.62628263", "0.62560296", "0.6241394", "0.62377435", "0.6235283", "0.6224096", "0.62224585", "0.62224585", "0.6221979", "0.6221979", "0.6221979", "0.6221979", "0.6220408", "0.6218678", "0.6217045", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62120444", "0.62065756", "0.6201348", "0.61976904", "0.61943245", "0.61849695", "0.6182072", "0.6175368", "0.61749977", "0.61747134", "0.6158309", "0.6158309", "0.6157846", "0.615395", "0.61499083", "0.61499083", "0.6139564", "0.6133796", "0.61286265", "0.61247426", "0.6124057", "0.612311", "0.6114928", "0.6108703", "0.61059713", "0.61005735", "0.60904324" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column user.name
public void setName(String name) { this.name = name == null ? null : name.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setName(String name){\r\n gotUserName = true;\r\n this.name = name;\r\n }", "public void setUser_name(String user_name);", "public void setUser_name(String user_name) {\n this.user_name = user_name;\n }", "public void setName(final java.lang.String name) {\r\n this.name = name;\r\n this.values.put(UserInfoTable.NAME, name);\r\n }", "public DAO updateUserName(User user) throws SQLException{\n String SQL = \"UPDATE user SET name = ? where id = ?\";\n PreparedStatement ps = connection.prepareStatement(SQL);\n ps.setString(1, user.getName());\n ps.setLong(2, user.getId());\n int result = ps.executeUpdate();\n if(result > 0) System.out.println(\"Atualização de nome concluída!\");\n ps.close();\n return this;\n\n }", "public void setUserName(String name) {\r\n\t\tthis.userName = name;\r\n\t}", "public void setUserName( String value )\n {\n m_UserName = value;\n }", "public void setUserName(java.lang.String value) {\n\t\tsetValue(org.jooq.examples.oracle.sys.packages.dbms_xplan.DiffPlanOutline.USER_NAME, value);\n\t}", "void setName( String username, String name ) throws UserNotFoundException;", "public void setName ( String name ) throws InvalidUserIDException {\r\n if(name == \"\") throw new InvalidUserIDException();\r\n _name= name;\r\n }", "public void setJdbcUser(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_USER, val);\n }", "@Override\n\tpublic void setUserName(String userName);", "@Override\n\tpublic void setUserName(String userName);", "public void setLastname(String lastname) throws SQLException\r\n\t{\r\n\t\tif (lastname == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET lastname =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, lastname);\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLastname(String \"+ lastname + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setUserName(String userName){\r\n this.userName = userName;\r\n }", "public static void setLastName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyLName,name);\n }", "public void setUserName(String userName){\n this.userName = userName;\n }", "@Override\n\tpublic void setUserName(String userName) {\n\t\t_changesetEntry.setUserName(userName);\n\t}", "@Override\n\tpublic void setUserName(String userName) {\n\n\t}", "@Override\n public void setUserName(String roomId, String userId, String userName) {\n\n //TODO: check error\n Room room = roomRepository.get(roomId);\n room.getUser(userId).setName(userName);\n roomRepository.put(room);\n }", "@Override\n\tpublic void setUserName(java.lang.String userName) {\n\t\t_esfTournament.setUserName(userName);\n\t}", "void setUserName(String newName) {\r\n\t\t\tusername = newName;\r\n\t\t}", "public void setUserName(String userName) {\r\n this.userName = userName;\r\n }", "@Override\n\tpublic void setUserName(java.lang.String userName) {\n\t\t_employee.setUserName(userName);\n\t}", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\r\n this.userName = userName;\r\n }", "public void setUserName(String userName) {\r\n this.userName = userName;\r\n }", "public void setuserName(String value) {\r\n setNamedWhereClauseParam(\"userName\", value);\r\n }", "public void setUserName(String userName) { \n\t\t this.userName = userName; \n\t}", "@Override\n\tpublic void setName(java.lang.String name) {\n\t\t_expandoColumn.setName(name);\n\t}", "@Override\n\tpublic void setUserName(String userName) {\n\t\tsuper.setUserName(userName);\n\t}", "@Override\n\tpublic void setUserName(String userName) {\n\t\tsuper.setUserName(userName);\n\t}", "public void setUserName(String value) {\n setAttributeInternal(USERNAME, value);\n }", "public void setUsername(String username) throws SQLException\r\n\t{\r\n\t\tif (username == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET username =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, username);\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setUsername(String \"+ username+ \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public static void setFirstName(String name){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyFName, name);\n }", "public void setFirstname(String firstname) throws SQLException\r\n\t{\r\n\t\tif (firstname == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET firstname =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, firstname);\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setFirstname(String \"+ firstname + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "@Override\n\tpublic void setUserName(java.lang.String userName) {\n\t\t_second.setUserName(userName);\n\t}", "@Override\r\n\tpublic user selectByName(String name) {\n\t\treturn userM.selectByName(name);\r\n\t\r\n\t}", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n this.userName = userName;\n }", "@Override\n\tpublic void setUserName(String userName) {\n\t\tmodel.setUserName(userName);\n\t}", "@Override\n\tpublic void setUserName(String userName) {\n\t\tmodel.setUserName(userName);\n\t}", "public void setUserName(String userName) {\n sessionData.setUserName(userName);\n }", "public void setUserName(java.lang.String userName) {\r\n this.userName = userName;\r\n }", "public Builder setUserName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userName_ = value;\n onChanged();\n return this;\n }", "public Builder setUserName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userName_ = value;\n onChanged();\n return this;\n }", "public void setUserName(String UserName){\n\t\tObjLogInPage.getUserName().sendKeys(UserName);\n\t}", "public Builder setUserName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n userName_ = value;\n onChanged();\n return this;\n }", "public void setUserName(java.lang.String userName) {\n this.userName = userName;\n }", "public void setUserName(String userName) {\n infoElements.put(new Integer(InfoElement.USERNAME), userName.getBytes());\n }", "public void setName(final String value)\n\t{\n\t\tsetName( getSession().getSessionContext(), value );\n\t}", "public void setUserName(String pUser)\n\t{\n \t tbUserName.clear();\n\t tbUserName.sendKeys(pUser);\n\t\t\n\t}", "public void setUserName(String name) throws RemoteException, InterruptedException {\n\t\tSystem.out.println(\"Server: Message > \" + \"setUserName() invoked\");\n\t\tlock.lock();\n\t\ttry {\n\t\t\twhile (sentinel != -1)\n\t\t\t\thasNotChanged.await();\n\t\t\t// System.out.println(\"....Enter setUserName critical section....\");\n\t\t\tuserName = name;\n\t\t\tif (!loggedIn.contains(name))\n\t\t\t\tloggedIn.add(name);\n\n\t\t\t++sentinel;\n\n\t\t\t//System.out.println(\"....Exit setUserName critical section....\");\n\t\t\thasChanged.signal();\n\t\t} finally {\n\t\t\tlock.unlock();\n\t\t}\n\t}", "private void updateUserName() {\n\t\t// if the customer has a first and last name update their username to be\n\t\t// the concatenation of their first and last name (in lower case)\n\t\t// else, make their username their first name\n\t\tif (!this.lastName.equals(Customer.EMPTY_LAST_NAME)) {\n\t\t\tthis.userName = (this.firstName + this.lastName).toLowerCase();\n\t\t} else {\n\t\t\tthis.userName = this.firstName.toLowerCase();\n\t\t}\n\t}", "@Override\n\tpublic User selectUserByName(String userName) {\n\t\treturn userDao.selectUserByName(userName);\n\t}", "public User(String name) {\r\n\t\tthis.name = name;\r\n\t}", "public void setUserName(final UTF8String userName) {\n this.userName = userName;\n }", "public void save(User use) {\n jdbcTemplate.update(\"insert into user (id,name) values(?,?)\", use.getName());\n }", "@Override\n public void setUserName(java.lang.String userName) {\n _partido.setUserName(userName);\n }", "UserInfo setName(String name);", "@Override\n public String getUserName() {\n return name;\n }", "public void setName(String name) {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE, 0);\n\t\tSharedPreferences.Editor editor = settings.edit();\n\t\teditor.putString(USERNAME_KEY, name);\n\t\teditor.commit();\n\t}", "public void setUserName(String userName) {\n\t\tthis.userName=userName;\n\t}", "public Builder setUserName(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n userName_ = value;\n onChanged();\n return this;\n }", "public String getUser_name() {\n return user_name;\n }", "public void setUsername(String name) {\r\n TextView username = (TextView) mView.findViewById(R.id.current_bid_username);\r\n username.setText(name);\r\n }", "public void setName(String name) {\n\t\tthis.name = name;\n\t\tmarkDirty(\"name\",name);\n\t}", "public void setUserName(String username){\n this.userName = username;\n }", "public void setName(String name){\n\t\tif(name != null){\n\t\t\tthis.name = name;\n\t\t}\n\t}", "public void setDatabaseUser(String sDatabaseUser) throws IOException;", "protected final void setUserName(final String userName) {\n this.userName = userName;\n }", "public void setName(String name) {\n\t\tName = name;\n\t}", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setName(String name){\r\n this.name = name;\r\n }", "public void setUserName( final String userName )\n\t{\n\t\tthis.userName = userName;\n\t}", "public void setUserName(String text) {\n txtUserName().setText(text);\n }", "public void setName(String name) {\n \tif (name==null)\n \t\tthis.name = \"\";\n \telse\n \t\tthis.name = name;\n\t}", "public void setName(String name)\n {\n this.name=name;\n }", "public void setUserName(String userName)\n\t{\n\t\tthis.userName = userName;\n\t}", "public void setName(String name){\n this.name = name;\n }", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setName(String name){\r\n\t\tthis.name = name;\r\n\t}", "public void setUserName(String userName) {\r\n\t\tthis.userName = userName;\r\n\t}", "public void setUserName(String userName) {\r\n\t\tthis.userName = userName;\r\n\t}", "public void setUserName(String userName) {\r\n\t\tthis.userName = userName;\r\n\t}" ]
[ "0.6855326", "0.68204397", "0.6776534", "0.6703559", "0.6582025", "0.6556657", "0.64921904", "0.6434038", "0.6430046", "0.64267427", "0.6398451", "0.6383041", "0.6383041", "0.6310872", "0.62817", "0.62409717", "0.6233853", "0.62247866", "0.62045664", "0.6202792", "0.61911756", "0.6166061", "0.615952", "0.615534", "0.6141632", "0.61175454", "0.61175454", "0.6117063", "0.6111356", "0.61076826", "0.60977525", "0.60977525", "0.6090358", "0.6070551", "0.607003", "0.60687745", "0.6053125", "0.60486424", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60373265", "0.60348046", "0.60348046", "0.6032423", "0.60291606", "0.60193473", "0.60193473", "0.6006314", "0.5983546", "0.59416926", "0.59378767", "0.5919839", "0.59091216", "0.59001696", "0.5895723", "0.58919346", "0.5891204", "0.589024", "0.58799756", "0.586689", "0.5859989", "0.5857966", "0.5856589", "0.58442676", "0.58364433", "0.5829279", "0.58281296", "0.5823795", "0.5823035", "0.5822166", "0.5817759", "0.58164907", "0.5810021", "0.58009726", "0.58009726", "0.58009726", "0.5800089", "0.57937884", "0.5789567", "0.578815", "0.57875335", "0.57869905", "0.57868326", "0.57868326", "0.57868326", "0.5786811", "0.5786811", "0.5786811" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column user.password
public String getPassword() { return password; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPassword() {\n return jdbcPassword;\n }", "@Override\n\tpublic String getPassword() {\n\t\treturn user.getUserPwd();\n\t}", "public String getUserPassword() {\n return sp.getString(USER_PASSWORD, null);\n }", "public String getJdbcPassword()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_PASSWORD);\n }", "public String getUserPassword() {\r\n return userPassword;\r\n }", "@Override\n\tpublic String getPassword() {\n\t\treturn user.getPassword();\n\t}", "public String getUserPassword() {\n\t\treturn userPassword;\n\t}", "public String getPassword() {\n return (String) getObject(\"password\");\n }", "public String get_password()\r\n\t{\r\n\t\treturn this.password;\r\n\t}", "public String getPassword(){\n\t\treturn this.password;\n\t}", "public String getDbpassword() {\n return dbpassword;\n }", "public String getPassword() {\r\n return this.password;\r\n }", "public String getPassword() {\n\t\treturn String.valueOf(password.getPassword());\n\t}", "public String getPassword(){\r\n\t\treturn password;\r\n\t}", "public String getPassword() {\r\n \t\treturn properties.getProperty(KEY_PASSWORD);\r\n \t}", "public String getPassword() {\n return getProperty(PASSWORD);\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public String getPassword() {\n return this.password;\n }", "public final String getPassword() {\n return properties.get(PASSWORD_PROPERTY);\n }", "public String getPassword()\n {\n return this.password;\n }", "public String getPassword()\n\t{\n\t\treturn this.password;\n\t}", "public String getPassword() {\n\t\treturn this.password;\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public java.lang.String getPassword();", "public String getPassword()\n \t{\n \t\treturn password;\n \t}", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "java.lang.String getPassword();", "public String getPassword() {\n \t\treturn password;\n \t}", "public String getDbPassword() {\n\t\treturn mDbPassword;\n\t}", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword() {\r\n return password;\r\n }", "public String getPassword(){\n \treturn password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\n {\n return _password;\n }", "public String getPassword() {\n return password;\r\n }", "public String getPassword(){\n return this.password;\n }", "public String getPassword()\r\n {\r\n return password;\r\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword()\n {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\n return password;\n }", "public String getPassword() {\r\n\t\treturn password;\r\n\t}", "public String getPassword() {\r\n\t\treturn password;\r\n\t}", "public String getPassword() {\r\n\t\treturn password;\r\n\t}", "public String getPassword() {\r\n\t\treturn password;\r\n\t}", "public String getPassword() {\r\n\t\treturn password;\r\n\t}", "public String getPassword() {\r\n\t\treturn password;\r\n\t}" ]
[ "0.7656398", "0.76335037", "0.762836", "0.76049626", "0.7600737", "0.75975835", "0.7513614", "0.74719", "0.74123615", "0.7391019", "0.73619777", "0.7316492", "0.73063797", "0.7304169", "0.73007697", "0.72941977", "0.72776276", "0.72776276", "0.72776276", "0.72776276", "0.72776276", "0.7267436", "0.72616374", "0.7251164", "0.7247631", "0.7239704", "0.72374994", "0.7233308", "0.72276056", "0.72276056", "0.72276056", "0.72276056", "0.72276056", "0.72276056", "0.72276056", "0.72215116", "0.7219444", "0.72119457", "0.72119457", "0.72119457", "0.72119457", "0.72119457", "0.72119457", "0.72119457", "0.72119457", "0.72119457", "0.72119457", "0.72119457", "0.7209967", "0.7191813", "0.71904075", "0.7188306", "0.7177809", "0.71658885", "0.7165701", "0.71628463", "0.71628463", "0.7162413", "0.7162413", "0.7162232", "0.7162232", "0.7162232", "0.7162232", "0.7162232", "0.7162232" ]
0.0
-1
This method was generated by MyBatis Generator. This method sets the value of the database column user.password
public void setPassword(String password) { this.password = password == null ? null : password.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setPassword(String password) throws SQLException\r\n\t{\r\n\t\tif (password == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET password =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, password);\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setPassword(String \"+ password+ \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setJdbcPassword(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_PASSWORD, val);\n }", "public void setPassword(String user, String password) throws Exception {\n\t\tProperties database = getDataBase();\n\t\tdatabase.setProperty(user, PasswordHash.createHash(password));\n\t\tsave(database);\n\t}", "public void setPassword(final java.lang.String password) {\r\n this.password = password;\r\n this.values.put(UserInfoTable.PASSWORD, password);\r\n }", "public void setPassword(java.lang.String newPassword);", "public void setPassword(String newPassword) {\n this.password = newPassword;\n \n //make the changes in the database\n db.updateUserProperty(username, Property.PASSWORD, newPassword);\n }", "public void setPassword(String password)\n {\n _password = password;\n }", "public void setPassword(String password)\r\n/* 26: */ {\r\n/* 27:42 */ this.password = password;\r\n/* 28: */ }", "public void setPassword(String pass);", "void setPassword(String password);", "void setPassword(String password);", "void setPassword(String password);", "public void setPassword(String password){\r\n this.password = password;\r\n }", "public void setPassword(String password) throws BuildException {\n jdbcPassword = password;\n }", "public String getPassword() {\n return jdbcPassword;\n }", "public void setPassword(String pw)\n {\n this.password = pw;\n }", "public void setPassword(String password) {\n this.password = password;\n saveProperties();\n }", "public void setPassword(String password)\n {\n _password = password;\n }", "void setPassword(String ps) {\n this.password = ps;\n }", "@Override\n\tpublic void setPassword(String password) {\n\n\t}", "@Test\n\tpublic void testSetPassword() {\n\t\tUser user = new User();\n\t\tuser.setPassword(\"TuEsOuPassword\");\n\t\tassertEquals(\"TuEsOuPassword\", user.getPassword());\n\t}", "void setPassword(Password newPassword, String plainPassword) throws NoUserSelectedException;", "public void setDbpassword(String dbpassword) {\n this.dbpassword = dbpassword;\n }", "public void setPassword(String password) {\n setObject(\"password\", (password != null) ? password : \"\");\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword( String password )\r\n {\r\n this.password = password;\r\n }", "public void updatePassword(User user) {\n\t\tString sql=\"update SCOTT.USERS set PASSWORD='\"+user.getPassword()+\"' where USERNAME='\"+user.getUsername()+\"'\";\n\t\t\n\t\tJdbcUtils jdbcutils=new JdbcUtils();\n\t\tjdbcutils.executeUpdate(sql);\n\t\t\n\t}", "public void changePassword(String password) {\n userRepository.findOneByLogin(SecurityUtils.getCurrentUserLogin()).ifPresent(user -> {\n String encryptedPassword = passwordEncoder.encode(password);\n user.setPassword(encryptedPassword);\n log.debug(\"Changed password for User: {}\", user);\n });\n }", "@Override\n\tpublic boolean setNewPassword(BigInteger tUserFId,String password) {\n\t\tint res = accountManageDao.updateApplyPwdWithMainUser(tUserFId,password);\n\t\treturn res>0?true:false;\n\t}", "public void setPassword(String password) {\n this.password = password;\r\n }", "public void setPassword(String password)\n {\n this.password = password;\n }", "public void setPassword(String password)\n {\n this.password = password;\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void setPassword(String password) {\r\n this.password = password;\r\n }", "public void set_pass(String password)\n {\n pass=password;\n }", "public void set_password(String password)\r\n\t{\r\n\t\tthis.password = password;\r\n\t}", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "@Override\n\tpublic void modifyUserPassword(String user_id, String user_password) {\n\t\tuserInfoDAO.modifyPassword(user_id, user_password);\n\t}", "public void setPassword(String password)\n {\n this.password = password;\n }", "public void setPassword(String password) {\n\tthis.password = password;\n}", "public void setPassword(String password)\n \t{\n \t\tthis.password = password;\n \t}", "@Override\n\tpublic void alterpassword(User user) throws Exception {\n\n\t}", "void updateMasterPassword(String password, User userInSession) throws BusinessException;", "public void setPassword(final String password){\n mPassword = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password = password;\n }", "@Override\n\tpublic void setPassword(String password) {\n\t\tgetInnerObject().setPassword(password);\n\t\t\n\t}", "public void setPassword(String userEmail, String password) throws StorageException {\r\n ContentValues values = new ContentValues();\r\n values.put(\"email\", userEmail);\r\n values.put(\"password\", password);\r\n // Update SQL table of clients with the new values for password\r\n sqlExecutor.updateRecords(\"clients\", values, \"email\", userEmail);\r\n }", "public void setPassword(String password) {\n this.password = password;\n }", "public void setPassword(String password) {\n this.password.set(password);\n }", "public void setAccountPassword(String value) {\n this.accountPassword = value;\n }", "public void setPassword(String p)\n\t{\n\t\tpassword = p;\n\t}", "void updateUserPassword(User user);", "public void setPassword2(String password2);", "public void setPassword(int password) {\n this.password = password;\n }", "public void setPassword(String p) {\n\t\tpassword = p;\n\t}", "@Override\n\tpublic void setPassword(String password) {\n\t\tsuper.setPassword(password);\n\t}", "@Override\n\tpublic void setPassword(String password) {\n\t\tsuper.setPassword(password);\n\t}", "public void setUserPassword(String newPassword) {\n profile.setPassword(currentUser, newPassword);\n }", "public void setPassword(String password) {\r\n\t\tthis.password = password;\r\n\t}", "public void setPassword(String password) {\r\n\t\tthis.password = password;\r\n\t}", "public void setPassword(java.lang.String password) {\r\n this.password = password;\r\n }", "public void setPassword(java.lang.String password) {\r\n this.password = password;\r\n }", "public String getDbpassword() {\n return dbpassword;\n }", "public Builder setPassword(\n String value) {\n copyOnWrite();\n instance.setPassword(value);\n return this;\n }", "public Builder setPassword(\n String value) {\n copyOnWrite();\n instance.setPassword(value);\n return this;\n }" ]
[ "0.7392245", "0.715583", "0.7138791", "0.70200807", "0.6999173", "0.69804025", "0.69199705", "0.69032204", "0.6874533", "0.68713665", "0.68713665", "0.68713665", "0.6863997", "0.68635756", "0.68541497", "0.6816944", "0.68119824", "0.67953694", "0.67736626", "0.6762877", "0.67618775", "0.6749428", "0.6748817", "0.67402726", "0.6740228", "0.6740228", "0.6720476", "0.6714502", "0.66983783", "0.66852236", "0.6680965", "0.66794366", "0.66794366", "0.667929", "0.667929", "0.667929", "0.667929", "0.667929", "0.667929", "0.66726536", "0.66625845", "0.66562784", "0.66562784", "0.66508645", "0.66491663", "0.6647435", "0.6637941", "0.6627122", "0.6600171", "0.65827465", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.65783846", "0.6573891", "0.65568715", "0.6554759", "0.6552651", "0.6547784", "0.6545559", "0.6543804", "0.6533381", "0.65295964", "0.65134984", "0.6512404", "0.6512404", "0.6502391", "0.6480493", "0.6480493", "0.646495", "0.646495", "0.6458319", "0.64569914", "0.64569914" ]
0.0
-1
This method was generated by MyBatis Generator. This method returns the value of the database column user.gender
public String getGender() { return gender; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "com.google.ads.googleads.v14.common.GenderInfo getGender();", "public Integer getGender() {\r\n return gender;\r\n }", "public Integer getGender() {\n return gender;\n }", "public Integer getGender() {\n return gender;\n }", "public int getGenderValue() {\n return gender_;\n }", "public String getGender() {\r\n return gender;\r\n }", "public int getGenderValue() {\n return gender_;\n }", "@java.lang.Override public int getGenderValue() {\n return gender_;\n }", "public int getGender() {\n return gender_;\n }", "@java.lang.Override public int getGenderValue() {\n return gender_;\n }", "public int getGender() {\n return gender_;\n }", "public String getGender() {\n\t\treturn this.gender;\n\t}", "public String getGender() {\r\n\t\treturn gender;\r\n\t}", "public String getGender() {\r\n\t\treturn gender;\r\n\t}", "public java.lang.String getGender() {\r\n return gender;\r\n }", "@AutoEscape\n\tpublic String getGender();", "@AutoEscape\n\tpublic String getGender();", "@AutoEscape\n\tpublic String getGender();", "public String getGenderId() {\n return genderId;\n }", "public java.lang.String getGender() {\n return gender;\n }", "public com.luisjrz96.streaming.birthsgenerator.models.Gender getGender() {\n return gender;\n }", "public Gender getGender()\n {\n return gender;\n }", "public Gender getGender() {\n return gender;\n }", "public Gender getGender() {\n return gender;\n }", "public Gender getGender()\r\n\t{\r\n\t\treturn gender;\r\n\t}", "public com.luisjrz96.streaming.birthsgenerator.models.Gender getGender() {\n return gender;\n }", "public String getaGender() {\n return aGender;\n }", "public com.google.protobuf.ByteString\n getGenderBytes() {\n java.lang.Object ref = gender_;\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 gender_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getGenderBytes() {\n java.lang.Object ref = gender_;\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 gender_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "int getGenderValue();", "@java.lang.Override public app.onepass.apis.Gender getGender() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.Gender result = app.onepass.apis.Gender.valueOf(gender_);\n return result == null ? app.onepass.apis.Gender.UNRECOGNIZED : result;\n }", "public com.zzsong.netty.protobuff.two.ProtoData.Person.Gender getGender() {\n @SuppressWarnings(\"deprecation\")\n com.zzsong.netty.protobuff.two.ProtoData.Person.Gender result = com.zzsong.netty.protobuff.two.ProtoData.Person.Gender.valueOf(gender_);\n return result == null ? com.zzsong.netty.protobuff.two.ProtoData.Person.Gender.UNRECOGNIZED : result;\n }", "public Byte getGender() {\n return gender;\n }", "public Byte getGender() {\n return gender;\n }", "public com.zzsong.netty.protobuff.two.ProtoData.Person.Gender getGender() {\n @SuppressWarnings(\"deprecation\")\n com.zzsong.netty.protobuff.two.ProtoData.Person.Gender result = com.zzsong.netty.protobuff.two.ProtoData.Person.Gender.valueOf(gender_);\n return result == null ? com.zzsong.netty.protobuff.two.ProtoData.Person.Gender.UNRECOGNIZED : result;\n }", "public java.lang.String getGender() {\n java.lang.Object ref = gender_;\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 gender_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getGender() {\n java.lang.Object ref = gender_;\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 gender_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String gender();", "@java.lang.Override\n public app.onepass.apis.Gender getGender() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.Gender result = app.onepass.apis.Gender.valueOf(gender_);\n return result == null ? app.onepass.apis.Gender.UNRECOGNIZED : result;\n }", "public java.lang.String getGender() {\n java.lang.Object ref = gender_;\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 gender_ = s;\n return s;\n }\n }", "public java.lang.String getGender() {\n java.lang.Object ref = gender_;\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 gender_ = s;\n return s;\n }\n }", "public Gender_Tp getGender() { return gender; }", "@Override\n\tpublic String convertToDatabaseColumn(Gender gender) {\n\t\tif (gender == null)\n\t\t\treturn null;\n\t\t\n\t\treturn gender.getSex();\n\t}", "public com.google.protobuf.ByteString\n getGenderBytes() {\n java.lang.Object ref = gender_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n gender_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getGenderBytes() {\n java.lang.Object ref = gender_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n gender_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getUserGender(){\n return mSharedPreferences.getString(SharedPrefContract.PREF_GENDER, null);\n }", "int getGender();", "public Gender getGender() {\n return localGender;\n }", "public Gender getGender() {\n return localGender;\n }", "public String getGender(){\n return gender;\n }", "public Gender getGender() {\n\t\treturn gender;\n\t}", "@JsonProperty( \"gender\" )\n\tpublic Gender getGender()\n\t{\n\t\treturn m_gender;\n\t}", "public String getGenderAsString(){\n String genderString;\n if (gender == 'f'){\n genderString=\"female\";\n }\n else {\n genderString=\"male\";\n }\n return genderString;\n }", "public String getUserSex() {\n return userSex;\n }", "public void setGender(String value) {\n this.gender = value;\n }", "public String getFullGender() {\n return gender == 'F' ? \"Female\" : gender == 'M' ? \"Male\" : \"Not specified\";\n }", "public int gender()\r\n\t{\r\n\t\tif(male)\r\n\t\t\treturn 0;\r\n\t\treturn 1;\r\n\t}", "public char getGender() {\r\n\t\treturn gender;\r\n\t}", "public char getGender() {\r\n\t\treturn gender;\r\n\t}", "public char getGender(){\n\t\treturn gender;\n\t}", "public int getFemale() {\n return female;\n }", "public char getGender() { return gender; }", "public boolean getGender() { return gender; }", "com.google.ads.googleads.v6.resources.GenderView getGenderView();", "@Override\n\tpublic int getGender() {\n\t\treturn _candidate.getGender();\n\t}", "public static void setGender(String gender){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyGender, gender);\n }", "public Byte getUserSex() {\r\n return userSex;\r\n }", "com.google.ads.googleads.v14.common.GenderInfoOrBuilder getGenderOrBuilder();", "public void setGender(String gender) {\r\n this.gender = gender;\r\n }", "private String getGender() {\n\t\tswitch (rgGender.getCheckedRadioButtonId()) {\n\t\tcase R.id.rdAddMale:\n\t\t\taGender = \"Мужчина\";\n\t\t\tbreak;\n\t\tcase R.id.rdAddFemale:\n\t\t\taGender = \"Женщина\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn aGender;\n\t}", "public static Gender getUserGender(Context context) {\n\n int genderId = context.getSharedPreferences(FILE_NAME, 0)\n .getInt(USER_GENDER_KEY, 0);\n for (Gender gender : Gender.values()) {\n\n if(genderId == gender.getId()) {\n return gender;\n }\n }\n\n return null;\n }", "public void setGender(String gender) {\n this.gender = gender;\n }", "public int getMale() {\n return male;\n }", "@Override\n\tpublic Gender convertToEntityAttribute(String sex) {\n\t\tif (sex == null) {\n return null;\n }\n\n return Stream.of(Gender.values())\n .filter(g -> g.getSex().equals(sex))\n .findFirst()\n .orElseThrow(IllegalArgumentException::new);\n\t}", "public void setGender(java.lang.String gender) {\r\n this.gender = gender;\r\n }", "public void setGender(java.lang.String gender) {\n this.gender = gender;\n }", "public void setGender(String gender) {\r\n\t\tthis.gender = gender;\r\n\t}", "com.google.ads.googleads.v6.resources.GenderViewOrBuilder getGenderViewOrBuilder();", "public Integer getAccountSex() {\n return accountSex;\n }", "public void setGender(String gender);", "public void setGender(String gender);", "public void setGender(String gender);", "public String gender_check(String name) {\n\t\treturn dao.seat_genderselect(name);\r\n\t}", "public Integer getaSex() {\n return aSex;\n }", "public String gender(boolean flag)\n\t{\n\t\tif(flag == false)\n\t\t{\n\t\t\treturn \"Enter Gender: \";\n\t\t}\n\t\telse\n\t\t\treturn \"Gender: \";\n\t}", "@ApiModelProperty(value = \"This is a quick reference enumeration for all of the currently defined Genders. We use the enumeration for quicker lookups in related data, like DestinyClassDefinition.genderedClassNames.\")\n public Object getGenderType() {\n return genderType;\n }", "public void setGender(Integer gender) {\r\n this.gender = gender;\r\n }", "public void setGender(Integer gender) {\n this.gender = gender;\n }", "public void setGender(Integer gender) {\n this.gender = gender;\n }", "@MockList(value = \"1,2\")\r\n\tpublic String getAttr_gender() {\n\t\treturn super.getAttr_gender();\r\n\t}", "public void setGender(Byte gender) {\n this.gender = gender;\n }", "public void setGender(Byte gender) {\n this.gender = gender;\n }", "private String getSelectedGender() {\n int radioButtonID = rgGender.getCheckedRadioButtonId();\n RadioButton radioButton = rgGender.findViewById(radioButtonID);\n return radioButton.getText().toString();\n }", "public Integer getAgcProGender() {\n\t\treturn agcProGender;\n\t}", "public void setGender(String gender) {\n this.gender = gender.equals(\"M\")?Gender.M:Gender.F; \n }" ]
[ "0.72360456", "0.7226597", "0.72015285", "0.72015285", "0.71863735", "0.7183594", "0.7135148", "0.7123131", "0.71207905", "0.70985013", "0.70826626", "0.70704687", "0.7053282", "0.7053282", "0.7038895", "0.702833", "0.702833", "0.702833", "0.7027214", "0.70264363", "0.7022349", "0.70090514", "0.6968562", "0.6968562", "0.6968281", "0.6941031", "0.6928301", "0.68841535", "0.68841535", "0.68830246", "0.6882608", "0.6881011", "0.6872589", "0.6872589", "0.6870743", "0.6860975", "0.6860975", "0.68505913", "0.6843287", "0.684162", "0.684162", "0.6823898", "0.6822176", "0.68005866", "0.68005866", "0.6799857", "0.6796804", "0.6785924", "0.6785924", "0.6772758", "0.6739897", "0.67052877", "0.66573", "0.664307", "0.6611049", "0.6602775", "0.65996885", "0.65931237", "0.65931237", "0.6568136", "0.6537714", "0.647918", "0.64496976", "0.64369565", "0.6430305", "0.64213103", "0.64049226", "0.6387773", "0.635894", "0.63418114", "0.6341791", "0.633344", "0.632116", "0.6299613", "0.6289788", "0.6271202", "0.6249548", "0.62004954", "0.6197456", "0.61206985", "0.61206985", "0.61206985", "0.61004627", "0.6067583", "0.6064384", "0.6051555", "0.60429156", "0.6023501", "0.6023501", "0.60222626", "0.6018333", "0.6018333", "0.6017742", "0.59845454", "0.59839666" ]
0.7138925
10
This method was generated by MyBatis Generator. This method sets the value of the database column user.gender
public void setGender(String gender) { this.gender = gender == null ? null : gender.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setGender(String gender){\n setUserProperty(Constants.ZeTarget_keyForUserPropertyGender, gender);\n }", "public void setGender(String value) {\n this.gender = value;\n }", "public void setGender(String gender);", "public void setGender(String gender);", "public void setGender(String gender);", "public void setGender(String gender) {\n this.gender = gender.equals(\"M\")?Gender.M:Gender.F; \n }", "public void setGender(String gender) {\r\n this.gender = gender;\r\n }", "public void setGender(java.lang.String gender) {\r\n this.gender = gender;\r\n }", "public void setGender(String gender) {\n this.gender = gender;\n }", "public void setGender(Gender inGender)\n {\n gender = inGender;\n }", "public void setGender(java.lang.String gender) {\n this.gender = gender;\n }", "public void setGender(Integer gender) {\r\n this.gender = gender;\r\n }", "public void setGender (boolean g) {\n gender = g;\n }", "public void setGender(Integer gender) {\n this.gender = gender;\n }", "public void setGender(Integer gender) {\n this.gender = gender;\n }", "public void setGender(Gender_Tp gender) { this.gender = gender; }", "public void setGender(Byte gender) {\n this.gender = gender;\n }", "public void setGender(Byte gender) {\n this.gender = gender;\n }", "public void setGender(String gender){\n if(gender == \"laki\"){\r\n isMale = true;\r\n }else if(gender == \"perempuan\"){\r\n isMale = false;\r\n }\r\n }", "public void setGender(String gender) {\r\n\t\tthis.gender = gender;\r\n\t}", "protected void setGender(Gender gender) {\n this.gender = gender;\n }", "public void setGender(Gender gender) {\n\t\tthis.gender = gender;\n\t}", "public void setGender(com.luisjrz96.streaming.birthsgenerator.models.Gender value) {\n this.gender = value;\n }", "public void setGender(char gender) { this.gender = gender; }", "public void setGender( String gender)\r\n\t{\n\t\tthis.gender = validateGender( gender );\r\n\r\n\t}", "public void setGender(char gender) {\r\n\t\tthis.gender = gender;\r\n\t}", "public void setGender(char gender) {\r\n\t\tthis.gender = gender;\r\n\t}", "public void setGender(Gender param) {\n this.localGender = param;\n }", "public void setMale(int value) {\n this.male = value;\n }", "@Override\r\n\tpublic boolean UpdateGender(String gender, String username) {\n\t\tDataAccess dBManager = new DataAccess();\r\n \tboolean update6 = dBManager.updateGender(gender, username);\r\n \tdBManager.close();\r\n \t//updateCurrentUser();\r\n \treturn update6;\r\n\t}", "public void setFemale(int value) {\n this.female = value;\n }", "public void setGender(char gender) {\n\n if(gender=='m'||gender=='f'||gender=='M'||gender=='F')\n this.gender = gender;\n else this.gender ='*';\n }", "@java.lang.Override public int getGenderValue() {\n return gender_;\n }", "public void setGender(Gender param) {\n localGenderTracker = param != null;\n\n this.localGender = param;\n }", "public void setUserSex(String userSex) {\n this.userSex = userSex;\n }", "public void setGenderId(String genderId) {\n this.genderId = genderId;\n }", "public String getGender() {\r\n return gender;\r\n }", "public Builder setGender(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n gender_ = value;\n onChanged();\n return this;\n }", "public Builder setGender(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n gender_ = value;\n onChanged();\n return this;\n }", "public Integer getGender() {\r\n return gender;\r\n }", "public String getGenderId() {\n return genderId;\n }", "@java.lang.Override public int getGenderValue() {\n return gender_;\n }", "public int getGenderValue() {\n return gender_;\n }", "public Integer getGender() {\n return gender;\n }", "public Integer getGender() {\n return gender;\n }", "public String getGender() {\n return gender;\n }", "public String getGender() {\n return gender;\n }", "public String getGender() {\n return gender;\n }", "public String getGender() {\n return gender;\n }", "public String getGender() {\n return gender;\n }", "public String getGender() {\n return gender;\n }", "public int getGenderValue() {\n return gender_;\n }", "public Builder setGenderValue(int value) {\n gender_ = value;\n onChanged();\n return this;\n }", "public Builder setGenderValue(int value) {\n \n gender_ = value;\n onChanged();\n return this;\n }", "public Gender getGender()\n {\n return gender;\n }", "public int getGender() {\n return gender_;\n }", "@Override\n\tpublic void setGender(int gender) {\n\t\t_candidate.setGender(gender);\n\t}", "public void setUserSex(Byte userSex) {\r\n this.userSex = userSex;\r\n }", "public Builder setGender(int value) {\n bitField0_ |= 0x00000002;\n gender_ = value;\n onChanged();\n return this;\n }", "public int getGender() {\n return gender_;\n }", "public String getGender() {\r\n\t\treturn gender;\r\n\t}", "public String getGender() {\r\n\t\treturn gender;\r\n\t}", "public Gender getGender() {\n return gender;\n }", "public Gender getGender() {\n return gender;\n }", "public Gender_Tp getGender() { return gender; }", "public com.luisjrz96.streaming.birthsgenerator.models.Gender getGender() {\n return gender;\n }", "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setGender(com.luisjrz96.streaming.birthsgenerator.models.Gender value) {\n validate(fields()[4], value);\n this.gender = value;\n fieldSetFlags()[4] = true;\n return this;\n }", "public String getGender(){\n return gender;\n }", "public void setSex(String sex);", "public Gender getGender()\r\n\t{\r\n\t\treturn gender;\r\n\t}", "public com.luisjrz96.streaming.birthsgenerator.models.Gender getGender() {\n return gender;\n }", "public Byte getGender() {\n return gender;\n }", "public Byte getGender() {\n return gender;\n }", "public String getGender() {\n\t\treturn this.gender;\n\t}", "@Override\n\tpublic String convertToDatabaseColumn(Gender gender) {\n\t\tif (gender == null)\n\t\t\treturn null;\n\t\t\n\t\treturn gender.getSex();\n\t}", "@AutoEscape\n\tpublic String getGender();", "@AutoEscape\n\tpublic String getGender();", "@AutoEscape\n\tpublic String getGender();", "public boolean getGender() { return gender; }", "public Builder setGender(com.zzsong.netty.protobuff.two.ProtoData.Person.Gender value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n gender_ = value.getNumber();\n onChanged();\n return this;\n }", "public java.lang.String getGender() {\r\n return gender;\r\n }", "public void setSex(Boolean sex);", "static void saveUserGender(Context context, Gender gender) {\n\n context.getSharedPreferences(FILE_NAME, 0)\n .edit()\n .putInt(USER_GENDER_KEY, gender.getId())\n .apply();\n }", "public com.google.protobuf.ByteString\n getGenderBytes() {\n java.lang.Object ref = gender_;\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 gender_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getGenderBytes() {\n java.lang.Object ref = gender_;\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 gender_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setaGender(String aGender) {\n this.aGender = aGender == null ? null : aGender.trim();\n }", "public java.lang.String getGender() {\n return gender;\n }", "public String getaGender() {\n return aGender;\n }", "public void setSex(Boolean sex) {\r\n this.sex = sex;\r\n }", "public Builder setGender(app.onepass.apis.Gender value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n gender_ = value.getNumber();\n onChanged();\n return this;\n }", "com.google.ads.googleads.v14.common.GenderInfo getGender();", "@java.lang.Override public app.onepass.apis.Gender getGender() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.Gender result = app.onepass.apis.Gender.valueOf(gender_);\n return result == null ? app.onepass.apis.Gender.UNRECOGNIZED : result;\n }", "public com.google.protobuf.ByteString\n getGenderBytes() {\n java.lang.Object ref = gender_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n gender_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getGenderBytes() {\n java.lang.Object ref = gender_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n gender_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void decideGender()\n {\n String gender = new String(\"\");\n Random rand = new Random();\n int i = rand.nextInt(100);\n if(i <= 52)\n {\n gender = \"Female\";\n }//ends the if\n else\n {\n gender = \"Male\";\n }//ends the else\n \n setGender(gender);\n }", "public Gender getGender() {\n return localGender;\n }", "public Gender getGender() {\n return localGender;\n }" ]
[ "0.75700796", "0.740747", "0.7298162", "0.7298162", "0.7298162", "0.7233138", "0.7201996", "0.7150106", "0.71334785", "0.71223766", "0.7086943", "0.70401454", "0.699634", "0.6996106", "0.6996106", "0.6995501", "0.69587535", "0.69587535", "0.69538707", "0.6951163", "0.6932644", "0.6881505", "0.6814786", "0.6785826", "0.67828804", "0.67466736", "0.67466736", "0.66954976", "0.6655605", "0.6620833", "0.65159196", "0.64917827", "0.6452372", "0.6451254", "0.642966", "0.64181924", "0.6416391", "0.64063853", "0.64063853", "0.6398723", "0.6394979", "0.63808036", "0.637827", "0.6364887", "0.6364887", "0.6345322", "0.6345322", "0.6345322", "0.6345322", "0.6345322", "0.6345322", "0.6326462", "0.6289579", "0.6287677", "0.62802446", "0.6262956", "0.62585825", "0.62490964", "0.6248083", "0.6229526", "0.622926", "0.622926", "0.6227121", "0.6227121", "0.62128276", "0.62072605", "0.6205791", "0.6192846", "0.61660373", "0.61506325", "0.61457616", "0.61421174", "0.61421174", "0.61259615", "0.612502", "0.61127347", "0.61127347", "0.61127347", "0.60828483", "0.60705125", "0.6048886", "0.60312086", "0.60235596", "0.60118216", "0.60118216", "0.5994869", "0.5990904", "0.59892774", "0.5976262", "0.59457994", "0.5905568", "0.59053224", "0.59010506", "0.59010506", "0.5900974", "0.59007436", "0.59007436" ]
0.6525029
33
This method was generated by MyBatis Generator. This method returns the value of the database column user.class_name
public String getClassName() { return className; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StrColumn getClazz() {\n return delegate.getColumn(\"class\", DelegatingStrColumn::new);\n }", "public String getName_Class() {\n\t\treturn name;\n\t}", "private String getClassName(final Class<?> clazz) {\n return EntityType.getEntityType(clazz).map(e -> e.getEntityName(clazz)).orElse(clazz.getSimpleName());\n }", "java.lang.String getClassName();", "public String getClassname() {\n\t\treturn classname;\n\t}", "@Override\n\tpublic List<User> showClass() {\n\t\treturn userDao.showClass();\n\t}", "private String getClassname() {\r\n\t\tString classname = this.getClass().getName();\r\n\t\tint index = classname.lastIndexOf('.');\r\n\t\tif (index >= 0)\r\n\t\t\tclassname = classname.substring(index + 1);\r\n\t\treturn classname;\r\n\t}", "public String getClassname() {\n return classname;\n }", "public final String getClassAttribute() {\n return getAttributeValue(\"class\");\n }", "public String getClassName() {\n\t\tString tmp = methodBase();\n\t\treturn tmp.substring(0, 1).toUpperCase()+tmp.substring(1);\n\t}", "@Override\n\tpublic long getClassNameId() {\n\t\treturn _changesetEntry.getClassNameId();\n\t}", "public java.lang.String getJavaClass()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "default String getClassName() {\n return declaringType().getClassName();\n }", "public String getClassName(){\n\t\treturn classname;\n\t}", "public static String getDatabaseClassName() {\n\t\tif (xml == null) return null;\n\t\treturn databaseClassName;\n\t}", "public String getClassName() {\r\n return className;\r\n }", "public String className() {\n\t\treturn className;\n\t}", "@ModelNodeBinding(detypedName = \"driver-class-name\")\n\tpublic String driverClassName() {\n\t\treturn this.driverClassName;\n\t}", "public String getClassName()\n {\n return className;\n }", "protected String getClassName() {\r\n return newName.getText();\r\n }", "public String getClassName() {\n return className;\n }", "public String getClassName() { return className; }", "public String getClassName()\n {\n return this.className;\n }", "public String getClassName();", "String getGeneratedClassName();", "String getGeneratedClassName();", "String getGeneratedClassName();", "String getClassName() {\n return this.className;\n }", "String getClassName();", "String getClassName();", "String getClassName();", "public String getClassname()\r\n {\r\n return m_classname;\r\n }", "public String getClassName() {\n return this.className;\n }", "public String getClassName() {\n return this.className;\n }", "public String getClassName()\n {\n return _className;\n }", "String getJdbcDriverClassName();", "public String getClassName() {\n\t\treturn className;\n\t}", "public String getClassName() {\n\t\treturn className;\n\t}", "public String getName() {\n\t\treturn className;\n\t}", "public String getClassName(){\n\t\treturn targetClass.name;\n\t}", "public String getName() {\n return className;\n }", "public String getClassname(Class<?> aClass) {\n\t\tString result = aClass.getCanonicalName();\n\t\tif (result.endsWith(\"[]\")) {\n\t\t\tresult = result.substring(0, result.length() - 2);\n\t\t}\n\t\treturn result;\n\t}", "public Class getTableClass() {\n\t\treturn entityClass;\r\n\t}", "@Override\n\tpublic String getClassName() {\n\t\treturn _changesetEntry.getClassName();\n\t}", "private String getClassName( Class c ) {\n\treturn c.getName().substring(c.getName().lastIndexOf('.')+1);\n }", "public java.lang.String getClassName() {\n return this._className;\n }", "protected String getClassName() {\n return getDescriptedClass().getName();\n }", "@Override\n\tpublic String getJdbcTypeName() {\n\t\tString text = JdbcTypesManager.getJdbcTypes().getTextForCode( getJdbcTypeCode() );\n\t\treturn text != null ? text : \"???\" ;\n\t}", "public String getTableName(Class<?> aClass) {\n\t\tString result = aClass.getSimpleName();\n\t\tif (this.hasAnnotation(aClass, Table.class)) {\n\t\t\tTable anno = (Table) this.getAnnotation(aClass, Table.class);\n\t\t\tif (anno.name() != null && !anno.name().isEmpty())\n\t\t\t\tresult = anno.name();\n\t\t}\n\t\treturn result;\n\t}", "public String getClassName() {\n Object ref = className_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n className_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public static Class classForName(String nameClass)\n\t\t{\n\t\t\tClass classObject=null;\n\t\t\ttry {\n\t\t\tclassObject = Class.forName(\"com.spring.entity.\"+nameClass);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t\treturn classObject;\n\t\t}", "public String getClassName () { return _className; }", "@DISPID(-2147417111)\n @PropGet\n java.lang.String className();", "public String getSelectedClass () {\n Object sel = listAppClasses.getSelectedValue();\n if(sel == null) {\n return null;\n }\n if(sel instanceof String) {\n return (String)sel;\n }\n return null;\n }", "public long getClassNameId() {\n return classNameId;\n }", "public String getJdbcUser()\n {\n return getStringValue(DataSourceDobj.FLD_JDBC_USER);\n }", "public static String getClassName() {\n return CLASS_NAME;\n }", "public ApexQualifiedName getClassName() {\n if (isClass()) {\n return this;\n }\n\n return new ApexQualifiedName(this.nameSpace, this.classes, null);\n }", "@Override\n public String getClassName() {\n Object ref = className_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n className_ = s;\n return s;\n }\n }", "public final String toStringClassName() {\r\n \t\tString str = this.getClass().getName();\r\n \t\tint lastIx = str.lastIndexOf('.');\r\n \t\treturn str.substring(lastIx+1);\r\n \t}", "public String getTypeName() {\r\n return typeId.getSQLTypeName();\r\n }", "@Override\r\n\t\tpublic String getClassName()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public abstract String getClassName();", "public String getClassType() {\n return classType;\n }", "public static String getClassName(Class<?> objectClass) {\n RemoteClass annotation = objectClass.getAnnotation(RemoteClass.class);\n if (annotation != null) {\n return annotation.alias();\n }\n String className = objectClass.getName();\n if (className.startsWith(\"org.red5.compatibility.\")) {\n // Strip compatibility prefix from classname\n className = className.substring(23);\n if (\"flex.messaging.messages.AsyncMessageExt\".equals(className)) {\n className = \"DSA\";\n } else if (\"flex.messaging.messages.CommandMessageExt\".equals(className)) {\n className = \"DSC\";\n } else if (\"flex.messaging.messages.AcknowledgeMessageExt\".equals(className)) {\n className = \"DSK\";\n }\n }\n log.debug(\"Classname: {}\", className);\n return className;\n }", "@Override\n public com.google.protobuf.ByteString\n getClassNameBytes() {\n Object ref = className_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n className_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "String getResultClass();", "public String getName(Class<? extends RawEntity<?>> entity) {\r\n\t\tTable tableAnnotation = entity.getAnnotation(Table.class);\r\n\t\tif (tableAnnotation != null) {\r\n\t\t\treturn tableAnnotation.value();\r\n\t\t}\r\n\t\t\r\n\t\tif (classMappings.containsKey(entity)) {\r\n\t\t\treturn classMappings.get(entity);\r\n\t\t}\r\n\t\t\r\n\t\treturn postProcessName(processName(convertName(entity)));\r\n\t}", "public String getClassName() {\n return super.getClassName();\n }", "public Long getClassId() {\n return this.ClassId;\n }", "@Override\n public String simpleName() {\n if (this == class_) {\n return \"class\";\n }\n return name();\n }", "protected String getValueOfColumnLastUpdateUser() {\n return SessionContext.open().getUid();\n }", "@Override\n\tpublic String getClassNameKey() {\n\t\treturn CLASS_NAME_KEY;\n\t}", "public String getCurrentClassName () {\n String currentClass = getCurrentElement(ElementKind.CLASS);\n if (currentClass == null) return \"\";\n else return currentClass;\n }", "private String getDOName(String argDaoClass) {\r\n\t\tString className = null;\r\n\t\tString daoClassName = argDaoClass;\r\n\t\tint index = daoClassName.indexOf(DAOServiceConfigurationManager\r\n\t\t\t\t.getProperty(CODEGEN_DAO_DAO_SUFFIX));\r\n\t\tif (index > 0) {\r\n\t\t\tclassName = daoClassName.substring(0, index)\r\n\t\t\t\t\t+ DAOServiceConfigurationManager\r\n\t\t\t\t\t\t\t.getProperty(CODEGEN_DAO_DO_SUFFIX);\r\n\t\t} else {\r\n\t\t\tclassName = daoClassName\r\n\t\t\t\t\t+ DAOServiceConfigurationManager\r\n\t\t\t\t\t\t\t.getProperty(CODEGEN_DAO_DO_SUFFIX);\r\n\t\t}\r\n\r\n\t\treturn className;\r\n\t}", "public String getDBInstanceClass() {\n return this.dBInstanceClass;\n }", "public String getAttributeName(){\n if(field.getAnnotation(Column.class) != null){\n return field.getAnnotation(Column.class).column();\n }\n if( field.getAnnotation(PrimaryKey.class) !=null){\n return field.getAnnotation(PrimaryKey.class).name();\n }\n return null;\n }", "String getClassName() {\n return mClassName;\n }", "protected String getEntityClassName() {\n\t\treturn this.getEntityClass().getName();\n\t}", "public String getClazzName();", "public String getIdTypeName() {\n\t\treturn this.getIdType(this.currentClass()).getSimpleName();\n\t}", "@Transient\r\n\tpublic Class<?> getClassType() {\r\n\t\treturn TeamStudent.class;\r\n\t}", "public String getName() {\n // defaults to class name\n String className = getClass().getName();\n return className.substring(className.lastIndexOf(\".\")+1);\n }", "public com.walgreens.rxit.ch.cda.EntityClass xgetClassCode()\n {\n synchronized (monitor())\n {\n check_orphaned();\n com.walgreens.rxit.ch.cda.EntityClass target = null;\n target = (com.walgreens.rxit.ch.cda.EntityClass)get_store().find_attribute_user(CLASSCODE$30);\n if (target == null)\n {\n target = (com.walgreens.rxit.ch.cda.EntityClass)get_default_attribute_value(CLASSCODE$30);\n }\n return target;\n }\n }", "public Integer getClassId() {\r\n return classId;\r\n }", "public String getUserType() {\n\t\treturn _userType;\n\t}", "@ModelNodeBinding(detypedName = \"driver-datasource-class-name\")\n\tpublic String driverDatasourceClassName() {\n\t\treturn this.driverDatasourceClassName;\n\t}", "@Transient\r\n\tpublic Class<?> getClassType() {\r\n\t\treturn TrackerTableChangeLog.class;\r\n\t}", "@Override\n\tprotected Class<Users> clazz() {\n\t\treturn Users.class;\n\t}", "public String getIdTypeName(Class<?> aClass) {\n\t\treturn this.getIdType(aClass).getSimpleName();\n\t}", "private String getTableName(Class<?> clz) {\n\t\tif (clz.isAnnotationPresent(TableName.class)) {\n\t\t\treturn ((TableName) clz.getAnnotation(TableName.class)).value();\n\t\t}\n\t\treturn clz.getSimpleName();\n\t}", "public int getClassId() {\r\n return classId;\r\n }", "public java.lang.String getStudent_registrationClass() {\n\t\treturn _primarySchoolStudent.getStudent_registrationClass();\n\t}", "@Override\n\tpublic Class getEntityClass() {\n\t\treturn User.class;\n\t}", "public String getDBTableName()\n\t{\n\t\treturn this.getClass().getSimpleName();\n\t}" ]
[ "0.6634434", "0.63574433", "0.6340963", "0.6189397", "0.61443424", "0.61170787", "0.6091475", "0.60894066", "0.6083115", "0.6056769", "0.6039608", "0.6020874", "0.5981796", "0.59756386", "0.5973526", "0.5968244", "0.5957737", "0.59543145", "0.5939702", "0.5936264", "0.5915391", "0.59127456", "0.5906447", "0.5905246", "0.5903459", "0.5903459", "0.5903459", "0.58846074", "0.5867324", "0.5867324", "0.5867324", "0.5866743", "0.58643216", "0.58643216", "0.58573914", "0.5849554", "0.583213", "0.583213", "0.5823632", "0.58176094", "0.5803424", "0.5796206", "0.5795854", "0.5791999", "0.5790152", "0.57838464", "0.57638794", "0.57604855", "0.575348", "0.5752235", "0.5743201", "0.57391024", "0.5739062", "0.57306886", "0.57177377", "0.5717097", "0.57156515", "0.5705102", "0.56976026", "0.5694764", "0.5690372", "0.56736445", "0.5643525", "0.5641507", "0.56349456", "0.562582", "0.5608128", "0.55961764", "0.55942124", "0.5590415", "0.5589858", "0.5587218", "0.55805296", "0.55783147", "0.5573002", "0.5555236", "0.5538894", "0.5533593", "0.55323935", "0.5523892", "0.55227953", "0.5509706", "0.55065686", "0.55040014", "0.5498465", "0.54966563", "0.5496044", "0.549537", "0.54944974", "0.5494018", "0.54927576", "0.5491346", "0.5486104", "0.5484431", "0.548342" ]
0.5862884
39
This method was generated by MyBatis Generator. This method sets the value of the database column user.class_name
public void setClassName(String className) { this.className = className == null ? null : className.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setClass_(String newValue);", "public void setClazzName(String clazz);", "void setClassType(String classType);", "public void setClassName(String className) { this.className=className; }", "@Transactional\n\t@Override\n\tpublic void changeDocumentsClassName(String newClassName, String oldClassName,int userId) {\n\t\tdocumentsDao.changeDocumentsClassName(newClassName,oldClassName,userId);\n\t}", "public void setJavaClass(java.lang.String javaClass)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.SimpleValue target = null;\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(JAVACLASS$24);\r\n }\r\n target.setStringValue(javaClass);\r\n }\r\n }", "public void setClassname(String classname) {\n this.classname = classname;\n }", "public void setJdbcUser(String val)\n {\n setValue(DataSourceDobj.FLD_JDBC_USER, val);\n }", "@Override\r\n\t\tpublic void setClassName(String className)\r\n\t\t\t{\n\t\t\t\t\r\n\t\t\t}", "public void setClassname(String classname) {\n\t\tthis.classname = classname;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic T driverClassName(String value) {\n\t\tthis.driverClassName = value;\n\t\treturn (T) this;\n\t}", "public void setClassType(String classType) {\n this.classType = classType == null ? null : classType.trim();\n }", "public void setName(String s) {\n\t\tclassName = s;\n\t}", "public void setClass(String sClass) {\n\t\t\tsRuleClassName = sClass;\n\t\t}", "public void setDriverClass(String driverClass) throws PropertyVetoException {\n\t\tthis.dataSource.setDriverClass(driverClass);\n\t}", "public void setClassName(String name)\n {\n _className = name;\n }", "public void setDriverClass(String driverClass) {\n this.driverClass = driverClass;\n }", "public void setClassName(String className) {\n this.className = className;\n }", "@Override\n\tpublic List<User> showClass() {\n\t\treturn userDao.showClass();\n\t}", "static final void userFormClassNames(MemoryResultsSnapshot snapshot) {\n String[] classNames = snapshot == null ? null : snapshot.getClassNames();\n if (classNames != null) for (int i = 0; i < classNames.length; i++)\n classNames[i] = StringUtils.userFormClassName(classNames[i]);\n }", "public void editUserClasses() {\r\n \t\tdialogFactory.getDialog(new jmodelClassesPanel(model, model), \"Define customer classes\");\r\n \t}", "@Override\n\tpublic void setClassValue(final String value) {\n\n\t}", "public void xsetJavaClass(org.apache.xmlbeans.XmlNMTOKEN javaClass)\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n org.apache.xmlbeans.XmlNMTOKEN target = null;\r\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().find_attribute_user(JAVACLASS$24);\r\n if (target == null)\r\n {\r\n target = (org.apache.xmlbeans.XmlNMTOKEN)get_store().add_attribute_user(JAVACLASS$24);\r\n }\r\n target.set(javaClass);\r\n }\r\n }", "public void setClass(UmlClass c) {\n\t\tlogicalClass = c;\n\t}", "@JSProperty(\"className\")\n void setClassName(String value);", "public void setClazz(String clazz);", "public void setClassName(String className) {\n this.className = className;\n }", "public void setClassName(String className) {\n this.className = className;\n }", "public void setClassName(String className) {\n this.className = className;\n }", "public static Class classForName(String nameClass)\n\t\t{\n\t\t\tClass classObject=null;\n\t\t\ttry {\n\t\t\tclassObject = Class.forName(\"com.spring.entity.\"+nameClass);\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t}\n\t\t\treturn classObject;\n\t\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic T driverDatasourceClassName(String value) {\n\t\tthis.driverDatasourceClassName = value;\n\t\treturn (T) this;\n\t}", "@Override\n\tprotected Class<Users> clazz() {\n\t\treturn Users.class;\n\t}", "public void setClassName(String name) {\n this.className = name;\n }", "public void setClassName(String className) {\r\n this.className = className == null ? null : className.trim();\r\n }", "public Builder setClassName(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n className_ = value;\n onChanged();\n return this;\n }", "public void setClassName(String name) {\n\t\tlines.append(\".class public l2j/generated/\");\n\t\tlines.append(name);\n\t\tclassName = \"l2j/generated/\" + name;\n\t\tlines.append(\"\\n\");\n\n\t\t// stupid check\n\t\tif (dest.indexOf(name) == -1)\n\t\t\tthrow new IllegalStateException(\"Bad class name\");\n\t}", "public void setClassId(int value) {\r\n this.classId = value;\r\n }", "@OptionMetadata(displayName = \"Class attribute/index\", description = \"The \"\n + \"name or 1-based index of the class attribute\", displayOrder = 6)\n public void setClassAttribute(String c) {\n m_classIndex = c;\n }", "public void setClassType(String classType) {\n\t\t\t\n\t\t\tfor(E_ClassType c : E_ClassType.values())\n\t\t\t{\n\t\t\t\tif(c.toString().equals(classType))\n\t\t\t\t{\n\t\t\t\t\tthis.classType = E_ClassType.valueOf(classType);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t\tthis.classType = E_ClassType.Tourists;\n\t\t\t\n\t\t}", "public void setDriverClassName(String driverClassName) {\n this.driverClassName = driverClassName;\n }", "public static void addNewClass(Class c, int userId)\n\t{\n\t\tString classCode = c.getClassCode();\n\t\tString className = c.getClassName();\n\t\tString sql = \"INSERT INTO Class (classCode, className, instructorID) \"\n\t\t\t\t+ \"VALUES (?, ?, ?)\";\n\t\ttry(Connection conn = DriverManager.getConnection(db, user, pwd);\n\t\t\t\tPreparedStatement ps = conn.prepareStatement(sql);)\n\t\t{\n\t\t\tps.setString(1, classCode);\n\t\t\tps.setString(2, className);\n\t\t\tps.setInt(3, userId);\n\t\t\tps.executeUpdate();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected void setClassType(String name, Class<?> clazz) {\n\t\tmapClass.put(name, clazz);\n\t}", "@Override\n\tpublic long getClassNameId() {\n\t\treturn _changesetEntry.getClassNameId();\n\t}", "public void setChosenClass(String chosenClass) {\n this.chosenClass = chosenClass;\n }", "@Override\n\tpublic Class getEntityClass() {\n\t\treturn User.class;\n\t}", "public void addClass(Class c) { // adding a single class\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\n\t\tContentValues values = new ContentValues();\n\t\tvalues.put(KEY_ID, c.getID());\n\t\tvalues.put(KEY_TAKENIN, c.getTakenIn());\n\n\t\t/*\n\t\t * values.put(KEY_ID, 1234567890); values.put(KEY_MAJORN, \"123\");\n\t\t * values.put(KEY_CLASSN, \"123\"); values.put(KEY_TITLE, \"123\");\n\t\t * values.put(KEY_UNITS, 123); values.put(KEY_DESCRIPTION, \"123\");\n\t\t * values.put(KEY_FALL, 1); values.put(KEY_SPRING, 0);\n\t\t */\n\t\t// Inserting Row\n\t\tdb.insert(TABLE_USERCLASSES, null, values);\n\t\tdb.close(); // Closing database connection\n\t}", "protected void setClassName(String name) {\r\n newName.setText(name);\r\n newName.setSelectionStart(0);\r\n newName.setSelectionStart(name.length());\r\n }", "public void setRole() throws SQLException\r\n\t{\r\n\t\tString SQL_USER = \"UPDATE user SET role = 'Student' WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setInt(1, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setRole()\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public final void mT__275() throws RecognitionException {\r\n try {\r\n int _type = T__275;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:276:8: ( 'set-class=' )\r\n // InternalSpringConfigDsl.g:276:10: 'set-class='\r\n {\r\n match(\"set-class=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "@ModelNodeBinding(detypedName = \"driver-class-name\")\n\tpublic String driverClassName() {\n\t\treturn this.driverClassName;\n\t}", "protected String getClassName() {\r\n return newName.getText();\r\n }", "public static synchronized String getSetterForPreparedStatement(Class<?> cls) {\r\n\r\n String typ = cls.getCanonicalName();\r\n\r\n StringBuilder sb = new StringBuilder();\r\n\r\n sb.append(\"set\");\r\n\r\n if (null != typ) {\r\n switch (typ) {\r\n case \"java.lang.Integer\":\r\n sb.append(\"Int\");\r\n break;\r\n case \"java.util.Date\":\r\n case \"java.sql.Date\":\r\n //toto nieje potreba, ale budiz.\r\n sb.append(\"String\");\r\n break;\r\n case \"byte[]\":\r\n case \"java.lang.Byte[]\":\r\n case \"java.io.InputStream\":\r\n sb.append(\"Bytes\");\r\n\r\n break;\r\n case \"sk.stefan.enums.VoteResult\":\r\n case \"sk.stefan.enums.VoteAction\":\r\n case \"sk.stefan.enums.Stability\":\r\n case \"sk.stefan.enums.UserType\":\r\n case \"sk.stefan.enums.PublicUsefulness\":\r\n case \"sk.stefan.enums.FilterType\":\r\n case \"sk.stefan.enums.NonEditableFields\":\r\n case \"sk.stefan.enums.PublicRoleType\":\r\n\r\n sb.append(\"Int\");\r\n break;\r\n\r\n default:\r\n String fields[] = typ.split(\"\\\\.\");\r\n sb.append(fields[fields.length - 1]);\r\n break;\r\n }\r\n }\r\n\r\n String s = sb.toString();\r\n //System.out.println(\"SKACU: \" + s);\r\n // ResultSet#getTimestamp() you need java.sql.Timestamp\r\n return s;\r\n }", "@Override\n public String asTableDbName() {\n return \"user\";\n }", "public void setCreateUser(User createUser)\r\n/* */ {\r\n/* 151 */ this.createUser = createUser;\r\n/* */ }", "protected void setJavaClass(Class type) {\n this._class = type;\n }", "@Override\n public String classToTableName(String className) {\n currentTablePrefix = tableNamePrefixFor(className);\n\n if (className.contains(\".\")) {\n return currentTablePrefix + className.substring(className.lastIndexOf('.') + 1);\n }\n else {\n return currentTablePrefix + className;\n }\n }", "public void setClassName(java.lang.String className) {\n this._className = className;\n }", "public void setUser_name(String user_name);", "public void insertClassNameIntoMaster(String tableName, String className) throws RelationException;", "public void setValueClass(Class<? extends Type> valueClass) {\n this.valueClass = valueClass;\n }", "@Override\n\t/**\n\t * sets the class ID for the created class, the class ID is the\n\t * primary method for identifying a class's name and all of its methods,\n\t * variables, and comments \n\t * \n\t * @param s \n\t */\n\tpublic void setClassID(int s) {\n\t\tID = s;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic T driverXaDatasourceClassName(String value) {\n\t\tthis.driverXaDatasourceClassName = value;\n\t\treturn (T) this;\n\t}", "private void loadClassName(Long classId) {\n\t\tclassName = null;\n\t\tif (classId != null && classId > -1) {\n\t\t\tdaoSession = LanguageApplication.getInstance().getDaoSession();\n\t\t\tClassNameDao classNameDao = daoSession.getClassNameDao();\n\t\t\tclassName = classNameDao.load(classId);\n\t\t}\n\t}", "public void setUserType(String userType) {\n\t\t_userType = userType;\n\t}", "public void setStudentClass() {\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// setter method initialized\r\n System.out.println(\"Class : \" +studentClass); }", "public void setClassId(Integer classId) {\r\n this.classId = classId;\r\n }", "public void setObjectClass(final Class<? extends DBObject> aClass) {\n setObjectFactory(objectFactory.update(aClass));\n }", "public void setUserType(UserType userType) {\n\t\tthis.userType = userType;\n\t\tif (userType != CustomerControl.dummyUserType)\n\t\t\tthis.userTypeID=userType.getUserTypeID();\n\t}", "@objid (\"59808615-06b0-48b7-a027-38d78fc10bd5\")\n void setReferencedClassName(String value);", "public void setUserType(String userType) {\n this.userType = userType == null ? null : userType.trim();\n }", "public void setUserType(String userType) {\n this.userType = userType == null ? null : userType.trim();\n }", "public void setUserType(String userType) {\n this.userType = userType == null ? null : userType.trim();\n }", "public void setUserType(Byte userType) {\r\n this.userType = userType;\r\n }", "@Override\n\tpublic String getTableName() {\n\t\treturn \"user\";\n\t}", "public void setUserType(String userType) {\n this.userType = userType;\n }", "public void setClassId(Long ClassId) {\n this.ClassId = ClassId;\n }", "public StrColumn getClazz() {\n return delegate.getColumn(\"class\", DelegatingStrColumn::new);\n }", "public void setMappedClass(Class mappedClass) {\n\t\tthis.mappedClass = mappedClass;\n\t\ttry {\n\t\t\tthis.defaultConstruct = mappedClass.getConstructor((Class[]) null);\n\t\t}\n\t\tcatch (NoSuchMethodException ex) {\n\t\t\tthrow new DataAccessResourceFailureException(new StringBuffer().append(\"Failed to access default constructor of \").append(mappedClass.getName()).toString(), ex);\n\t\t}\n\t\tthis.mappedFields = new HashMap();\n\t\tField[] f = mappedClass.getDeclaredFields();\n\t\tfor (int i = 0; i < f.length; i++) {\n\t\t\tPersistentField pf = new PersistentField();\n\t\t\tpf.setFieldName(f[i].getName());\n\t\t\tpf.setColumnName(underscoreName(f[i].getName()));\n\t\t\tpf.setJavaType(f[i].getType());\n\t\t\tthis.mappedFields.put(pf.getColumnName(), pf);\n\t\t}\n\t}", "@Override\n\tpublic String getClassName() {\n\t\treturn _changesetEntry.getClassName();\n\t}", "@DISPID(-2147417111)\n @PropPut\n void className(\n java.lang.String rhs);", "public void setupEntityClass(Class clazz) ;", "public void setBaseClass(String baseClass) {\n\t\tthis.baseQualifiedClassName = baseClass;\n\n\t\tint lastDotIdx = baseQualifiedClassName.lastIndexOf('.');\n\t\tbasePackage = baseQualifiedClassName.substring(0, lastDotIdx);\n\t\tbaseSimpleClassName = baseQualifiedClassName.substring(lastDotIdx + 1);\n\t}", "public void setClass (\r\n String strClass) throws java.io.IOException, com.linar.jintegra.AutomationException;", "public void setUserType(Byte userType) {\n this.userType = userType;\n }", "public void setClassId(Integer classId) {\n this.classId = classId;\n }", "public void setDataClass(Class<?> clazz) {\n\t\t\n\t}", "public String getClassName() { return className; }", "public void setClassid(Integer classid) {\r\n this.classid = classid;\r\n }", "public HDInsightSparkActivity setClassName(String className) {\n this.className = className;\n return this;\n }", "public void setEntityClass(final Class<T> entityClass)\n\t{\n\t\tthis.entityClass = entityClass;\n\t}", "public void setLastname(String lastname) throws SQLException\r\n\t{\r\n\t\tif (lastname == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET lastname =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, lastname);\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setLastname(String \"+ lastname + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setClass(String godClass)\r\n {\r\n this.mGodClass = godClass;\r\n }", "public String getClassName(){\n\t\treturn classname;\n\t}", "public void setFClass(String fClass) {\n\t\t\tthis.fClass = fClass;\n\t\t}", "public void setActiveClass ( String activeClass ) {\r\n\t\tgetStateHelper().put(PropertyKeys.activeClass, activeClass);\r\n\t\thandleAttribute(\"activeClass\", activeClass);\r\n\t}", "public String getName_Class() {\n\t\treturn name;\n\t}", "public void setObjectClass(String objectClass) {\n this.objectClass = objectClass;\n }", "public void setFirstname(String firstname) throws SQLException\r\n\t{\r\n\t\tif (firstname == null)\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\tString SQL_USER = \"UPDATE user SET firstname =? WHERE id=?;\";\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\t//Prepare the statement\r\n\t\t\tPreparedStatement statement = this.getConn().prepareStatement(SQL_USER);\r\n\r\n\t\t\t//Bind the variables\r\n\t\t\tstatement.setString(1, firstname);\r\n\t\t\tstatement.setInt(2, userId);\r\n\r\n\t\t\t//Execute the update\r\n\t\t\tstatement.executeUpdate();\r\n\r\n\t\t} catch (SQLException e)\r\n\t\t{\r\n\t\t\tGWT.log(\"Error in SQL: Student->setFirstname(String \"+ firstname + \")\", e);\r\n\t\t\tthis.getConn().rollback();\r\n\t\t\tthrow e;\t\r\n\t\t}\r\n\t\t\r\n\t\t//commit change\r\n\t\tDatabase.get().commit();\r\n\t}", "public void setClassid(String classid) {\n this.classid = classid == null ? null : classid.trim();\n }", "public void setProductClass(String value) {\n setAttributeInternal(PRODUCTCLASS, value);\n }" ]
[ "0.6117224", "0.6030434", "0.6004258", "0.59589165", "0.5850029", "0.58374935", "0.5812897", "0.5678583", "0.56509674", "0.56423527", "0.5608806", "0.5562918", "0.55488056", "0.55309635", "0.5513544", "0.5487395", "0.54724073", "0.5470563", "0.54650354", "0.5419666", "0.54148227", "0.5379689", "0.5377794", "0.53637886", "0.53606933", "0.5349819", "0.5348004", "0.5348004", "0.5348004", "0.5346641", "0.5337367", "0.5335128", "0.53282017", "0.53245944", "0.53183603", "0.5317757", "0.5312732", "0.5303268", "0.5278395", "0.52611405", "0.52597356", "0.52524734", "0.5246458", "0.52449495", "0.52435535", "0.52360904", "0.52262783", "0.52086264", "0.5190294", "0.5175852", "0.5142151", "0.5139657", "0.5135877", "0.51294094", "0.5123822", "0.5115645", "0.5112866", "0.51036274", "0.5103411", "0.5090575", "0.50811005", "0.50809336", "0.50788295", "0.50738937", "0.50738704", "0.5073373", "0.506388", "0.5062959", "0.50620717", "0.50602585", "0.50602585", "0.50602585", "0.504956", "0.5045554", "0.5043193", "0.5036257", "0.5033933", "0.50192416", "0.5014362", "0.5006989", "0.50062853", "0.500627", "0.5006097", "0.5002882", "0.49956912", "0.4995362", "0.49761257", "0.497132", "0.4965473", "0.49652997", "0.49640852", "0.49470127", "0.49421263", "0.4940681", "0.49331596", "0.4931014", "0.492781", "0.49255487", "0.4918135", "0.4915354" ]
0.5260475
40
This method was generated by MyBatis Generator. This method returns the value of the database column user.icon
public String getIcon() { return icon; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getUserIcon() {\n return userIcon;\n }", "public FSIcon getIcon() {\n return icon;\n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public char getIcon() {\n return this.icon;\n }", "public EntityIcon getIcon() {\r\n return icon;\r\n }", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "java.lang.String getIcon();", "java.lang.String getIcon();", "public BaseElement getUserProfileIcon() {\n\t\treturn userProfileIcon;\n\t}", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public byte[] getIcon()\r\n {\r\n return icon;\r\n }", "@Nullable\n // Safe as we want to provide all getters being public for POJOs\n @SuppressWarnings({\"unused\", \"WeakerAccess\"})\n public final String getIconId() {\n return iconId;\n }", "protected Icon getIcon() {\n return getConnection().getIcon(getIconUri());\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\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 icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n icon_ = s;\n }\n return s;\n }\n }", "public int getIconId(){\n return mIconId;\n }", "public String getIconString() {\n return theIconStr;\n }", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public String getIconCls() {\n\t\tif (null != this.iconCls) {\n\t\t\treturn this.iconCls;\n\t\t}\n\t\tValueExpression _ve = getValueExpression(\"iconCls\");\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 char getCurrentIcon(){\n\t\treturn icon;\r\n\t}", "public Icon getIcon();", "public AwesomeIcon icon() {\n\t\treturn icon;\n\t}", "public String getIcon(){\n\t\t\t\t\n\t\treturn inCity.getWeather().get(0).getIcon();\n\t}", "String getIcon();", "String getIcon();", "public ResourceLocation getIcon() {\n return icon;\n }", "com.google.protobuf.ByteString\n getIconBytes();", "com.google.protobuf.ByteString\n getIconBytes();", "Icon getIcon();", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public Icon getIcon() {\n \t\treturn null;\n \t}", "@Source(\"images/Default_user_icon.png\")\n @ImageOptions(flipRtl = true)\n ImageResource defaultUserAvatar();", "@Override\n\tpublic Image getIconImage() {\n\t\tImage retValue = Toolkit.getDefaultToolkit().getImage(\"C:/BuildShop/IMG/Logo64x64.png\");\n\t\treturn retValue;\n\t}", "public Icon getIcon() {\n\t\treturn null;\n\t}", "public String getIconFileName() {\n\tif (this.isSuccess()) {\n\t return this.icon;\n\t} else {\n\t return null;\n\t}\n }", "public Icon getIcon() {\n if (model != null)\n return model.getIcon(21, 16, \"model\"); //$NON-NLS-1$\n return null;\n }", "public char getPermanentIcon() {\n\t\tif(!playerMapped)\r\n\t\t\treturn ' ';\r\n\t\treturn permanentIcon;\t//TODO: this the part that will need to change if the permanent icon isn't the right one to display.)\r\n\t}", "@Override\n\tpublic long getIconId() {\n\t\treturn _scienceApp.getIconId();\n\t}", "public Bitmap getIcon() {\n return mBundle.getParcelable(KEY_ICON);\n }", "@Nullable\n @Override\n public Icon getIcon(boolean unused) {\n RowIcon rowIcon = new RowIcon(2);\n\n rowIcon.setIcon(ElixirIcons.MODULE, 0);\n rowIcon.setIcon(PlatformIcons.ANONYMOUS_CLASS_ICON, 1);\n\n return rowIcon;\n }", "public String getIconUrl() {\r\n return iconUrl;\r\n }", "public String getXpeIcon() {\n return (String) getAttributeInternal(XPEICON);\n }", "public String getIconUrl() {\n return iconUrl;\n }", "@Nullable\n public final Drawable getIcon() {\n return mIcon;\n }", "@NotNull\n SVGResource getIcon();", "Icon getMenuIcon();", "public String getTextAccountNameIcon()\n\t{\n\t\treturn elementUtils.getElementText(wbAccountNameIcon); //return wbAccountNameIcon.getText()\n\t}", "public String getGifticon() {\r\n return gifticon;\r\n }", "public URI getIconUri() {\n return this.iconUri;\n }", "@Nullable\n final public String getIconImageUrl() {\n return mIconImageUrl;\n }", "public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }", "public int getIconImageNumber(){return iconImageNumber;}", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }", "public void setUserIcon(String userIcon) {\n this.userIcon = userIcon == null ? null : userIcon.trim();\n }", "public Icon getIcon()\n {\n return this.blockIcon;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public String getUserImg() {\r\n return userImg;\r\n }", "public ImageDescriptor getIcon();", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"imagenes/Icon.jpg\"));\n return retValue;\n }", "public Icon getIcon()\n {\n return getComponent().getIcon();\n }", "@Nullable\n public Drawable getIcon() {\n return mPrimaryIcon;\n }", "public ImageIcon getFoto(){\r\n return (ImageIcon)beneficiario[5];\r\n }", "public int getIconIndex() {\n return iconIndex;\n }", "public ImageIcon getAvatar() {\n\t\treturn avatar;\n\t}", "String getIconFile();", "@Override\n\tpublic List<Icon> getAllIcon() {\n\t\treturn this.menuDao.getAllIcon();\n\t}", "@SideOnly(Side.CLIENT)\n\tpublic IIcon getIconFromDamage(int meta)\n\t{\n\t\treturn icon;\n\t}", "public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }", "@Override\n\tImageIcon getImage() {\n\t\treturn img;\n\t}", "public String getWeatherIcon() {\n\t\treturn weatherIcon;\n\t}", "public static String getBiblioImagenUsuario() {\n\t\treturn \"imagenUsuario\";\n\t}", "public AppIcon getAppIcon () ;", "public ImageIcon getIcon() {\n\t\tswitch (state[2]) {\n\t\tcase \" Sunny\":\n\t\t\treturn new ImageIcon(\"weatherIcons/sunny.png\");\n\t\tcase \" Cloudy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/cloudy.png\");\n\t\tcase \" Light Clouds\":\n\t\t\treturn new ImageIcon(\"weatherIcons/light clouds.png\");\n\t\tcase \" Windy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/windy.png\");\n\t\tcase \" Heavy Rain\":\n\t\t\treturn new ImageIcon(\"weatherIcons/heavy rain.png\");\n\t\tcase \" Light Rain Showers\":\n\t\t\treturn new ImageIcon(\"weatherIcons/rain showers_light rain.png\");\n\t\tcase \" Snow\":\n\t\t\treturn new ImageIcon(\"weatherIcons/snow.png\");\n\t\tcase \" Lightning\":\n\t\t\treturn new ImageIcon(\"weatherIcons/lightning.png\");\n\t\tdefault:\n\t\t\treturn new ImageIcon(\"weatherIcons/default.png\");\n\t\t}\n\t}", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Sisapre001.png\"));\n return retValue;\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Images/mainIcon.png\"));\n\n\n return retValue;\n }", "public String getCurrentUserPicture() {\n\t\treturn currentUser.getPicture();\n\t}", "public String getImg(String icon)\n {\n // New <img>\n XML img = new XML(\"img\",false);\n \n // Check specified icon property\n if (icon == null) \n { \n icon = \"\"; \n }\n \n // Set src attribute\n img.addAttribute(\"src\",icon);\n \n // return <img>\n return img.toString();\n }", "public abstract String typeIcon();", "public Icon getImageIcon() {\r\n\t\treturn lblImageViewer.getIcon();\r\n\t}", "public String getUserProfileImg() {\n return userProfileImg;\n }", "public ImageIcon getIcon() {\n\t\treturn null;\n\t}", "public ImageIcon getIcon() {\n\t\treturn null;\n\t}", "public Icon icon() {\n\t\treturn new ImageIcon(image());\n\t}", "public Image getIcon(int type) {\n if ((type == BeanInfo.ICON_COLOR_16x16) || (type == BeanInfo.ICON_MONO_16x16))\n return defaultIcon;\n else\n return defaultIcon32;\n }", "public HashMap<String,Image> getIcons(){\n\t\treturn iconMap;\n\t}", "public String getMessageIcon() {\n return messageIcon;\n }", "@Override\n public Image getFlagImage() {\n Image image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_FLAG_PREFIX + id);\n if ( image == null ) {\n image = AwsToolkitCore.getDefault().getImageRegistry().get(AwsToolkitCore.IMAGE_AWS_ICON);\n }\n return image;\n }", "@Override\n\tpublic String getCategoryIcon() {\n\t\treturn categoryIcon;\n\t}", "public static IIcon method_2666() {\r\n return class_1192.field_6027.field_2131;\r\n }", "public void setIcon(final String icon) {\n\t\tthis.icon = icon;\n\t}", "public String getNomIcone() {\n\t\treturn nomIcone;\n\t}" ]
[ "0.7274282", "0.67109525", "0.66868055", "0.6568229", "0.64716923", "0.6466664", "0.64595497", "0.64595497", "0.64319366", "0.64120406", "0.64120406", "0.6395467", "0.6394533", "0.6377236", "0.63737696", "0.63737696", "0.6360845", "0.6360845", "0.63298225", "0.63298225", "0.6314567", "0.63054234", "0.6283741", "0.6251441", "0.62387544", "0.62381285", "0.6234622", "0.622861", "0.61962074", "0.61962074", "0.61766636", "0.6139602", "0.6139602", "0.60240716", "0.6022749", "0.59894735", "0.5981358", "0.59762406", "0.59199667", "0.58902234", "0.5882499", "0.5856019", "0.5847832", "0.5847677", "0.5837213", "0.5835407", "0.583365", "0.5805497", "0.58038753", "0.5800175", "0.5799884", "0.57932305", "0.57671094", "0.5764744", "0.5740791", "0.57369053", "0.57295156", "0.5729453", "0.5722421", "0.57196736", "0.571231", "0.571231", "0.5704596", "0.5673289", "0.56617403", "0.56496143", "0.5642427", "0.56290597", "0.56228584", "0.5621663", "0.56062937", "0.5599437", "0.5597108", "0.5594924", "0.5591726", "0.5580345", "0.5570973", "0.55655473", "0.5565407", "0.5545377", "0.55438316", "0.5540559", "0.55358714", "0.5534658", "0.55301166", "0.5518928", "0.55134106", "0.55134106", "0.551319", "0.5513078", "0.55009955", "0.54964477", "0.54909647", "0.5469964", "0.54646355", "0.54646254", "0.5460804" ]
0.6747309
4
This method was generated by MyBatis Generator. This method sets the value of the database column user.icon
public void setIcon(String icon) { this.icon = icon == null ? null : icon.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setUserIcon(String userIcon) {\n this.userIcon = userIcon == null ? null : userIcon.trim();\n }", "public void setIcon(FSIcon icon) {\n this.icon = icon;\n }", "protected void setIcon(UiAction uiAction, ResultSet rs, int rowNumber) throws SQLException{\n\t\t\n\t\tString icon = rs.getString(UiActionTable.COLUMN_ICON);\n\t\t\n\t\tif(icon == null){\n\t\t\t//do nothing when nothing found in database\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tuiAction.setIcon(icon);\n\t}", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void setIcon(Image i) {icon = i;}", "public void changeIcon(Icon icon) {\r\n this.iconId = icon.getId();\r\n }", "public void setIcon(URL icon)\r\n {\r\n\tthis.icon = icon;\r\n }", "public void setIcon(final String icon) {\n\t\tthis.icon = icon;\n\t}", "public void setIcon(Integer icon) {\n switch (icon) {\n case 0:\n this.icon = Icon.Schutzengel;\n break;\n case 1:\n this.icon = Icon.Person;\n break;\n case 2:\n this.icon = Icon.Institution;\n break;\n case 3:\n this.icon = Icon.Krankenhaus;\n break;\n case 4:\n this.icon = Icon.Polizei;\n break;\n default:\n this.icon = Icon.Feuerwehr;\n break;\n }\n }", "public void setIcon(Bitmap icon) {\n\t\tmIcon = icon;\n\t}", "public String getUserIcon() {\n return userIcon;\n }", "private void setIcon(String icon, boolean isSmall) {\n org.netbeans.modules.j2ee.dd.api.common.Icon oldIcon = getIcon();\n if (oldIcon==null) {\n if (icon!=null) {\n try {\n org.netbeans.modules.j2ee.dd.api.common.Icon newIcon = (org.netbeans.modules.j2ee.dd.api.common.Icon) createBean(\"Icon\");\n if (isSmall) newIcon.setSmallIcon(icon);\n else newIcon.setLargeIcon(icon);\n setIcon(newIcon);\n } catch(ClassNotFoundException ex){}\n }\n } else {\n if (icon==null) {\n if (isSmall) {\n oldIcon.setSmallIcon(null);\n if (oldIcon.getLargeIcon()==null) setIcon(null);\n } else {\n oldIcon.setLargeIcon(null);\n if (oldIcon.getSmallIcon()==null) setIcon(null);\n }\n } else {\n if (isSmall) oldIcon.setSmallIcon(icon);\n else oldIcon.setLargeIcon(icon);\n }\n } \n }", "private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Source(\"images/Default_user_icon.png\")\n @ImageOptions(flipRtl = true)\n ImageResource defaultUserAvatar();", "@Override\n\tpublic void setIcon(Drawable icon) {\n\t\t\n\t}", "public char setIcon(char icon) {\n char previous = this.icon;\n this.icon = icon;\n return previous;\n }", "public void setIcon(char c) {\r\n\ticon = c;\r\n\t}", "public void setIconId(int iconId) {\r\n this.iconId = iconId;\r\n }", "private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }", "@Override\n\tpublic void setIcon(int resId) {\n\t\t\n\t}", "public final void setIcon(Icon icon) {\r\n if (icon instanceof ImageIcon) {\r\n super.setIcon(new DropDownIcon((ImageIcon) icon));\r\n }\r\n else {\r\n super.setIcon(icon);\r\n }\r\n }", "public void setOpenIcon(String openIcon)\n {\n this.openIcon = openIcon;\n }", "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }", "public void setIcon(Bitmap icon) {\n mBundle.putParcelable(KEY_ICON, icon);\n }", "@Override\n public void setIcon(boolean iconified) throws PropertyVetoException{\n if ((getParent() == null) && (desktopIcon.getParent() == null)){\n if (speciallyIconified == iconified)\n return;\n\n Boolean oldValue = speciallyIconified ? Boolean.TRUE : Boolean.FALSE; \n Boolean newValue = iconified ? Boolean.TRUE : Boolean.FALSE;\n fireVetoableChange(IS_ICON_PROPERTY, oldValue, newValue);\n\n speciallyIconified = iconified;\n }\n else\n super.setIcon(iconified);\n }", "@Override\n\tpublic void setCategoryIcon(String icon) {\n\t\tthis.categoryIcon=icon;\n\t}", "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }", "public void setRibbonIcon(Icon ribbonIcon)\n\t{\n\t\tthis.ribbonIcon = ribbonIcon;\n\t}", "public void setUpFavouriteIcon() {\n if (isUserOwner()) {\n view.hideFavouriteIcon();\n } else if (currentAdvertIsFavourite()) {\n view.setIsAFavouriteIcon();\n } else {\n view.setIsNotAFavouriteIcon();\n }\n }", "public void setXpeIcon(String value) {\n setAttributeInternal(XPEICON, value);\n }", "private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }", "public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }", "public void setIconIndex(int value) {\n this.iconIndex = value;\n }", "public void setIcone(String icone) {\n this.icone = icone;\n }", "public FSIcon getIcon() {\n return icon;\n }", "public void setIncorrectAvatar(){\n\t\tavatar.setIcon(new ImageIcon(\"img/Incorrect.png\"));\n\t}", "public void setIcon(Icon icon) {\n\t\t_coolBar.setIcon(icon);\n\t}", "public void setStateIcon(Integer stateIcon) {\n this.stateIcon = stateIcon;\n }", "private void setIcon() {\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"logo.ico\")));\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n }", "public final void setIcon(@Nullable Drawable icon) {\n mIcon = icon;\n }", "public void clickUserIcon(){\n getUiInstance().getElement(locators.linkUser, Constant.DEFAULT_TIMEOUT).click();\n reporter.info(\"Clicking person icon\");\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"img/icon.png\")));\n }", "private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }", "public BaseElement getUserProfileIcon() {\n\t\treturn userProfileIcon;\n\t}", "private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"../Imagens/icon.png\")));\n }", "@SuppressLint(\"NewApi\")\n\tvoid changeIcon()\n\t{\n\n\t\tif (CropImage.isExplicitCameraPermissionRequired(this)) {\n\t\t\trequestPermissions(new String[]{Manifest.permission.CAMERA,Manifest.permission.WRITE_EXTERNAL_STORAGE}, CropImage.CAMERA_CAPTURE_PERMISSIONS_REQUEST_CODE);\n\t\t} else {\n\t\t\tCropImage.startPickImageActivity(this);\n\t\t}\n\n\n\t}", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Icons/logo musica.png\")));\n }", "public void setIconUrl(String iconUrl) {\n this.iconUrl = iconUrl == null ? null : iconUrl.trim();\n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public void setIconUrl(String iconUrl) {\r\n this.iconUrl = iconUrl == null ? null : iconUrl.trim();\r\n }", "public void setImage(ImageIcon image){\n\t\tthis.image = image;\n\t}", "@Override\n\tpublic void setIconURL(ToolIconURL iconURL) {\n\t\tthis.iconURL = iconURL;\n\t}", "private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png.png\")));\n }", "void setIcon(){\n URL pathIcon = getClass().getResource(\"/sigepsa/icono.png\");\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.createImage(pathIcon);\n setIconImage(img);\n }", "private void SetIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"appIcon.png\")));\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public void setIcon(@DrawableRes final int icon) {\n post(() -> {\n Drawable drawable = ResourcesCompat.getDrawable(getResources(),icon,null);\n int padding = (getWidth() / 2) - (drawable.getIntrinsicWidth() / 2);\n setCompoundDrawablesWithIntrinsicBounds(icon, 0, 0, 0);\n setPadding(padding, 0, 0, 0);\n });\n }", "@Override\n public void setIconURI(String arg0)\n {\n \n }", "@Override\n public void setIconOnly(boolean iconOnly)\n {\n }", "public void lightIcons() {\n teamPhoto.setImage((new Image(\"/Resources/Images/emptyTeamLogo.png\")));\n copyIcon.setImage((new Image(\"/Resources/Images/black/copy_black.png\")));\n helpPaneIcon.setImage((new Image(\"/Resources/Images/black/help_black.png\")));\n if (user.getUser().getProfilePhoto() == null) {\n accountPhoto.setImage((new Image(\"/Resources/Images/black/big_profile_black.png\")));\n }\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"podologia32x32.png\")));\n }", "public void setIconHandler(String iconHandler)\n {\n this.iconHandler = iconHandler;\n }", "public void setClosedIcon(String closedIcon)\n {\n this.closedIcon = closedIcon;\n }", "public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}", "public void setSmallIcon(ImageDescriptor icon) {\n if (icon != iconSmall) {\n ImageDescriptor oldIcon = iconSmall;\n iconSmall = icon;\n listeners.firePropertyChange(PROPERTY_SMALL_ICON, oldIcon, icon);\n }\n }", "public void setImage(ImageIcon image) {\n this.image = image;\n }", "private void setupTurnIconCharacteristic() {\n turnIconCharacteristic =\n new BluetoothGattCharacteristic(CHARACT_TURNICON_UUID,\n BluetoothGattCharacteristic.PROPERTY_READ | BluetoothGattCharacteristic.PROPERTY_WRITE | BluetoothGattCharacteristic.PROPERTY_NOTIFY,\n BluetoothGattCharacteristic.PERMISSION_READ | BluetoothGattCharacteristic.PERMISSION_WRITE);\n\n turnIconCharacteristic.addDescriptor(\n Peripheral.getClientCharacteristicConfigurationDescriptor());\n\n turnIconCharacteristic.addDescriptor(\n Peripheral.getCharacteristicUserDescriptionDescriptor(CHARACT_TURNICON_DESC));\n\n turnIconCharacteristic.setValue(turnIconCharacteristic_value);\n }", "public void setAvatar(int avatar) {\n\t\tthis.avatar = new ImageIcon(FileIO.readImageFile(this,\"/images/Player\" + avatar + \".png\"));\n\t\tthis.setIcon(this.avatar);\n\t}", "private void changeIcon(SingleDocumentModel model) {\n\t\tif (model.isModified()) {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/red.png\"));\n\t\t}else {\n\t\t\tsetIconAt(models.indexOf(model), createIcon(\"icons/green.png\"));\n\t\t}\n\t}", "public void setLinkIcon( NSData linkIcon ) {\n\t\t_linkIcon = linkIcon;\n\t}", "public void setTeachingAvatar(){\n\t\tavatar.setIcon(new ImageIcon(\"img/Asking.png\"));\n\t}", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }", "public Builder setIconBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }", "public void setIcon(int resId) {\n mIconId = resId;\n if (mIconView != null) {\n if (resId > 0) {\n mIconView.setImageResource(mIconId);\n } else if (resId == 0) {\n mIconView.setVisibility(View.GONE);\n }\n }\n }", "public void setLargeIcon(ImageDescriptor icon) {\n if (icon != iconLarge) {\n ImageDescriptor oldIcon = iconLarge;\n iconLarge = icon;\n listeners.firePropertyChange(PROPERTY_LARGE_ICON, oldIcon,\n iconLarge);\n }\n }", "@Override\r\n public void initializeUserImage() {\n userImageView = (ImageView)findViewById(R.id.user_profile_edit_imageView);\r\n userImageView.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n setImageSelection(\"USER\");\r\n }\r\n });\r\n if(userImageNewBitmap != null)\r\n {\r\n userImageView.setImageBitmap(userImageNewBitmap);\r\n return;\r\n }\r\n try\r\n {\r\n ImageCache.getInstance().setSessionUserImage(ImageCache.MSIZE, userImageView);\r\n }\r\n catch (Exception e)\r\n {\r\n Log.e(LOG_TAG,\"initializeUserImage failed\",e);\r\n Toast.makeText(WRProfileEditActivity.this, \"Unable to retrieve your image\", Toast.LENGTH_SHORT).show();\r\n }\r\n }", "public void setImage(String userId){\n\t\tImageIcon icon = new ImageIcon(\"image/\" + userId + \".png\");\n\t\ticon.setImage(icon.getImage().getScaledInstance(icon.getIconWidth(),\n\t\ticon.getIconHeight(), Image.SCALE_DEFAULT));\n\t\tplayerImage = icon.getImage();\n\t\tpaint(this.getGraphics());\n\t}", "public void setIcon(boolean b){\n \ttry{\n \t\tsuper.setIcon(b);\n \t}\n \tcatch(java.lang.Exception ex){\n \t\tSystem.out.println (ex);\n \t}\n \tif(!b){\n \t\tgetRootPane().setDefaultButton(jButton1);\n \t}\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"MainLogo.png\")));\n }", "public EntityIcon getIcon() {\r\n return icon;\r\n }", "public void setIconCls(String iconCls) {\n\t\tthis.iconCls = iconCls;\n\t\tthis.handleConfig(\"iconCls\", iconCls);\n\t}", "public void setLogotipo(ImageIcon imagem) {\n jLabelLogotipo.setIcon(imagem);\n }", "public void setIconCls(String iconCls) {\n\t\tthis.iconCls = iconCls;\n\t\thandleConfig(\"iconCls\", iconCls);\n\t}", "public int getIconId(){\n return mIconId;\n }", "public int getIcon()\n\t{\n\t\treturn getClass().getAnnotation(AccuAction.class).icon();\n\t}", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public void setIconMode(IconMode currentInventoryMode);", "public void changeIcon() {\n\t\t\tint choice = rand.nextInt(list.length);\n\t\t\tString iconName = list[choice].getName();\n\t\t\ticon = new ImageIcon(helpIconBase + File.separator + iconName);\n\t\t\tDimension dim = new Dimension(icon.getIconWidth() * 2, HEIGHT);\n\t\t\tsetPreferredSize(dim);\n\t\t\tsetMinimumSize(dim);\n\t\t}", "public void setImg() {\n\t\tif (custom) {\n\t\t\tImage img1;\n\t\t\ttry {\n\t\t\t\timg1 = new Image(new FileInputStream(\"tmpImg.png\"));\n\t\t\t\tmainAvatar.setImage(img1); // Sets main user avatar as the custom image\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void setImageButtonImage(int typeIconId) {\n ImageButton btn = (ImageButton) findViewById(R.id.btn_typeIcon);\n\n TypeIcon typeIcon = MainActivity.getTypeIconById(typeIconId);\n\n // Gets the id of the actual image to display, using the name of the TypeIcon\n String name = typeIcon.getDrawablePath();\n final int id = getResources().getIdentifier(name, \"drawable\", getPackageName());\n btn.setImageResource(id);\n\n iconId = typeIconId;\n }", "public static void setVolatileUrlDrawable(ImageView icon,\n\t\t\tAccountClient starvingTheFoxPlayer) {\n\t\t\n\t}", "public void setMainIcon(IconReference ref);" ]
[ "0.67727965", "0.6573197", "0.6522298", "0.64775807", "0.64775807", "0.6399635", "0.63977766", "0.6363234", "0.63557804", "0.6251724", "0.6235143", "0.6161256", "0.60941577", "0.6021108", "0.6021108", "0.59157753", "0.584985", "0.5837011", "0.5833168", "0.5831387", "0.5765183", "0.57636046", "0.574285", "0.5730526", "0.57298505", "0.5698596", "0.5683", "0.56355053", "0.56169105", "0.56099516", "0.5586443", "0.55853724", "0.5541255", "0.5535442", "0.5532745", "0.55213475", "0.55175126", "0.55124205", "0.55067176", "0.55059844", "0.5503717", "0.5503283", "0.5499645", "0.54934305", "0.5489826", "0.5464312", "0.54578334", "0.5453484", "0.54533184", "0.54487485", "0.54422545", "0.54172546", "0.54148394", "0.5402372", "0.5387843", "0.53559744", "0.53494805", "0.5333125", "0.53220206", "0.5310953", "0.5310953", "0.5310953", "0.5310953", "0.5302469", "0.5278199", "0.5275331", "0.52698034", "0.5269663", "0.5268517", "0.52669895", "0.5265858", "0.5256412", "0.5250457", "0.52464485", "0.52388066", "0.5232626", "0.5232303", "0.523173", "0.52259225", "0.5214371", "0.5214181", "0.5209691", "0.518776", "0.5184686", "0.51836634", "0.51639986", "0.51566696", "0.51562357", "0.5150756", "0.5147771", "0.5145572", "0.513993", "0.5127284", "0.51211447", "0.5116795", "0.5110836", "0.5103906", "0.51031876", "0.5097798" ]
0.6153935
13
This method was generated by MyBatis Generator. This method returns the value of the database column user.city
public String getCity() { return city; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCity() {\n return (String) get(\"city\");\n }", "public String getCity() {\n\t\treturn this.city;\n\t}", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n\t\treturn city;\t\t\r\n\t}", "public String getCity() {\r\n\t\treturn city;\r\n\t}", "public String getCity() {\r\n\t\treturn city;\r\n\t}", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return City;\n }", "public Integer getCity() {\n return city;\n }", "public Integer getCity() {\n return city;\n }", "public String getCity() {\n return (String)getAttributeInternal(CITY);\n }", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() \n\t{\n\t\treturn city;\n\t}", "public String getCity()\n\t{\n\t\treturn city;\n\t}", "public String getCity()\n {\n \treturn city;\n }", "public String getCity()\n\t{\n\t\treturn City;\n\t\t\n\t}", "public java.lang.String getCity() {\r\n return city;\r\n }", "@Override\n\tpublic String getCity() {\n\t\treturn this.city;\n\t}", "public java.lang.String getCity() {\n return city;\n }", "public java.lang.String getCity() {\n return city;\n }", "@AutoEscape\n\tpublic String getCity();", "public java.lang.String getCity() {\n return City;\n }", "public java.lang.String getCity () {\n\t\treturn city;\n\t}", "@Override\n public String getCity() {\n return this.city;\n }", "public String getCity()\r\n\t{\r\n\t\treturn city.getModelObjectAsString();\r\n\t}", "public String getLocationCity() {\n return locationCity;\n }", "public Long getCityId() {\n return cityId;\n }", "public String getCity(){\n return city;\n }", "public String getCity(){\n return city;\n }", "public City getCity() {\n return city;\n }", "public Integer getCityId() {\n return cityId;\n }", "public Integer getCityId() {\n return cityId;\n }", "public String getCityId() {\n return cityId;\n }", "public String getCityId() {\r\n return cityId;\r\n }", "public String getAccountCityName() {\n return accountCityName;\n }", "public String getCity_id() {\n return city_id;\n }", "public Integer getCityid() {\n return cityid;\n }", "public String getCompanyCity() {\n return companyCity;\n }", "public String getContactCity() {\n return contactCity;\n }", "public String getCityname() {\n return cityname;\n }", "public String getCityName() {\n return cityName;\n }", "public String getCityName() {\n return cityName;\n }", "public String getJobCity() {\r\n return jobCity;\r\n }", "public Long getCityId() {\n\t\treturn cityId;\n\t}", "public Long getCitiesCityCode() {\n return citiesCityCode;\n }", "String getCity();", "@SuppressWarnings(\"unused\")\n public Integer getCityID() { return cityID; }", "public CustomerAddressQuery city() {\n startField(\"city\");\n\n return this;\n }", "public String getCityno() {\n return cityno;\n }", "public String getCreatecity() {\n return createcity;\n }", "public String getCityName(){\n\t\treturn (String)this.entryMap.get(ObjectGeoKeys.OBJ_GEO_CITY_NAME);\n\t}", "public String getCityFieldName() {\n return getStringProperty(CITY_FIELD_NAME_KEY);\n }", "public String getAdmCity() {\n return admCity;\n }", "public String getCityCode() {\n return cityCode;\n }", "public String getCityCode() {\n return cityCode;\n }", "@Override\n\tpublic java.lang.String getCity() {\n\t\treturn _candidate.getCity();\n\t}", "public String getCityCode() {\n return (String)getAttributeInternal(CITYCODE);\n }", "public void setCity (String city) {\n\t\tthis.city=city;\n\t}", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city){\n\t\tthis.city = city;\n\t}", "public String getBankCity() {\r\n return bankCity;\r\n }", "public String getHospitalCity() {\n return hospitalCity;\n }", "public void setCity(String city) {\n this.city = city;\n }", "java.lang.String getCityName();", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "String getCityname(){\n \treturn city_name;\n }", "@Override\n\tpublic int getCityId() {\n\t\treturn _locMstLocation.getCityId();\n\t}", "public void setCity(String city){\n this.city = city;\n }", "public Short getCityId() {\r\n return cityId;\r\n }", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city)\n\t{\n\t\tCity = city;\n\t}" ]
[ "0.74451464", "0.710265", "0.70925355", "0.70925355", "0.70925355", "0.7082192", "0.7082192", "0.7082192", "0.70791155", "0.70729625", "0.70729625", "0.704701", "0.7023141", "0.7012921", "0.70115143", "0.70115143", "0.7007074", "0.6995575", "0.6995575", "0.6995575", "0.6995575", "0.69889337", "0.6983838", "0.6952935", "0.6948999", "0.69271725", "0.6912636", "0.69033647", "0.69033647", "0.6860048", "0.6851572", "0.68443036", "0.68086904", "0.6748348", "0.67401266", "0.664248", "0.66362613", "0.66362613", "0.6630151", "0.6582607", "0.6582607", "0.6581162", "0.6558669", "0.64898956", "0.6489297", "0.64890385", "0.6464709", "0.64534307", "0.6443619", "0.6436276", "0.6436276", "0.6424875", "0.6404073", "0.63720846", "0.63573337", "0.6352599", "0.6350065", "0.6345072", "0.6321955", "0.6317836", "0.6317739", "0.63065886", "0.62872404", "0.62872404", "0.6281097", "0.6229031", "0.62009805", "0.6186218", "0.6186218", "0.6180742", "0.61743623", "0.6167329", "0.6166486", "0.6158093", "0.61562556", "0.61562556", "0.61498946", "0.61498946", "0.61498946", "0.61498946", "0.61498946", "0.61498946", "0.61497986", "0.61370325", "0.6135179", "0.613096", "0.6108331", "0.6108331", "0.6108331", "0.6108331", "0.6071934" ]
0.7004206
26
This method was generated by MyBatis Generator. This method sets the value of the database column user.city
public void setCity(String city) { this.city = city == null ? null : city.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCity(String city);", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city) {\r\n this.city = city;\r\n }", "public void setCity(String city){\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity(String city) {\n this.city = city;\n }", "public void setCity (String city) {\n\t\tthis.city=city;\n\t}", "public void setCity(City city) {\n this.city = city;\n }", "public void setCity(String city){\n\t\tthis.city = city;\n\t}", "public void setCity(String city)\n\t{\n\t\tCity = city;\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(String city) {\r\n\t\tthis.city = city;\r\n\t}", "public void setCity(java.lang.String city) {\r\n this.city = city;\r\n }", "public void setCity(java.lang.String City) {\n this.City = City;\n }", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public void setCity(java.lang.String city) {\n this.city = city;\n }", "public void setCity(City city) {\n\t\tthis.city = city;\n\t}", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setCity(Integer city) {\n this.city = city;\n }", "public void setCity (java.lang.String city) {\n\t\tthis.city = city;\n\t}", "public void setCity(String value) {\n setAttributeInternal(CITY, value);\n }", "@Override\n public void setCity(String a) {\n this.city = a;\n }", "public void setAddressCity(String addressCity) {\n this.addressCity = addressCity;\n }", "public boolean setCity(String someCity) {\n if (VMSPro.checkString(someCity)) {\n this.city = someCity;\n return true;\n }\n return false;\n }", "public void setLocationCity(String locationCity) {\n this.locationCity = locationCity;\n }", "@Override\n\tpublic void setCity(java.lang.String city) {\n\t\t_candidate.setCity(city);\n\t}", "public abstract void setCity(String sValue);", "public void setJobCity(String jobCity) {\r\n this.jobCity = jobCity;\r\n }", "@SuppressWarnings(\"All\")\n void setCity(String city){\n prefs.edit().putString(\"city\", city).commit();\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public String getCity() {\n return this.city;\n }", "public void setCityFieldName(final String value) {\n setProperty(CITY_FIELD_NAME_KEY, value);\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "public String getCity() {\r\n return city;\r\n }", "@Override\n\tpublic void update(City city) {\n\t\t\n\t\tString sql = \"UPDATE city SET name = ?, countrycode = ?, district =?, population = ? WHERE id = ?\";\n\t\n\t\t\n\t\tjdbcTemplate.update(sql, city.getName(), city.getCountryCode(), city.getDistrict(), city.getPopulation(), city.getId());\n\n\t}", "public void setContactCity(String contactCity) {\n this.contactCity = contactCity;\n }", "public void setCityId(String cityId) {\r\n this.cityId = cityId;\r\n }", "public void setCityId(Long cityId) {\n this.cityId = cityId;\n }", "public void setCity(String s) {\r\n\t\tstate = s;\t\t\r\n\t}", "public void setCityId(String cityId) {\n this.cityId = cityId;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\r\n\t\treturn city;\t\t\r\n\t}", "public String getCity() {\n return city;\n }", "public String getCity() {\r\n\t\treturn city;\r\n\t}", "public String getCity() {\r\n\t\treturn city;\r\n\t}", "public void setCity(int tourPosition, City city) {\n tour.set(tourPosition, city);\n // If the tours been altered we need to reset the fitness and distance\n fitness = 0;\n distance = 0;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public String getCity() {\n return city;\n }", "public void setSrcCity(String value) {\r\n setAttributeInternal(SRCCITY, value);\r\n }", "public String getCity() {\n return City;\n }", "public void setCity_id(String city_id) {\n this.city_id = city_id;\n }", "public void setCityId(Integer cityId) {\n this.cityId = cityId;\n }", "public Integer getCity() {\n return city;\n }", "public Integer getCity() {\n return city;\n }", "public Long getCityId() {\n return cityId;\n }", "public String getCityId() {\r\n return cityId;\r\n }", "public String getCityId() {\n return cityId;\n }", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() {\n\t\treturn city;\n\t}", "public String getCity() {\n\t\treturn city;\n\t}", "public void setCityid(Integer cityid) {\n this.cityid = cityid;\n }", "public CustomerAddressQuery city() {\n startField(\"city\");\n\n return this;\n }", "public String getCity() {\n\t\treturn this.city;\n\t}", "public Address city(String city) {\n this.city = city;\n return this;\n }", "public String getCity()\n\t{\n\t\treturn city;\n\t}", "public Integer getCityId() {\n return cityId;\n }", "public Integer getCityId() {\n return cityId;\n }", "public String getCity()\n {\n \treturn city;\n }", "public void setCityname(String cityname) {\n this.cityname = cityname;\n }", "public String getCity() \n\t{\n\t\treturn city;\n\t}", "public String getCity(){\n return city;\n }", "public String getCity(){\n return city;\n }", "public void setCityKey( Long cityKey ) {\n this.cityKey = cityKey;\n }", "public String getCity_id() {\n return city_id;\n }", "public void setRegisterCity(String registerCity) {\n this.registerCity = registerCity;\n }", "public void setCityName(String cityName) {\n this.cityName = cityName;\n }" ]
[ "0.71354496", "0.7133134", "0.7133134", "0.7087632", "0.7053955", "0.7053955", "0.7053955", "0.7053955", "0.7053955", "0.7053955", "0.70335776", "0.7032927", "0.70213157", "0.7004563", "0.6977036", "0.69677424", "0.69677424", "0.691083", "0.6879378", "0.68687814", "0.68687814", "0.68687814", "0.68687814", "0.6841145", "0.6841145", "0.68239194", "0.6735875", "0.6735875", "0.67042416", "0.6683519", "0.65294516", "0.651324", "0.64322656", "0.63844275", "0.6314915", "0.63070405", "0.63023335", "0.6203157", "0.61832285", "0.61832285", "0.61832285", "0.6178438", "0.61656773", "0.61656773", "0.61656773", "0.61432976", "0.6134057", "0.61249727", "0.61223865", "0.61166567", "0.6112907", "0.60983545", "0.6092928", "0.6089995", "0.60895723", "0.60895723", "0.6086617", "0.60519594", "0.60519594", "0.60519594", "0.60519594", "0.60519594", "0.60519594", "0.60519594", "0.60519594", "0.60519594", "0.60519594", "0.60451907", "0.6040667", "0.60399985", "0.6031063", "0.5997144", "0.5997144", "0.59817755", "0.5975133", "0.59666044", "0.5959638", "0.5959638", "0.5959638", "0.5959638", "0.59493244", "0.59452766", "0.59440774", "0.59294116", "0.5917079", "0.5910727", "0.5910727", "0.5910296", "0.591008", "0.5909508", "0.5901178", "0.5901178", "0.5887641", "0.58842885", "0.58790857", "0.5875577" ]
0.66648185
33
This method was generated by MyBatis Generator. This method returns the value of the database column user.profile
public String getProfile() { return profile; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getProfile();", "@ModelNodeBinding(detypedName = \"profile\")\n\tpublic String profile() {\n\t\treturn this.profile;\n\t}", "public int getProfile_id() {\n return profileID;\n }", "@ManyToOne(fetch = FetchType.LAZY)\n\t@JoinColumn(name = \"ID_SECURITY_PROFILE\", referencedColumnName = \"ID_SECURITY_PROFILE\", nullable = false)\n\tpublic Profile getProfile() {\n\t\treturn this.profile;\n\t}", "String getProfile();", "public EntityProfile getProfile()\n\t{\n\t\treturn m_profile;\n\t}", "public UserProfile getUserProfile() {return userProfile;}", "Profile getProfile( String profileId );", "public Integer getProfileId() {\n return _profileId;\n }", "public String getProfileId() {\n return profileId;\n }", "public ProjectProfileBO getProfile()\r\n {\r\n return mProfile;\r\n }", "@WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserProfile\",\n operationName=\"getUserProfile\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfile\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfileResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String getUserProfile(@WebParam(mode = WebParam.Mode.IN, name=\"profileInformation\")\n String profileInformation) throws ServiceException;", "public String getProfileAttribute() {\r\r\n\t\treturn _profileAttribute;\r\r\n\t}", "public Profile getProfile() {\n return m_profile;\n }", "public Profile getProfile() {\n return _profile;\n }", "@java.lang.Override\n public com.google.protobuf2.Any getProfile() {\n return profile_ == null ? com.google.protobuf2.Any.getDefaultInstance() : profile_;\n }", "protected Map<String, Object> getUserProfile() {\r\n\t\tTimeRecorder timeRecorder = RequestContext.getThreadInstance()\r\n\t\t\t\t\t\t\t\t\t\t\t\t .getTimeRecorder();\r\n\t\tString profileId = (String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID);\r\n\r\n\t\tSite site = Utils.getEffectiveSite(request);\r\n\t\tString siteDNSName = (site == null ? null : site.getDNSName());\r\n\r\n\t\tIUserProfileRetriever retriever = UserProfileRetrieverFactory.createUserProfileImpl(AuthenticationConsts.USER_PROFILE_RETRIEVER, siteDNSName);\r\n\t\ttry {\r\n\t\t\ttimeRecorder.recordStart(Operation.PROFILE_CALL);\r\n\t\t\tMap<String, Object> userProfile = retriever.getUserProfile(profileId,\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t request);\r\n\t\t\ttimeRecorder.recordEnd(Operation.PROFILE_CALL);\r\n\t\t\treturn userProfile;\r\n\t\t} catch (UserProfileException ex) {\r\n\t\t\ttimeRecorder.recordError(Operation.PROFILE_CALL, ex);\r\n\t\t\tRequestContext.getThreadInstance()\r\n\t\t\t\t\t\t .getDiagnosticContext()\r\n\t\t\t\t\t\t .setError(ErrorCode.PROFILE001, ex.toString());\r\n\t\t\tthrow ex;\r\n\t\t}\r\n\t}", "@GET\n\t @Path(\"/topUser\")\n\t public Response getProfile() throws ProfileDaoException {\n\t return Response\n\t .ok(api.getTopUser(datastore))\n\t .build();\n\t }", "public String getProfileSelect() {\n if (UrlHelper.getParameterBoolean(\"profileSelect\")) {\n setProfileSelectMode(true);\n } else {\n setProfileSelectMode(false);\n }\n return \"\";\n }", "public BigDecimal getPROFILE_ID() {\r\n return PROFILE_ID;\r\n }", "public Boolean getProfile()\n {\n return profile;\n }", "public static Profile getProfile() {\n return profile;\n }", "Map<String, Object> getUserProfile();", "public String getApplicationProfile()\n {\n return mApplicationProfile;\n }", "public String getPROFILE_NAME() {\r\n return PROFILE_NAME;\r\n }", "public com.google.protobuf2.Any getProfile() {\n if (profileBuilder_ == null) {\n return profile_ == null ? com.google.protobuf2.Any.getDefaultInstance() : profile_;\n } else {\n return profileBuilder_.getMessage();\n }\n }", "@objid (\"d7af9849-7951-4020-8339-9057fcec6b89\")\n Profile getOwnerProfile();", "public static String getProfile(String username){\n\t\tMongoCollection<Document> collection = getDatabase().getCollection(\"LoginInformation\");\n\t\t\n\t\ttry {\n\t\t\tDocument cursorName = collection.find(eq(\"username\", username)).first();\n\t\t\treturn cursorName.getString(\"profile\");\n\t\t} catch(Exception ex){\n\t\t\treturn \"\";\n\t\t}\t\n\t}", "public MetadataProfile getProfile() {\n\t\treturn profile;\n\t}", "public String getSelectedProfile() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"SELECTED_PROFILE\", null);\n\t}", "public User getProf(String name) { return userDAO.getProfile(name); }", "ApplicationProfile getApplicationProfile();", "public java.lang.String getProfileURL() {\n java.lang.Object ref = profileURL_;\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 profileURL_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public UserProfile getUserProfile() {\n\t\tif (user == null) {\n\t\t\tUserProfileInterface intf;\n\t\t\tswitch (imsAuthentMode) {\n\t\t\tcase GIBA:\n//\t\t\t\tif (logger.isActivated()) {\n//\t\t\t\t\tlogger.debug(\"Load user profile derived from IMSI (GIBA)\");\n//\t\t\t\t}\n\t\t\t\tintf = new GibaUserProfileInterface();\n\t\t\t\tbreak;\n\t\t\tcase DIGEST:\n\t\t\tdefault:\n//\t\t\t\tif (logger.isActivated()) {\n//\t\t\t\t\tlogger.debug(\"Load user profile from RCS settings database\");\n//\t\t\t\t}\n\t\t\t\tintf = new SettingsUserProfileInterface();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tuser = intf.read();\n\t\t}\n \t\n \treturn user; \t\n\t}", "private User retrievePersonalProfileData() {\n if (checkIfProfileExists()) {\n return SharedPrefsUtils.convertSharedPrefsToUserModel(context);\n } else {\n return null;\n }\n }", "public String toString() {\r\n\t\treturn profileName;\r\n\t}", "@Override\n\tpublic ProfileInfo getProfileInfo() {\n\t\treturn (ProfileInfo)map.get(PROFILE_INFO);\n\t}", "public URI getProfile() { \n\t\treturn getProfileElement().getValue();\n\t}", "public java.lang.String getProfileURL() {\n java.lang.Object ref = profileURL_;\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 profileURL_ = s;\n return s;\n }\n }", "@java.lang.Override\n public com.google.protobuf2.AnyOrBuilder getProfileOrBuilder() {\n return getProfile();\n }", "public ProfileImage getProfileImage() {\n return profileImage;\n }", "public com.google.protobuf2.AnyOrBuilder getProfileOrBuilder() {\n if (profileBuilder_ != null) {\n return profileBuilder_.getMessageOrBuilder();\n } else {\n return profile_ == null ?\n com.google.protobuf2.Any.getDefaultInstance() : profile_;\n }\n }", "public UserCredentials getProfileDetails() {\n return profile.getProfileDetails(currentUser);\n }", "public UserProfile getUserProfile(String username);", "public CustomerProfile getCustomerProfile();", "@Override\n\tpublic Profile getProfile(long profileId) {\n\t\treturn null;\n\t}", "public List<ProfilePicture> getProfile() {\r\n\t\t\t\r\n\t\t\treturn (List<ProfilePicture>) userRepo.findAll();\r\n\t\t}", "public String getProfileUrl() {\n\t\treturn profileUrl;\n\t}", "TasteProfile.UserProfile getUserProfile (String user_id);", "@Override\n\tpublic Profile getProfile(Users user) {\n\t\treturn null;\n\t}", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"In Prince 9.0 and up you can set the PDF profile.\")\n @JsonProperty(JSON_PROPERTY_PROFILE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getProfile() {\n return profile;\n }", "public java.lang.String getProfileImage() {\n java.lang.Object ref = profileImage_;\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 profileImage_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@JsonProperty(\"loadUserProfile\")\r\n @JacksonXmlProperty(localName = \"load_user_profile\", isAttribute = true)\r\n public String getLoadUserProfile() {\r\n return loadUserProfile;\r\n }", "public KunKunProfile getProfile() {\n\t\tObject temp;\n//\t\tif (profile == null || profile.getUserData() == null\n//\t\t\t\t|| profile.getUserData().id == -1) {// nghia la bien o trang\n//\t\t\t\t\t\t\t\t\t\t\t\t\t// thai ban dau hoac da bi\n//\t\t\t\t\t\t\t\t\t\t\t\t\t// reset\n//\t\t\tif ((temp = KunKunUtils.readObject(\n//\t\t\t\t\tKunKunProfile.KUNKUN_PROFILE)) != null) {\n//\t\t\t\tprofile = (KunKunProfile) temp;// bi out memory\n//\t\t\t\tSystem.setProperty(\"networkaddress.cache.ttl\",\"0\");\n//\t\t\t\tSystem.setProperty(\"networkaddress.cache.negative.ttl\" , \"0\");\n//\t\t\t}\n//\t\t}\n\t\treturn profile;\n\t}", "private String profileTest() {\n BufferedReader br = null;\n try {\n br = new BufferedReader(new FileReader(\n \"/home/pascal/bin/workspace_juno/pgu-geo/war/WEB-INF/pgu/profile.json\"));\n } catch (final FileNotFoundException e) {\n throw new RuntimeException(e);\n }\n\n final StringBuilder sb = new StringBuilder();\n String line = null;\n\n try {\n while ((line = br.readLine()) != null) {\n sb.append(line);\n }\n } catch (final IOException e) {\n throw new RuntimeException(e);\n }\n return sb.toString();\n }", "private String getActiveProfile() {\r\n String[] profiles = env.getActiveProfiles();\r\n String activeProfile = \"add\";\r\n if (profiles != null && profiles.length > 0) {\r\n activeProfile = profiles[0];\r\n }\r\n System.out.println(\"===== The active profile is \" + activeProfile + \" =====\");\r\n return(activeProfile);\r\n }", "public List<UserProfile> getProfili() {\r\n\t\t// return upDao.findAll();\r\n\t\treturn upDao.getAllUserProfile();\r\n\t}", "public java.lang.String getProfileImage() {\n java.lang.Object ref = profileImage_;\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 profileImage_ = s;\n return s;\n }\n }", "public static String getUserProfilePath(int userId) {\n return String.format(\"profile.%s\", userId);\n }", "java.lang.String getProfileURL();", "public String getProfileId() {\n\t\treturn mProfileId;\n\t}", "public String getProfile() {\n\tif (profileBuf.length() > 0) {\n\t profileBuf.append (\"\\n\");\n\n\t // should be replaced by java.util.Formatter from Java 1.5\n\t profileBuf.append (profilingTotal);\n\t profileBuf.append (\"\\t\");\n\t profileBuf.append (\"TOTAL\\n\");\n// \t profileBuf.append (Printf.format (\"%7d\\t%s\\n\",\n// \t\t\t\t\t new String[] {\"\" + profilingTotal, \"TOTAL\"}));\n\t return new String (profileBuf);\n\t} else {\n\t return \"\";\n\t}\n }", "public com.google.protobuf.ByteString\n getProfileURLBytes() {\n java.lang.Object ref = profileURL_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n profileURL_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getProfileIndex() {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\treturn sharedPreferences.getString(\"PROFILEINDEX\", null);\n\t}", "@Override\n\tpublic UserProfile getuserprofile(String username){\n\t\n\t\tString query = \"select fkusername, firstname, lastname, email, phonenumber, preferredcontact, mailingaddress \"\n\t\t\t\t+ \"from userdetails where fkusername = ?\";\n\t\t// using RowMapper anonymous class, we can create a separate RowMapper\n\t\t// for reuse\n\t\tUserProfile userprofiledata = jdbcTemplate.queryForObject(query,\n\t\t\t\tnew Object[] { username }, new RowMapper<UserProfile>() {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic UserProfile mapRow(ResultSet rs, int rowNum)\n\t\t\t\t\t\t\tthrows SQLException {\n\t\t\t\t\t\tUserProfile userprofileobj = new UserProfile();\n\t\t\t\t\t\tuserprofileobj.setUsername(rs.getString(\"fkusername\"));\n\t\t\t\t\t\tuserprofileobj.setFirstname(rs.getString(\"firstname\"));\n\t\t\t\t\t\tuserprofileobj.setLastname(rs.getString(\"lastname\"));\n\t\t\t\t\t\tuserprofileobj.setEmail(rs.getString(\"email\"));\n\t\t\t\t\t\tuserprofileobj.setPhonenumber(rs.getString(\"phonenumber\"));\n\t\t\t\t\t\tuserprofileobj.setPreferredcontact(rs.getString(\"preferredcontact\"));\n\t\t\t\t\t\tuserprofileobj.setMailingaddress(rs.getString(\"mailingaddress\"));\n\t\t\t\t\t\t\n\t\t\t\t\t\treturn userprofileobj;\n\t\t\t\t\t}\n\t\t\t\t});\n\t\treturn userprofiledata;\n\n\t}", "public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}", "@Override\n public String toString() {\n StringBuilder result = new StringBuilder();\n result.append(\"userProfile.id=[\").append(getId()).append(\"]\\n\");\n result.append(\"userProfile.city=[\").append(getCity()).append(\"]\\n\");\n result.append(\"userProfile.country=[\").append(getCountry()).append(\"]\\n\");\n result.append(\"userProfile.title=[\").append(getTitle()).append(\"]\\n\");\n result.append(\"userProfile.firstName=[\").append(getFirstName()).append(\"]\\n\");\n result.append(\"userProfile.lastName=[\").append(getLastName()).append(\"]\\n\");\n result.append(\"userProfile.gender=[\").append(getGender()).append(\"]\\n\");\n return result.toString();\n }", "public com.google.protobuf.ByteString\n getProfileURLBytes() {\n java.lang.Object ref = profileURL_;\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 profileURL_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getUserProfileImg() {\n return userProfileImg;\n }", "public T getSelectedProfile(int Id);", "H getProfile();", "protected void mapUserProfile2SSOUser() {\r\n\t\tssoUser.setProfileId((String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID));\r\n\t\tssoUser.setUserName((String)userProfile.get(AuthenticationConsts.KEY_USER_NAME));\r\n\t\tssoUser.setEmail((String)userProfile.get(AuthenticationConsts.KEY_EMAIL));\r\n\t\tssoUser.setFirstName((String)userProfile.get(AuthenticationConsts.KEY_FIRST_NAME));\r\n\t\tssoUser.setLastName((String)userProfile.get(AuthenticationConsts.KEY_LAST_NAME));\r\n\t\tssoUser.setCountry((String)userProfile.get(AuthenticationConsts.KEY_COUNTRY));\r\n\t\tssoUser.setLanguage((String)userProfile.get(AuthenticationConsts.KEY_LANGUAGE));\r\n\t\tssoUser.setTimeZone((String)userProfile.get(AuthenticationConsts.KEY_TIMEZONE));\r\n\t\tssoUser.setLastChangeDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_CHANGE_DATE));\r\n\t\tssoUser.setLastLoginDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_LOGIN_DATE));\r\n\t\t// Set current site, it will be used to update user's primary site\r\n\t\tssoUser.setCurrentSite(AuthenticatorHelper.getPrimarySiteUID(request));\r\n\t}", "ValueMap getProfileMap(Node profileNode) throws RepositoryException;", "public com.google.protobuf.ByteString\n getProfileImageBytes() {\n java.lang.Object ref = profileImage_;\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 profileImage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public String getSelectedProfile(PortletRequest request) {\n\n // if a profile selection exists in the session, use it\n final PortletSession session = request.getPortletSession();\n String profileName =\n (String)\n session.getAttribute(\n SessionAttributeProfileMapperImpl.DEFAULT_SESSION_ATTRIBUTE_NAME,\n PortletSession.APPLICATION_SCOPE);\n\n // otherwise, set the selected profile to the one currently in use by\n // the user\n if (profileName == null) {\n // get the profile for the current request\n final HttpServletRequest httpServletRequest =\n portalRequestUtils.getPortletHttpRequest(request);\n final IUserInstance ui = userInstanceManager.getUserInstance(httpServletRequest);\n final IUserProfile profile = ui.getPreferencesManager().getUserProfile();\n\n // check to see if the profile's fname matches one of the entries in\n // the profile key map used by the session attribute profile mapper\n for (Map.Entry<String, String> entry : mappings.entrySet()) {\n if (entry.getValue().equals(profile.getProfileFname())) {\n profileName = entry.getKey();\n break;\n }\n }\n }\n\n return profileName;\n }", "public com.google.protobuf.ByteString\n getProfileImageBytes() {\n java.lang.Object ref = profileImage_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n profileImage_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Profile getProfile(User user){\n\t\t\n\t\treturn profiles.get(user.getProfile());\n\t}", "public Long getProfileId(String profileName)\n {\n // initilaizes the profile names if necessary\n TreeMap names = getProfileNames();\n return (Long) names.get(profileName);\n }", "HumanProfile getUserProfile();", "public Map<String, Object> getProfileProperties() {\n return profileProperties;\n }", "@java.lang.Override\n public com.google.protobuf.StringValue getProfilePictureUrl() {\n return profilePictureUrl_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : profilePictureUrl_;\n }", "protected Map getProfileMap() {\n \t\t\treturn profileMap;\n \t\t}", "@Override\r\n public Profile getProfileById(int id) {\r\n return profileDAO.getProfileById(id);\r\n }", "UserDTO getProfile(final int userId) throws DataUnreachableException;", "public String getProfile_location()\r\n\t{\r\n\t\treturn profile_location;\r\n\t}", "public String cmdChanProfile(){\r\n\t\treturn \"get /unit-\" + this.getTbs().getSlot() + \"/port-\" + this.getTbs().getPortNumber() + \"/chan-1/cfgm/chanprofile\";\r\n\t}", "ProfileStatusReader getProfileUpdate( String profileId );", "public abstract Properties getProfileProperties();", "@ResponseStatus(HttpStatus.OK)\r\n\t@RequestMapping(value = UrlHelpers.USER_PROFILE_ID, method = RequestMethod.GET)\r\n\tpublic @ResponseBody\r\n\tUserProfile getUserProfileByOwnerId(\r\n\t\t\t@RequestParam(value = AuthorizationConstants.USER_ID_PARAM, required = false) String userId,\r\n\t\t\t@PathVariable String profileId) throws DatastoreException, UnauthorizedException, NotFoundException {\r\n\t\tUserInfo userInfo = userManager.getUserInfo(userId);\r\n\t\treturn userProfileManager.getUserProfile(userInfo, profileId);\r\n\t}", "Accessprofile getById(Integer id);", "UserProperty getUserProperty(BaseUser u);", "com.google.protobuf2.Any getProfile();", "public UriDt getProfileElement() { \n\t\tif (myProfile == null) {\n\t\t\tmyProfile = new UriDt();\n\t\t}\n\t\treturn myProfile;\n\t}", "@ApiMethod(\n \t\tname = \"getProfileDetail\", \n \t\tpath = \"profile/{websafeProfileKey}\", \n \t\thttpMethod = HttpMethod.GET\n \t\t)\n public Profile getProfileDetail(final User user, \n \t\t@Named(\"websafeProfileKey\") final String websafeProfileKey) throws UnauthorizedException {\n System.out.println(\"Pow\");\n \tif (user == null) {\n throw new UnauthorizedException(\"Authorization required to view profiles\");\n }\n System.out.println(\"\\n\\nwebsafeProfileKey\" + websafeProfileKey + \"\\n\\n\");\n // load the Profile Entity from the websafeProfileKey\n String userId = user.getUserId();\n Key key = Key.create(websafeProfileKey);\n\n Profile profile = (Profile) ofy().load().key(key).now();\n return profile;\n }", "java.lang.String getProfileImage();", "public PosSymbol getProfileName() {\n return profileName;\n }", "@ApiModelProperty(value = \"Optional profile hint to the client to differentiate multiple MediaUrl objects from each other\")\n @JsonProperty(\"profile\")\n public String getProfile() {\n return profile;\n }", "public BaseElement getUserProfileIcon() {\n\t\treturn userProfileIcon;\n\t}", "public double getProfileLength()\n {\n\n return this.profileLength;\n }", "public Optional<CredentialProfile> get(StructuredTableContext context, CredentialProfileId id)\n throws IOException {\n StructuredTable table = context.getTable(CredentialProviderStore.CREDENTIAL_PROFILES);\n Collection<Field<?>> key = Arrays.asList(\n Fields.stringField(CredentialProviderStore.NAMESPACE_FIELD,\n id.getNamespace()),\n Fields.stringField(CredentialProviderStore.PROFILE_NAME_FIELD,\n id.getName()));\n return table.read(key).map(row -> GSON.fromJson(row\n .getString(CredentialProviderStore.PROFILE_DATA_FIELD), CredentialProfile.class));\n }" ]
[ "0.7076209", "0.6846538", "0.6828984", "0.6824985", "0.67321527", "0.65179116", "0.6507937", "0.6490759", "0.64571774", "0.6454155", "0.6453698", "0.6409957", "0.63562095", "0.6349913", "0.6346381", "0.6318839", "0.62899727", "0.62590927", "0.62413824", "0.62121236", "0.6160053", "0.61411774", "0.6134193", "0.6083528", "0.60687685", "0.6065329", "0.605943", "0.6038888", "0.6028673", "0.60206264", "0.5985638", "0.5944148", "0.59413654", "0.5900602", "0.58935845", "0.5890409", "0.58830327", "0.5864639", "0.5860821", "0.5857857", "0.5852703", "0.584626", "0.5838472", "0.583784", "0.583143", "0.5819666", "0.5813995", "0.5796438", "0.57740444", "0.5767257", "0.5728635", "0.5706687", "0.570202", "0.56951517", "0.56856465", "0.56763256", "0.5673204", "0.5659405", "0.5656584", "0.5651102", "0.56498295", "0.56493384", "0.5638031", "0.56371796", "0.5636069", "0.5621398", "0.5618706", "0.5617393", "0.5606761", "0.5597048", "0.5560122", "0.55594194", "0.5555269", "0.554325", "0.5536612", "0.5533431", "0.5513892", "0.5513275", "0.5509982", "0.55075383", "0.5506052", "0.55051535", "0.54812294", "0.54529667", "0.54442036", "0.5442456", "0.5435237", "0.542964", "0.5409134", "0.54078", "0.5395658", "0.5393029", "0.53725505", "0.53719515", "0.5363353", "0.5360046", "0.53477436", "0.5334934", "0.5333986", "0.5328324" ]
0.7011741
1
This method was generated by MyBatis Generator. This method sets the value of the database column user.profile
public void setProfile(String profile) { this.profile = profile == null ? null : profile.trim(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setProfile(Profile profile) {\n Login.profile = profile;\n Login.profile.setUserId(getUserId());\n }", "public void setUserProfile(UserProfile userProfile) {this.userProfile = userProfile;}", "public void setProfile(Profile profile) {\n _profile = profile;\n }", "public void setProfile(Profile profile) {\n\t\tthis.profile = profile;\n\t}", "@Override\n public void onChanged(@Nullable final Profile profile) {\n userProfile = profile;\n }", "public void setProfile(Boolean profile)\n {\n this.profile = profile;\n }", "protected void mapUserProfile2SSOUser() {\r\n\t\tssoUser.setProfileId((String)userProfile.get(AuthenticationConsts.KEY_PROFILE_ID));\r\n\t\tssoUser.setUserName((String)userProfile.get(AuthenticationConsts.KEY_USER_NAME));\r\n\t\tssoUser.setEmail((String)userProfile.get(AuthenticationConsts.KEY_EMAIL));\r\n\t\tssoUser.setFirstName((String)userProfile.get(AuthenticationConsts.KEY_FIRST_NAME));\r\n\t\tssoUser.setLastName((String)userProfile.get(AuthenticationConsts.KEY_LAST_NAME));\r\n\t\tssoUser.setCountry((String)userProfile.get(AuthenticationConsts.KEY_COUNTRY));\r\n\t\tssoUser.setLanguage((String)userProfile.get(AuthenticationConsts.KEY_LANGUAGE));\r\n\t\tssoUser.setTimeZone((String)userProfile.get(AuthenticationConsts.KEY_TIMEZONE));\r\n\t\tssoUser.setLastChangeDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_CHANGE_DATE));\r\n\t\tssoUser.setLastLoginDate((Date)userProfile.get(AuthenticationConsts.KEY_LAST_LOGIN_DATE));\r\n\t\t// Set current site, it will be used to update user's primary site\r\n\t\tssoUser.setCurrentSite(AuthenticatorHelper.getPrimarySiteUID(request));\r\n\t}", "void setUserProfile(Map<String, Object> profile);", "@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);", "public void setProfile( ProjectProfileBO pProfile )\r\n {\r\n mProfile = pProfile;\r\n }", "public void setProfileImage(ProfileImage profileImage) {\n this.profileImage = profileImage;\n }", "public void editProfile() {\n\n\t\tAccount account = getInputOfUsersAccount();\n\t\tSystem.out.println(account.getUser().toString());\n\n\t\taccount = userBo.handleProfileOption(account);\n\n\t\tif (userDAO.editProfile(account))\n\t\t\tSystem.out.println(\"User edited!\");\n\n\t\telse\n\t\t\tSystem.out.println(\"Something went wrong!\");\n\n\t\tAdminMenu.getAdminMenu();\n\t}", "@Override\n public void copyTo(UserProfile userProfile) {\n userProfile.setId(getId());\n userProfile.setCity(getCity());\n userProfile.setZipcode(getZipcode());\n userProfile.setCountry(getCountry());\n userProfile.setTitle(getTitle());\n userProfile.setName(getName());\n userProfile.setFirstName(getFirstName());\n userProfile.setLastName(getLastName());\n userProfile.setUsername(getUsername());\n userProfile.setGender(getGender());\n userProfile.setPoints(getPoints());\n userProfile.setNotifyReportDue(isNotifyReportDue());\n }", "@Override\n\tpublic void updateProfile(UsersDto dto) {\n\t\tsession.update(\"users.updateProfile\", dto);\n\t}", "public void setProfile(MetadataProfile profile) {\n\t\tthis.profile = profile;\n\t}", "@JsonProperty(\"loadUserProfile\")\r\n @JacksonXmlProperty(localName = \"load_user_profile\", isAttribute = true)\r\n public void setLoadUserProfile(String loadUserProfile) {\r\n this.loadUserProfile = loadUserProfile;\r\n }", "@Override\r\n public void updateProfile(Profile newProfile, Profile oldProfile) {\r\n profileDAO.updateProfile(oldProfile, newProfile);\r\n }", "public int getProfile_id() {\n return profileID;\n }", "@Override\n public void setActiveProfile(String profileName) {\n }", "public void setApplicationProfile( String iApplicationProfile )\n {\n mApplicationProfile = iApplicationProfile;\n }", "public void setProfileId(Integer profileId) {\n _profileId = profileId;\n }", "@ManyToOne(fetch = FetchType.LAZY)\n\t@JoinColumn(name = \"ID_SECURITY_PROFILE\", referencedColumnName = \"ID_SECURITY_PROFILE\", nullable = false)\n\tpublic Profile getProfile() {\n\t\treturn this.profile;\n\t}", "@Override\n\tpublic void saveUserProfile(UserProfile userProfile, boolean isOption,\n\t\t\tboolean isBan) throws Exception {\n\n\t}", "public void setSelectedProfile(String profile) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putString(\"SELECTED_PROFILE\", profile);\n\t\teditor.commit();\n\t}", "public void setProfileAttribute(String profileAttribute) {\r\r\n\t\tthis._profileAttribute = profileAttribute;\r\r\n\t}", "public void getUserProfile() {\n\t\tkeypad.UserProfiles.click();\n\t}", "public String getProfile() {\n return profile;\n }", "public UserProfile getUserProfile() {return userProfile;}", "@Override\n\tpublic UserProfile updateUserProfileSetting(UserProfile userProfile)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public void editTheirProfile() {\n\t\t\n\t}", "public void editProfile(String username, String fname, String lname, String email, String phoneno, String newpw) throws SQLException{\n\t if(!isLoggedIn())\n\t throw new IllegalStateException(\"MUST BE LOGGED IN FIRST!\"); \n\t callStmt = con.prepareCall(\" {call team5.customer_updateProfile_Proc(?,?,?,?,?,?,?,?,?)}\");\n\t callStmt.setString(1,phoneno);\n\t callStmt.setString(2,email);\n\t callStmt.setString(3,fname);\n\t callStmt.setString(4,lname);\n\t callStmt.setString(5,\"Y\");\n\t callStmt.setString(6,\"Y\");\n\t callStmt.setString(7,username);\n\t callStmt.setString(8,newpw);\n\t callStmt.setInt(9,this.id);\n\t callStmt.execute();\n\t \n\t callStmt.close();\n\t }", "public void setPROFILE_ID(BigDecimal PROFILE_ID) {\r\n this.PROFILE_ID = PROFILE_ID;\r\n }", "public static void setUserProfile(HttpSession session,\r\n\t\t\tUserProfile userProfile) {\r\n\t\tif (session == null)\r\n\t\t\tthrow new IllegalArgumentException(\r\n\t\t\t\t\t\"Cannot set an attribute on a null session\");\r\n\t\tif (userProfile == null)\r\n\t\t\tthrow new IllegalArgumentException(\"the value of the \"\r\n\t\t\t\t\t+ USER_PROFILE_NAME + \" attribute should not be null\");\r\n\t\tsession.setAttribute(USER_PROFILE_NAME, userProfile);\r\n\t}", "public Builder setProfile(com.google.protobuf2.Any value) {\n if (profileBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n profile_ = value;\n onChanged();\n } else {\n profileBuilder_.setMessage(value);\n }\n\n return this;\n }", "private void editProfile() {\n Log.d(TAG, \"Starting volley request to API\");\n try {\n String authority = String.format(Constants.AUTHORITY,\n Constants.TENANT,\n Constants.EDIT_PROFILE_POLICY);\n\n User currentUser = Helpers.getUserByPolicy(\n sampleApp.getUsers(),\n Constants.EDIT_PROFILE_POLICY);\n\n sampleApp.acquireToken(\n this,\n Constants.SCOPES.split(\"\\\\s+\"),\n currentUser,\n UiBehavior.SELECT_ACCOUNT,\n null,\n null,\n authority,\n getEditPolicyCallback());\n } catch(MsalClientException e) {\n /* No User */\n Log.d(TAG, \"MSAL Exception Generated while getting users: \" + e.toString());\n }\n\n }", "public static boolean upDateProfile(String userName ,String password,String firstName,String address\r\n\t\t\t, String phone , String lastName , String email) {\n User user = new User(userName,password,firstName,lastName,email,phone,address,0);\r\n if(DatabaseMethods.update_user(user)){\r\n return true;\r\n }\r\n else{\r\n setProfile();\r\n \r\n return false;\r\n }\r\n\t\t\r\n\t}", "public Builder setProfileURL(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n profileURL_ = value;\n onChanged();\n return this;\n }", "public void addUser(Profile profile) throws JSONException {\n\t\tofy().save().entity(profile).now();\n\t}", "public ProjectProfileBO getProfile()\r\n {\r\n return mProfile;\r\n }", "@Override\n\tpublic void saveUserSettingProfile(UserProfile userProfile)\n\t\t\tthrows Exception {\n\n\t}", "public void update(PublicProfile publicProfile) {\n delightDb.getPublicProfileQueries().updateProfile(\n publicProfile.firstName,\n publicProfile.lastName,\n publicProfile.profilePictureUrl,\n publicProfile.getHid()\n );\n }", "public void setProfileKey( Long profileKey ) {\n this.profileKey = profileKey;\n }", "@Override\r\n public void profileUpdate(User user) throws RemoteException, SQLException {\r\n property.firePropertyChange(\"gameRentalUpdate\", null, user);\r\n }", "@Override\r\n public int addProfile(Profile newProfile) {\r\n return profileDAO.addProfile(newProfile);\r\n }", "public Builder setProfileImage(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n profileImage_ = value;\n onChanged();\n return this;\n }", "private void updateStudentProfileInfo() {\n\t\t\n\t\tstudent.setLastName(sLastNameTF.getText());\n\t\tstudent.setFirstName(sFirstNameTF.getText());\n\t\tstudent.setSchoolName(sSchoolNameTF.getText());\n\t\t\n\t\t//Update Student profile information in database\n\t\t\n\t}", "private void addProfile(String profileName, String username, String server, int port)\r\n\t{\r\n\t\tps.setValue(count + PROFILE, profileName + \",\" + username + \",\" + server + \",\" + port);\r\n\t}", "public void setProfileImg() {\n }", "@Override\n\tpublic void updateUserProfile(User user) throws Exception {\n\n\t}", "public void saveOrUpdateProfile(){\n try {\n \n if(PersonalDataController.getInstance().existRegistry(username)){\n PersonalDataController.getInstance().update(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender), birthdate);\n }else{\n PersonalDataController.getInstance().create(username, staff_name, staff_surname, \n Integer.parseInt(id_type), \n id_number, imagePic, phone_number, mobile_number, email, birthdate, \n Integer.parseInt(gender));\n }\n } catch (GB_Exception ex) {\n LOG.error(ex);\n GBMessage.putMessage(GBEnvironment.getInstance().getError(32), null);\n }\n GBMessage.putMessage(GBEnvironment.getInstance().getError(33), null);\n }", "public void saveProfileEditData() {\r\n\r\n }", "public String getProfile();", "public void setProfileManager(ProfileManager profileManager) {\n _profileManager = profileManager;\n }", "@Override\n\tpublic boolean updateProfile(long profileId, Profile profile) {\n\t\treturn false;\n\t}", "@ModelNodeBinding(detypedName = \"profile\")\n\tpublic String profile() {\n\t\treturn this.profile;\n\t}", "@Test\r\n public void testUpdateUserProfileOfCreatedUser() throws Exception {\r\n UserVO user = new UserVO();\r\n user.setAlias(UUID.randomUUID().toString());\r\n user.setFirstName(UUID.randomUUID().toString());\r\n user.setLastName(UUID.randomUUID().toString());\r\n user.setEmail(UUID.randomUUID().toString() + \"@\" + UUID.randomUUID().toString());\r\n user.setLanguage(Locale.ENGLISH);\r\n user.setRoles(new UserRole[] { UserRole.ROLE_KENMEI_USER });\r\n user.setPassword(UUID.randomUUID().toString());\r\n User dbUser = ServiceLocator.instance().getService(UserManagement.class)\r\n .createUser(user, false, false);\r\n UserProfileVO userProfile = new UserProfileVO();\r\n ServiceLocator.instance().getService(UserProfileManagement.class)\r\n .updateUserProfile(dbUser.getId(), userProfile);\r\n }", "public final void mT__96() throws RecognitionException {\r\n try {\r\n int _type = T__96;\r\n int _channel = DEFAULT_TOKEN_CHANNEL;\r\n // InternalSpringConfigDsl.g:97:7: ( 'profile=' )\r\n // InternalSpringConfigDsl.g:97:9: 'profile='\r\n {\r\n match(\"profile=\"); \r\n\r\n\r\n }\r\n\r\n state.type = _type;\r\n state.channel = _channel;\r\n }\r\n finally {\r\n }\r\n }", "@WebMethod(action=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/getUserProfile\",\n operationName=\"getUserProfile\")\n @RequestWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfile\")\n @ResponseWrapper(targetNamespace=\"http://xmlns.oracle.com/apps/hcm/hwr/coreService/types/\",\n localName=\"getUserProfileResponse\")\n @WebResult(name=\"result\")\n @CallbackMethod(exclude=true)\n String getUserProfile(@WebParam(mode = WebParam.Mode.IN, name=\"profileInformation\")\n String profileInformation) throws ServiceException;", "public void edit_or_remove_profile_image(Connection con, int user_id, Blob profile_image )\n\t{\n\n\t\tResultSet rs; \n\t\tPreparedStatement pst;\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\tpst=con.prepareStatement(\" update basic_profile set personal_profile_photo=? where eid=?\" );\n\t\t\tpst.setBlob(1, profile_image);\n\t\t\tpst.setInt(2, user_id);\n\t\t\t\n\t\t\t}catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\t\n\t}", "public String getProfileSelect() {\n if (UrlHelper.getParameterBoolean(\"profileSelect\")) {\n setProfileSelectMode(true);\n } else {\n setProfileSelectMode(false);\n }\n return \"\";\n }", "public void setProfileId(String profileId) {\n this.profileId = profileId;\n }", "@javax.annotation.Nullable\n @ApiModelProperty(value = \"In Prince 9.0 and up you can set the PDF profile.\")\n @JsonProperty(JSON_PROPERTY_PROFILE)\n @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)\n\n public String getProfile() {\n return profile;\n }", "public static void writeUserProfile(Profile profile) throws IOException {\n\n try (BufferedWriter writer = Files.newBufferedWriter(Paths.get(USER_PROFILE));\n\n CSVPrinter csvPrinter = new CSVPrinter(writer, CSVFormat.EXCEL.withHeader(\"firstName\",\"lastName\",\"email\",\"password\",\"phoneNumber\",\"insuranceCompanyName\",\"insuranceCompanyFax\", \"insuranceCompanyEmail\"));\n ) {\n csvPrinter.printRecord(profile.getFirstName().toString(), profile.getLastName(), profile.getEmail(), profile.getPw(), profile.getPhoneNumber(), profile.getInsuranceCompanyName(), profile.getInsuranceCompanyFax(), profile.getInsuranceCompanyEmail());\n csvPrinter.flush();\n }\n }", "public Type setProfile(UriDt theValue) {\n\t\tmyProfile = theValue;\n\t\treturn this;\n\t}", "public void saveProfileCreateData() {\r\n\r\n }", "@PutMapping(\"/user/update/\") \n\tpublic userprofiles updateUserprofiles(@RequestParam String oldUsername, @RequestParam String oldPassword, @RequestParam String firstname, @RequestParam String lastname, @RequestParam String username, @RequestParam String password, @RequestParam String pic) {\n\t\treturn this.updateUser(oldUsername, oldPassword, firstname, lastname, username, password, pic);\n\t}", "public UserProfile() {\n this(DSL.name(\"user_profile\"), null);\n }", "@Override\n\t\tpublic void onUserProfileUpdate(User arg0) {\n\t\t\t\n\t\t}", "public void setUserSurname(String surname) {\n profile.setSurname(currentUser, surname);\n }", "@Override\n public void setProfileImage(String s, String s1) {\n }", "Profile getProfile( String profileId );", "public Type setProfile( String theUri) {\n\t\tmyProfile = new UriDt(theUri); \n\t\treturn this; \n\t}", "public void goToProfilePage() {\n\t\tUtil.element(userTab, driver).click();\n\t}", "@Override\n\tpublic UserProfileResponse updateProfile(User user) {\n\t\t// datasource is used to connect with database\n\t\tdatasource = getDataSource();\n\t\tjdbcTemplate = new JdbcTemplate(datasource);\n\t\tUserProfileResponse gcmres = new UserProfileResponse();\n\t\tlogger.info(\"IN updateProfile METHOD \");\n\t\t// check if user exists in database with user_id\n\t\tString sql = \"select count(1) from user where user_id = ? \";\n\t\tint result = jdbcTemplate.queryForObject(sql, new Object[] { user.getUserid() }, Integer.class);\n\t\t// if user exists, return userId\n\t\tlogger.info(\"Query Count : \" + result);\n\t\tif (result > 0) {\n\t\t\tString update_gcm_query = \"Update user set emailid = ?, mobileno = ?, username = ?, uuid = ?, appversion = ?, gcmregistartionkey = ? where user_id = ?\";\n\t\t\tint rowcount = jdbcTemplate.update(update_gcm_query, user.getEmailid(), user.getMobileno(),\n\t\t\t\t\tuser.getUsername(), user.getUuid(), user.getAppversion(), user.getGcmregistartionkey(),\n\t\t\t\t\tuser.getUserid());\n\t\t\tlogger.info(\"updateProfile Update Row Count : \" + rowcount);\n\t\t\tif (rowcount > 0) {\n\t\t\t\tgcmres.setStatus(true);\n\t\t\t\tgcmres.setMessage(\"User Profile IS Updated Successfully For User Id:\" + user.getUserid());\n\t\t\t\tlogger.info(\"User Profile IS Updated Successfully\");\n\t\t\t} else {\n\t\t\t\tgcmres.setStatus(false);\n\t\t\t\tgcmres.setMessage(\"User Profile Is Not Updated Successfully For User Id:\" + user.getUserid());\n\t\t\t\tlogger.info(\"User Profile Is Not Updated Successfully For User Id:\" + user.getUserid());\n\t\t\t}\n\n\t\t} else {\n\t\t\tgcmres.setStatus(false);\n\t\t\tgcmres.setMessage(\"User Profile Is Not Updated Successfully For User Id:\" + user.getUserid());\n\t\t\tlogger.info(\"User Profile Is Not Updated Successfully For User Id:\" + user.getUserid());\n\t\t}\n\n\t\treturn gcmres;\n\n\t}", "public void createEditProfileSession(Profile profile) {\n editor.putString(KEY_EMAIL, profile.getMail());\n editor.putString(KEY_NAME, profile.getName());\n editor.putString(KEY_NUMBER,profile.getMobile());\n editor.commit();\n }", "public void removeProfile(){\n Database db = Database.getInstance(context);\n db.getWritableDatabase().delete(PROFILE_TABLE, null, null);\n }", "public UserProfile(String alias) {\n this(DSL.name(alias), USER_PROFILE);\n }", "public void setProfileIndex(String index) {\n\t\tsharedPreferences = context.getSharedPreferences(\"Login\",\n\t\t\t\tcontext.MODE_PRIVATE);\n\t\tSharedPreferences.Editor editor = sharedPreferences.edit();\n\t\teditor.putString(\"PROFILEINDEX\", index);\n\t\teditor.commit();\n\t}", "public Boolean getProfile()\n {\n return profile;\n }", "public static void setActive(profile p){\n active = p;\n }", "public String getProfileAttribute() {\r\r\n\t\treturn _profileAttribute;\r\r\n\t}", "Update withSecurityProfile(SecurityProfile securityProfile);", "public static String updateProfile(String username) {\n AccountBean lb;\n\n try {\n Class.forName(\"org.apache.derby.jdbc.ClientDriver\");\n } catch (ClassNotFoundException e) {\n\n System.err.println(e.getMessage());\n System.exit(0);\n\n }//end of catch\nint rowCount = 0;\n try {\n String myDB = \"jdbc:derby://localhost:1527/LinkedUDB\";\n Connection DBConn = DriverManager.getConnection(myDB, \"itkstu\", \"student\");\n\n String queryString = \"UPDATE itkstu.userlogin \"\n + \"SET university = '\" + LoginBean.university\n + \"', email = '\" + LoginBean.email\n + \"', firstname = '\" + LoginBean.firstName\n + \"', lastname = '\" + LoginBean.lastName\n + \"', highschool = '\" + LoginBean.highSchool\n + \"', sports = '\" + LoginBean.sports\n + \"', major = '\" + LoginBean.major\n + \"', awards = '\" + LoginBean.awards\n \n + \"' WHERE USERNAME = '\" + username + \"'\";\n\n Statement stmt = DBConn.createStatement();\n rowCount = stmt.executeUpdate(queryString);\n\n DBConn.close();\n return null;\n\n } catch (SQLException e) {\n System.err.println(e.getMessage());\n }\n return null;\n }", "public String getProfileId() {\n return profileId;\n }", "public void setProfileProperties(Map<String, Object> profileProperties) {\n this.profileProperties = profileProperties;\n }", "@RequestMapping(value = \"/user/profile\", method = RequestMethod.POST)\n public String userSet(@Valid @ModelAttribute UserBean userBean, BindingResult result, HttpServletRequest request, Model model) {\n \tif (result.hasErrors()) {\n \t\tmodel.addAttribute(\"errors\", result.getAllErrors());\n \t\tsetModelAttributes(request, model);\n \t\treturn \"user_profile\";\n \t}\n \t\n \tAccount account = UserManager.getCurrentUser(request.getSession());\n \tUserManager.updateUser(account, userBean.getFirstName(), userBean.getLastName(), userBean.getPhoneNumber(), userBean.getPhoneCarrier());\n \t\n \t\n \tsetModelAttributes(request, model);\n \treturn \"user_profile\";\n }", "public boolean updateProfile(ApplicationUser applicationUser){\n boolean isUpdated = false;\n applicationUser = mongoDbConnector.updateProfile(applicationUser);\n if(applicationUser != null)\n isUpdated = true;\n return isUpdated;\n }", "@Override\r\n\t@Transactional(readOnly = false)\r\n\tpublic boolean updateUserProfile(UserProfileRemote profile) {\n\t\tUserProfile domain = retrieve(profile.getId());\r\n\t\tdomain = _userProfileConverter.convertRemoteToDomain(domain, profile);\r\n\t\tsaveOrUpdate(domain);\r\n\t\treturn true;\r\n\t}", "@Override\n public int saveUserProfile(UserProfile up) throws DAOException{\n\n try{\n Session session = HibernateConnectionUtil.getSession();\n Transaction tx = session.beginTransaction();\n if (up.getID() == -1) session.save(up);\n else session.saveOrUpdate(up);\n tx.commit();\n session.evict(up);\n session.close();\n return up.getID();\n }\n catch(HibernateException e){\n throw new DAOException(\"HibernateException: \" + e.getMessage());\n }\n }", "private void onProfileRefresh(Profile profile) {\n if (profile == null)\n throw new IllegalStateException(\"A profile cannot be null on successful profile refresh\");\n\n boolean ownProfile = userId.equals(Login.getUserId());\n\n profile.setUserId(userId);\n if (ownProfile)\n Login.setProfile(profile);\n\n profileImage.setImageBitmap(profile.getProfileImage());\n profile.setProfileImage(null); // save memory\n nameView.setText(profile.getName());\n String address = profile.getCity() + \", \" + profile.getState();\n addressView.setText(address);\n favouriteActivityView.setText(profile.getFavouriteSport());\n\n setupBioTextView(profile);\n\n onFriendsSync(profile);\n }", "ProfileStatusReader getProfileUpdate( String profileId );", "private void updateProfile() {\n usuario.setEmail(usuario.getEmail());\n usuario.setNome(etName.getText().toString());\n usuario.setApelido(etUsername.getText().toString());\n usuario.setPais(etCountry.getText().toString());\n usuario.setEstado(etState.getText().toString());\n usuario.setCidade(etCity.getText().toString());\n\n showLoadingProgressDialog();\n\n AsyncEditProfile sinc = new AsyncEditProfile(this);\n sinc.execute(usuario);\n }", "public void setProfileDescription( String desc )\n\t{\n\t\tmProfileDesc = desc;\n\t if( mProfilePage != null )\n\t mProfilePage.setProfileDescription( mProfileDesc );\n\t}", "private void setProfileImage() {\n if(mCurrentUser!= null && mCurrentUser.getProfileImageUrl() != null) {\n //Glide.with(getContext()).load(mCurrentUser.getProfileImageUrl())\n // .placeholder(R.drawable.ic_photo)\n // .error(R.drawable.ic_camera)\n // .fitCenter()\n // .into(mIvComposeUserProfilePicture);\n\n Picasso.with(getContext()).load(mCurrentUser.getProfileImageUrl())\n .transform(new RoundedCornersTransformation(2,2))\n .placeholder(R.drawable.ic_photo)\n .error(R.drawable.ic_camera)\n .into(mIvComposeUserProfilePicture);\n }\n }", "public Integer getProfileId() {\n return _profileId;\n }", "private void editUser(){\n getDeviceLocation();\n ProxyBuilder.SimpleCallback<User> callback = returnedUser-> responseEdit(returnedUser);\n ServerManager.editUserProfile(userManager,callback);\n }", "public void setProfilePicture(byte[] profile_picture){\n this.profile_picture = profile_picture;\n }", "private void createProfile(ParseUser parseUser){\n final Profile profile = new Profile();\n\n profile.setShortBio(\"\");\n profile.setLongBio(\"\");\n profile.setUser(parseUser);\n\n //default image taken from existing default user\n ParseQuery<ParseObject> query = ParseQuery.getQuery(\"Profile\");\n query.getInBackground(\"wa6q24VD5V\", new GetCallback<ParseObject>() {\n public void done(ParseObject searchProfile, ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Couldn't retrieve default image\");\n e.printStackTrace();\n return;\n }\n else {\n defaultImage = searchProfile.getParseFile(\"profileImage\");\n\n if (defaultImage != null)\n profile.setProfileImage(defaultImage);\n else\n Log.d(TAG, \"Default image is null\");\n }\n }\n });\n\n profile.saveInBackground(new SaveCallback() {\n @Override\n public void done(ParseException e) {\n if (e != null) {\n Log.e(TAG, \"Error while saving\");\n e.printStackTrace();\n return;\n }\n\n Log.d(TAG, \"Created and saved profile\");\n }\n });\n }", "@ModelAttribute(\"role_user\")\n public UserProfile initializeUserProfile() {\n return userProfileService.findByType(UserProfileType.USER.getUserProfileType());\n }", "public void addProfile(SQLDatabase database, Profile profile)\n\t{\n\t\tprofiles.put(profile.getName(), profile);\n\t\tsave(database);\n\t}" ]
[ "0.67980343", "0.6711539", "0.6492331", "0.6479213", "0.645414", "0.6407602", "0.64008695", "0.639671", "0.621693", "0.6205142", "0.61433494", "0.6115502", "0.5926296", "0.5900723", "0.58943963", "0.58741105", "0.58523715", "0.5845229", "0.583679", "0.5832835", "0.58107996", "0.577173", "0.5762773", "0.5747365", "0.56056285", "0.56055313", "0.56037974", "0.559506", "0.5558247", "0.5555994", "0.5540531", "0.5523757", "0.55212986", "0.5521014", "0.551312", "0.55007434", "0.54818004", "0.54756016", "0.54631716", "0.5454356", "0.54510546", "0.5440377", "0.54353034", "0.5431402", "0.5421305", "0.5416505", "0.5409654", "0.5402245", "0.5390501", "0.5375921", "0.53688395", "0.535884", "0.5358459", "0.53462696", "0.53453445", "0.53384846", "0.53312147", "0.5323846", "0.53128946", "0.53121954", "0.53104454", "0.5309791", "0.5308562", "0.53043014", "0.5297985", "0.52831316", "0.52825856", "0.52752864", "0.52752745", "0.5273856", "0.5262147", "0.5261869", "0.52565235", "0.52549803", "0.52531266", "0.52520454", "0.5251221", "0.5233809", "0.5232863", "0.5231475", "0.52235687", "0.52048916", "0.52048665", "0.52024436", "0.5202409", "0.51995194", "0.51972604", "0.5195877", "0.5188523", "0.5181513", "0.5175067", "0.51705855", "0.5168225", "0.5158474", "0.5152431", "0.5152066", "0.5148043", "0.5148032", "0.5147685", "0.5146179" ]
0.6282494
8
This method was generated by MyBatis Generator. This method returns the value of the database column user.gmt_create
public Date getGmtCreate() { return gmtCreate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Long getUserCreate() {\n return userCreate;\n }", "public Long getGmtCreate() {\n return gmtCreate;\n }", "public Long getCreateUser() {\r\n return createUser;\r\n }", "public Long getCreateUser() {\r\n return createUser;\r\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public Long getCreatetime() {\n return createtime;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Integer getCreateuser() {\n return createuser;\n }", "public Integer getCreateUser() {\n return createUser;\n }", "public Integer getCreateUser() {\n return createUser;\n }", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public String getCreateUser () {\r\n\t\treturn createUser;\r\n\t}", "public String getCreateUser()\r\n\t{\r\n\t\treturn createUser;\r\n\t}", "public String getCreateUser() {\r\n\t\treturn createUser;\r\n\t}", "public String getCreateUser() {\r\n\t\treturn createUser;\r\n\t}", "public Date getGmtCreate() {\r\n return gmtCreate;\r\n }", "public String getCreateUser() {\r\n return createUser;\r\n }", "public String getCreateUser() {\r\n return createUser;\r\n }", "public Long getCreateduser() {\n return createduser;\n }", "@ZAttr(id=790)\n public Date getCreateTimestamp() {\n return getGeneralizedTimeAttr(Provisioning.A_zimbraCreateTimestamp, null);\n }", "public java.sql.Timestamp getCreateTime () {\r\n\t\treturn createTime;\r\n\t}", "Long getUserCreated();", "public Long getCreateUserid() {\r\n\t\treturn createUserid;\r\n\t}", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "@JsonFormat(pattern=\"yyyyMMddHHmmss\",timezone = \"GMT+8\")\n\tpublic Date getCreateTs() {\n\t\treturn createTs;\n\t}", "public Date getTimeCreate() {\n return timeCreate;\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getDATE_CREATED() {\r\n return DATE_CREATED;\r\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public Date getCreatetime() {\n return createtime;\n }", "public String getCreatedUser() {\r\n return this.createdUser;\r\n }", "public String getTableGenerationCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_CREATE_ACTION;\n }", "public Date getCreateTimeDb() {\r\n\t\treturn createTimeDb;\r\n\t}", "public Long getCreationDate()\r\n\t{\r\n\t\treturn creationDate;\r\n\t}", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Date getCreatetime() {\r\n return createtime;\r\n }", "public Long getCreateAt() {\n return createAt;\n }", "public Date getCREATED_DATE() {\r\n return CREATED_DATE;\r\n }", "public Date getUserCreateTime() {\r\n return userCreateTime;\r\n }", "public String getCreateUser() {\n return createUser; \n }", "public Long getCreated() {\n if (created == null) {\n return Long.valueOf(0);\n } else {\n return created;\n }\n }", "public java.sql.Timestamp getCreated() {\n\treturn created;\n}", "public String getCreatetime() {\n return createtime;\n }", "public String getCreatetime() {\n return createtime;\n }", "public Long getCreateTime() {\n return createTime;\n }", "public Integer getCreateTime() {\n return createTime;\n }", "public String getCreatetime() {\r\n return createtime;\r\n }", "public Integer getCreateTime() {\r\n return createTime;\r\n }", "public String getTableGenerationDropCreateValue(){\n return PersistenceUnitProperties.SCHEMA_GENERATION_DROP_AND_CREATE_ACTION;\n }", "public Long getCreateTime() {\n\t\treturn createTime;\n\t}", "public String getCreatetime() {\n\t\treturn createtime;\n\t}", "public String getCreatetime() {\n\t\treturn createtime;\n\t}", "public Timestamp getCreateTime() {\n return createTime;\n }", "public java.lang.String getCreatetime () {\n\t\treturn createtime;\n\t}", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public String getCREATED_BY() {\r\n return CREATED_BY;\r\n }", "public Integer getCreateUserid() {\n return createUserid;\n }", "Date getCreationDate();", "public Date getCreationDate();", "String getCreated_at();" ]
[ "0.6688684", "0.654136", "0.64561427", "0.64561427", "0.6278172", "0.6278172", "0.6247608", "0.62423295", "0.62423295", "0.6237458", "0.62190413", "0.62190413", "0.6218813", "0.6218813", "0.6218813", "0.6218813", "0.62110156", "0.6207185", "0.6163072", "0.6163072", "0.6160825", "0.61075246", "0.61075246", "0.6100557", "0.60969806", "0.6095034", "0.6090638", "0.6079915", "0.60746175", "0.60746175", "0.60746175", "0.60746175", "0.60746175", "0.60746175", "0.60746175", "0.60746175", "0.60746175", "0.60746175", "0.60746175", "0.60746175", "0.60746175", "0.60704577", "0.6063761", "0.6062515", "0.6062515", "0.6062515", "0.60447603", "0.60447603", "0.60447603", "0.60447603", "0.60447603", "0.60447603", "0.60447603", "0.60447603", "0.6042448", "0.6036942", "0.60321796", "0.60308367", "0.60177696", "0.60177696", "0.60177696", "0.60031945", "0.5997343", "0.5995906", "0.59920216", "0.5982009", "0.59790444", "0.59772116", "0.59772116", "0.59737116", "0.59644634", "0.59562963", "0.59501183", "0.5942749", "0.59300846", "0.59200656", "0.59200656", "0.59086925", "0.5908495", "0.589967", "0.589967", "0.589967", "0.589967", "0.5898896", "0.5893793", "0.58896005", "0.58857405" ]
0.6166794
30
This method was generated by MyBatis Generator. This method sets the value of the database column user.gmt_create
public void setGmtCreate(Date gmtCreate) { this.gmtCreate = gmtCreate; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGmtCreate(Date gmtCreate) {\r\n this.gmtCreate = gmtCreate;\r\n }", "public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}", "public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}", "public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}", "public void setGmtCreate(Date gmtCreate) {\n\t\tthis.gmtCreate = gmtCreate;\n\t}", "public void setGmtCreate(Long gmtCreate) {\n this.gmtCreate = gmtCreate;\n }", "@PrePersist\n\tprivate void setDateCreation() {\n\t\tthis.dateCreation = ZonedDateTime.now();\n\n\t}", "public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }", "public void setCreateUser(Long createUser) {\r\n this.createUser = createUser;\r\n }", "public void setUserCreate(Long userCreate) {\n this.userCreate = userCreate;\n }", "private void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }", "public void setCreateUser(Integer createUser) {\n this.createUser = createUser;\n }", "public Long getCreateUser() {\r\n return createUser;\r\n }", "public Long getCreateUser() {\r\n return createUser;\r\n }", "public void setGmtCreated(Date gmtCreated) {\n this.gmtCreated = gmtCreated;\n }", "public Long getUserCreate() {\n return userCreate;\n }", "public void setCreateUser(String createUser)\r\n\t{\r\n\t\tthis.createUser = createUser;\r\n\t}", "public void setCreateUser (String createUser) {\r\n\t\tthis.createUser = createUser;\r\n\t}", "public void setCreateUser(String createUser) {\n this.createUser = createUser;\n }", "public void setCreateUser(String createUser) {\n this.createUser = createUser;\n }", "void setUserCreated(final Long userCreated);", "public void setCreateUser(String createUser) {\r\n\t\tthis.createUser = createUser;\r\n\t}", "public void setCreateUser(String createUser) {\r\n\t\tthis.createUser = createUser;\r\n\t}", "public void setCreateuser(Integer createuser) {\n this.createuser = createuser;\n }", "public Long getCreateUserid() {\r\n\t\treturn createUserid;\r\n\t}", "public Long getGmtCreate() {\n return gmtCreate;\n }", "public void setGmtLogin(Date gmtLogin) {\n this.gmtLogin = gmtLogin;\n }", "public String getCreateUser () {\r\n\t\treturn createUser;\r\n\t}", "public String getCreateUser()\r\n\t{\r\n\t\treturn createUser;\r\n\t}", "public void setCreateUser(entity.User value) {\n __getInternalInterface().setFieldValue(CREATEUSER_PROP.get(), value);\n }", "public Integer getCreateuser() {\n return createuser;\n }", "public void setUserCreateTime(Date userCreateTime) {\r\n this.userCreateTime = userCreateTime;\r\n }", "public String getCreateUser() {\r\n\t\treturn createUser;\r\n\t}", "public String getCreateUser() {\r\n\t\treturn createUser;\r\n\t}", "public Integer getCreateUser() {\n return createUser;\n }", "public Integer getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\r\n return createUser;\r\n }", "public String getCreateUser() {\r\n return createUser;\r\n }", "public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }", "public void setCreate_time(Date create_time) {\n this.create_time = create_time;\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public Long getCreateDatetime() {\n return createDatetime;\n }", "public void setCreatedByUser(long createdByUser);", "public Date getGmtCreate() {\r\n return gmtCreate;\r\n }", "void setCreationDate( String username, Date creationDate ) throws UserNotFoundException;", "public void setCreateDatetime(Long createDatetime) {\n this.createDatetime = createDatetime;\n }", "public void setCreateDatetime(Long createDatetime) {\n this.createDatetime = createDatetime;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getCreate_time() {\n return create_time;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public Date getGmtCreate() {\n return gmtCreate;\n }", "public void setCreateUser(User createUser)\r\n/* */ {\r\n/* 151 */ this.createUser = createUser;\r\n/* */ }", "public void setCreationDate(Date creationDate);", "private void setCreateTime(java.util.Date value) {\n __getInternalInterface().setFieldValue(CREATETIME_PROP.get(), value);\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public String getCreateUser() {\n return createUser;\n }", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public Date getGmtCreate() {\n\t\treturn gmtCreate;\n\t}", "public void setCreateduser(Long createduser) {\n this.createduser = createduser;\n }", "public String getCreateUser() {\n return createUser; \n }", "public void setCreateTime (java.sql.Timestamp createTime) {\r\n\t\tthis.createTime = createTime;\r\n\t}" ]
[ "0.6707578", "0.6528233", "0.6528233", "0.6528233", "0.6528233", "0.64711636", "0.61140573", "0.6094136", "0.6094136", "0.5981273", "0.5952548", "0.59263396", "0.59263396", "0.589909", "0.589909", "0.5855467", "0.5849238", "0.58451647", "0.57937956", "0.57477266", "0.57477266", "0.5745334", "0.5729244", "0.5729244", "0.5721352", "0.56857836", "0.5674895", "0.56680346", "0.56530243", "0.56361634", "0.5623878", "0.56077445", "0.5606138", "0.56033856", "0.56033856", "0.55989474", "0.55989474", "0.556864", "0.556864", "0.556788", "0.556788", "0.5566981", "0.5566981", "0.5551919", "0.55514216", "0.55341256", "0.5529566", "0.5529566", "0.5525248", "0.5525248", "0.5519581", "0.5519581", "0.5519581", "0.5519581", "0.5519581", "0.5519581", "0.5519581", "0.5519581", "0.5519581", "0.5519581", "0.5519581", "0.5519581", "0.5519581", "0.5519581", "0.55091244", "0.5507519", "0.55073494", "0.5498783", "0.5498783", "0.5498783", "0.5498783", "0.5498783", "0.5498783", "0.5498783", "0.5498783", "0.5498783", "0.5498783", "0.5498783", "0.5498783", "0.5498783", "0.5489834", "0.5489834", "0.5489834", "0.5489834", "0.5482846", "0.54648906", "0.5453735" ]
0.6675155
12
This method was generated by MyBatis Generator. This method returns the value of the database column user.gmt_modified
public Date getGmtModified() { return gmtModified; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Date getGmtModified() {\r\n return gmtModified;\r\n }", "public java.sql.Timestamp getModified() {\n return modified;\n }", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _userTracker.getModifiedDate();\n\t}", "public java.sql.Timestamp getModified() {\n\treturn modified;\n}", "public Date getGmtModify() {\n return gmtModify;\n }", "public String getDatemodified() {\n return datemodified;\n }", "public OffsetDateTime getModifiedTime()\n\t{\n\t\treturn (OffsetDateTime) this.getKeyValue(\"Modified_Time\");\n\n\t}", "public Long getLastModifiedUser() {\n\t\treturn this.lastModifiedUser;\n\t\t\n\t}", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public String getDatemodified() {\n\t\treturn datemodified;\n\t}", "public Long getModifieduser() {\n return modifieduser;\n }", "public Date getModifiedTime() {\n return modifiedTime;\n }", "public String getModifiedTime() {\n return modifiedTime;\n }", "public Date getDateModified();", "public Timestamp getModifiedDate() {\r\n return (Timestamp) getAttributeInternal(MODIFIEDDATE);\r\n }", "@Override\n public long getModificationTime() {\n if (exists()) {\n try {\n if (((Node)item).hasProperty(JcrConstants.JCR_LASTMODIFIED)) {\n return ((Node)item).getProperty(JcrConstants.JCR_LASTMODIFIED).getLong();\n }\n } catch (RepositoryException e) {\n log.warn(\"Error while accessing jcr:lastModified property\");\n }\n }\n // fallback: return 'now'\n return new Date().getTime();\n }", "public Integer getModifyTime() {\n\t\treturn modifyTime;\n\t}", "@ApiModelProperty(value = \"The event last modification date in the site timezone\")\n public String getModified() {\n return modified;\n }", "public Integer getLastmodifiedTime() {\r\n return lastmodifiedTime;\r\n }", "public Integer getModifiedUser() {\n\t\treturn modifiedUser;\n\t}", "public java.sql.Timestamp getLastModified() {\r\n\t\treturn new java.sql.Timestamp(file.lastModified());\r\n\t}", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "@JsonProperty(\"Date Modified\")\n\tString getModified() {\n\t\treturn getDate(modified);\n\t}", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "@java.lang.Override\n public long getModifiedTimestamp() {\n return modifiedTimestamp_;\n }", "public long getModifiedByUser();", "public String getModifyTime() {\n return modifyTime;\n }", "public java.util.Date getDateModified(){\r\n\t\treturn dateModified;\r\n\t}", "public java.sql.Timestamp getModified() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.sql.Timestamp) __getCache(\"modified\")));\n }", "public Long getLastModifiedTime() {\n return this.lastModifiedTime;\n }", "public Timestamp getLastModified() {\r\n\t\treturn lastModified;\r\n\t}", "public Timestamp getLastUpdatedDate() {\n return (Timestamp) getAttributeInternal(LASTUPDATEDDATE);\n }", "@Schema(example = \"1592180992\", required = true, description = \"Time when labeling information was last changed (timestamp)\")\n public Long getUpdatedAt() {\n return updatedAt;\n }", "public Long getLastModifiedDate()\r\n\t{\r\n\t\treturn lastModifiedDate;\r\n\t}", "long getLastUpdatedTime();", "public long getLastUpdatedTime() {\n return lastUpdatedTime;\n }", "public Timestamp getLastUpdated() {\n return lastUpdated;\n }", "public String getModifytime() {\n return modifytime;\n }", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public Date getModifiedBy() {\n return modifiedBy;\n }", "public Integer getModifiedUserId() {\n return this.modifiedUserId;\n }", "public Integer getModifiedUserId() {\n return this.modifiedUserId;\n }", "@Nullable\n public Date getModifiedTime() {\n return mModifiedTime == null ? null : new Date(mModifiedTime.getTime());\n }", "public Timestamp getUpdateddate() {\n return (Timestamp)getAttributeInternal(UPDATEDDATE);\n }", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getModifiedDate();", "public Date getLastModifyTime() {\n return lastModifyTime;\n }", "public Date getModifyTime() {\n return this.modifyTime;\n }", "public Timestamp getLastModifiedByTimestamp() {\n\t\treturn new Timestamp(this.lastModifiedByTimestamp.getTime());\n\t}", "public Long getUpdatedAt() {\n return updatedAt;\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Calendar getModifiedTime() {\n return this.modifiedTime;\n }", "public Date getModifyTime() {\r\n return modifyTime;\r\n }", "public Date getModifiedDate() {\n return modifiedDate;\n }", "public Date getUpdatedOn();", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "@ApiModelProperty(value = \"The event last modification date in UTC time\")\n public String getModifiedUtc() {\n return modifiedUtc;\n }", "public Date getDateModifed(){return dateModified;}", "public java.lang.String getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifieddate() {\n return modifieddate;\n }", "public String getMapLastUpdateDt() {\n\t\treturn this.mapLastUpdateDt;\n\t}", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "public Timestamp getCreateModifiedDate() {\n return createModifiedDate;\n }", "public Date getModifytime() {\n return modifytime;\n }", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "public Date getModifiedon()\n {\n return (Date)getAttributeInternal(MODIFIEDON);\n }", "public Date getModificationTime()\n {\n return modified;\n }", "@Override\n\tpublic java.util.Date getModifiedDate() {\n\t\treturn _dmGtStatus.getModifiedDate();\n\t}", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }", "public Date getLastUpdated() {\n return lastUpdated;\n }" ]
[ "0.7095091", "0.7067637", "0.70429504", "0.70429504", "0.70429504", "0.697635", "0.6963949", "0.69132996", "0.68948764", "0.68514764", "0.68439406", "0.68151695", "0.6808598", "0.67932665", "0.67549217", "0.67482185", "0.6693625", "0.66250956", "0.6624741", "0.6619395", "0.659652", "0.65821373", "0.6580006", "0.6569872", "0.65646416", "0.6551159", "0.6551136", "0.65432245", "0.65432245", "0.653687", "0.6528527", "0.6523818", "0.6517385", "0.65109825", "0.650556", "0.65046674", "0.6500614", "0.6500521", "0.6500216", "0.6499206", "0.6490093", "0.6489987", "0.6488443", "0.6482242", "0.6482242", "0.6482242", "0.6482242", "0.6480664", "0.6479989", "0.6479989", "0.64751244", "0.6474924", "0.6471668", "0.6471668", "0.6471668", "0.6467763", "0.6467725", "0.64658874", "0.6463719", "0.64594555", "0.64594555", "0.64571613", "0.6454512", "0.6449726", "0.64479846", "0.64470947", "0.64470947", "0.64470947", "0.64470947", "0.64470947", "0.64470947", "0.64470947", "0.64470947", "0.64470947", "0.6438898", "0.6434359", "0.6433619", "0.6432982", "0.643206", "0.64316696", "0.64316696", "0.64316696", "0.64215684", "0.642082", "0.6417381", "0.6413627", "0.64105344", "0.6409514", "0.6409514", "0.6409514" ]
0.70777303
9
This method was generated by MyBatis Generator. This method sets the value of the database column user.gmt_modified
public void setGmtModified(Date gmtModified) { this.gmtModified = gmtModified; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setGmtModified(Date gmtModified) {\r\n this.gmtModified = gmtModified;\r\n }", "public void setGmtModified(Date gmtModified) {\n\t\tthis.gmtModified = gmtModified;\n\t}", "public void setGmtModified(Date gmtModified) {\n\t\tthis.gmtModified = gmtModified;\n\t}", "public void setGmtModified(Date gmtModified) {\n\t\tthis.gmtModified = gmtModified;\n\t}", "public void setModified(java.sql.Timestamp tmp) {\n this.modified = tmp;\n }", "void setLastUpdatedTime();", "public void setGmtModify(Date gmtModify) {\n this.gmtModify = gmtModify;\n }", "public Date getGmtModified() {\r\n return gmtModified;\r\n }", "@Override\n\tpublic Date getModifiedDate() {\n\t\treturn _userTracker.getModifiedDate();\n\t}", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public Date getGmtModified() {\n return gmtModified;\n }", "public void setDateModified(Date dateModified);", "public Date getGmtModify() {\n return gmtModify;\n }", "public void setModifiedByUser(long modifiedByUser);", "public final void updateModifyDateTime() {\n \tm_modifyDate = System.currentTimeMillis();\n \tm_accessDate = m_modifyDate;\n }", "public void setModified(Date modified) {\r\n\t\tthis.modified = modified;\r\n\t}", "@Override\n\tpublic void setModifiedDate(Date modifiedDate) {\n\t\t_userTracker.setModifiedDate(modifiedDate);\n\t}", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "public Date getGmtModified() {\n\t\treturn gmtModified;\n\t}", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public void setModifiedDate(Date modifiedDate);", "public Date getModifiedBy() {\n return modifiedBy;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setModifiedDate(Date value) {\n this.modifiedDate = value;\n }", "public void setGmtUpdate(Date gmtUpdate) {\n this.gmtUpdate = gmtUpdate;\n }", "@Override\n\tpublic void setLastUpdatedTime(Date lastUpdated) {\n\n\t}", "public java.sql.Timestamp getModified() {\n return modified;\n }", "public Date getDateModifed(){return dateModified;}", "public void setModified(Date v) \n {\n \n if (!ObjectUtils.equals(this.modified, v))\n {\n this.modified = v;\n setModified(true);\n }\n \n \n }", "public void setModified(java.sql.Timestamp newValue) {\n\tthis.modified = newValue;\n}", "public void setModifieduser(Long modifieduser) {\n this.modifieduser = modifieduser;\n }", "public Long getModifieduser() {\n return modifieduser;\n }", "public Date getModified() {\r\n\t\treturn modified;\r\n\t}", "public void updateDateModified() {\n dateModified = DateTime.now();\n }", "public void setModifiedDate(Timestamp value) {\r\n setAttributeInternal(MODIFIEDDATE, value);\r\n }", "@Override\n\tpublic int modifyUser(User user) {\n\t\tuser.setUpdateTime(new Date());\n\t\treturn userDao.updateUserById(user);\n\t}", "public void setModifiedByUser(String modifiedByUser);", "public Date getModifyTime() {\r\n return modifyTime;\r\n }", "public Date getUpdatedOn();", "@ApiModelProperty(value = \"The event last modification date in the site timezone\")\n public String getModified() {\n return modified;\n }", "public java.sql.Timestamp getModified() {\n\treturn modified;\n}", "public Date getModifiedTime() {\n return modifiedTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return modifyTime;\n }", "public Date getModifyTime() {\n return this.modifyTime;\n }", "@Model\r\n\tprotected void setModificationTime() {\r\n modificationTime = new Date();\r\n }", "@NoProxy\n public void updateLastmod() {\n setLastmod(new LastModified(new DateTime(true)).getValue());\n }", "@ApiModelProperty(value = \"The event last modification date in UTC time\")\n public String getModifiedUtc() {\n return modifiedUtc;\n }", "public DateTime getUpdatedTimestamp() {\n\t\treturn getDateTime(\"sys_updated_on\");\n\t}", "public Date getMODIFIED_DATE() {\r\n return MODIFIED_DATE;\r\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "public Date getModifiedDate() {\r\n return modifiedDate;\r\n }", "@Override\n\tpublic void setModifiedDate(Date modifiedDate);", "@Override\n\tpublic void setModifiedDate(Date modifiedDate);", "public void setModifiedUser(Integer modifiedUser) {\n\t\tthis.modifiedUser = modifiedUser;\n\t}", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public Date getModifiedDate() {\n return this.modifiedDate;\n }", "public void setModified( java.sql.Timestamp newValue ) {\n __setCache(\"modified\", newValue);\n }", "public String getDatemodified() {\n return datemodified;\n }", "public Date getModifytime() {\n return modifytime;\n }", "public Date getDateModified();", "public Long getLastModifiedUser() {\n\t\treturn this.lastModifiedUser;\n\t\t\n\t}", "public void setModifiedTime(Date modifiedTime) {\n this.modifiedTime = modifiedTime;\n }", "public Integer getModifyTime() {\n\t\treturn modifyTime;\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public String getModifyTime() {\r\n\t\treturn modifyTime;\r\n\t}", "public Integer getModifiedUserId() {\n return this.modifiedUserId;\n }", "public Integer getModifiedUserId() {\n return this.modifiedUserId;\n }", "public Date getModifiedDate() {\n return modifiedDate;\n }", "public Date getModifiedDate();" ]
[ "0.691889", "0.6686567", "0.6686567", "0.6686567", "0.66246414", "0.65255123", "0.6513737", "0.6409134", "0.6384815", "0.6363812", "0.6363812", "0.6363812", "0.6363812", "0.6363812", "0.6363812", "0.6363812", "0.6363812", "0.6363812", "0.6363812", "0.6363812", "0.63519496", "0.6340236", "0.6318206", "0.6316982", "0.62571603", "0.62502056", "0.6240172", "0.6240172", "0.6240172", "0.62351906", "0.62351906", "0.62351906", "0.6166153", "0.6164049", "0.6164049", "0.6102349", "0.6040049", "0.6035267", "0.6025861", "0.6018121", "0.60132337", "0.6007247", "0.59950554", "0.5989852", "0.59875184", "0.59760886", "0.5964098", "0.59502906", "0.5906759", "0.58888537", "0.5886028", "0.58831835", "0.5871796", "0.5862057", "0.5862057", "0.5862057", "0.5862057", "0.5862057", "0.5862057", "0.5862057", "0.5862057", "0.5862057", "0.58524615", "0.5852292", "0.5846139", "0.5844811", "0.58372766", "0.58348626", "0.58328235", "0.58328235", "0.5826169", "0.5826169", "0.58221227", "0.5816565", "0.5816565", "0.5813511", "0.58103806", "0.58076495", "0.5799257", "0.5796807", "0.5794098", "0.5787595", "0.5785947", "0.5785947", "0.5785947", "0.5785947", "0.5784751", "0.5784751", "0.57837754", "0.5783233" ]
0.68592334
9
Returns the x coordinate.
public int getX() { return x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int x() {\r\n\t\treturn xCoord;\r\n\t}", "public int getX() {\r\n\t\treturn xcoord;\r\n\t}", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "public int getxCoord() {\r\n\t\treturn xCoord;\r\n\t}", "public int getxCoord() {\n\t\treturn xCoord;\n\t}", "public int getxCoordinate() {\n\t\treturn xCoordinate;\n\t}", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getxCoordinate() {\n return xCoordinate;\n }", "public int getX() {\n\t\t\n\t\treturn xPosition;\t\t// Gets the x integer\n\t}", "public int getX() {\n return xCoord;\n }", "protected int getxCoord() {\n\t\treturn xCoord;\n\t}", "public int getX()\r\n {\r\n return xCoord;\r\n }", "protected Number getX() {\n return this.xCoordinate;\n }", "public double getxCoord() {\n\t\treturn xCoord;\n\t}", "public double getxCoordinate() {\n return xCoordinate;\n }", "@Basic\n\tpublic double getXCoordinate() {\n\t\treturn this.x;\n\t}", "public float getX() { return xCoordinate;}", "public int getX() {\n if (this.coordinates == null)\n return -1;\n return this.coordinates.x();\n }", "public int getCoordX() \r\n {\r\n \treturn this.coordX;\r\n }", "public int getXCoordinate ()\n {\n return xCoordinate;\n }", "public int getX() {\n return this.coordinate.x;\n }", "public double getXCoordinate() {\n return xCoordinate;\n }", "public double getXPosition()\n\t{\n\t\treturn xPosition;\n\t}", "public double getX() {\r\n\t\t return this.xCoord;\r\n\t }", "public int getxPosition() {\n\t\treturn xPosition;\n\t}", "public final int getPositionX() {\r\n return (int) position.x();\r\n }", "public int getX() {\n return (int) xPos;\n }", "public final int getX()\n\t{\n\t\treturn pos.x;\n\t}", "public int getX()\r\n {\r\n \treturn xPos;\r\n }", "public int getPos_x(){\n\t\treturn pos_x;\n\t}", "public int getX() {\n return pos_x;\n }", "public double getX()\n\t{\n\t\treturn x;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's x-coordinate\n\t}", "public int getX()\n\t{\n\t\treturn m_nPosX;\n\t}", "public float getxPosition() {\n return xPosition;\n }", "public int getXPoint() {\r\n return this.x;\r\n }", "public int getxPos() \n\t{\n\t\treturn xPos;\n\t}", "public int getXPosition() {\n return xPosition;\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getXPosition()\n {\n return xPosition;\n }", "public int getxPos() {\n\t\treturn xPos;\n\t}", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public double getPositionX() {\n return positionX_;\n }", "public int getX(){\n\t\treturn this.x_location;\n\t}", "public final float getPositionX() {\r\n\t\treturn getState(false).getPositionX();\r\n\t}", "public float getX() {\n return pos.x;\n }", "public int getXPosition(){\n\t\treturn xPosition;\n\t}", "public int getX() {\n\t\treturn (int) x;\n\n\t}", "public float getX() {\r\n\t\treturn x;\r\n\t}", "public int getXPosition() {\n\t\treturn this.position.x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public int getX() {\n\t\treturn x;\n\t}", "public double getX() {\n return position.getX();\n }", "public float getX() {\n return x;\n }", "public float getX() {\n return x;\n }", "public float getX() {\n return x;\n }", "public float getX() {\n return x_;\n }", "public int getX() {\r\n return xpos;\r\n }", "public int getX() {\n return (int) Math.round(x);\n }", "public int getX()\n\t{\n\t\treturn mX;\n\t}", "double getXPosition();", "public float getX() {\n return this.x;\n }", "public int getX()\r\n\t{\r\n\t\treturn (int)x;\r\n\t}", "public int getX() {\n\t\treturn this.x;\n\t}", "public int getX() {\n\t\treturn this.x;\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public int getX() {\r\n\t\treturn x;\r\n\t}", "public float getX() {\r\n return x;\r\n }", "public int getPositionX(){\n\t\treturn positionx;\n\t}", "public int getXPosition() {\n return this.xPosition;\n }", "public int getX() {\n return x_;\n }", "public int getX() {\n return x_;\n }", "public int getX() {\n return x_;\n }", "public int getX() {\n return x_;\n }", "public int getX() {\n return x_;\n }", "public int getX() {\n return x_;\n }", "@Override\n\tpublic float getX() {\n\t\treturn this.x;\n\t}", "public double getX() {\n\t\t\treturn x;\n\t\t}", "public double getX() {\n\t\t\t\treturn x;\n\t\t\t}", "public int getX() { \n\t\treturn x;\n\t}", "public int getXPos() {\n\t\treturn xPos;\n\t}", "public float getX() {\n return x_;\n }" ]
[ "0.86971724", "0.85522085", "0.84759545", "0.84759545", "0.84737825", "0.84605116", "0.84428775", "0.84428775", "0.84372723", "0.842527", "0.83836216", "0.83780277", "0.83515143", "0.83336747", "0.82971114", "0.82911944", "0.8285763", "0.82676095", "0.82393634", "0.8215025", "0.82125103", "0.8195939", "0.8174893", "0.8156239", "0.81534266", "0.8143682", "0.8142824", "0.813771", "0.81312937", "0.8123947", "0.8100944", "0.8098022", "0.808482", "0.80485034", "0.8030715", "0.80274194", "0.8024693", "0.8015679", "0.8015679", "0.8005477", "0.8002158", "0.8002158", "0.80016303", "0.79966915", "0.79966915", "0.79949045", "0.7990647", "0.7989792", "0.7988782", "0.7985827", "0.79769313", "0.79483163", "0.79482496", "0.79419255", "0.79419255", "0.79419255", "0.79419255", "0.79419255", "0.79419255", "0.79419255", "0.79419255", "0.79419255", "0.79419255", "0.79419255", "0.79419255", "0.79419255", "0.79398155", "0.79378265", "0.79378265", "0.79378265", "0.79286057", "0.79239404", "0.79199487", "0.7913702", "0.7912547", "0.7909677", "0.79090196", "0.79076207", "0.79076207", "0.7907026", "0.7907026", "0.7907026", "0.7907026", "0.7907026", "0.7907026", "0.7907026", "0.79050916", "0.7902659", "0.7901025", "0.78998566", "0.78998566", "0.78998566", "0.78998566", "0.78998566", "0.78998566", "0.78950304", "0.7892493", "0.7888091", "0.78873926", "0.78865457", "0.7880731" ]
0.0
-1
Sets the x coordinate.
public void setX(int x) { this.x = x; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setX( int x ) {\n\t\t//not checking if x is valid because that depends on the coordinate system\n\t\tthis.x = x;\n\t}", "protected void setX(final Number x) {\n this.xCoordinate = x;\n }", "@Override\n\tpublic void setX(int x) {\n\t\txPos = x;\n\t}", "public void setX(int x)\n\t{\n\t\tthis.x = x;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's x-coordinate\n\t}", "public void setX(int xcoord) {\n\t\tx = xcoord;\n\t}", "public void setX(int x) {\n\tbaseXCoord = x;\n}", "void setX(int x) {\n position = position.setX(x);\n }", "public void setXCoordinate(int newValue)\n {\n x = newValue;\n }", "public void setX(int x) {\n synchronized (this.xLock) {\n this.movementComposer.setXPosition(x);\n }\n }", "public void setXPosition(double x)\n\t{\n\t\tthis.xPosition = x;\n\t}", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x) {\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int xCoord) {\n this.xCoord = xCoord;\n }", "public void setXPosition( int xCoordinate ) {\n xPosition = xCoordinate;\n }", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(int x) {\n\t\tthis.x = x;\n\t}", "public void setX(double val) {\r\n\t\t this.xCoord = val;\r\n\t }", "public void setX(int x)\n\t{\n\t\tgetWorldPosition().setX(x);\n\t}", "public void setX(int xpos) {\r\n this.xpos = xpos;\r\n }", "public void setX(int x){\r\n\t\tthis.x = x;\r\n\t}", "public void setX(int x) {\n\t\tthis.X = x;\n\t}", "public void setX(int newX)\r\n {\r\n xCoord = newX;\r\n }", "public void setX(double x) {\n\t\tthis.x = x;\n\t}", "default void setX(double x)\n {\n getAxis().setX(x);\n }", "public void setX(double x) {\n this.x = x;\n }", "public void setX(double x) {\n this.x = x;\n }", "public void setX(double x) {\n this.x = x;\n }", "public void setStartX(double x)\n {\n startxcoord=x; \n }", "public void setX(final int x) {\n\n this.x = x;\n }", "public void setX(float x) {\r\n\t\tthis.x = x;\r\n\t}", "@Override\n\tpublic void setX(float x) \n\t{\n\t\t_x = x;\n\t}", "public void setX(double x) {\n this.x = x;\r\n }", "public void setX(int x) {\n this.x = x;\r\n }", "public void setX(double x)\n\t{\n\t\tthis.x = x;\n\t}", "public void setX(float x) {\n this.x = x;\n }", "public PlotPosition setX( double x )\n {\n return setX( x, 1 );\n }", "public void setXCoordinate(int xCoordinate)\n {\n if (xCoordinate >= 0)\n {\n this.xCoordinate = xCoordinate;\n }\n else \n {\n this.xCoordinate = 0;\n }// end of if (xCoordinate >= 0)\n }", "public void setxCoordinate(int xCoordinate) {\n this.xCoordinate = xCoordinate;\n }", "public void setXLoc(int xLoc){\n myRectangle.setX(xLoc);\n }", "public void setxPos(int xPos) {\r\n \tthis.xPos = xPos;\r\n }", "public void setX(double x)\n {\n this.x = x;\n }", "@Override\r\n\tpublic void setX(float x) {\n\t\t\r\n\t}", "public void setX(double point) {\n this.x = point;\n }", "public void setX(int x) {\r\n this.x = x;\r\n\r\n this.slot = Slot.fromXY(x, getY());\r\n }", "public void setX(Float x) {\n\t\tthis.x = x;\n\t}", "void setX(int newX) {\n this.xPos = newX;\n }", "public void setX(double value) {\n\t\t\t\tthis.x = value;\n\t\t\t}", "public void setX(double value) {\n this.x = value;\n }", "public void setX(double x){\n this.x = x;\n }", "public void setX(double x){\n this.x = x;\n }", "public void setX(int x)\n {\n this.x = x;\n }", "public void setX(double value) {\n\t\tthis.x = value;\n\t}", "public void setX(double x)\r\n\t{\t\r\n\t\tvirtualDxfPoint.setTransformationX(x);\r\n\t\tAnchor.setX(x);\r\n\t}", "@Override\n\tpublic void setX(float x) {\n\n\t}", "@Override\n\tpublic void setX(int x) {\n\n\t}", "public void setX(float x) {\r\n\t\tleft = x - width / 2;\r\n\t}", "public void setX(int x)\r\n {\r\n this.x = x;\r\n }", "public void setX(float x)\n {\n getBounds().offsetTo(x - positionAnchor.x, getBounds().top);\n notifyParentOfPositionChange();\n conditionallyRelayout();\n }", "public void setXCoordinates(double newX) { this.xCoordinates = newX; }", "public void setX(int x ){\n if(x>0){\n this.x=x;\n }\n \n }", "public void setXPos(int x) {\n // from MoveEventHandler\n // convert to real x coord\n // x = xP * (xmaxr - xminR) / (xmaxP - xminP)\n double tmp = config.getMaximumRealX() + (x - config.getMaximumPixelX())*(config.getMaximumRealX() - config.getMinimumRealX())/(config.getMaximumPixelX() - config.getMinimumPixelX());\n xpos.setText(formatter.format(tmp));\n }", "@Override\n\tpublic void setX(int x) {\n\t\t\n\t}", "public void setxCoordinate(double xCoordinate) {\n this.xCoordinate = xCoordinate;\n }", "public void setX(int xPos){\t\t\n\t\tx = new Integer(xPos);\n\t}", "public final MotionUpdateEvent setX(double x) {\n pos.setX(x);\n return this;\n }", "public void setxPosition(int xPosition) {\n\t\tthis.xPosition = xPosition;\n\t}", "public void setX(double value) {\n origin.setX(value);\n }", "void setX(float x) {\n _x = x;\n }", "public void setX(int x){\n this.x = x;\n }", "public void setX(int x){\n this.x = x;\n }", "public void setX(int x){\n this.x = x;\n }", "public void setX(int x){\n this.x = x;\n }", "public void setXCoordinate(double xCoordinate) {\n this.xCoordinate = xCoordinate;\n }", "public void setxPos(int xPos) \n\t{\n\t\tthis.xPos = xPos;\n\t}", "public void setX(int x){ xPosition = x; }", "public void setXPos(int xPos) {\r\n\t\tthis.xPos = xPos;\r\n\t}", "public void setxPos(int xPos) {\n\t\tthis.xPos = xPos;\n\t}", "void setX(double x){\r\n\t\tthis.x=x;\r\n\t}", "public void setX(double pX) {\n mX = pX;\n }", "public void setXPos(int xPos) {\n\t\tthis.xPos=xPos;\n\t}", "public void setxCoord(int xCoord) {\n\t\tthis.xCoord = xCoord;\n\t}", "public void setX(float x){\n hitBox.offsetTo(x,hitBox.top);\n //this.x=x;\n }", "@Override\r\n\tpublic void setPositionX(int x) {\n\t\tif (!(x >= 0))\r\n\t\t\tthrow new PreConditionError(\"Error PreCondition: x >= 0\");\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\tsuper.setPositionX(x);\r\n\r\n\t\tcheckInvariant();\r\n\r\n\t\t// post: getPositionX() == x\r\n\t\tif (!(getPositionX() == x))\r\n\t\t\tthrow new PostConditionError(\"Error PostCondition: getPositionX() == x\");\r\n\t}", "public void setPositionX(float x) {\n\t\tthis.position.set(x, this.position.y, 0);\n\t}", "public void setStartPoint(int x) {\n\t\tthis.x = x;\n\n\t}", "public void setX(double x) throws IllegalArgumentException {\n\t\tif (!isValidX(x)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.x = x;\n\t}", "public void setX(int position) {\r\n\t\tif(position<5 && position>=0) {\r\n\t\t\tthis.xcoord = position;\r\n\t\t}\r\n\t\telse {\r\n\t\t\trandomX();\r\n\t\t}\r\n\t}", "public void setX(int index, float x) {\n\t\tpoints.get(index).setX(x);\n\t}", "public Builder setPositionX(double value) {\n bitField0_ |= 0x00000008;\n positionX_ = value;\n onChanged();\n return this;\n }", "public void setxCoord(Location l) {\n\t\t\n\t}", "public Builder setPositionX(double value) {\n bitField0_ |= 0x00000004;\n positionX_ = value;\n onChanged();\n return this;\n }", "public Builder setPositionX(double value) {\n bitField0_ |= 0x00000040;\n positionX_ = value;\n onChanged();\n return this;\n }", "public final Point3D setX(double x)\n {\n m_jso.setX(x);\n\n return this;\n }", "public void setX(double x)\n\t\t{\n\t\t this.x[0] = x;\n\t\t}" ]
[ "0.87481", "0.8546123", "0.8511487", "0.8453639", "0.8312749", "0.827706", "0.82330173", "0.8216174", "0.8187381", "0.81740785", "0.8113074", "0.8113074", "0.8113074", "0.8113074", "0.8112025", "0.8103678", "0.8070222", "0.8070222", "0.8070222", "0.8070222", "0.8070222", "0.8068179", "0.8047153", "0.79850686", "0.7982536", "0.7975805", "0.79263866", "0.7911759", "0.7908846", "0.78855836", "0.78855836", "0.78855836", "0.7882339", "0.7879076", "0.7878454", "0.7878191", "0.7847877", "0.7829111", "0.7824361", "0.7818155", "0.78158593", "0.7805923", "0.7799869", "0.77976483", "0.777441", "0.7767689", "0.77576154", "0.775737", "0.7757331", "0.77098024", "0.7708783", "0.77031064", "0.7692965", "0.76806283", "0.76806283", "0.76647675", "0.76588845", "0.76462954", "0.7645195", "0.7619112", "0.76152164", "0.7603287", "0.7601933", "0.7600763", "0.75993544", "0.75843745", "0.758273", "0.75757205", "0.7547829", "0.7545124", "0.7543544", "0.7539184", "0.7537788", "0.7526564", "0.7526564", "0.7526564", "0.7526564", "0.7518845", "0.7509842", "0.7503969", "0.74926716", "0.7488254", "0.7465357", "0.7453676", "0.74090457", "0.740816", "0.73965484", "0.73682785", "0.7364306", "0.73313516", "0.7317064", "0.7294026", "0.72865754", "0.72544724", "0.7248683", "0.72479564", "0.72388923", "0.7226533", "0.7223832" ]
0.791014
29
Returns the y coordinate.
public int getY() { return y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int y() {\r\n\t\treturn yCoord;\r\n\t}", "protected Number getY() {\n return this.yCoordinate;\n }", "public int getY() {\r\n\t\treturn ycoord;\r\n\t}", "public int getyCoord() {\r\n\t\treturn yCoord;\r\n\t}", "public int getY() {\n return yCoord;\n }", "public int getY()\r\n {\r\n return yCoord;\r\n }", "public int getyCoord() {\n\t\treturn yCoord;\n\t}", "public double getyCoord() {\n\t\treturn yCoord;\n\t}", "public int getyCoordinate() {\n return yCoordinate;\n }", "public int getyCoordinate() {\n return yCoordinate;\n }", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\treturn y;\n\t}", "public int getY() {\n\t\t\n\t\treturn yPosition;\t\t// Gets the y integer\n\t}", "public int getY() {\r\n\t\treturn y;\r\n\t}", "public int getY() {\r\n\t\treturn y;\r\n\t}", "public int getY() {\r\n\t\treturn y;\r\n\t}", "public int getY() {\n return this.coordinate.y;\n }", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\n\t{\n\t\treturn y;\n\t}", "public int getY()\r\n\t{\r\n\t\treturn y;\r\n\t}", "public double getY() {\r\n\t\t return this.yCoord;\r\n\t }", "@Basic\n\tpublic double getYCoordinate() {\n\t\treturn this.y;\n\t}", "public int getY() {\n return y;\r\n }", "public int getY()\r\n\t{\r\n\t\treturn (int)y;\r\n\t}", "public int getY()\n\t{\n\t\treturn this.y;\n\t}", "public int getY()\n\t{\n\t\treturn this.y;\n\t}", "public int getY() {\r\n return y;\r\n }", "public int getY() {\r\n return y;\r\n }", "public double getyCoordinate() {\n return yCoordinate;\n }", "public int getY() {\n\t\treturn this.y;\n\t}", "public int getY() {\n\t\treturn this.y;\n\t}", "public int getY() {\n\t\treturn this.y;\n\t}", "public int getY() {\n return y_;\n }", "public int getY() {\n return y_;\n }", "public int getY() {\n return y_;\n }", "public int getY() {\n return y_;\n }", "public int getY() {\n return y_;\n }", "public int getY() {\r\n\t\treturn this.y;\r\n\t}", "public int getY() {\n return y_;\n }", "public int getY() {\n return y_;\n }", "public int getY() {\n return y_;\n }", "public int getY() {\n return y_;\n }", "public int getY() {\n return y_;\n }", "public double getY() {\n return y;\r\n }", "public double getY()\n\t{\t\n\t\treturn y;\t\t\t\t\t\t\t\t\t\t\t\t// Return point's y-coordinate\n\t}", "public double getY() {\r\n return y;\r\n }", "public int getY(){\r\n\t\treturn y;\r\n\t}", "public int getY()\n {\n return y;\n }", "public int getY()\n {\n return y;\n }", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public double getY() {\n\t\treturn y;\n\t}", "public int getY()\r\n\t{\r\n\t\treturn this.Y;\r\n\t}", "public double getY()\n\t{\n\t\treturn y;\n\t}", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public double getY() {\n return this.y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY() {\n return y;\n }", "public double getY(){\n\t\treturn y;\n\t}", "public int getY()\n {\n return this.y;\n }", "public final double getY() {\n return y;\n }", "public final int getY()\n\t{\n\t\treturn pos.y;\n\t}", "public double getY()\n {\n return y;\n }", "public int getY() {\r\n return this.y;\r\n }", "public final double getY() {\n return y;\n }", "public int getY() {\n return (int) Math.round(y);\n }", "public int getY(){\n\t\treturn y;\n\t}" ]
[ "0.8976905", "0.89298165", "0.8875568", "0.88092124", "0.880383", "0.87972784", "0.8794167", "0.877774", "0.8770715", "0.8770715", "0.8769137", "0.8769137", "0.8769137", "0.8769137", "0.8769137", "0.8769137", "0.8769137", "0.8769137", "0.8769137", "0.8769137", "0.8769137", "0.8768952", "0.8768749", "0.8768749", "0.8768749", "0.87610686", "0.8757866", "0.8757866", "0.8757866", "0.8757866", "0.8757866", "0.8757866", "0.87536967", "0.8752015", "0.87471116", "0.87227666", "0.87224054", "0.87155086", "0.87155086", "0.8712472", "0.8712472", "0.87064093", "0.87004125", "0.87004125", "0.87004125", "0.8699159", "0.8699159", "0.8699159", "0.8699159", "0.8699159", "0.8682908", "0.8673121", "0.8673121", "0.8673121", "0.8673121", "0.8673121", "0.86699504", "0.86592484", "0.8651934", "0.8651171", "0.8650503", "0.8650503", "0.864949", "0.864949", "0.864949", "0.864949", "0.8644215", "0.8644072", "0.86437666", "0.86437666", "0.86437666", "0.86431247", "0.86431247", "0.86431247", "0.86431247", "0.86431247", "0.86431247", "0.8641615", "0.8640292", "0.863556", "0.863376", "0.86316746", "0.86266553", "0.8624131", "0.86231875", "0.8622894" ]
0.8697089
63
Sets the y coordinate.
public void setY(int y) { this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setY( int y ) {\n\t\t//not checking if y is valid because that depends on the coordinate system\n\t\tthis.y = y;\n\t}", "void setY(final Number y) {\n this.yCoordinate = y;\n }", "public void setY(int y)\n\t{\n\t\tthis.y = y;\t\t\t\t\t\t\t\t\t\t\t\t\t// Update point's y-coordinate \n\t}", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y) {\r\n\t\tthis.y = y;\r\n\t}", "@Override\n\tpublic void setY(int y) {\n\t\tyPos = y;\n\t}", "public void setY(int y){\r\n\t\tthis.y = y;\r\n\t}", "public void setY(int y){\n\t\tthis.y_location = y;\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int y) {\n\t\tthis.y = y;\n\t}", "public void setY(int y) {\n this.y = y;\r\n }", "public void setY(final int y) {\n\n this.y = y;\n }", "public void setY(int y) {\n\tbaseYCoord = y;\n}", "public void setY(int y)\n {\n this.y = y;\n }", "void setY(int y) {\n position = position.setY(y);\n }", "public void setY(double y) {\n this.y = y;\n }", "public void setY(double y) {\n this.y = y;\n }", "public void setY(double y) {\n this.y = y;\n }", "public void setY(double y) {\n this.y = y;\r\n }", "public void setY(int y) {\n\t\tthis.Y = y;\n\t}", "public void setY(double y)\n {\n this.y = y;\n }", "public void setY(double y) {\n\t\tthis.y = y;\n\t}", "public void setY(double y)\n\t{\n\t\tthis.y = y;\n\t}", "void setY(int y) {\n this.y = y;\n }", "public void setY(int value) {\n this.y = value;\n }", "public void setYPosition(double y)\n\t{\n\t\tthis.yPosition = y;\n\t}", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y){\n this.y = y;\n }", "public void setY(int y){\n this.y = y;\n }", "public void setY(double y){\n this.y = y;\n }", "public void setY(double y){\n this.y = y;\n }", "public void setY(long y){\n this.y = y;\n }", "public void setY(int y){ yPosition = y; }", "public void setY(int ycoord) {\n\t\ty = ycoord;\n\t}", "public void setY(int newY)\r\n {\r\n yCoord = newY;\r\n }", "public void setY(double value) {\n this.y = value;\n }", "public void setY(double val) {\r\n\t\t this.yCoord = val;\r\n\t }", "public void setY(int theY)\r\n {\r\n y = theY;\r\n }", "void setY(int newY) {\n this.yPos = newY;\n }", "@Override\n\tpublic void setY(int y) {\n\n\t}", "@Override\n\tpublic void setY(int y) {\n\t\t\n\t}", "public void setY(int y ){\n if(y>0){\n this.y=y;\n }\n \n }", "void setY(double y){\r\n\t\tthis.y=y;\r\n\t}", "public void setY(int yCoord) {\n this.yCoord = yCoord;\n }", "public void setYCoordinates(double newY) { this.yCoordinates = newY; }", "public void setY(int y) {\r\n this.y = y;\r\n\r\n this.slot = Slot.fromXY(getX(), y);\r\n }", "public void setY(float y) {\r\n\t\tthis.y = y;\r\n\t}", "public PlotPosition setY( double y )\n {\n return setY( y, 1 );\n }", "public void setY(float y) {\n this.y = y;\n }", "public void setY(Double y) {\n\t\tthis.y = y;\n\t}", "public void setYCoordinate(int newValue)\n {\n y = newValue;\n }", "void setY(float y) {\n _y = y;\n }", "default void setY(double y)\n {\n getAxis().setY(y);\n }", "@Override\n public void setY(int y) {\n this.y=y;\n }", "@Override\n\tpublic void setY(float y) \n\t{\n\t\t_y = y;\n\t}", "public void setY(int yPos){\t\t\n\t\ty = new Integer(yPos);\n\t}", "public void setY(int y) { this.y=y; }", "public void setYPosition( int yCoordinate ) {\n yPosition = yCoordinate;\n }", "public void setY(float y){\n this.y = y;\n }", "public void setY(int y) { loc.y = y; }", "public void setY(Float y) {\n\t\tthis.y = y;\n\t}", "@Override\r\n\tpublic void setY(float y) {\n\t\t\r\n\t}", "public void setY(double point) {\n this.y = point;\n }", "public void setY(double newY) {\r\n y = newY;\r\n }", "public void setyCoordinate(int yCoordinate) {\n this.yCoordinate = yCoordinate;\n }", "@Override\n\tpublic void setY(float y) {\n\n\t}", "public void setyPos(int yPos) {\r\n this.yPos = yPos;\r\n }", "private void setY(long value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n }", "public void setY(double y)\r\n\t{\t\r\n\t\tvirtualDxfPoint.setTransformationY(y);\r\n\t\tAnchor.setY(y);\r\n\t}", "public void setY(double pY) {\n mY = pY;\n }", "public void setyCoord(int yCoord) {\n\t\tthis.yCoord = yCoord;\n\t}", "public void setY(double value) {\n origin.setY(value);\n }", "public void setEndY(double y)\n {\n endycoord=y; \n }", "public void setY(Double y);", "public void setY(double y)\n\t\t{\n\t\t this.y[0] = y;\n\t\t}", "public void setyCoordinate(double yCoordinate) {\n this.yCoordinate = yCoordinate;\n }", "public void setY(int value)\n\t{\n\t\tgetWorldPosition().setY(value);\n\t}", "public final MotionUpdateEvent setY(double y) {\n pos.setY(y);\n return this;\n }", "public void setY( double Y)\r\n {\r\n curY = Y;\r\n }", "public void setY(double y) throws IllegalArgumentException {\n\t\tif (!isValidY(y)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tthis.y = y;\n\t}", "public void setYPos(int y) {\n // from MoveEventHandler\n // convert to real y coord\n // y = yP * (ymaxR - yminr) / (ymaxP - yminP)\n double tmp = config.getMaximumRealY() + (y - config.getMaximumPixelY())*(config.getMaximumRealY() - config.getMinimumRealY())/(config.getMaximumPixelY() - config.getMinimumPixelY());\n ypos.setText(formatter.format(tmp));\n }", "public void setY(int ypos) {\r\n this.ypos = ypos;\r\n }", "public void setyPos(int yPos) {\n\t\tthis.yPos = yPos;\n\t}", "public void setyPos(int yPos) \n\t{\n\t\tthis.yPos = yPos;\n\t}", "public void setYCoordinate (int yCoordinate)\n {\n if (yCoordinate >= 0)\n {\n this.yCoordinate = xCoordinate;\n }\n else \n {\n this.yCoordinate = 0;\n }// end of if (yCoordinate >= 0)\n }", "@Deprecated\n public final void setY(int y){\n this.y = y;\n }", "public void setyPosition(int yPosition) {\n\t\tthis.yPosition = yPosition;\n\t}", "public void setYPosition(int newY) {\n this.yPosition = newY;\n }", "public void setYCoordinate(double yCoordinate) {\n this.yCoordinate = yCoordinate;\n }", "public void setyCoord(Location l) {\n\t\t\n\t}", "public void setY(double d) {\n\t\tthis.y = d;\n\t}", "public void setYPos(int yPos) {\r\n\t\tthis.yPos = yPos;\r\n\t}", "public Builder setY(int value) {\n bitField0_ |= 0x00000002;\n y_ = value;\n onChanged();\n return this;\n }", "public void setPositionY(float y) {\n\t\tthis.position.set(this.position.x, y, 0);\n\t}" ]
[ "0.88450015", "0.880961", "0.8802495", "0.87572986", "0.87572986", "0.87572986", "0.87572986", "0.8749793", "0.8731236", "0.8696311", "0.8689779", "0.8689779", "0.8689779", "0.8689779", "0.8673167", "0.8666041", "0.86481184", "0.8641362", "0.8636967", "0.8622961", "0.8622961", "0.8622961", "0.8600829", "0.86006147", "0.85864127", "0.8582913", "0.8546146", "0.8539704", "0.8536955", "0.85182613", "0.85181916", "0.85181916", "0.85181916", "0.8503109", "0.8503109", "0.8486462", "0.84679383", "0.84671855", "0.8432763", "0.84267557", "0.8405901", "0.8402512", "0.838228", "0.8378556", "0.8367778", "0.83437383", "0.83336574", "0.8325869", "0.8312264", "0.8303621", "0.82971156", "0.82758397", "0.8266781", "0.8259711", "0.825711", "0.82557184", "0.8246473", "0.8225072", "0.8221856", "0.82214534", "0.8197882", "0.8179631", "0.81741107", "0.8162582", "0.81397176", "0.8129908", "0.81231946", "0.8108609", "0.80952555", "0.8079677", "0.80720687", "0.8070174", "0.8068485", "0.8048594", "0.8042552", "0.8042521", "0.8021584", "0.802131", "0.8020497", "0.8020446", "0.7971036", "0.7940854", "0.79403466", "0.79249597", "0.7923846", "0.79009753", "0.78846735", "0.78671384", "0.7850323", "0.7845137", "0.78423536", "0.7835442", "0.7828969", "0.77829015", "0.77669907", "0.77423656", "0.77374494", "0.77346945" ]
0.8718098
11
The class holding records for this type
@Override public Class<JournalEntryLineRecord> getRecordType() { return JournalEntryLineRecord.class; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RecordRecord() {\n\t\tsuper(org.jooq.examples.cubrid.demodb.tables.Record.RECORD);\n\t}", "public Class<?> getRecordClass() \n\t{\n\t return recordClass ;\n\t}", "public DataRecord() {\n super(DataTable.DATA);\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "@Override\n public Class<Record> getRecordType() {\n return Record.class;\n }", "public Record() {\n data = new int[DatabaseManager.fieldNames.length];\n }", "@Override\n public Class<PgClassRecord> getRecordType() {\n return PgClassRecord.class;\n }", "@Override\n public Class<ModelRecord> getRecordType() {\n return ModelRecord.class;\n }", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "public ARecord() {\n super(A.A);\n }", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "@Override\n\tpublic java.lang.Class<org.jooq.Record> getRecordType() {\n\t\treturn org.jooq.Record.class;\n\t}", "public ObjectRecord() {\n\t\tsuper(org.jooq.test.hsqldb.generatedclasses.tables.Object.OBJECT);\n\t}", "public WERecordDataModel()\n\t{\n\t\tsuper();\n\t\tsetEqFileName(RECORD_NAME);\n\t\tinitMessages();\n\t}", "public Record toRecord() {\n return new Record().setColumns(this);\n }", "DataHRecordData() {}", "@Override\n public Class<ResourcesRecord> getRecordType() {\n return ResourcesRecord.class;\n }", "public GO_RecordType() {\n }", "@Override\n public Class<QsRecord> getRecordType() {\n return QsRecord.class;\n }", "public ItemRecord() {\n super(Item.ITEM);\n }", "public Record getRecord() {\n return record;\n }", "public Record getRecord() {\n return record;\n }", "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "@Override\n\tpublic Class<Record> getRecordType() {\n\t\treturn Record.class;\n\t}", "@Override\n public Class<LinearmodelRecord> getRecordType() {\n return LinearmodelRecord.class;\n }", "@JsonProperty(\"Records\") abstract List<?> getRecords();", "public Item_Record() {\n super(Item_.ITEM_);\n }", "@Override\n public Class<MytableRecord> getRecordType() {\n return MytableRecord.class;\n }", "@Override\n protected Class<RecordType> getBoundType() {\n return RecordType.class;\n }", "@Override\n public Class<PatientRecord> getRecordType() {\n return PatientRecord.class;\n }", "public interface CollectionRecord {\n\n\t/**\n\t * Gets the id attribute of the CollectionRecord object\n\t *\n\t * @return The id value\n\t */\n\tpublic String getId();\n\n\n\t/**\n\t * Gets the setSpec attribute of the CollectionRecord object\n\t *\n\t * @return The setSpec value\n\t */\n\tpublic String getSetSpec();\n\n\n\t/**\n\t * Gets the metadataHandle attribute of the CollectionRecord object\n\t *\n\t * @param collectionSetSpec setSpec (e.g., \"dcc\")\n\t * @return The metadataHandle value\n\t * @exception Exception if there is a webservice error\n\t */\n\tpublic String getMetadataHandle(String collectionSetSpec) throws Exception;\n\n\n\t/**\n\t * Gets the handleServiceBaseUrl attribute of the CollectionRecord object\n\t *\n\t * @return The handleServiceBaseUrl value\n\t */\n\tpublic String getHandleServiceBaseUrl();\n\n\t/* \tpublic String getNativeFormat();\n\tpublic DcsDataRecord getDcsDataRecord();\n\tpublic MetaDataFramework getMetaDataFramework();\n\tpublic Document getLocalizedDocument(); */\n}", "@Override\n\tpublic Class<QuotesRecord> getRecordType() {\n\t\treturn QuotesRecord.class;\n\t}", "@Override\n public Class<AnalysisRecord> getRecordType() {\n return AnalysisRecord.class;\n }", "public Record() {\n this.symptoms = new LinkedHashSet<>();\n this.diagnoses = new LinkedHashSet<>();\n this.prescriptions = new LinkedHashSet<>();\n }", "public OpenERPRecordSet() {\r\n\t\trecords = new Vector<OpenERPRecord>();\r\n\t}", "@Override\n public Class<QuestionForBuddysRecord> getRecordType() {\n return QuestionForBuddysRecord.class;\n }", "public QuestionsRecord() {\n\t\tsuper(sooth.entities.tables.Questions.QUESTIONS);\n\t}", "public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }", "public GenericData.Record serialize() {\n return null;\n }", "public GenericTcalRecord() {\n this(-1);\n }", "public StudentRecord() {\n\t\tscores = new ArrayList<>();\n\t\taverages = new double[5];\n\t}", "@Override\n public Class<CarmodelRecord> getRecordType() {\n return CarmodelRecord.class;\n }", "@Override\n public Class<MemberRecord> getRecordType() {\n return MemberRecord.class;\n }", "public BookRecord() {\n super(Book.BOOK);\n }", "@Override\n public Class<SearchLogsRecord> getRecordType() {\n return SearchLogsRecord.class;\n }", "@Override\n public Class<EasytaxTaxationsRecord> getRecordType() {\n return EasytaxTaxationsRecord.class;\n }", "public SalesRecords() {\n super();\n }", "public SongRecord(){\n\t}", "@Override\n public Class<LangsRecord> getRecordType() {\n return LangsRecord.class;\n }", "public PersonRecord(){\n\t\tlistNames = new ArrayList<String>();\n\t}", "@Override\n public Class<RoomRecord> getRecordType() {\n return RoomRecord.class;\n }", "@Override\n public Class<CalcIndicatorAccRecordInstanceRecord> getRecordType() {\n return CalcIndicatorAccRecordInstanceRecord.class;\n }", "public ArrayList<Record> getRecords() {\r\n\t\treturn records;\r\n\t}", "@Override\n public Class<CourseRecord> getRecordType() {\n return CourseRecord.class;\n }", "@Override\n public Class<CabTripDataRecord> getRecordType() {\n return CabTripDataRecord.class;\n }", "@Override\n public Class<TripsRecord> getRecordType() {\n return TripsRecord.class;\n }", "public Item_Record(Integer _Id_, String name_, String description_, String code_, Double price_, Double retailPrice_, Double costPrice_, Object _Search_, String[] _Types_, String _LastModified_, Integer _Version_) {\n super(Item_.ITEM_);\n\n set(0, _Id_);\n set(1, name_);\n set(2, description_);\n set(3, code_);\n set(4, price_);\n set(5, retailPrice_);\n set(6, costPrice_);\n set(7, _Search_);\n set(8, _Types_);\n set(9, _LastModified_);\n set(10, _Version_);\n }", "@Override\r\n\tpublic List<T> getRecords() {\n\t\treturn null;\r\n\t}", "@Override\n public Class<StudentCourseRecord> getRecordType() {\n return StudentCourseRecord.class;\n }", "@Override\n public Class<ZTest1Record> getRecordType() {\n return ZTest1Record.class;\n }", "public OfcRecordRecord() {\n\t\tsuper(org.openforis.collect.persistence.jooq.tables.OfcRecord.OFC_RECORD);\n\t}", "public Class<gDBR> getRecordClass() \n {\n return this.rcdClass;\n }", "public RecordingRepository() {\r\n recordings = new ArrayList<>();\r\n recordingMap = new HashMap<>();\r\n recordingsByMeetingIDMap = new HashMap<>();\r\n update();\r\n }", "@Override\n public Class<GchCarLifeBbsRecord> getRecordType() {\n return GchCarLifeBbsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<nesi.jobs.tables.records.HourlyRecordRecord> getRecordType() {\n\t\treturn nesi.jobs.tables.records.HourlyRecordRecord.class;\n\t}", "@Override\n public Class<AccountRecord> getRecordType() {\n return AccountRecord.class;\n }", "public ExperimentRecord() {\n super(Experiment.EXPERIMENT);\n }", "public MealRecord() {\n\t\tsuper(Meal.MEAL);\n\t}", "@Override\n public Class<StaffRecord> getRecordType() {\n return StaffRecord.class;\n }", "public LateComingRecord() {\n\t\t}", "@Override\n public Class<AssessmentStudenttrainingworkflowRecord> getRecordType() {\n return AssessmentStudenttrainingworkflowRecord.class;\n }", "public UsersRecord() {\n super(Users.USERS);\n }", "@Override\n public Class<MyMenuRecord> getRecordType() {\n return MyMenuRecord.class;\n }", "public DataPersistence() {\n storage = new HashMap<>();\n idCounter = 0;\n }", "public AnswerRecord() {\n super(Answer.ANSWER);\n }", "public DatasetReader()\n\t{\n\t\treviews = new ArrayList<Review>();\n\t\tratings = new HashMap<Double,List<Double>>();\n\t\tproducts = new HashMap<String, Map<String,Double>>();\n\t\tproductRatings = new HashMap<String, List<Double>>();\n\t\treInstanceList = new ArrayList<ReviewInstance>();\n\t\treInstanceMap = new HashMap<String, ReviewInstance>();\n\t}", "@Override\n public Class<CommentsRecord> getRecordType() {\n return CommentsRecord.class;\n }", "@Override\n public Class<SpeedAlertsHistoryRecord> getRecordType() {\n return SpeedAlertsHistoryRecord.class;\n }", "@Override\n public Class<RatingsRecord> getRecordType() {\n return RatingsRecord.class;\n }", "@Override\n public Class<TOpLogsRecord> getRecordType() {\n return TOpLogsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<net.user1.union.zz.common.model.tables.records.ZzcronRecord> getRecordType() {\n\t\treturn __RECORD_TYPE;\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic RelationClass() {\n\t\t\n\t\tParser pars = new Parser(FILE_NAME); \t\t\t\t\t\t\t\n\t\tint bucketlength = 0;\n\t\tbucketlength = (int) (pars.getNumOfLines()*BUCKET_MULTIPLIER);\n\t\tbuckets = (Node<k,v>[]) new Node<?,?>[bucketlength];\n\t\tpars.process(this);\t\t\t\t\t\t\t\t\t\t\t\t\n\t}", "@Override\n\tpublic java.lang.Class<persistencia.tables.records.AsientoRecord> getRecordType() {\n\t\treturn persistencia.tables.records.AsientoRecord.class;\n\t}", "@Override\n public Class<StatsRecord> getRecordType() {\n return StatsRecord.class;\n }", "@Override\n\tpublic Class<QuestionRecord> getRecordType() {\n\t\treturn QuestionRecord.class;\n\t}", "public MetricSchemaRecord() { }", "public PedidoRecord() {\n super(Pedido.PEDIDO);\n }", "@Override\n public Class<DynamicSchemaRecord> getRecordType() {\n return DynamicSchemaRecord.class;\n }", "public PersonRecord() {}", "@Override\n\tpublic Class<RentalRecord> getRecordType() {\n\t\treturn RentalRecord.class;\n\t}", "public PagesRecord() {\n super(Pages.PAGES);\n }", "@Override\n public Class<AbsenceRecord> getRecordType() {\n return AbsenceRecord.class;\n }", "@Override\n public Class<RedpacketConsumingRecordsRecord> getRecordType() {\n return RedpacketConsumingRecordsRecord.class;\n }", "@Override\n\tpublic java.lang.Class<jooq.model.tables.records.TBasicSalaryRecord> getRecordType() {\n\t\treturn jooq.model.tables.records.TBasicSalaryRecord.class;\n\t}", "public YearlyRecord() {\n this.wordToCount = new HashMap<String, Integer>();\n this.wordToRank = new HashMap<String, Integer>();\n this.countToWord = new HashMap<Integer, Set<String>>();\n }" ]
[ "0.68004626", "0.66954035", "0.64103794", "0.6398801", "0.6398801", "0.6398801", "0.6398801", "0.6393993", "0.6354873", "0.6192012", "0.61258304", "0.61258304", "0.61258304", "0.6104736", "0.60470754", "0.60470754", "0.60470754", "0.6040716", "0.6029211", "0.6020949", "0.6008978", "0.60082155", "0.6006576", "0.59716636", "0.59703285", "0.5949182", "0.5949182", "0.59396815", "0.59396815", "0.5936131", "0.5935658", "0.5895888", "0.5895527", "0.5893964", "0.5884042", "0.58751285", "0.58681023", "0.5865894", "0.5864961", "0.5855157", "0.5851545", "0.58495414", "0.58392423", "0.58338994", "0.58154637", "0.58069575", "0.57927567", "0.578939", "0.57841045", "0.5779981", "0.5753099", "0.5741735", "0.57333666", "0.57321835", "0.5731796", "0.57317585", "0.572287", "0.5720141", "0.5712233", "0.56939065", "0.56927073", "0.5685293", "0.56847894", "0.5683809", "0.56834316", "0.56828403", "0.56666017", "0.56607187", "0.56579894", "0.5648655", "0.56438047", "0.5620551", "0.561873", "0.5609984", "0.55931836", "0.55871445", "0.5586237", "0.55789423", "0.55779636", "0.55737203", "0.55702287", "0.5561011", "0.5559403", "0.5543905", "0.5541634", "0.5536858", "0.5522634", "0.5517553", "0.5517258", "0.5512109", "0.5509594", "0.55070907", "0.5496529", "0.54921997", "0.5491354", "0.5486711", "0.5481696", "0.54758567", "0.5471066", "0.54659206" ]
0.55692416
81
Create a JOURNAL_ENTRY_LINE table reference
public JournalEntryLine() { this(DSL.name("JOURNAL_ENTRY_LINE"), null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JournalEntryLine(Name alias) {\n this(alias, JOURNAL_ENTRY_LINE);\n }", "private static DataBaseEntry createEntry(String line) {\n int eq = line.indexOf(\"=\");\n if (eq < 0) {\n System.err.println(\"not found '=' in line \" + line);\n }\n int hash = line.indexOf(\"#\");\n if (hash < 0) {\n System.err.println(\"not found '#' in line \" + line);\n }\n String file = line.substring(0, eq);\n String cwd = line.substring(eq+1, hash);\n String compileString = line.substring(hash+1);\n \n CompileLineEntryBuilder builder = new CompileLineEntryBuilder(file);\n for (String option : splitCommandLine(compileString)) {\n builder.handle(option);\n }\n return builder.createDataBaseEntry();\n }", "public JournalEntryLine(String alias) {\n this(DSL.name(alias), JOURNAL_ENTRY_LINE);\n }", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "public DataEntry createEntry(String tableName, DataEntry entry) {\n\t\tDataEntry oldEntry = null;\n\t\tif (tables.containsKey(tableName)) {\n\t\t\tTable table = tables.get(tableName);\n\t\t\toldEntry = table.create(entry.getProductId(), entry);\n\t\t\tdataToHistory(oldEntry);\n\t\t}\n\t\treturn oldEntry;\n\t}", "public static void insLns() throws ClassNotFoundException, SQLException {\r\n Statement s = DBConnect.connection.createStatement();\r\n for (int w = 1; w < 11; w++) {\r\n String insLines = \"INSERT INTO \" + StFrmNm\r\n + \"(Line) \"\r\n + \"VALUES(\"\r\n + \"'\" + w + \"'\"\r\n + \")\";\r\n s.execute(insLines);\r\n }\r\n }", "public Creator_4_tables() {\n// this.sourceUnits = sourceUnits;\n sourceUnits = new HashMap<String, PojoSourceCreatorUnit>();\n sourceTemplatePool.logEnvOnSrcCreate = app.cfg.getCfgBean().logEnvOnSrcCreate;\n env.setLogLeading(\"--cfenv--\");\n }", "@Test(enabled = false)\n public void testCreateExternalTable() throws Exception {\n String tableName = tableName();\n String colName = columnName();\n String pFile = createTestDFSPath(\"parentPath\");\n String query = String.format(\"create EXTERNAL table %s.%s(%s, %s) location '%s'\", DEFAULT_DB , tableName , colName + \" int\", \"name string\", pFile);\n\n runCommand(query);\n\n String tblId = assertTableIsRegistered(DEFAULT_DB, tableName, null, true);\n AtlasEntity tblEnity = atlasClientV2.getEntityByGuid(tblId).getEntity();\n List ddlList = (List) tblEnity.getRelationshipAttribute(ATTRIBUTE_DDL_QUERIES);\n\n assertNotNull(ddlList);\n assertEquals(ddlList.size(), 1);\n\n String processId = assertEntityIsRegistered(HiveDataTypes.HIVE_PROCESS.getName(), ATTRIBUTE_QUALIFIED_NAME, getTableProcessQualifiedName(DEFAULT_DB, tableName), null);\n\n AtlasEntity processsEntity = atlasClientV2.getEntityByGuid(processId).getEntity();\n\n assertEquals(processsEntity.getAttribute(\"userName\"), UserGroupInformation.getCurrentUser().getShortUserName());\n\n verifyTimestamps(processsEntity, \"startTime\");\n verifyTimestamps(processsEntity, \"endTime\");\n\n validateHDFSPaths(processsEntity, INPUTS, pFile);\n }", "public static void createTable() {\n\n // Create statement\n Statement statement = null;\n try {\n statement = Database.getDatabase().getConnection().createStatement();\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n // Attempt to create table\n try {\n statement.execute(\n \"CREATE TABLE \" + Constants.SANITATION_TABLE + \"(\" +\n \"requestID INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1),\" +\n \"nodeID VARCHAR(100) References \" + Constants.LOCATION_TABLE + \" (nodeID), \" +\n \"priority VARCHAR(10), \" +\n \"status VARCHAR(100), \" +\n \"description VARCHAR(100), \" +\n \"requesterID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"requestTime TIMESTAMP, \" +\n \"servicerID INT REFERENCES \" + Constants.USERS_TABLE + \"(userID), \" +\n \"claimedTime TIMESTAMP, \" +\n \"completedTime TIMESTAMP, \" +\n \"CONSTRAINT priority_enum CHECK (priority in ('LOW', 'MEDIUM', 'HIGH')), \" +\n \"CONSTRAINT status_enum CHECK (status in ('INCOMPLETE', 'COMPLETE')))\"\n );\n } catch (SQLException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public void createTable() throws LRException\n\t{\n\t\tgetBackground();\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\t// Create a new (empty) record\n\t\tcreate(new Hashtable(),myData);\n\t\tif (myData.record==null) throw new LRException(DataRMessages.nullRecord(getName()));\n\t\ttry\n\t\t{\n\t\t\tbackground.newTransaction();\n\t\t\tmyData.record.createNewTable(background.getClient(),true);\n\t\t}\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "TABLE createTABLE();", "public static String getCreateSQLString(){\n\t\treturn \"create table \" +TABLE_NAME_FAMILY_PLANNING_RECORDS +\" ( \"\n\t\t\t\t+SERVICE_REC_ID+\" integer primary key, \"\n\t\t\t\t+FamilyPlanningServices.SERVICE_ID +\" integer, \"\n\t\t\t\t+CommunityMembers.COMMUNITY_MEMBER_ID +\" integer, \"\n\t\t\t\t+SERVICE_DATE+\" text,\"\n\t\t\t\t+SCHEDULE_DATE+\" text, \"\n\t\t\t\t+QUANTITY+\" numberic ,\"\n\t\t\t\t+SERVICE_TYPE+\" integer default 0,\"\n\t\t\t\t+DataClass.REC_STATE+ \" integer \"\n\t\t\t\t+\")\";\n\t}", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine insertNewExternalOrderLine(int i);", "private HashGroupifyEntry createEntry(final int row, final int index, final int hash, final int line) {\n final HashGroupifyEntry entry = new HashGroupifyEntry(this.dataOutput, row, hash);\n entry.next = hashTableBuckets[index];\n entry.representative = line;\n hashTableBuckets[index] = entry;\n if (hashTableFirstEntry == null) {\n hashTableFirstEntry = entry;\n hashTableLastEntry = entry;\n } else {\n hashTableLastEntry.nextOrdered = entry;\n hashTableLastEntry = entry;\n }\n return entry;\n }", "public static void LineArchive() throws ClassNotFoundException, SQLException {\r\n Statement s1 = DBConnect.connection.createStatement();\r\n String writeLine = \"INSERT INTO completed_lines \"\r\n + \"(Line, Sku, Qty, Description1, Orig_Sku, Description2, Attribute2, Size2, Orig_Retail, Manuf_Inspection, New_Used, Reason, \"\r\n + \"Desc_Damage, Cust_Satisf, Warranty, Second_Cost, Form_Name, Ln_Date, Second_Sku_Vendor, Second_Sku_VPNum, Ord_C$, New_Sku, \"\r\n + \"First_DCS, Second_DCS) SELECT * FROM \" + InvAdj_Admin.frmNm + \" WHERE Sku IS NOT NULL\";\r\n \r\n // This inserts store and form name because I could not figure out how to include it in the insert statement above\r\n String setStrFmNm = \"UPDATE completed_lines \"\r\n // + \"SET Form_Name = '\" + InvAdj_Admin.frmNm + \"'\" + \",\"\r\n + \"SET Store = '\" + InvAdj_Admin.frmNm.split(\"_\")[1] + \"' \"\r\n + \"WHERE Sku IS NOT NULL AND Form_Name = '\"+ InvAdj_Admin.frmNm +\"'\";\r\n s1.execute(writeLine); \r\n s1.execute(setStrFmNm);\r\n }", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();", "protected void createTableRecordings() {\n\t\tString query = \n\t\t\t\t\"CREATE TABLE IF NOT EXISTS Recordings (\" \t\t\t\t\t\t\t+\n\t\t\t\t\"artist_name\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"track_name\t\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"CONSTRAINT unique_track PRIMARY KEY (artist_name, track_name)\" \t+\n\t\t\t\t\");\"\n\t\t\t\t;\n\t\tcreateTable(query);\n\t}", "public static void createTables( Connection connection ) throws IOException, SQLException {\n\n /*\n * gps log table\n */\n StringBuilder sB = new StringBuilder();\n sB.append(\"CREATE TABLE \");\n sB.append(TABLE_GPSLOGS);\n sB.append(\" (\");\n sB.append(GpsLogsTableFields.COLUMN_ID.getFieldName() + \" INTEGER PRIMARY KEY, \");\n sB.append(GpsLogsTableFields.COLUMN_LOG_STARTTS.getFieldName()).append(\" LONG NOT NULL,\");\n sB.append(GpsLogsTableFields.COLUMN_LOG_ENDTS.getFieldName()).append(\" LONG NOT NULL,\");\n sB.append(GpsLogsTableFields.COLUMN_LOG_LENGTHM.getFieldName()).append(\" REAL NOT NULL, \");\n sB.append(GpsLogsTableFields.COLUMN_LOG_ISDIRTY.getFieldName()).append(\" INTEGER NOT NULL, \");\n sB.append(GpsLogsTableFields.COLUMN_LOG_TEXT.getFieldName()).append(\" TEXT NOT NULL \");\n sB.append(\");\");\n String CREATE_TABLE_GPSLOGS = sB.toString();\n\n /*\n * gps log data table\n */\n sB = new StringBuilder();\n sB.append(\"CREATE TABLE \");\n sB.append(TABLE_GPSLOG_DATA);\n sB.append(\" (\");\n sB.append(GpsLogsDataTableFields.COLUMN_ID.getFieldName() + \" INTEGER PRIMARY KEY, \");\n sB.append(GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName()).append(\" REAL NOT NULL, \");\n sB.append(GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName()).append(\" REAL NOT NULL,\");\n sB.append(GpsLogsDataTableFields.COLUMN_DATA_ALTIM.getFieldName()).append(\" REAL NOT NULL,\");\n sB.append(GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName()).append(\" DATE NOT NULL,\");\n sB.append(GpsLogsDataTableFields.COLUMN_LOGID.getFieldName()).append(\" INTEGER NOT NULL \");\n sB.append(\"CONSTRAINT \");\n sB.append(GpsLogsDataTableFields.COLUMN_LOGID.getFieldName());\n sB.append(\" REFERENCES \");\n sB.append(TABLE_GPSLOGS);\n sB.append(\"(\" + GpsLogsTableFields.COLUMN_ID.getFieldName() + \") ON DELETE CASCADE\");\n sB.append(\");\");\n String CREATE_TABLE_GPSLOG_DATA = sB.toString();\n\n sB = new StringBuilder();\n sB.append(\"CREATE INDEX gpslog_id_idx ON \");\n sB.append(TABLE_GPSLOG_DATA);\n sB.append(\" ( \");\n sB.append(GpsLogsDataTableFields.COLUMN_LOGID.getFieldName());\n sB.append(\" );\");\n String CREATE_INDEX_GPSLOG_ID = sB.toString();\n\n sB = new StringBuilder();\n sB.append(\"CREATE INDEX gpslog_ts_idx ON \");\n sB.append(TABLE_GPSLOG_DATA);\n sB.append(\" ( \");\n sB.append(GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName());\n sB.append(\" );\");\n String CREATE_INDEX_GPSLOG_TS = sB.toString();\n\n sB = new StringBuilder();\n sB.append(\"CREATE INDEX gpslog_x_by_y_idx ON \");\n sB.append(TABLE_GPSLOG_DATA);\n sB.append(\" ( \");\n sB.append(GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName());\n sB.append(\", \");\n sB.append(GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName());\n sB.append(\" );\");\n String CREATE_INDEX_GPSLOG_X_BY_Y = sB.toString();\n\n sB = new StringBuilder();\n sB.append(\"CREATE INDEX gpslog_logid_x_y_idx ON \");\n sB.append(TABLE_GPSLOG_DATA);\n sB.append(\" ( \");\n sB.append(GpsLogsDataTableFields.COLUMN_LOGID.getFieldName());\n sB.append(\", \");\n sB.append(GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName());\n sB.append(\", \");\n sB.append(GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName());\n sB.append(\" );\");\n String CREATE_INDEX_GPSLOG_LOGID_X_Y = sB.toString();\n\n /*\n * properties table\n */\n sB = new StringBuilder();\n sB.append(\"CREATE TABLE \");\n sB.append(TABLE_GPSLOG_PROPERTIES);\n sB.append(\" (\");\n sB.append(GpsLogsPropertiesTableFields.COLUMN_ID.getFieldName());\n sB.append(\" INTEGER PRIMARY KEY, \");\n sB.append(GpsLogsPropertiesTableFields.COLUMN_LOGID.getFieldName());\n sB.append(\" INTEGER NOT NULL \");\n sB.append(\"CONSTRAINT \" + GpsLogsPropertiesTableFields.COLUMN_LOGID.getFieldName() + \" REFERENCES \");\n sB.append(TABLE_GPSLOGS);\n sB.append(\"(\");\n sB.append(GpsLogsTableFields.COLUMN_ID);\n sB.append(\") ON DELETE CASCADE,\");\n sB.append(GpsLogsPropertiesTableFields.COLUMN_PROPERTIES_COLOR.getFieldName()).append(\" TEXT NOT NULL, \");\n sB.append(GpsLogsPropertiesTableFields.COLUMN_PROPERTIES_WIDTH.getFieldName()).append(\" REAL NOT NULL, \");\n sB.append(GpsLogsPropertiesTableFields.COLUMN_PROPERTIES_VISIBLE.getFieldName()).append(\" INTEGER NOT NULL\");\n sB.append(\");\");\n String CREATE_TABLE_GPSLOGS_PROPERTIES = sB.toString();\n\n try (Statement statement = connection.createStatement()) {\n statement.setQueryTimeout(30); // set timeout to 30 sec.\n\n statement.executeUpdate(CREATE_TABLE_GPSLOGS);\n\n statement.executeUpdate(CREATE_TABLE_GPSLOG_DATA);\n statement.executeUpdate(CREATE_INDEX_GPSLOG_ID);\n statement.executeUpdate(CREATE_INDEX_GPSLOG_TS);\n statement.executeUpdate(CREATE_INDEX_GPSLOG_X_BY_Y);\n statement.executeUpdate(CREATE_INDEX_GPSLOG_LOGID_X_Y);\n\n statement.executeUpdate(CREATE_TABLE_GPSLOGS_PROPERTIES);\n } catch (Exception e) {\n throw new IOException(e.getLocalizedMessage());\n }\n\n }", "@Override\r\n public void createTable() {\n String sql = \"create table \" + TABLE_NAME + \"(\";\r\n sql += ID + \" INTEGER primary key,\";\r\n sql += NAME + \" VARCHAR(50),\";\r\n sql += LON + \" FLOAT(10,6),\";\r\n sql += LAT + \" FLOAT(10,6)\";\r\n sql += \")\";\r\n database.execSQL(sql);\r\n }", "public static String AssetRef_CreateTable()\n\t{\n\t\tString str = \"create table assetref (\" \n\t\t\t\t+ \"id INTEGER PRIMARY KEY,\"\n\t\t\t\t+ \"uniqueId string,\"\n\t\t\t\t+ \"path string,\"\n\t\t\t\t+ \"name string,\"\n\t\t\t\t+ \"size int,\"\n\t\t\t\t+ \"lastChanged time\"\n\t\t\t\t+ \")\";\n\t\treturn str;\t\n\t}", "ExpRunTable createRunTable(String name, UserSchema schema, ContainerFilter cf);", "public void buildLocation() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS location (location_name\"\n + \" TEXT, lat REAL, lon REAL PRIMARY KEY (location_name));\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }", "@Override\n protected void insertIntoEntryTable(BibEntry bibEntry) {\n StringBuilder insertIntoEntryQuery = new StringBuilder()\n .append(\"INSERT INTO \")\n .append(escape(\"ENTRY\"))\n .append(\"(\")\n .append(escape(\"TYPE\"))\n .append(\") VALUES(?)\");\n\n // This is the only method to get generated keys which is accepted by MySQL, PostgreSQL and Oracle.\n try (PreparedStatement preparedEntryStatement = connection.prepareStatement(insertIntoEntryQuery.toString(),\n Statement.RETURN_GENERATED_KEYS)) {\n\n preparedEntryStatement.setString(1, bibEntry.getType());\n preparedEntryStatement.executeUpdate();\n\n try (ResultSet generatedKeys = preparedEntryStatement.getGeneratedKeys()) {\n if (generatedKeys.next()) {\n bibEntry.getSharedBibEntryData().setSharedID(generatedKeys.getInt(1)); // set generated ID locally\n }\n }\n } catch (SQLException e) {\n LOGGER.error(\"SQL Error: \", e);\n }\n }", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "private void createLoginTable() {\r\n jdbcExecutor.executeQuery(new Work() {\r\n @Override\r\n public void execute(Connection connection) throws SQLException {\r\n connection.createStatement().executeUpdate(\"CREATE TABLE login ( id numeric(19,0), user_id numeric(19,0), timestamp TIMESTAMP )\");\r\n }\r\n });\r\n }", "public void createSourceOrderItemTable() throws SQLException {\n sourceExecuteWithLog(extraSQLCommand.getCreateTableOrderItem());\n }", "public int createDBEntry() {\n\t\tint i = 0;\n\t\ttry {\n\t\t\tConnection con;\n\t\t\tcon = ConnectionUtil.getConnection();\n\t\t\tStatement statement = con.createStatement();\n\n\t\t\tStringBuffer strBuf = new StringBuffer();\n\t\t\tstrBuf.append(\"insert into Ticket(ticketID,\");\n\t\t\tstrBuf.append(\"ticketDate, \");\n\t\t\tstrBuf.append(\"bugTitle, \");\n\t\t\tstrBuf.append(\"bugDescription, \");\n\t\t\tstrBuf.append(\"bugCategory, \");\n\t\t\tstrBuf.append(\"projectName, \");\n\t\t\tstrBuf.append(\"projectVersion, \");\n\t\t\tstrBuf.append(\"assignedToDev, \");\n\t\t\tstrBuf.append(\"priority, \");\n\t\t\tstrBuf.append(\"status, \");\n\t\t\tstrBuf.append(\"comments, \");\n\t\t\tstrBuf.append(\"targetDueDate, \");\n\t\t\tstrBuf.append(\"ticketCreatedBy \");\t\n\t\t\tstrBuf.append(\") values (last_insert_id(), \");\n\t\t\tstrBuf.append(\"'\" + this.ticketDate + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.bugTitle + \"', \");\t\t\t\t\n\t\t\tstrBuf.append(\"'\" + this.bugDescription + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.bugCategory + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.projectName + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.projectVersion + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.assignedToDevName + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.ticketPriority + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.ticketStatus + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.comments + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.targetDueDate + \"', \");\n\t\t\tstrBuf.append(\"'\" + this.TicketCreatedBy + \"'\");\n\t\t\tstrBuf.append(\")\");\n\n\t\t\ti = statement.executeUpdate(strBuf.toString());\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn i;\n\t}", "private void setupDb(){\n try {\n openConnection();\n s.executeUpdate(\"CREATE TABLE IF NOT EXISTS LIB (NAME text UNIQUE , TYPE text, LANGUAGE text, INTRUSIVE text, OPENSOURCE text)\");\n }catch (SQLException e) {\n System.err.println(e.getMessage());\n }finally {\n if (c != null){\n close(c);\n }\n }\n }", "private void initRowSource() {\n\t\tRowStructure rs = new RowStructure(6);\n\t\trs.add(\"EMP_ID\", StringType.get());\n\t\trs.add(\"EMP_FULLNAME\", StringType.get());\n\t\trs.add(\"Work Date\", StringType.get());\n\t\trs.add(\"Start Time\t\t\", StringType.get());\n\t\trs.add(\"End Time\t\t\", StringType.get());\n\t\trs.add(\"Time Worked (mins)\", StringType.get());\n\t\trowDefinition = new RowDefinition(-1, rs);\n\t}", "@Override\r\n public Db_db createTable (Db_table table)\r\n {\r\n Db_db db = null;\r\n String query = \"CREATE TABLE IF NOT EXISTS \"+ table.getName() + \" (\"; \r\n String primaryKeyName = null;\r\n Set<Map.Entry<String, Db_tableColumn>> tableEntries;\r\n List<String> listOfUniqueKey = Lists.newArrayList();\r\n \r\n if(curConnection_ != null)\r\n {\r\n try\r\n {\r\n tableEntries = table.getEntrySet();\r\n for(Map.Entry<String, Db_tableColumn> entry: tableEntries)\r\n {\r\n Db_tableColumn entryContent = entry.getValue();\r\n \r\n if(entryContent.isPrimary() && primaryKeyName == null)\r\n {\r\n primaryKeyName = entryContent.getName();\r\n }\r\n else if(entryContent.isPrimary() && primaryKeyName != null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(itsAttributeMapper_ == null)\r\n {\r\n throw new NumberFormatException();\r\n }\r\n \r\n if(entryContent.isUnique())\r\n {\r\n listOfUniqueKey.add(entryContent.getName());\r\n }\r\n \r\n String mappedAttribute = this.itsAttributeMapper_.MapAttribute(entryContent.getAttributeName());\r\n if(entryContent.getAttribute().isEnum())\r\n {\r\n mappedAttribute += entryContent.getAttribute().buildEnumValueListString();\r\n }\r\n query += entryContent.getName() + \" \" + mappedAttribute \r\n + (entryContent.isAutoIncreasmnet()?\" AUTO_INCREMENT \":\" \")\r\n + (entryContent.isUnique()?\" UNIQUE, \": \", \");\r\n }\r\n \r\n query += \"PRIMARY KEY (\" + primaryKeyName + \"));\";\r\n try (Statement sm = curConnection_.createStatement()) {\r\n sm.executeUpdate(query);\r\n db = this.curDb_;\r\n }\r\n \r\n }catch(NumberFormatException e){System.out.print(e);}\r\n catch(SQLException e){System.out.print(query);this.CurConnectionFailed();}\r\n }\r\n return db;\r\n }", "private LedgerEntry buildLedgerEntry( Account account, String[] tupule ) \n throws Exception {\n \n LedgerEntry entry = new LedgerEntry() ;\n entry.setAccount( account ) ;\n entry.setValueDate( new Date( VALUE_DT_SDF.parse( tupule[1] ).getTime() ) ) ;\n \n entry.setRemarks( tupule[2] ) ;\n \n Float withdrawalAmt = getFloatValue( tupule[4] ) ;\n Float depositAmt = getFloatValue( tupule[5] ) ;\n if( depositAmt > 0 ) {\n entry.setAmount( depositAmt ) ;\n }\n else if( withdrawalAmt > 0 ) {\n entry.setAmount( -withdrawalAmt ) ;\n }\n \n entry.setBalance( getFloatValue( tupule[6] ) ) ;\n entry.generateHash() ;\n \n return entry ;\n }", "Row createRow();", "Line createLine();", "public DataEntry create(long dataEntryId);", "protected abstract E createEntity(String line);", "TableInstance createTableInstance();", "void addNewEntry(BlogEntry entry) throws DAOException;", "private String getStringToCreateDB(String addings) {\n StringBuffer createDBStringBuffer = new StringBuffer();\n createDBStringBuffer\n .append(SQLFormater.CREATE_TABLE)\n .append(\" \")\n .append(tableName)\n .append(\"(\")\n .append(idFieldName)\n .append(\" \")\n .append(DBCreator.INTEGER_TYPE)\n .append(\" \")\n .append(SQLFormater.PRIMARY_KEY);\n mapFieldsTypes.forEach((kField, vType) -> { // add all table's fields\n createDBStringBuffer\n .append(\", \")\n .append(kField)\n .append(\" \")\n .append(vType);\n if(mapFieldsConstraints.containsKey(kField)) { // add constraint for a field\n createDBStringBuffer\n .append(\" \")\n .append(mapFieldsConstraints.get(kField));\n }\n });\n if (addings != null && !addings.isEmpty()) { // add reference\n createDBStringBuffer\n .append(\", \")\n .append(addings);\n }\n createDBStringBuffer.append(\")\");\n return createDBStringBuffer.toString();\n }", "private void createTables() {\n\t\tStatement s = null;\n\t\ttry {\n\t\t\ts = conn.createStatement();\n\t\t} catch (SQLException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\t\n\t\tString createString = \"CREATE TABLE targeteprs (\" +\n\t\t\t\t\t \"targetepr varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"processID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"operation varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"status varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"uniqueID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"correlationKey varchar(255) NOT NULL, \"+\n\t\t\t\t\t \"correlationValue varchar(255) NOT NULL)\";\n\t\t//System.out.println(\"CREATE: \" + createString);\n\t\tSystem.out.println(\"--> Created targetepr table.\");\n\t\ttry {\n\t\t\tthis.insertQuery(createString);\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\t\n\t\tcreateString = \"CREATE TABLE workflow (\" +\n\t\t\t\t\t \"uniqueID varchar(100) NOT NULL, \" +\n\t\t\t\t\t \"processID varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"operation varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"status varchar(255) NOT NULL, \" +\n\t\t\t\t\t \"correlationKey varchar(255) NOT NULL, \"+\n\t\t\t\t\t \"correlationValue varchar(255) NOT NULL)\";\n\t\t//System.out.println(\"CREATE: \" + createString);\n\t\tSystem.out.println(\"--> Created workflow table.\");\n\t\ttry {\n\t\t\tthis.insertQuery(createString);\n\t\t} catch (SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void createTables(){\n Map<String, String> name_type_map = new HashMap<>();\n List<String> primaryKey = new ArrayList<>();\n try {\n name_type_map.put(KEY_SINK_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_SINK_DETAIL, MyDatabase.TYPE_VARCHAR);\n primaryKey.add(KEY_SINK_ADDRESS);\n myDatabase.createTable(TABLE_SINK, name_type_map, primaryKey, null);\n }catch (MySQLException e){ //数据表已存在\n e.print();\n }\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_NAME, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_DETAIL, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_ADDRESS,MyDatabase.TYPE_VARCHAR);\n primaryKey.clear();\n primaryKey.add(KEY_NODE_PARENT);\n primaryKey.add(KEY_NODE_ADDRESS);\n myDatabase.createTable(TABLE_NODE, name_type_map, primaryKey, null);\n }catch (MySQLException e){\n e.print();\n }\n\n try {\n name_type_map.clear();\n name_type_map.put(KEY_NODE_ADDRESS, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_NODE_PARENT, MyDatabase.TYPE_VARCHAR);\n name_type_map.put(KEY_DATA_TIME, MyDatabase.TYPE_TIMESTAMP);\n name_type_map.put(KEY_DATA_VAL, MyDatabase.TYPE_FLOAT);\n primaryKey.clear();\n primaryKey.add(KEY_DATA_TIME);\n primaryKey.add(KEY_NODE_ADDRESS);\n primaryKey.add(KEY_NODE_PARENT);\n myDatabase.createTable(TABLE_DATA, name_type_map, primaryKey, null);\n }catch (MySQLException e) {\n e.print();\n }\n }", "public void buildLocations() {\n try (PreparedStatement prep = Database.getConnection().prepareStatement(\n \"CREATE TABLE IF NOT EXISTS locations (id TEXT, latitude\"\n + \" REAL, longitude REAL, name TEXT, PRIMARY KEY (id));\")) {\n prep.executeUpdate();\n } catch (final SQLException exc) {\n exc.printStackTrace();\n }\n }", "public TableCreation(Table table) {\n this.table = table;\n }", "FromTable createFromTable();", "public synchronized void criarTabela(){\n \n String sql = \"CREATE TABLE IF NOT EXISTS CPF(\\n\"\n + \"id integer PRIMARY KEY AUTOINCREMENT,\\n\"//Autoincrement\n// + \"codDocumento integer,\\n\"\n + \"numCPF integer\\n\"\n + \");\";\n \n try (Connection c = ConexaoJDBC.getInstance();\n Statement stmt = c.createStatement()) {\n // create a new table\n stmt.execute(sql);\n stmt.close();\n c.close();\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage()); \n// System.out.println(e.getMessage());\n }\n System.out.println(\"Table created successfully\");\n }", "public static void createRedshiftTable(String redshiftURL,\n Properties loginProperties,\n String tableName,\n List<String> fields) throws SQLException {\n Connection conn = DriverManager.getConnection(redshiftURL, loginProperties);\n Statement stmt = conn.createStatement();\n stmt.execute(\"CREATE TABLE \" + tableName + \" \" + toSQLFields(fields) + \";\");\n stmt.close();\n conn.close();\n }", "public void setup() {\r\n // These setters could be used to override the default.\r\n // this.setDatabasePolicy(new null());\r\n // this.setJDBCHelper(JDBCHelperFactory.create());\r\n this.setTableName(\"chm62edt_habitat_syntaxa\");\r\n this.setTableAlias(\"A\");\r\n this.setReadOnly(true);\r\n\r\n this.addColumnSpec(\r\n new CompoundPrimaryKeyColumnSpec(\r\n new StringColumnSpec(\"ID_HABITAT\", \"getIdHabitat\",\r\n \"setIdHabitat\", DEFAULT_TO_ZERO, NATURAL_PRIMARY_KEY),\r\n new StringColumnSpec(\"ID_SYNTAXA\", \"getIdSyntaxa\",\r\n \"setIdSyntaxa\", DEFAULT_TO_EMPTY_STRING,\r\n NATURAL_PRIMARY_KEY)));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"RELATION_TYPE\", \"getRelationType\",\r\n \"setRelationType\", DEFAULT_TO_NULL));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"ID_SYNTAXA_SOURCE\", \"getIdSyntaxaSource\",\r\n \"setIdSyntaxaSource\", DEFAULT_TO_EMPTY_STRING, REQUIRED));\r\n\r\n JoinTable syntaxa = new JoinTable(\"chm62edt_syntaxa B\", \"ID_SYNTAXA\",\r\n \"ID_SYNTAXA\");\r\n\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"NAME\", \"setSyntaxaName\"));\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"AUTHOR\", \"setSyntaxaAuthor\"));\r\n this.addJoinTable(syntaxa);\r\n\r\n JoinTable syntaxasource = new JoinTable(\"chm62edt_syntaxa_source C\",\r\n \"ID_SYNTAXA_SOURCE\", \"ID_SYNTAXA_SOURCE\");\r\n\r\n syntaxasource.addJoinColumn(new StringJoinColumn(\"SOURCE\", \"setSource\"));\r\n syntaxasource.addJoinColumn(\r\n new StringJoinColumn(\"SOURCE_ABBREV\", \"setSourceAbbrev\"));\r\n syntaxasource.addJoinColumn(new IntegerJoinColumn(\"ID_DC\", \"setIdDc\"));\r\n this.addJoinTable(syntaxasource);\r\n }", "public void add(AddressEntry addressEntry)\n {\n try{\n Class.forName(\"oracle.jdbc.OracleDriver\");\n Connection conn = DriverManager.getConnection(\"jdbc:oracle:thin\" +\n \":@adcsdb01.csueastbay.edu:1521:mcspdb.ad.csueastbay.edu\"\n , \"MCS1018\", \"y_WrlhyT\");\n // Statement stmt = conn.createStatement();\n\n PreparedStatement stmt = conn.prepareStatement(\"INSERT INTO \" +\n \"ADDRESSENTRYTABLE values(?,?,?,?,?,?,?,?, \" +\n \"default )\");\n stmt.setString(1, addressEntry.name.firstName);\n stmt.setString(2, addressEntry.name.lastName);\n stmt.setString(3, addressEntry.address.street);\n stmt.setString(4, addressEntry.address.city);\n stmt.setString(5, addressEntry.address.state);\n stmt.setInt(6, addressEntry.address.zip);\n stmt.setString(7, addressEntry.phone);\n stmt.setString(8, addressEntry.email);\n stmt.executeUpdate();\n\n conn.close();\n }\n catch(Exception e){System.out.println(e);}\n\n addressEntryList.addElement(addressEntry);\n }", "private ListStore<Line> createLines() {\n\t\tStyleInjectorHelper.ensureInjected(CommonGanttResources.resources.css(), true);\n\n\t\tLineProperties lineProps = GWT.create(LineProperties.class);\n\t\tListStore<Line> store = new ListStore<Line>(lineProps.key());\n\t\tString customCssStyle = CommonGanttResources.resources.css().todayLineMain();\n\t\tLine line = new Line(new Date(), \"Текушая дата :\" + new Date().toString(), customCssStyle);\n\t\tstore.add(line);\n\t\treturn store;\n\t}", "public void setup() throws SQLException {\n // Create ACARS table\n final String createTableSQL = \"CREATE TABLE IF NOT EXISTS ACARS (\"\n + \"date DATE, time TIME, frequency CHAR(7), \"\n + \"registration VARCHAR(7), flight CHAR(6), \"\n + \"mode CHAR, label CHAR(2), blockId CHAR, msgId CHAR(4), \"\n + \"text VARCHAR(255), \"\n + \"PRIMARY KEY (date, registration, flight, mode, label, blockId, msgId), \"\n + \"INDEX datetime_idx (date, time), \"\n + \"INDEX registration_idx (registration), \"\n + \"INDEX flight_idx (flight)\"\n + \")\";\n\n final Statement createTableStmt = connection.createStatement();\n createTableStmt.execute(createTableSQL);\n }", "public void doCreateTable();", "@Override\n public void createTable() {\n String[] TABLE_COLUMNS_ATLAS = {\n TableColumn.ChecklistTable.CID + \" INTEGER PRIMARY KEY AUTOINCREMENT\",\n TableColumn.ChecklistTable.PID + \" INTEGER NOT NULL\",\n TableColumn.ChecklistTable.REAL + \" INTEGER DEFAULT 0\",\n TableColumn.ChecklistTable.UNIT_ID + \" INTEGER\",\n TableColumn.ChecklistTable.WAREHOUSE_ID + \" INTEGER\",\n TableColumn.ChecklistTable.QUEUE_ID + \" INTEGER\",\n TableColumn.ChecklistTable.CATEGORIES_ID + \" INTEGER\",\n TableColumn.ChecklistTable.DATE + \" DATE\",\n TableColumn.ChecklistTable.RECORDTIME + \" DATE\",\n TableColumn.ChecklistTable.CONFIRM + \" INTEGER DEFAULT 0\"\n };\n\n //TODO: create table\n database.execSQL(makeSQLCreateTable(TABLE_NAME, TABLE_COLUMNS_ATLAS));\n\n addColumn(TableColumn.ChecklistTable.CONFIRM, \" INTEGER DEFAULT 0\");\n\n //TODO: show table\n XCursor cursor = selectTable();\n printData(TABLE_NAME, cursor);\n cursor.close();\n }", "public void createTable() {\r\n\t\tclient.createTable();\r\n\t}", "public void createDepartamentoTable() throws SQLException {\n\t\tString sql = \"create table departamento (piso int, depto varchar(100), expensas double,\ttitular varchar(100))\";\n\t\tConnection c = DBManager.getInstance().connect();\n\t\tStatement s = c.createStatement();\n\t\ts.executeUpdate(sql);\n\t\tc.commit();\n\t\t\t\n\t}", "protected abstract void initialiseTable();", "public void create(Hashtable fieldValues) throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tcreate(fieldValues,myData);\n\t\tgetBackground();\n\t\ttry { myData.record.save(background.getClient()); }\n\t\tcatch (LDBException e) { setStatus(e); }\n\t}", "int insert(AccountBankStatementImportJournalCreationEntity record);", "@Override\n public List<String> buildCreateTableStatements(TableId table,\n Collection<SinkRecordField> fields) {\n List<String> sqlQueries = new ArrayList<>();\n if (table.schemaName() != null) {\n sqlQueries.add(buildCreateSchemaStatement(table));\n }\n sqlQueries.add(super.buildCreateTableStatement(table, fields));\n\n Optional<SinkRecordField> timeField = getTimeField(fields);\n if (!timeField.isPresent()) {\n log.warn(\"Time column is not present. Skipping hypertable creation..\");\n } else {\n sqlQueries.add(buildCreateHyperTableStatement(table, timeField.get().name()));\n }\n\n return sqlQueries;\n }", "public void createDB() {\n\t\ttry {\n\t\t\tBufferedReader br= new BufferedReader(new FileReader(\"db_schema.txt\"));\n\t\t\tString line= null;\n\t\t\tStringBuilder sb= new StringBuilder();\n\t\t\twhile ((line=br.readLine())!=null){\n\t\t\t\tsb.append(line);\n\t\t\t\tif(sb.length()>0 && sb.charAt(sb.length()-1)==';'){//see if it is the end of one line of command\n\t\t\t\t\tstatement.executeUpdate(sb.toString());\n\t\t\t\t\tsb= new StringBuilder();\n\t\t\t\t}\n\t\t\t}\n\t\t\tbr.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void create(DataTableDef def) throws IOException;", "TarEntry CreateEntry(String name);", "public static void buildOfficeTable() {\n\t\tif (TableExists(\"office\"))\n\t\t\treturn;// if office table has been built, no need to build again\n\t\tConnect connectLocal = new Connect(\"local\", localDatabase);\n\t\tConnection localConnection = connectLocal.getConnection();\n\t\tConnect connectServer = new Connect(\"server\", serverDatabase);\n\t\tConnection serverConnection = connectServer.getConnection();\n\t\tResultSet rs;\n\t\tList<String> emails = new ArrayList<>();\n\t\ttry {\n\t\t\tStatement stmtserver = serverConnection.createStatement();\n\t\t\trs = stmtserver.executeQuery(\n\t\t\t\t\tString.format(\"select email from USER where office is not null and email is not null\"));\n\t\t\twhile (rs.next()) {\n\t\t\t\temails.add(rs.getString(1));\n\t\t\t}\n\t\t\tStatement stmtlocal = localConnection.createStatement();\n\t\t\t//System.out.println(emails.size());\n\t\t\tfor (int i = 0; i < emails.size(); i++) {\n\t\t\t\trs = stmtserver.executeQuery(String.format(\n\t\t\t\t\t\t\"select INFRASTRUCTURE.name from USER, INFRASTRUCTURE\"\n\t\t\t\t\t\t\t\t+ \" where USER.office=INFRASTRUCTURE.SEMANTIC_ENTITY_ID and USER.email='%s'\",\n\t\t\t\t\t\temails.get(i)));\n\t\t\t\twhile (rs.next()) {\n\t\t\t\t\tstmtlocal.executeUpdate(String.format(\"insert into office(email,office) value('%s','%s')\",\n\t\t\t\t\t\t\temails.get(i), rs.getString(1)));\n\t\t\t\t}\n\t\t\t}\n\t\t\trs.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tconnectLocal.close();\n\t\tconnectServer.close();\n\t}", "private void processCreateTable(int type) throws HsqlException {\n\n String token = tokenizer.getName();\n HsqlName schemaname =\n session.getSchemaHsqlNameForWrite(tokenizer.getLongNameFirst());\n\n database.schemaManager.checkUserTableNotExists(session, token,\n schemaname.name);\n\n boolean isnamequoted = tokenizer.wasQuotedIdentifier();\n int[] pkCols = null;\n int colIndex = 0;\n boolean constraint = false;\n Table t = newTable(type, token, isnamequoted, schemaname);\n\n tokenizer.getThis(Token.T_OPENBRACKET);\n\n while (true) {\n token = tokenizer.getString();\n\n switch (Token.get(token)) {\n\n case Token.CONSTRAINT :\n case Token.PRIMARY :\n case Token.FOREIGN :\n case Token.UNIQUE :\n case Token.CHECK :\n\n // fredt@users : check for quoted reserved words used as column names\n constraint = !tokenizer.wasQuotedIdentifier()\n && !tokenizer.wasLongName();\n }\n\n tokenizer.back();\n\n if (constraint) {\n break;\n }\n\n Column newcolumn = processCreateColumn();\n\n t.addColumn(newcolumn);\n\n if (newcolumn.isPrimaryKey()) {\n Trace.check(pkCols == null, Trace.SECOND_PRIMARY_KEY,\n newcolumn.columnName.name);\n\n pkCols = new int[]{ colIndex };\n }\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_COMMA)) {\n colIndex++;\n\n continue;\n }\n\n if (token.equals(Token.T_CLOSEBRACKET)) {\n break;\n }\n\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n HsqlArrayList tempConstraints = processCreateConstraints(t,\n constraint, pkCols);\n\n if (tokenizer.isGetThis(Token.T_ON)) {\n if (!t.isTemp) {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, Token.T_ON);\n }\n\n tokenizer.getThis(Token.T_COMMIT);\n\n token = tokenizer.getSimpleToken();\n\n if (token.equals(Token.T_DELETE)) {}\n else if (token.equals(Token.T_PRESERVE)) {\n t.onCommitPreserve = true;\n } else {\n throw Trace.error(Trace.UNEXPECTED_TOKEN, token);\n }\n\n tokenizer.getThis(Token.T_ROWS);\n }\n\n try {\n session.commit();\n\n Constraint primaryConst = (Constraint) tempConstraints.get(0);\n\n t.createPrimaryKey(null, primaryConst.core.mainColArray, true);\n\n if (primaryConst.core.mainColArray != null) {\n if (primaryConst.constName == null) {\n primaryConst.constName = t.makeSysPKName();\n }\n\n Constraint newconstraint =\n new Constraint(primaryConst.constName, t,\n t.getPrimaryIndex(),\n Constraint.PRIMARY_KEY);\n\n t.addConstraint(newconstraint);\n database.schemaManager.registerConstraintName(\n primaryConst.constName.name, t.getName());\n }\n\n for (int i = 1; i < tempConstraints.size(); i++) {\n Constraint tempConst = (Constraint) tempConstraints.get(i);\n\n if (tempConst.constType == Constraint.UNIQUE) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createUniqueConstraint(\n tempConst.core.mainColArray, tempConst.constName);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.FOREIGN_KEY) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createForeignKey(tempConst.core.mainColArray,\n tempConst.core.refColArray,\n tempConst.constName,\n tempConst.core.refTable,\n tempConst.core.deleteAction,\n tempConst.core.updateAction);\n\n t = tableWorks.getTable();\n }\n\n if (tempConst.constType == Constraint.CHECK) {\n TableWorks tableWorks = new TableWorks(session, t);\n\n tableWorks.createCheckConstraint(tempConst,\n tempConst.constName);\n\n t = tableWorks.getTable();\n }\n }\n\n database.schemaManager.linkTable(t);\n } catch (HsqlException e) {\n\n// fredt@users 20020225 - comment\n// if a HsqlException is thrown while creating table, any foreign key that has\n// been created leaves it modification to the expTable in place\n// need to undo those modifications. This should not happen in practice.\n database.schemaManager.removeExportedKeys(t);\n database.schemaManager.removeIndexNames(t.tableName);\n database.schemaManager.removeConstraintNames(t.tableName);\n\n throw e;\n }\n }", "public String createInsertStatement(String importTableName, JsonNode row, DataSourceConfig config) throws Exception {\n if (importTableName == null || importTableName.equals(\"\") || row == null) {\n throw new IllegalArgumentException(\"createInsertStatement: importTableName name or row are null or empty\");\n }\n\n StringBuilder columns = new StringBuilder(\"(\");\n StringBuilder values = new StringBuilder(\"(\");\n String transformedIdMrn = \"\";\n String transformedIdPpid = \"\";\n String transformedVisitId = \"\";\n String transformedVisitDate = \"\";\n String connectsAs = config.getConnectToPrimaryIdType();\n\n Iterator<Map.Entry<String, JsonNode>> fieldIterator = row.fields();\n while (fieldIterator.hasNext()) {\n\n Map.Entry<String, JsonNode> currentField = fieldIterator.next();\n //LOGGER.log(Level.INFO, \"Adding field to insert statement: \" + currentField.getKey() + \":\" + currentField.getValue() + \"|\");\n String fieldName = currentField.getKey();\n\n // Limit how big field names as database limits require this.\n final int MAX_COLUMN_NAME_LENGTH = 44;\n fieldName = (fieldName.length() >= MAX_COLUMN_NAME_LENGTH) ? fieldName.substring(0, MAX_COLUMN_NAME_LENGTH) : fieldName;\n\n fieldName = this.curateFieldName(fieldName, config.getSourceId(), importTableName);\n\n columns.append(fieldName).append(\", \");\n\n String value = currentField.getValue().toString();\n //LOGGER.log(Level.INFO, \"Value: \" + value);\n if (value == null || value.equals(\"\") || value.equals(\"\\\"\\\"\")) {\n value = \"null\";\n }\n\n // VISIT DATE TRANSFORM\n // Primary and non-primary follow the same strategy for transforming Visit Date\n // Everything is converted to system time\n if (config.getVisitIdColumn(\"visitDate\") != null) {\n String visitDateField = config.getVisitIdColumn(\"visitDate\");\n String curatedVisitDateFieldName = curateFieldName(visitDateField, config.getSourceId(), importTableName);\n if (fieldName.equals(curatedVisitDateFieldName)) {\n LOGGER.log(Level.INFO, \"This is a Visit Date field, calling visitDateTransformService\");\n visitDateTransformService.setDataSourceConfig(config);\n transformedVisitDate = wrapInSingleQuotes(visitDateTransformService.transform(sanitizeSpecialChars(value)));\n }\n }\n\n // VISIT ID TRANSFORM\n // primary\n // No transform necessary; Visit ID transforms all non-primary sources to the primary (map)\n\n // non-primary\n // getVisitIdConnectionsSource will be null for primary\n\n if (config.getVisitIdConnectionsSource() != null &&\n config.getVisitIdType() != null) {\n String visitIdField = config.getVisitIdColumn(config.getVisitIdType());\n String curatedVisitIdFieldName = curateFieldName(visitIdField, config.getSourceId(), importTableName);\n if (fieldName.equals(curatedVisitIdFieldName)) {\n LOGGER.log(Level.INFO, \"This is a Visit ID field, calling visitIdTransformService\");\n visitIdTransformService.setDataSourceConfig(config);\n transformedVisitId = wrapInSingleQuotes(visitIdTransformService.transform(sanitizeSpecialChars(value)));\n }\n }\n\n // PATIENT IDENTIFIER (PPID) TRANSFORM\n // If this value is for the integration field, we need to apply the PreprocessorService\n // We only apply this logic to nonprimary sources, as the primary requires no manipulation (for now).\n // We need to know how the source connects to primary to ensure we're manipulating the correct ID column (connectsAs)\n\n // primary\n if (config.getIdColumnNameMrn() != null) {\n if (fieldName.equals(curateFieldName(config.getIdColumnNameMrn(), config.getSourceId(), importTableName))) {\n transformedIdMrn = preprocessorService.transformId(config, value, \"MRN\", true, null);\n }\n }\n if (config.getIdColumnNamePpid() != null) {\n if (fieldName.equals(curateFieldName(config.getIdColumnNamePpid(), config.getSourceId(), importTableName))) {\n if (tokenGrowthService.detectTokenGrowth(config, value)) {\n LOGGER.log(Level.INFO, \"Token growth detected for this value compared against against the processed_id. Calling TokenGrowthService.\");\n // .get(0) means this only works if there is one token in `growth_tokens` in the config, which is all that is currently supported\n List<Integer> tokenGrowthDelimiterPositions = tokenGrowthService.correctedDelimiterPositions(config, config.getGrowthTokens(\"ppid\").get(0), config.getDelimiterPositions(\"ppid\"), value);\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, tokenGrowthDelimiterPositions);\n } else {\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, null);\n }\n }\n }\n\n // non-primary\n if (config.getIdColumnNameMrn() != null && connectsAs != null && connectsAs.equalsIgnoreCase(\"MRN\")) {\n if (fieldName.equals(curateFieldName(config.getIdColumnNameMrn(), config.getSourceId(), importTableName))) {\n transformedIdMrn = preprocessorService.transformId(config, value, \"MRN\", true, null);\n }\n }\n if (config.getIdColumnNamePpid() != null && connectsAs != null && connectsAs.equalsIgnoreCase(\"PPID\")) {\n // if there's token growth, determine the appropriate offset and pass the corrected tokenGrowthDelimiterPositions\n if (fieldName.equals(curateFieldName(config.getIdColumnNamePpid(), config.getSourceId(), importTableName))) {\n if (tokenGrowthService.detectTokenGrowth(config, value)) {\n LOGGER.log(Level.INFO, \"Token growth detected for this value compared against against the processed_id. Calling TokenGrowthService.\");\n // .get(0) means this only works if there is one token in `growth_tokens` in the config, which is all that is currently supported\n List<Integer> tokenGrowthDelimiterPositions = tokenGrowthService.correctedDelimiterPositions(config, config.getGrowthTokens(\"ppid\").get(0), config.getDelimiterPositions(\"ppid\"), value);\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, tokenGrowthDelimiterPositions);\n } else {\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, null);\n }\n }\n }\n values.append(curateValue(value)).append(\", \");\n }\n // Since join_id fields are at the end, append the transformedIdMrn, then transformedIdPpid last\n if (connectsAs.equalsIgnoreCase(\"MRN\") && (transformedIdMrn == null || transformedIdMrn.equals(\"\"))) {\n throw new Exception(\"ERROR! Trying to connect w/ MRN and transformedIdMrn is null, meaning the join_id column for this source will be empty and integration will fail!\");\n }\n if (connectsAs.equalsIgnoreCase(\"PPID\") && (transformedIdPpid == null || transformedIdPpid.equals(\"\"))) {\n throw new Exception(\"ERROR! Trying to connect w/ PPID and transformedIdPpid is null, meaning the join_id column for this source will be empty and integration will fail!\");\n }\n\n // Add value to join_visit_date, if it exists\n if (!transformedVisitDate.equals(\"\")) {\n values.append(transformedVisitDate).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_visit_date, \");\n\n // Add value to join_visit_id, if it exists\n if (!transformedVisitId.equals(\"\")) {\n values.append(transformedVisitId).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_visit_id, \");\n\n // Add the join_id columns as the last part of the insert statement, either the value or null if it's null\n if (!transformedIdMrn.equals(\"\")) {\n values.append(curateValue(transformedIdMrn)).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_id_mrn, \");\n\n if (!transformedIdPpid.equals(\"\")) {\n values.append(curateValue(transformedIdPpid)).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_id_ppid, \");\n\n // remove extra \",\" and add the closing braces\n columns.replace(columns.length() - 2, columns.length(), \")\");\n values.replace(values.length() - 2, values.length(), \")\");\n String valuesWithoutDoubleQuotes = values.toString().replace('\\\"', '\\'');\n\n String sqlInsertSttmt = \"INSERT INTO \" + importTableName + \" \" + columns.toString() + \" VALUES \" + valuesWithoutDoubleQuotes;\n\n //LOGGER.log(Level.INFO, \"Built insert statement: \" + sqlInsertSttmt);\n return sqlInsertSttmt;\n }", "public static void create_join_CP(String databaseCT,String rchain,Connection con2) throws SQLException{\n\t\t\n\t\tString table_name = databaseCT+\"_CT.\"+rchain.substring(0,rchain.length()-1) + \"_CT`\";\n\t\t//System.out.println(databaseCT+\"_CT\");\n\t\tString newTable_name = rchain.substring(0,rchain.length()-1) + \"_CT_KLD`\";\n\t\t//System.out.println(table_name);\n\t\t// table_name is input contingency table, newTable_name will be output KLD table\n\t\tStatement st=con2.createStatement();\n ResultSet rst=st.executeQuery(\"show columns from \"+table_name+\" ;\");\n // System.out.println(\"show columns from \"+table_name+\" ;\");\n while(rst.next()){\n \tcolumn_names.add(\"`\"+rst.getString(1)+\"`\");\n \tcolumn_names_CP.add(\"`\"+rst.getString(1)+\"_CP`\");\n \t// add conditional probability column for each attribute column\n }\n \n \n st.execute(\"drop table if exists \" + newTable_name);\n String query1=\"create table \" + newTable_name + \" ( id int(11) NOT NULL AUTO_INCREMENT, MULT BIGINT(21), \" ;\n // make query string for creating KLD table\n // auto index each row in table\n for(int i=1; i<column_names.size(); i++){\n \tquery1 = query1 + column_names.get(i) + \" VARCHAR(45),\" + column_names_CP.get(i) + \" float(7,6) ,\";\n // add column headers\t\t\n }\n query1 = query1 + \" JP float, JP_DB float, KLD float default 0, PRIMARY KEY (id) ) engine=INNODB;\";\n //System.out.println(query1);\n st.execute(query1);\n \n // copy the values from the mult table. CP values are null at this point.\n String query2 = \"insert into \" + newTable_name + \" ( MULT\";\n for(int i=1; i<column_names.size(); i++){\n \tquery2 = query2 + \", \" + column_names.get(i);\n }\n query2 = query2 + \" ) select * from \"+table_name+\"; \"; // Nov 28 @ zqian, do not use \"*\" in terms of query optimization\n \t\t\t\t\t\t\t\t\t\t\t\t\t\t// Nov 28 @ zqian, adding covering index to CT table for query string \n System.out.println(query2);\n st.execute(query2);\n \n System.out.println(\"\\n insert into KLD table conditional probability for each node\"); // zqian\n //insert CP value to attributes\n insert_CP_Values(rchain, newTable_name,con2);\n System.out.println(\"\\n compute Bayes net joint probabilities \"); //zqian\n //compute Bayes net joint probabilities \n cal_KLD(newTable_name,con2);\n \n \n st.close();\n\t}", "protected void createTableListenings() {\n\t\tString query = \n\t\t\t\t\"CREATE TABLE IF NOT EXISTS Listenings (\" \t\t\t\t\t\t\t+\n\t\t\t\t\"user\t\t\tVARCHAR(128),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"track\t\t\tVARCHAR(259),\" \t\t\t\t\t\t\t\t\t\t+\n\t\t\t\t\"playcount\t\tINTEGER,\" \t\t\t\t\t\t\t\t\t\t\t+ \n\t\t\t\t\"FOREIGN KEY (user) REFERENCES Persons(lfm_username),\" \t\t\t\t+\n\t\t\t\t\"FOREIGN KEY (listens_to) REFERENCES Recordings(unique_track)\"\t\t+\n\t\t\t\t\");\"\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t;\n\t\tcreateTable(query);\n\t}", "public static void crearTicket(int codigoSupermercado, ArrayList <LineaCompra> lineasTicket, String nif ) throws SQLException{\n double precioTotal=0;\n for(int i=0;i<lineasTicket.size();i++){\n precioTotal+=lineasTicket.get(i).getPrecio_linea();\n }\n Ticket t1=new Ticket(codigoSupermercado, precioTotal, lineasTicket);\n LocalDate fecha=t1.getFechaCompra();\n LocalTime hora=t1.getHoraCompra();\n DateTimeFormatter formatoFecha=DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n DateTimeFormatter formatoHora=DateTimeFormatter.ofPattern(\"HH:mm\");\n try(PreparedStatement query=Herramientas.getConexion().prepareStatement(\"INSERT INTO ticket VALUES(?,?,?,?,?,?)\")){\n query.setInt(1, t1.getCodigo());\n query.setString(2, nif);\n query.setInt(3, t1.getCodigoSupermercado());\n query.setString(4, fecha.format(formatoFecha));\n query.setString(5, hora.format(formatoHora));\n query.setDouble(6, t1.getPrecioTotal());\n query.executeUpdate();\n for(int i=0;i<lineasTicket.size();i++){\n try(PreparedStatement query2=Herramientas.getConexion().prepareStatement(\"INSERT INTO linea_ticket VALUES(?,?,?,?,?)\")){\n query2.setInt(1, t1.getCodigo());\n query2.setInt(2, lineasTicket.get(i).getCodigo_producto());\n query2.setInt(3, lineasTicket.get(i).getCantidad());\n query2.setDouble(4, lineasTicket.get(i).getPrecio_linea());\n try (PreparedStatement query3 = Herramientas.getConexion().prepareStatement(\"SELECT nombre_producto FROM producto WHERE codigo_producto=?\")) {\n query3.setInt(1, lineasTicket.get(i).getCodigo_producto());\n try (ResultSet resultado = query3.executeQuery()) {\n resultado.next();\n query2.setString(5, resultado.getString(1));\n }\n }\n query2.executeUpdate();\n }\n }\n }\n }", "public static void main(String[] args)throws Exception{\n\t\tgetconnection();\r\n\t\t\tCreatTable();\r\n\t\t\t\r\n\t}", "public static final String getAuthKWRelTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authkw_\" +shortname +\r\n\t\t\"(author varchar(70) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" PRIMARY KEY (keyword,author)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "public void createLine(long id, SupplierSettlementLine line) throws CoreException {\n try (Response response = clientApi.post(SUPPLIER_SETTLEMENTS + id + \"/lines\", line)) {\n readResponse(response, String.class);\n // extract id from return location\n String locationUri = response.getHeaderString(\"Location\");\n Long lineId = Long.parseLong(locationUri.substring(locationUri.lastIndexOf(\"/\") + 1));\n line.setId(lineId);\n }\n }", "public static String getSqlCreateEntries() {\n return SQL_CREATE_ENTRIES;\n }", "public String createTable(){\r\n return \"CREATE TABLE Doctor \" +\r\n \"(idDoctor decimal primary key, \" +\r\n \"firstNameDoctor char(14), \" +\r\n \"lastNameDoctor char(14), \" +\r\n \"costPerVisit integer,\" +\r\n \"qualification varchar(32))\";\r\n }", "public static void main(String[] args) {\n\t\tString sql = \"create table coemployee(name varchar(20), empId integer primary key, city varchar(20))\";\n\t\tString url = \"jdbc:oracle:thin:@localhost:1521:xe\";\n\t\tString userName = \"system\";\n\t\tString password = \"2020\";\n\t\tConnection connection = null;\n\t\tPreparedStatement ps = null;\n\t\t// establish a connection\n\n\t\ttry {\n\t\t\tconnection = DriverManager.getConnection(url, userName, password);\n\t\t\tps = connection.prepareStatement(sql);\n\t\t\tSystem.out.println(\"created\"+ps.execute());\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\n\t\t\te.printStackTrace();\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\tif (connection != null)\n\t\t\t\t\tconnection.close();\n\t\t\t} catch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "private createSingletonDatabase()\n\t{\n\t\tConnection conn = createDatabase();\n\t\tcreateTable();\n\t\tString filename = \"Summer expereince survey 2016 for oliver.csv\"; \n\t\timportData(conn, filename);\n\t}", "public boolean createTable(String input) throws IOException{\n\t\tString orgQuery = input;\n\t\torgQuery = orgQuery.trim();\n\t\tString query = input.toLowerCase().trim();\n\t\tboolean queryFailed = false;\n\t\t//Schema Instance \n\t\tSchema currentSchema = Schema.getSchemaInstance();\n\t\tString currentSchemaName = currentSchema.getCurrentSchema();\n\n\t\t//TableSchemaManager Instance\n\t\tTableSchemaManager currentTableSchemaManager = TableSchemaManager.getTableSchemaManagerInstance();\n\n\t\t//Extracting Table name\n\t\ttableName = orgQuery.substring(query.indexOf(\"table \")+6,query.indexOf(\"(\")).trim();\n\n\t\t//Updating SCHEMA.TABLE.TBL\n\t\tif(updateInformationSchemaTable()){\n\t\t\tqueryFailed = true;\n\t\t\treturn queryFailed;\n\t\t}\n\n\t\t//Extracting Table contents\n\t\tString tableContentsWithQuotes = orgQuery.substring(orgQuery.indexOf(\"(\")+1,orgQuery.length());\n\t\tString tableContents = tableContentsWithQuotes.replace(\"))\", \")\");\n\t\ttableContents = tableContents.trim();\n\n\t\tTableSchemaManager.ordinalMap = new TreeMap<Integer,List<String>>();\n\t\tTableSchemaManager.tableMap = new TreeMap<String,TreeMap<Integer,List<String>>>();\n\t\t\n\t\t//Creating n instances of Table helper\n\t\tString[] createTableContents = tableContents.split(\"\\\\,\"); \n\t\tnoOfColumns = createTableContents.length;\n\t\tCreateTableHelper[] th = new CreateTableHelper[noOfColumns];\n\n\t\t\n\t\t//Handles single row of Create Table \n\t\tfor(int item = 0; item < noOfColumns ; item++){\n\t\t\tth[item] = new CreateTableHelper(); \n\t\t\t//To remove any leading or trailing spaces\n\t\t\tcreateTableContents[item] = createTableContents[item].trim();\n\t\t\tString columnName = createTableContents[item].substring(0, createTableContents[item].indexOf(\" \"));\n\t\t\tth[item].setColumnName(columnName);\n\n\t\t\t//Setting Primary Key\n\t\t\tString primaryKeyExp = \"(.*)[pP][rR][iI][mM][aA][rR][yY](.*)\";\n\t\t\tif (createTableContents[item].matches(primaryKeyExp))\n\t\t\t\tth[item].setPrimaryKey(true);\n\t\t\telse\n\t\t\t\tth[item].setPrimaryKey(false);\n\n\t\t\t//Setting Null Value\t\n\t\t\tString notNullExp = \"(.*)[nN][uU][lL][lL](.*)\";\n\t\t\tif (createTableContents[item].matches(notNullExp))\n\t\t\t\tth[item].setNull(true);\n\t\t\telse\n\t\t\t\tth[item].setNull(false);\n\n\t\t\t//Extracting data types \n\t\t\t//BYTE\n\t\t\tString byteExp = \"(.*)[bB][yY][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(byteExp)){\n\t\t\t\tth[item].setDataType(\"BYTE\");\n\t\t\t}\n\t\t\t//SHORT\n\t\t\tString shortExp = \"(.*)[sS][hH][oO][rR][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(shortExp)){\n\t\t\t\tth[item].setDataType(\"SHORT\");\n\t\t\t}\n\t\t\t//INT\n\t\t\tString intExp = \"(.*)[iI][nN][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(intExp)){\n\t\t\t\tth[item].setDataType(\"INT\");\n\t\t\t}\n\t\t\t//LONG\n\t\t\tString longExp = \"(.*)[lL][oO][nN][gG](.*)\";\n\t\t\tif (createTableContents[item].matches(longExp)){\n\t\t\t\tth[item].setDataType(\"LONG\");\n\t\t\t}\n\t\t\t//CHAR\n\t\t\tString charExp = \"(.*)[cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(charExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"CHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//VARCHAR\n\t\t\tString varcharExp = \"(.*)[vV][aA][rR][cC][hH][aA][rR](.*)\";\n\t\t\tif (createTableContents[item].matches(varcharExp)){\n\t\t\t\tString size = createTableContents[item].substring(createTableContents[item].indexOf(\"(\")+1, createTableContents[item].indexOf(\")\"));\n\t\t\t\tth[item].setDataType(\"VARCHAR(\" + size + \")\");\n\t\t\t}\n\t\t\t//FLOAT\n\t\t\tString floatExp = \"(.*)[fF][lL][oO][aA][tT](.*)\";\n\t\t\tif (createTableContents[item].matches(floatExp)){\n\t\t\t\tth[item].setDataType(\"FLOAT\");\t\t\t\t\n\t\t\t}\n\t\t\t//DOUBLE\n\t\t\tString doubleExp = \"(.*)[dD][oO][uU][bB][lL][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(doubleExp)){\n\t\t\t\tth[item].setDataType(\"DOUBLE\");\n\t\t\t}\n\t\t\t//DATETIME\n\t\t\tString dateTimeExp = \"(.*)[dD][aA][tT][eE][tT][iI][mM][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateTimeExp)){\n\t\t\t\tth[item].setDataType(\"DATETIME\");\n\t\t\t}\n\t\t\t//DATE\n\t\t\tString dateExp = \"(.*)[dD][aA][tT][eE](.*)\";\n\t\t\tif (createTableContents[item].matches(dateExp)){\n\t\t\t\tth[item].setDataType(\"DATE\");\n\t\t\t}\n\n\t\t\tcurrentTableSchemaManager.newTableSchema(\n\t\t\t\t\ttableName,\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\n\t\t\t//Updating SCHEMA.COLUMNS.TBL\n\t\t\tupdateInformationSchemaColumn(\n\t\t\t\t\tth[item].getColumnName(),\n\t\t\t\t\titem,\n\t\t\t\t\tth[item].getDataType(),\n\t\t\t\t\tth[item].isNull(),\n\t\t\t\t\tth[item].isPrimaryKey()\n\t\t\t\t\t);\n\t\t\t//Create tables to insert index\n\t\t\tString newTableIndexName = currentSchemaName + \".\" + tableName + \".\" +th[item].getColumnName()+ \".tbl.ndx\";\n\t\t\tRandomAccessFile newTableIndexFile = new RandomAccessFile(newTableIndexName, \"rw\");\n\t\t\tnewTableIndexFile.close();\n\n\t\t}\n\n\t\tTableSchemaManager.tableMap.put(tableName, TableSchemaManager.ordinalMap);\n\t\tcurrentTableSchemaManager.updateTableSchema(currentSchemaName,tableName);\n\t\t\n\t\t//Create tables to insert data \n\t\tString newTableDataName = currentSchemaName + \".\" + tableName + \".tbl\";\n\t\tRandomAccessFile newTableDataFile = new RandomAccessFile(newTableDataName, \"rw\");\n\t\tnewTableDataFile.close();\n\t\treturn queryFailed;\n\t}", "private static LineOfCredit createLineOfCreditObjectForPost() {\n\n\t\tLineOfCredit lineOfCredit = new LineOfCredit();\n\n\t\tCalendar now = Calendar.getInstance();\n\n\t\tString notes = \"Line of credit note created via API \" + now.getTime();\n\t\tlineOfCredit.setId(\"LOC\" + now.getTimeInMillis());\n\t\tlineOfCredit.setStartDate(now.getTime());\n\t\tnow.add(Calendar.MONTH, 6);\n\t\tlineOfCredit.setExpiryDate(now.getTime());\n\t\tlineOfCredit.setNotes(notes);\n\t\tlineOfCredit.setAmount(new Money(100000));\n\n\t\treturn lineOfCredit;\n\t}", "public abstract void createTables() throws DataServiceException;", "public LineNumberTable(LineNumberTable c) {\n this(c.getNameIndex(), c.getLength(), c.getLineNumberTable(), c.getConstantPool());\n }", "public void creatTable(String tableName,LinkedList<String> columnsName,LinkedList<String> columnsType );", "public void CreateTable(String nameTable) throws SQLException {\n\n String FEATURE_DB_SQL = \"CREATE TABLE IF NOT EXISTS \" + nameTable + \"(id INT NOT NULL AUTO_INCREMENT, \"\n + FEATURE_DB_TEXTFEATURE + \" VARCHAR(255), \" + FEATURE_DB_ELO + \" INT, \" + FEATURE_DB_MMR + \" INT,\"\n + FEATURE_DB_AUTHOR + \" VARCHAR(255),\"\n +\" PRIMARY KEY ( id ))\";\n\n statement = conn.createStatement();\n statement.executeUpdate(FEATURE_DB_SQL);\n }", "void insertBatch(List<TABLE41> recordLst);", "tbls createtbls();", "public void createDateList(Connection connection) throws SQLException {\n\n Scanner scan = new Scanner(System.in);\n\n DatabaseMetaData dmd = connection.getMetaData();\n ResultSet rs = dmd.getTables(null, null, \"DATELIST\", null);\n\n if (rs != null) {\n\n System.out.print(\"Please provide a start date: \");\n LocalDate start = LocalDate.parse(scan.nextLine());\n\n System.out.print(\"Please provide an end date: \");\n LocalDate end = LocalDate.parse(scan.nextLine());\n\n while (!start.isAfter(end)){\n\n String sql = \"INSERT INTO DateList VALUES (to_date(?, 'YYYY-MM-DD'), to_date(?, 'YYYY-MM-DD'))\";\n PreparedStatement pStmt = connection.prepareStatement(sql);\n pStmt.clearParameters();\n\n pStmt.setString(1, start.toString());\n pStmt.setString(2, end.toString());\n\n try { pStmt.executeUpdate(); }\n catch (SQLException e) { throw e; }\n finally {\n pStmt.close();\n rs.close();\n }\n }\n }\n else {\n System.out.println(\"ERROR: Error loading CUSTOMER Table.\");\n }\n }", "@Override\n\tpublic void createTable(Object connectionHandle, DataTable table) throws DataSourceException\n\t{\n\t\tList<DataField> fields = new LinkedList<DataField>();\n\t\tList<String> indexes = new LinkedList<String>();\n\t\t\n\t\tList<String> keys = table.getFields();\n\t\tIterator<String> it = keys.iterator();\n\t\twhile(it.hasNext()){\n\t\t\tString fld = it.next();\n\t\t\tDataField df = table.getDataField(fld);\n\t\t\t\n\t\t\tfields.add(df);\n\t\t\t\n\t\t//\tif(df.isPrimary()){\n\t\t//\t\tindexes.add(fld);\n\t\t//\t}\n\t\t}\n\t\t\n\t\tIterator<DataField> primaryIt = table.getPrimaryKeys().iterator();\n\t\twhile(primaryIt.hasNext()){\n\t\t\tDataField pf = primaryIt.next();\n\t\t\t\n\t\t\tindexes.add(pf.getName());\n\t\t}\n\t\t\n\t\t\n\t\t// Make SQL String\n\t\tStringBuffer sqlString = new StringBuffer();\n\t\tsqlString.append(\"CREATE TABLE \");\n\t\tsqlString.append(table.getName());\n\t\tsqlString.append(\" ( \\n\");\n\t\t\n\t\tboolean first = true;\n\t\tIterator<DataField> itDf = fields.iterator();\n\t\twhile(itDf.hasNext()){\n\t\t\tDataField fld = itDf.next();\n\t\t\t\n\t\t\tif(first){\n\t\t\t\tfirst = false;\n\t\t\t}else{\n\t\t\t\tsqlString.append(\",\\n\");\n\t\t\t}\n\t\t\t\n\t\t\tsqlString.append(fld.getName());\n\t\t\tsqlString.append(\" \");\n\t\t\tsqlString.append(getSQLType(fld.getType()));\n\t\t\t\n\t\t\t// not null\n\t\t\tif(fld.isNotnull()){\n\t\t\t\tsqlString.append(\" NOT NULL\");\n\t\t\t}\n\t\t\t\n\t\t\t// unique\n\t\t\tif(fld.isUnique()){\n\t\t\t\tsqlString.append(\" UNIQUE\");\n\t\t\t}\n\t\t\t\n\t\t\t// default\n\t\t\tif(fld.getDefaultValue() != null){\n\t\t\t\tsqlString.append(\" \");\n\t\t\t\tsqlString.append(fld.getDefaultString());\n\t\t\t}\n\t\t\t\n\t\t\t// check\n\t\t\tif(fld.getCheck() != null){\n\t\t\t\tsqlString.append(\" \");\n\t\t\t\ttry {\n\t\t\t\t\tsqlString.append(fld.getCheck().extract(null, null, null, null, null));\n\t\t\t\t} catch (ExecutionException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow new DataSourceException(e);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// check\n\t\tIterator<CheckDefinition> checkIt = table.getCheck().iterator();\n\t\twhile(checkIt.hasNext()){\n\t\t\tCheckDefinition def = checkIt.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\ttry {\n\t\t\t\tsqlString.append(def.extract(null, null, null, null, null));\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new DataSourceException(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// foreign key\n\t\tIterator<ForeignKey> foreignIt = table.getForeignKey().iterator();\n\t\twhile(foreignIt.hasNext()){\n\t\t\tForeignKey fkey = foreignIt.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\ttry {\n\t\t\t\tsqlString.append(fkey.extract(null, null, null, null, null));\n\t\t\t} catch (ExecutionException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tthrow new DataSourceException(e);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// primary key\n\t\tif(indexes.size() > 0){\n\t\t\tsqlString.append(\",\\n\");\n\t\t\tsqlString.append(\"PRIMARY KEY(\");\n\t\t\t\n\t\t\tfirst = true;\n\t\t\tit = indexes.iterator();\n\t\t\twhile(it.hasNext()){\n\t\t\t\tString idxFld = it.next();\n\t\t\t\t\n\t\t\t\tif(first){\n\t\t\t\t\tfirst = false;\n\t\t\t\t}else{\n\t\t\t\t\tsqlString.append(\", \");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsqlString.append(idxFld);\n\t\t\t}\n\n\t\t\tsqlString.append(\")\");\n\t\t}\n\t\t\n\t\t// unique\n\t\tIterator<Unique> itU = table.getUnique().iterator();\n\t\twhile(itU.hasNext()){\n\t\t\tUnique unique = itU.next();\n\t\t\t\n\t\t\tsqlString.append(\",\\n\");\n\t\t\tsqlString.append(\"UNIQUE(\");\n\t\t\t\n\t\t\tfirst = true;\n\t\t\tIterator<String> itUnique = unique.getKey().iterator();\n\t\t\twhile(itUnique.hasNext()){\n\t\t\t\tString col = itUnique.next();\n\t\t\t\t\n\t\t\t\tif(first){\n\t\t\t\t\tfirst = false;\n\t\t\t\t}else{\n\t\t\t\t\tsqlString.append(\",\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsqlString.append(col);\n\t\t\t}\n\t\t\t\n\t\t\tsqlString.append(\")\");\n\t\t}\n\t\t\n\t\tsqlString.append(\"\\n)\\n\");\n\t\t\n\t\tif(this.logger != null && this.outSql){\n\t\t\tthis.logger.reportInfo(sqlString.toString());\n\t\t}\n\t\t\n\t\t// \n\t\tAlinousDebug.debugOut(core, sqlString.toString());\n\t\t\n\t\texecuteUpdateSQL(connectionHandle, sqlString.toString(), false);\n\n\t}", "private String getCloneSetLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET_LINK(\");\n \t\tbuilder.append(\"CLONE_SET_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"ADDED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"DELETED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CO_CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINKS TEXT NOT NULL\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "void populateTable(List<String[]> entries) throws SQLException;", "public static void createOrders() {\n Connection con = getConnection();\n\n String createString;\n createString = \"create table Orders (\" +\n \"Prod_ID INTEGER, \" +\n \"ProductName VARCHAR(20), \" +\n \"Employee_ID INTEGER )\";\n\n try {\n stmt = con.createStatement();\n stmt.executeUpdate(createString);\n\n stmt.close();\n con.close();\n\n } catch (SQLException ex) {\n System.err.println(\"SQLException: \" + ex.getMessage());\n }\n JOptionPane.showMessageDialog(null, \"Orders Table Created\");\n }", "public void testCreateTable2() throws Exception {\n Properties props = new Properties();\n props.setProperty(LockssRepositoryImpl.PARAM_CACHE_LOCATION, tempDirPath);\n props\n\t.setProperty(ConfigManager.PARAM_PLATFORM_DISK_SPACE_LIST, tempDirPath);\n props.setProperty(SqlDbManager.PARAM_DATASOURCE_DATABASENAME,\n\t\t new File(tempDirPath, \"db/TestSqlDbManager\")\n\t\t\t .getCanonicalPath());\n ConfigurationUtil.setCurrentConfigFromProps(props);\n\n createTable();\n }", "public static Line CreateLine(String id) { return new MyLine(id); }", "@Override\n public void onCreate(SQLiteDatabase db) {\n String SQL_CREATE_ENTRIES =\n \"CREATE TABLE \" + HabitTrackerContract.HabitTrackerEntry.TABLE_NAME + \" (\" +\n HabitTrackerContract.HabitTrackerEntry._ID +\n \" INTEGER PRIMARY KEY AUTOINCREMENT,\" +\n HabitTrackerContract.HabitTrackerEntry.COLUMN_HT_EXERCISE\n + \" TEXT NOT NULL,\" +\n HabitTrackerContract.HabitTrackerEntry.COLUMN_HT_REPS\n + \" INTEGER NOT NULL,\" +\n HabitTrackerContract.HabitTrackerEntry.COLUMN_HT_NOTES\n + \" TEXT)\";\n db.execSQL(SQL_CREATE_ENTRIES);\n }", "void storeSchema(LogSequenceNumber lsn, Table table);", "public ua.org.gostroy.guestbook.model.Entry3 create(long entryId);", "EnvEntry createEnvEntry();", "public void addEntry(RouteTableEntry RTE)\n\t{\n\t\ttable.add(RTE);\n\t\t\n\t\tparentActivity.runOnUiThread(new Runnable()\n\t\t{ \n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tuiManager.resetRoutingListAdapter();\n\t\t\t} // end public method run\n\t\t}); // end runOnUiThread\n\t}", "public void setupDB()\r\n\t{\n\tjdbcTemplateObject.execute(\"DROP TABLE IF EXISTS employee1 \");\r\n\r\n\tjdbcTemplateObject.\r\n\texecute(\"CREATE TABLE employee1\"\r\n\t+ \"(\" + \"name VARCHAR(255), id SERIAL)\");\r\n\t}", "public CreateTableExternalRequest() {\n tableName = \"\";\n filepaths = new ArrayList<>();\n modifyColumns = new LinkedHashMap<>();\n createTableOptions = new LinkedHashMap<>();\n options = new LinkedHashMap<>();\n }", "EntryPoint createEntryPoint();" ]
[ "0.585661", "0.57882553", "0.56981903", "0.5436283", "0.5430669", "0.53652453", "0.53499657", "0.533185", "0.5303204", "0.530107", "0.52439964", "0.52305096", "0.5218754", "0.5209659", "0.5115156", "0.5114253", "0.5113914", "0.50213015", "0.4998691", "0.49967545", "0.49836186", "0.49744907", "0.495035", "0.49376598", "0.49301705", "0.49258682", "0.49104613", "0.48968744", "0.48952574", "0.4873346", "0.48716712", "0.48468918", "0.48456094", "0.48252648", "0.48194382", "0.48114166", "0.48093697", "0.47976732", "0.47859314", "0.47819084", "0.47717392", "0.47688535", "0.4765357", "0.47642174", "0.475002", "0.47358197", "0.47341654", "0.4733197", "0.47285098", "0.47223923", "0.47206888", "0.4714976", "0.47093454", "0.4707985", "0.47042114", "0.46936688", "0.4692283", "0.4692267", "0.46904948", "0.46759096", "0.4674349", "0.46716034", "0.4667453", "0.46516463", "0.46486259", "0.4641851", "0.4640492", "0.46373507", "0.46279755", "0.46243602", "0.46214256", "0.4621116", "0.46208894", "0.46202126", "0.46175733", "0.4617492", "0.46172845", "0.46168786", "0.46111804", "0.4610418", "0.46085897", "0.4606084", "0.46050858", "0.4600117", "0.45976108", "0.4591222", "0.4586389", "0.45835146", "0.45833015", "0.45716086", "0.4565017", "0.45630288", "0.45592347", "0.4558785", "0.4553564", "0.45482066", "0.45473796", "0.45415142", "0.4537716", "0.453714" ]
0.5837206
1
Create an aliased JOURNAL_ENTRY_LINE table reference
public JournalEntryLine(String alias) { this(DSL.name(alias), JOURNAL_ENTRY_LINE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JournalEntryLine(Name alias) {\n this(alias, JOURNAL_ENTRY_LINE);\n }", "private static DataBaseEntry createEntry(String line) {\n int eq = line.indexOf(\"=\");\n if (eq < 0) {\n System.err.println(\"not found '=' in line \" + line);\n }\n int hash = line.indexOf(\"#\");\n if (hash < 0) {\n System.err.println(\"not found '#' in line \" + line);\n }\n String file = line.substring(0, eq);\n String cwd = line.substring(eq+1, hash);\n String compileString = line.substring(hash+1);\n \n CompileLineEntryBuilder builder = new CompileLineEntryBuilder(file);\n for (String option : splitCommandLine(compileString)) {\n builder.handle(option);\n }\n return builder.createDataBaseEntry();\n }", "public JournalEntryLine() {\n this(DSL.name(\"JOURNAL_ENTRY_LINE\"), null);\n }", "private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }", "public String getNextTableSqlAlias() {\n return \"t\"+(aliasCounter++);\n }", "@Test(enabled = false)\n public void testCreateExternalTable() throws Exception {\n String tableName = tableName();\n String colName = columnName();\n String pFile = createTestDFSPath(\"parentPath\");\n String query = String.format(\"create EXTERNAL table %s.%s(%s, %s) location '%s'\", DEFAULT_DB , tableName , colName + \" int\", \"name string\", pFile);\n\n runCommand(query);\n\n String tblId = assertTableIsRegistered(DEFAULT_DB, tableName, null, true);\n AtlasEntity tblEnity = atlasClientV2.getEntityByGuid(tblId).getEntity();\n List ddlList = (List) tblEnity.getRelationshipAttribute(ATTRIBUTE_DDL_QUERIES);\n\n assertNotNull(ddlList);\n assertEquals(ddlList.size(), 1);\n\n String processId = assertEntityIsRegistered(HiveDataTypes.HIVE_PROCESS.getName(), ATTRIBUTE_QUALIFIED_NAME, getTableProcessQualifiedName(DEFAULT_DB, tableName), null);\n\n AtlasEntity processsEntity = atlasClientV2.getEntityByGuid(processId).getEntity();\n\n assertEquals(processsEntity.getAttribute(\"userName\"), UserGroupInformation.getCurrentUser().getShortUserName());\n\n verifyTimestamps(processsEntity, \"startTime\");\n verifyTimestamps(processsEntity, \"endTime\");\n\n validateHDFSPaths(processsEntity, INPUTS, pFile);\n }", "private String getCloneSetLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET_LINK(\");\n \t\tbuilder.append(\"CLONE_SET_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"ADDED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"DELETED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CO_CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINKS TEXT NOT NULL\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "private HashGroupifyEntry createEntry(final int row, final int index, final int hash, final int line) {\n final HashGroupifyEntry entry = new HashGroupifyEntry(this.dataOutput, row, hash);\n entry.next = hashTableBuckets[index];\n entry.representative = line;\n hashTableBuckets[index] = entry;\n if (hashTableFirstEntry == null) {\n hashTableFirstEntry = entry;\n hashTableLastEntry = entry;\n } else {\n hashTableLastEntry.nextOrdered = entry;\n hashTableLastEntry = entry;\n }\n return entry;\n }", "public static final String getAuthCollabOverKWTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authcollabkw_\" +shortname +\r\n\t\t\"(keyword varchar(255) NOT NULL, \" + \r\n\t\t\"author varchar(70) NOT NULL, \" + \r\n\t\t\" collabauth varchar(70) NOT NULL, \" +\r\n\t\t\"collabcnt int NOT NULL\" +\r\n\t\t\" ) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "private void appendFullTableNameAndAlias(String stageName) {\n builder.append(getFullTableName(stageName)).append(AS).append(getTableAlias(stageName));\n }", "public DataEntry createEntry(String tableName, DataEntry entry) {\n\t\tDataEntry oldEntry = null;\n\t\tif (tables.containsKey(tableName)) {\n\t\t\tTable table = tables.get(tableName);\n\t\t\toldEntry = table.create(entry.getProductId(), entry);\n\t\t\tdataToHistory(oldEntry);\n\t\t}\n\t\treturn oldEntry;\n\t}", "static String getAlterArtifactInstancesAddAccountIdTemplate(CentralRepoPlatforms selectedPlatform) {\n // Each \"%s\" will be replaced with the relevant TYPE_instances table name.\n return \"ALTER TABLE %s\"\n + \" ADD account_id \" + RdbmsCentralRepoFactory.getBigIntType(selectedPlatform) + \" DEFAULT NULL\";\n\n }", "public void setSourceTable(String sourceTable);", "public static final String getAuthKWRelTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authkw_\" +shortname +\r\n\t\t\"(author varchar(70) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" PRIMARY KEY (keyword,author)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "AliasStatement createAliasStatement();", "@Ignore(\"Disabled due to missing functionality in Oracle XE.\")\n @Test\n public void referencePartitionedTable() throws FlywayException {\n flyway.setLocations(\"migration/dbsupport/oracle/sql/refpart\");\n flyway.migrate();\n flyway.clean();\n flyway.migrate();\n }", "public DiffPlanOutline() {\n\t\tsuper(\"DIFF_PLAN_OUTLINE\", org.jooq.examples.oracle.sys.Sys.SYS, org.jooq.examples.oracle.sys.packages.DbmsXplan.DBMS_XPLAN, org.jooq.impl.SQLDataType.VARCHAR);\n\n\t\tsetReturnParameter(RETURN_VALUE);\n\t\taddInParameter(SQL_TEXT);\n\t\taddInParameter(OUTLINE1);\n\t\taddInParameter(OUTLINE2);\n\t\taddInParameter(USER_NAME);\n\t}", "private String createLabelTableSQL()\n\t{\n\t\treturn \"LABEL ON TABLE \" + getFullPath() + \" IS '\" + SQLToolbox.cvtToSQLFieldColHdg(function.getLabel()) + \"'\";\n\t}", "public static void LineArchive() throws ClassNotFoundException, SQLException {\r\n Statement s1 = DBConnect.connection.createStatement();\r\n String writeLine = \"INSERT INTO completed_lines \"\r\n + \"(Line, Sku, Qty, Description1, Orig_Sku, Description2, Attribute2, Size2, Orig_Retail, Manuf_Inspection, New_Used, Reason, \"\r\n + \"Desc_Damage, Cust_Satisf, Warranty, Second_Cost, Form_Name, Ln_Date, Second_Sku_Vendor, Second_Sku_VPNum, Ord_C$, New_Sku, \"\r\n + \"First_DCS, Second_DCS) SELECT * FROM \" + InvAdj_Admin.frmNm + \" WHERE Sku IS NOT NULL\";\r\n \r\n // This inserts store and form name because I could not figure out how to include it in the insert statement above\r\n String setStrFmNm = \"UPDATE completed_lines \"\r\n // + \"SET Form_Name = '\" + InvAdj_Admin.frmNm + \"'\" + \",\"\r\n + \"SET Store = '\" + InvAdj_Admin.frmNm.split(\"_\")[1] + \"' \"\r\n + \"WHERE Sku IS NOT NULL AND Form_Name = '\"+ InvAdj_Admin.frmNm +\"'\";\r\n s1.execute(writeLine); \r\n s1.execute(setStrFmNm);\r\n }", "static String getAlterArtifactInstancesAddAccountIdConstraintTemplate() {\n // Each \"%s\" will be replaced with the relevant TYPE_instances table name.\n return \"ALTER TABLE %s\"\n + \" ADD CONSTRAINT account_id_fk foreign key (account_id) references accounts(id)\";\n }", "public interface PathAliasHandler {\n String toAliasedColumn(FieldExpression fieldExpression);\n}", "public static void insLns() throws ClassNotFoundException, SQLException {\r\n Statement s = DBConnect.connection.createStatement();\r\n for (int w = 1; w < 11; w++) {\r\n String insLines = \"INSERT INTO \" + StFrmNm\r\n + \"(Line) \"\r\n + \"VALUES(\"\r\n + \"'\" + w + \"'\"\r\n + \")\";\r\n s.execute(insLines);\r\n }\r\n }", "public LineNumberTable(LineNumberTable c) {\n this(c.getNameIndex(), c.getLength(), c.getLineNumberTable(), c.getConstantPool());\n }", "public void joinTable(List<AccountingLineTableRow> rows) {\n throw new IllegalStateException(\"Line elements may not join a table directly; the specified rendering is incorrect\");\n }", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public Mytable(String alias) {\n this(DSL.name(alias), MYTABLE);\n }", "Line createLine();", "String getSqlForExternalTool(Alias alias, String sql, SqlParser parser);", "public static final String getTopicTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_topic_\" +shortname +\r\n\t\t\"(tid varchar(50) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" istop tinyint UNSIGNED ZEROFILL, \" + // Is this keyword a top keyword for this topic\r\n\t\t\" PRIMARY KEY (tid,keyword)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();", "protected abstract Object calcJoinRow();", "public abstract String[] createTablesStatementStrings();", "TableOrAlias createTableOrAlias();", "public static String AssetRef_CreateTable()\n\t{\n\t\tString str = \"create table assetref (\" \n\t\t\t\t+ \"id INTEGER PRIMARY KEY,\"\n\t\t\t\t+ \"uniqueId string,\"\n\t\t\t\t+ \"path string,\"\n\t\t\t\t+ \"name string,\"\n\t\t\t\t+ \"size int,\"\n\t\t\t\t+ \"lastChanged time\"\n\t\t\t\t+ \")\";\n\t\treturn str;\t\n\t}", "LineReferenceType getLineReference();", "private String getCloneGenealogyTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_GENEALOGY(\");\n \t\tbuilder.append(\"CLONE_GENEALOGY_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"START_REVISION_ID LONG,\");\n \t\tbuilder.append(\"END_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CLONES TEXT NOT NULL,\");\n \t\tbuilder.append(\"CLONE_LINKS TEXT NOT NULL,\");\n \t\tbuilder.append(\"CHANGES INTEGER,\");\n \t\tbuilder.append(\"ADDITIONS INTEGER,\");\n \t\tbuilder.append(\"DELETIONS INTEGER,\");\n \t\tbuilder.append(\"DEAD INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public Mytable(Name alias) {\n this(alias, MYTABLE);\n }", "public interface IEntry extends IRelation {\r\n\r\n String getJoinColumnName();\r\n\r\n\r\n void setJoinColumnName(String joinColumnName);\r\n\r\n\r\n String getJoinAttributeName();\r\n\r\n\r\n void setJoinAttributeName(String joinAttributeName);\r\n\r\n\r\n String getJoinEntityIdentifier();\r\n\r\n\r\n void setJoinEntityIdentifier(String joinEntityIdentifier);\r\n\r\n \r\n Entity getJoinEntity();\r\n}", "public AgentTable(String alias) {\n this(alias, AGENT);\n }", "@Test(timeout = 4000)\n public void test043() throws Throwable {\n String[] stringArray0 = new String[6];\n String string0 = SQLUtil.innerJoin(\"create table \", stringArray0, (String) null, \"FMK$x:Q_QfZ|{K*oyK \", stringArray0);\n assertEquals(\"null as FMK$x:Q_QfZ|{K*oyK on create table .null = FMK$x:Q_QfZ|{K*oyK .null and create table .null = FMK$x:Q_QfZ|{K*oyK .null and create table .null = FMK$x:Q_QfZ|{K*oyK .null and create table .null = FMK$x:Q_QfZ|{K*oyK .null and create table .null = FMK$x:Q_QfZ|{K*oyK .null and create table .null = FMK$x:Q_QfZ|{K*oyK .null\", string0);\n }", "private StringBuilder startBuild() {\n StringBuilder strBuilder = new StringBuilder()\n .append(\"CREATE EXTERNAL TABLE IF NOT EXISTS \");\n if (databaseName != null) {\n strBuilder.append(databaseName).append('.');\n }\n strBuilder.append(tableName);\n\n // yeah... schema is not always required.\n if (hiveSchema != null) {\n strBuilder.append(\" \").append(hiveSchema);\n }\n\n if (tableComment != null && !tableComment.isEmpty()) {\n strBuilder.append(\" COMMENT '\")\n .append(tableComment)\n .append(\"'\");\n }\n\n if (partitioning != null && !partitioning.getFields().isEmpty()) {\n strBuilder.append(\" PARTITIONED BY (\");\n for (Map.Entry<String, Partitioning.FieldType> entry : partitioning.getFields().entrySet()) {\n strBuilder = shouldEscapeColumns ?\n strBuilder.append('`').append(entry.getKey()).append('`') : strBuilder.append(entry.getKey());\n strBuilder.append(\" \")\n .append(FieldTypes.toHiveType(entry.getValue()))\n .append(\", \");\n }\n // remove trailing \", \"\n strBuilder.deleteCharAt(strBuilder.length() - 1)\n .deleteCharAt(strBuilder.length() - 1)\n .append(\")\");\n }\n\n if (rowFormat != null) {\n strBuilder.append(\" ROW FORMAT \").append(rowFormat);\n }\n return strBuilder;\n }", "public String getJunctionTableName(String table1)\n\t{\n\t\treturn \"Junct_\"\n\t\t\t\t+ table1 \n\t\t\t\t+ \"_\"\n\t\t\t\t+ this.getDBTableName(); \n\t}", "@VisibleForTesting\n protected void addFullTableName(String stageName) {\n String bqTableName = getBQTableName(stageName);\n stageToFullTableNameMap.put(stageName,\n String.format(\"`%s.%s.%s`\", dataset.getProject(), dataset.getDataset(), bqTableName));\n }", "public void buildLocation() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS location (location_name\"\n + \" TEXT, lat REAL, lon REAL PRIMARY KEY (location_name));\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }", "public void joinRow(AccountingLineTableRow headerLabelRow, AccountingLineTableRow row) {\n AccountingLineTableCell cell = new AccountingLineTableCell();\n\n AccountingLineTable columnsTable = new AccountingLineTable();\n\n List<AccountingLineTableRow> rows = createRowsForFields();\n \n columnsTable.setRows(rows);\n cell.addRenderableElement(columnsTable);\n headerLabelRow.addCell(cell);\n }", "private void initRowSource() {\n\t\tRowStructure rs = new RowStructure(6);\n\t\trs.add(\"EMP_ID\", StringType.get());\n\t\trs.add(\"EMP_FULLNAME\", StringType.get());\n\t\trs.add(\"Work Date\", StringType.get());\n\t\trs.add(\"Start Time\t\t\", StringType.get());\n\t\trs.add(\"End Time\t\t\", StringType.get());\n\t\trs.add(\"Time Worked (mins)\", StringType.get());\n\t\trowDefinition = new RowDefinition(-1, rs);\n\t}", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine insertNewExternalOrderLine(int i);", "LINK createLINK();", "private String getStringToCreateDB(String addings) {\n StringBuffer createDBStringBuffer = new StringBuffer();\n createDBStringBuffer\n .append(SQLFormater.CREATE_TABLE)\n .append(\" \")\n .append(tableName)\n .append(\"(\")\n .append(idFieldName)\n .append(\" \")\n .append(DBCreator.INTEGER_TYPE)\n .append(\" \")\n .append(SQLFormater.PRIMARY_KEY);\n mapFieldsTypes.forEach((kField, vType) -> { // add all table's fields\n createDBStringBuffer\n .append(\", \")\n .append(kField)\n .append(\" \")\n .append(vType);\n if(mapFieldsConstraints.containsKey(kField)) { // add constraint for a field\n createDBStringBuffer\n .append(\" \")\n .append(mapFieldsConstraints.get(kField));\n }\n });\n if (addings != null && !addings.isEmpty()) { // add reference\n createDBStringBuffer\n .append(\", \")\n .append(addings);\n }\n createDBStringBuffer.append(\")\");\n return createDBStringBuffer.toString();\n }", "private String getQualifiedSrcDsTableName() {\n return sourceDB + \".\" + DATASET_TABLE_NAME;\n }", "@Override\n public DynamicTableSource createDynamicTableSource(Context context) {\n FactoryUtil.TableFactoryHelper helper = FactoryUtil.createTableFactoryHelper(this, context);\n\n final ReadableConfig config = helper.getOptions();\n\n // validate all options\n helper.validate();\n\n // get jdbc options\n JdbcOptions jdbcOptions = getJdbcOptions(config);\n\n // get resovled table schema\n ResolvedSchema resolvedSchema = context.getCatalogTable().getResolvedSchema();\n\n // create the table source\n return new ClickHouseDynamicTableSource(jdbcOptions, resolvedSchema);\n\n }", "public static String getBuildingLineURL(String table, String cords, int dis) {\n\t\treturn BUILDING_LINE_QUERY_SERVICE + \"table=\" + table + \"&cords=\"\n\t\t\t\t+ cords + \"&dis=\" + dis;\n\t}", "protected void createExpandedNameTable( )\r\n {\r\n\r\n super.createExpandedNameTable();\r\n\r\n m_ErrorExt_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_EXT_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_SQLError_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_Message_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_MESSAGE, DTM.ELEMENT_NODE);\r\n\r\n m_Code_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CODE, DTM.ELEMENT_NODE);\r\n\r\n m_State_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_STATE, DTM.ELEMENT_NODE);\r\n\r\n m_SQLWarning_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_WARNING, DTM.ELEMENT_NODE);\r\n }", "public static String getCreateSQLString(){\n\t\treturn \"create table \" +TABLE_NAME_FAMILY_PLANNING_RECORDS +\" ( \"\n\t\t\t\t+SERVICE_REC_ID+\" integer primary key, \"\n\t\t\t\t+FamilyPlanningServices.SERVICE_ID +\" integer, \"\n\t\t\t\t+CommunityMembers.COMMUNITY_MEMBER_ID +\" integer, \"\n\t\t\t\t+SERVICE_DATE+\" text,\"\n\t\t\t\t+SCHEDULE_DATE+\" text, \"\n\t\t\t\t+QUANTITY+\" numberic ,\"\n\t\t\t\t+SERVICE_TYPE+\" integer default 0,\"\n\t\t\t\t+DataClass.REC_STATE+ \" integer \"\n\t\t\t\t+\")\";\n\t}", "private void buildRowMapping() {\n final Map<String, ColumnDescriptor> targetSource = new TreeMap<>();\n\n // build a DB path .. find parent node that terminates the joint group...\n PrefetchTreeNode jointRoot = this;\n while (jointRoot.getParent() != null && !jointRoot.isDisjointPrefetch()\n && !jointRoot.isDisjointByIdPrefetch()) {\n jointRoot = jointRoot.getParent();\n }\n\n final String prefix;\n if (jointRoot != this) {\n Expression objectPath = ExpressionFactory.pathExp(getPath(jointRoot));\n ASTPath translated = (ASTPath) ((PrefetchProcessorNode) jointRoot)\n .getResolver()\n .getEntity()\n .translateToDbPath(objectPath);\n\n // make sure we do not include \"db:\" prefix\n prefix = translated.getOperand(0) + \".\";\n } else {\n prefix = \"\";\n }\n\n // find propagated keys, assuming that only one-step joins\n // share their column(s) with parent\n\n if (getParent() != null\n && !getParent().isPhantom()\n && getIncoming() != null\n && !getIncoming().getRelationship().isFlattened()) {\n\n DbRelationship r = getIncoming()\n .getRelationship()\n .getDbRelationships()\n .get(0);\n for (final DbJoin join : r.getJoins()) {\n appendColumn(targetSource, join.getTargetName(), prefix\n + join.getTargetName());\n }\n }\n\n ClassDescriptor descriptor = resolver.getDescriptor();\n\n descriptor.visitAllProperties(new PropertyVisitor() {\n\n public boolean visitAttribute(AttributeProperty property) {\n String target = property.getAttribute().getDbAttributePath();\n if(!property.getAttribute().isLazy()) {\n appendColumn(targetSource, target, prefix + target);\n }\n return true;\n }\n\n public boolean visitToMany(ToManyProperty property) {\n return visitRelationship(property);\n }\n\n public boolean visitToOne(ToOneProperty property) {\n return visitRelationship(property);\n }\n\n private boolean visitRelationship(ArcProperty arc) {\n DbRelationship dbRel = arc.getRelationship().getDbRelationships().get(0);\n for (DbAttribute attribute : dbRel.getSourceAttributes()) {\n String target = attribute.getName();\n\n appendColumn(targetSource, target, prefix + target);\n }\n return true;\n }\n });\n\n // append id columns ... (some may have been appended already via relationships)\n for (String pkName : descriptor.getEntity().getPrimaryKeyNames()) {\n appendColumn(targetSource, pkName, prefix + pkName);\n }\n\n // append inheritance discriminator columns...\n for (ObjAttribute column : descriptor.getDiscriminatorColumns()) {\n String target = column.getDbAttributePath();\n appendColumn(targetSource, target, prefix + target);\n }\n\n int size = targetSource.size();\n this.rowCapacity = (int) Math.ceil(size / 0.75);\n this.columns = new ColumnDescriptor[size];\n targetSource.values().toArray(columns);\n }", "FromTableJoin createFromTableJoin();", "public LoggingTable(String alias) {\n\t\tthis(alias, LOGGING);\n\t}", "public abstract void transformReportEntry(ReportRow entry);", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "public String createInsertStatement(String importTableName, JsonNode row, DataSourceConfig config) throws Exception {\n if (importTableName == null || importTableName.equals(\"\") || row == null) {\n throw new IllegalArgumentException(\"createInsertStatement: importTableName name or row are null or empty\");\n }\n\n StringBuilder columns = new StringBuilder(\"(\");\n StringBuilder values = new StringBuilder(\"(\");\n String transformedIdMrn = \"\";\n String transformedIdPpid = \"\";\n String transformedVisitId = \"\";\n String transformedVisitDate = \"\";\n String connectsAs = config.getConnectToPrimaryIdType();\n\n Iterator<Map.Entry<String, JsonNode>> fieldIterator = row.fields();\n while (fieldIterator.hasNext()) {\n\n Map.Entry<String, JsonNode> currentField = fieldIterator.next();\n //LOGGER.log(Level.INFO, \"Adding field to insert statement: \" + currentField.getKey() + \":\" + currentField.getValue() + \"|\");\n String fieldName = currentField.getKey();\n\n // Limit how big field names as database limits require this.\n final int MAX_COLUMN_NAME_LENGTH = 44;\n fieldName = (fieldName.length() >= MAX_COLUMN_NAME_LENGTH) ? fieldName.substring(0, MAX_COLUMN_NAME_LENGTH) : fieldName;\n\n fieldName = this.curateFieldName(fieldName, config.getSourceId(), importTableName);\n\n columns.append(fieldName).append(\", \");\n\n String value = currentField.getValue().toString();\n //LOGGER.log(Level.INFO, \"Value: \" + value);\n if (value == null || value.equals(\"\") || value.equals(\"\\\"\\\"\")) {\n value = \"null\";\n }\n\n // VISIT DATE TRANSFORM\n // Primary and non-primary follow the same strategy for transforming Visit Date\n // Everything is converted to system time\n if (config.getVisitIdColumn(\"visitDate\") != null) {\n String visitDateField = config.getVisitIdColumn(\"visitDate\");\n String curatedVisitDateFieldName = curateFieldName(visitDateField, config.getSourceId(), importTableName);\n if (fieldName.equals(curatedVisitDateFieldName)) {\n LOGGER.log(Level.INFO, \"This is a Visit Date field, calling visitDateTransformService\");\n visitDateTransformService.setDataSourceConfig(config);\n transformedVisitDate = wrapInSingleQuotes(visitDateTransformService.transform(sanitizeSpecialChars(value)));\n }\n }\n\n // VISIT ID TRANSFORM\n // primary\n // No transform necessary; Visit ID transforms all non-primary sources to the primary (map)\n\n // non-primary\n // getVisitIdConnectionsSource will be null for primary\n\n if (config.getVisitIdConnectionsSource() != null &&\n config.getVisitIdType() != null) {\n String visitIdField = config.getVisitIdColumn(config.getVisitIdType());\n String curatedVisitIdFieldName = curateFieldName(visitIdField, config.getSourceId(), importTableName);\n if (fieldName.equals(curatedVisitIdFieldName)) {\n LOGGER.log(Level.INFO, \"This is a Visit ID field, calling visitIdTransformService\");\n visitIdTransformService.setDataSourceConfig(config);\n transformedVisitId = wrapInSingleQuotes(visitIdTransformService.transform(sanitizeSpecialChars(value)));\n }\n }\n\n // PATIENT IDENTIFIER (PPID) TRANSFORM\n // If this value is for the integration field, we need to apply the PreprocessorService\n // We only apply this logic to nonprimary sources, as the primary requires no manipulation (for now).\n // We need to know how the source connects to primary to ensure we're manipulating the correct ID column (connectsAs)\n\n // primary\n if (config.getIdColumnNameMrn() != null) {\n if (fieldName.equals(curateFieldName(config.getIdColumnNameMrn(), config.getSourceId(), importTableName))) {\n transformedIdMrn = preprocessorService.transformId(config, value, \"MRN\", true, null);\n }\n }\n if (config.getIdColumnNamePpid() != null) {\n if (fieldName.equals(curateFieldName(config.getIdColumnNamePpid(), config.getSourceId(), importTableName))) {\n if (tokenGrowthService.detectTokenGrowth(config, value)) {\n LOGGER.log(Level.INFO, \"Token growth detected for this value compared against against the processed_id. Calling TokenGrowthService.\");\n // .get(0) means this only works if there is one token in `growth_tokens` in the config, which is all that is currently supported\n List<Integer> tokenGrowthDelimiterPositions = tokenGrowthService.correctedDelimiterPositions(config, config.getGrowthTokens(\"ppid\").get(0), config.getDelimiterPositions(\"ppid\"), value);\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, tokenGrowthDelimiterPositions);\n } else {\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, null);\n }\n }\n }\n\n // non-primary\n if (config.getIdColumnNameMrn() != null && connectsAs != null && connectsAs.equalsIgnoreCase(\"MRN\")) {\n if (fieldName.equals(curateFieldName(config.getIdColumnNameMrn(), config.getSourceId(), importTableName))) {\n transformedIdMrn = preprocessorService.transformId(config, value, \"MRN\", true, null);\n }\n }\n if (config.getIdColumnNamePpid() != null && connectsAs != null && connectsAs.equalsIgnoreCase(\"PPID\")) {\n // if there's token growth, determine the appropriate offset and pass the corrected tokenGrowthDelimiterPositions\n if (fieldName.equals(curateFieldName(config.getIdColumnNamePpid(), config.getSourceId(), importTableName))) {\n if (tokenGrowthService.detectTokenGrowth(config, value)) {\n LOGGER.log(Level.INFO, \"Token growth detected for this value compared against against the processed_id. Calling TokenGrowthService.\");\n // .get(0) means this only works if there is one token in `growth_tokens` in the config, which is all that is currently supported\n List<Integer> tokenGrowthDelimiterPositions = tokenGrowthService.correctedDelimiterPositions(config, config.getGrowthTokens(\"ppid\").get(0), config.getDelimiterPositions(\"ppid\"), value);\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, tokenGrowthDelimiterPositions);\n } else {\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, null);\n }\n }\n }\n values.append(curateValue(value)).append(\", \");\n }\n // Since join_id fields are at the end, append the transformedIdMrn, then transformedIdPpid last\n if (connectsAs.equalsIgnoreCase(\"MRN\") && (transformedIdMrn == null || transformedIdMrn.equals(\"\"))) {\n throw new Exception(\"ERROR! Trying to connect w/ MRN and transformedIdMrn is null, meaning the join_id column for this source will be empty and integration will fail!\");\n }\n if (connectsAs.equalsIgnoreCase(\"PPID\") && (transformedIdPpid == null || transformedIdPpid.equals(\"\"))) {\n throw new Exception(\"ERROR! Trying to connect w/ PPID and transformedIdPpid is null, meaning the join_id column for this source will be empty and integration will fail!\");\n }\n\n // Add value to join_visit_date, if it exists\n if (!transformedVisitDate.equals(\"\")) {\n values.append(transformedVisitDate).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_visit_date, \");\n\n // Add value to join_visit_id, if it exists\n if (!transformedVisitId.equals(\"\")) {\n values.append(transformedVisitId).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_visit_id, \");\n\n // Add the join_id columns as the last part of the insert statement, either the value or null if it's null\n if (!transformedIdMrn.equals(\"\")) {\n values.append(curateValue(transformedIdMrn)).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_id_mrn, \");\n\n if (!transformedIdPpid.equals(\"\")) {\n values.append(curateValue(transformedIdPpid)).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_id_ppid, \");\n\n // remove extra \",\" and add the closing braces\n columns.replace(columns.length() - 2, columns.length(), \")\");\n values.replace(values.length() - 2, values.length(), \")\");\n String valuesWithoutDoubleQuotes = values.toString().replace('\\\"', '\\'');\n\n String sqlInsertSttmt = \"INSERT INTO \" + importTableName + \" \" + columns.toString() + \" VALUES \" + valuesWithoutDoubleQuotes;\n\n //LOGGER.log(Level.INFO, \"Built insert statement: \" + sqlInsertSttmt);\n return sqlInsertSttmt;\n }", "protected abstract String getAlterTable(boolean nextLine, boolean only);", "public ExternalDocumentEntry(\n\t\t\torg.openhealthtools.mdht.uml.cda.ExternalDocument externalReference) {\n\t\tsuper(externalReference);\n\t}", "public String getReferencedTableName();", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n String[] stringArray0 = new String[8];\n String string0 = SQLUtil.join(\"inner\", \"create tablept5qf^h^w72cnj\", stringArray0, \"Y[W,@7e}2gcxB\", \"alter tableo\", stringArray0);\n assertEquals(\"Y[W,@7e}2gcxB as alter tableo on create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null\", string0);\n }", "private Label handleLabel(String line, int lineNum, SymbolTable table) {\n\t\tLabel l = new Label(line.substring(1, line.length()-1));\n\t\tl.addToTable(lineNum, table);\n\t\treturn l;\n\t}", "FromTable createFromTable();", "public String getRowSetAlias();", "private String buildStaticViewString(Stream strm, String name) {\n\t\tString viewString = \"CREATE TEMP TABLE \"+name;\n\t\tviewString += \" AS \";\n\t\tviewString += \"SELECT * FROM \" + generateStreamData(strm, name, false) + \";\\r\\n\";\n\t\treturn viewString;\n\t}", "public abstract void appendReportEntryValues(ReportRow entry);", "public From table(String table) {\r\n\t\tString alias = null;\r\n\t\tif (table.toUpperCase()\r\n\t\t\t\t.contains(\" AS \"))\r\n\t\t\ttable = table.replaceAll(\"\\\\s+[Aa][Ss]\\\\s+\", \" \");\r\n\t\tfinal String[] parts = table.split(\"\\\\s+\");\r\n\t\tif (parts.length > 1) {\r\n\t\t\ttable = parts[0];\r\n\t\t\talias = parts[1];\r\n\t\t}\r\n\t\torigins.add(new FromOrigin().table(table)\r\n\t\t\t\t.alias(alias));\r\n\t\treturn this;\r\n\t}", "public static Line CreateLine(String id) { return new MyLine(id); }", "public void setup() {\r\n // These setters could be used to override the default.\r\n // this.setDatabasePolicy(new null());\r\n // this.setJDBCHelper(JDBCHelperFactory.create());\r\n this.setTableName(\"chm62edt_habitat_syntaxa\");\r\n this.setTableAlias(\"A\");\r\n this.setReadOnly(true);\r\n\r\n this.addColumnSpec(\r\n new CompoundPrimaryKeyColumnSpec(\r\n new StringColumnSpec(\"ID_HABITAT\", \"getIdHabitat\",\r\n \"setIdHabitat\", DEFAULT_TO_ZERO, NATURAL_PRIMARY_KEY),\r\n new StringColumnSpec(\"ID_SYNTAXA\", \"getIdSyntaxa\",\r\n \"setIdSyntaxa\", DEFAULT_TO_EMPTY_STRING,\r\n NATURAL_PRIMARY_KEY)));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"RELATION_TYPE\", \"getRelationType\",\r\n \"setRelationType\", DEFAULT_TO_NULL));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"ID_SYNTAXA_SOURCE\", \"getIdSyntaxaSource\",\r\n \"setIdSyntaxaSource\", DEFAULT_TO_EMPTY_STRING, REQUIRED));\r\n\r\n JoinTable syntaxa = new JoinTable(\"chm62edt_syntaxa B\", \"ID_SYNTAXA\",\r\n \"ID_SYNTAXA\");\r\n\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"NAME\", \"setSyntaxaName\"));\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"AUTHOR\", \"setSyntaxaAuthor\"));\r\n this.addJoinTable(syntaxa);\r\n\r\n JoinTable syntaxasource = new JoinTable(\"chm62edt_syntaxa_source C\",\r\n \"ID_SYNTAXA_SOURCE\", \"ID_SYNTAXA_SOURCE\");\r\n\r\n syntaxasource.addJoinColumn(new StringJoinColumn(\"SOURCE\", \"setSource\"));\r\n syntaxasource.addJoinColumn(\r\n new StringJoinColumn(\"SOURCE_ABBREV\", \"setSourceAbbrev\"));\r\n syntaxasource.addJoinColumn(new IntegerJoinColumn(\"ID_DC\", \"setIdDc\"));\r\n this.addJoinTable(syntaxasource);\r\n }", "public DynamicSchemaTable(String alias) {\n this(alias, DYNAMIC_SCHEMA);\n }", "@Test(timeout = 4000)\n public void test033() throws Throwable {\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.join((String) null, \"create table\", stringArray0, (String) null, \"c^J^/\", stringArray0);\n assertEquals(\"null as c^J^/ on create table.null = c^J^/.null and create table.null = c^J^/.null and create table.null = c^J^/.null and create table.null = c^J^/.null and create table.null = c^J^/.null\", string0);\n }", "private void exportToInsertSql() {\n\n if (destTableNameList.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"No table is selected.\");\n return;\n }\n final StringBuilder sb = new StringBuilder();\n for (final String tableName : destTableNameList) {\n utils.executeQuerySql(\"SELECT * FROM \" + tableName + \" WHERE 1=2\", new DataMetaUtils.QueryAction<Object>() {\n @Override\n public Object callback(ResultSet rs) throws SQLException {\n StringBuilder tableTriggerSb = new StringBuilder();\n ResultSetMetaData metaData = rs.getMetaData();\n String auditTableName = tableName + \"_AL\";\n tableTriggerSb.append(\"CREATE TABLE \").append(auditTableName).append(\" (\\n\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n tableTriggerSb.append(\" \");\n tableTriggerSb.append(metaData.getColumnName(i + 1));\n String typeName = metaData.getColumnTypeName(i + 1);\n tableTriggerSb.append(\" \")\n .append(typeName);\n if (metaData.getPrecision(i + 1) > 0) {\n tableTriggerSb.append(\"(\")\n .append(metaData.getPrecision(i + 1));\n if (metaData.getScale(i + 1) > 0) {\n tableTriggerSb.append(\",\")\n .append(metaData.getScale(i + 1));\n }\n tableTriggerSb.append(\")\");\n }\n\n tableTriggerSb.append(\",\\n\");\n\n }\n tableTriggerSb.append(\" ACT_TYPE CHAR(1),\\n\")\n .append(\" ACT_BY VARCHAR2(50),\\n\")\n .append(\" ACT_TIME DATE\\n\");\n tableTriggerSb.append(\");\\n\");\n\n\n //create trigger\n StringBuilder newInsert = new StringBuilder();\n StringBuilder delInsert = new StringBuilder();\n newInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n delInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n delInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(\":NEWROW.\").append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(\":OLDROW.\").append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"v_actType,\")\n .append(\":NEWROW.UPDATED_BY,\")\n .append(\"sysdate);\\n\");\n delInsert.append(\"'D',\")\n .append(\"USER,\")\n .append(\"sysdate);\\n\");\n\n tableTriggerSb.append(\"CREATE OR REPLACE TRIGGER \")\n .append(\"TR_AL_\")\n .append(tableName)\n .append(\" \\n\")\n .append(\"AFTER INSERT OR DELETE OR UPDATE ON \")\n .append(tableName)\n .append(\" \\n\")\n .append(\"REFERENCING OLD AS \\\"OLDROW\\\" NEW AS \\\"NEWROW\\\" \\n\"\n + \"FOR EACH ROW \\n\"\n + \"ENABLE\\n\")\n .append(\"DECLARE\\n\")\n .append(\"v_actType char(1);\\n\")\n .append(\"BEGIN\\n\")\n .append(\"IF INSERTING OR UPDATING THEN \\n\"\n + \"BEGIN \\n\"\n + \"IF INSERTING THEN \\n v_actType := 'I'; \\nELSE\\n v_actType := 'U';\\n END IF;\\n\");\n tableTriggerSb.append(newInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \" ELSIF DELETING THEN \\n\"\n + \" BEGIN \\n\");\n\n tableTriggerSb.append(delInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \"END IF;\\n\"\n + \"END;\\n/\\n\");\n sb.append(tableTriggerSb.toString());\n\n return null;\n }\n });\n }\n\n SqlResultForm form = new SqlResultForm(null, true);\n form.setLocationRelativeTo(null);\n form.setSqlResult(sb.toString());\n form.setTestDsKey(((ValueName) cmbDs.getSelectedItem()).getValue());\n form.setVisible(true);\n\n }", "private String getRevisionTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table REVISION(\");\n \t\tbuilder.append(\"REVISION_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"REVISION_IDENTIFIER TEXT UNIQUE\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public interface ISQLiteJoinTableCreator {\n\n}", "public Creator_4_tables() {\n// this.sourceUnits = sourceUnits;\n sourceUnits = new HashMap<String, PojoSourceCreatorUnit>();\n sourceTemplatePool.logEnvOnSrcCreate = app.cfg.getCfgBean().logEnvOnSrcCreate;\n env.setLogLeading(\"--cfenv--\");\n }", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public abstract void setupReferences() throws SQLException;", "public void AddRow(String Table, String Value)\r\n {\n }", "public Limelight(String name) {\n tableName = name;\n }", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "protected void decorateSQL(Statement stmt) throws SQLException\n {\n getConnection();\n\n // create a table with some data\n stmt.executeUpdate(\n \"CREATE TABLE foo (a int, b char(100))\");\n stmt.execute(\"insert into foo values (1, 'hello world')\");\n stmt.execute(\"insert into foo values (2, 'happy world')\");\n stmt.execute(\"insert into foo values (3, 'sad world')\");\n stmt.execute(\"insert into foo values (4, 'crazy world')\");\n for (int i=0 ; i<7 ; i++)\n stmt.execute(\"insert into foo select * from foo\");\n stmt.execute(\"create index fooi on foo(a, b)\");\n }", "@Test\n public void testColumnLevelLineage() throws Exception {\n String sourceTable = \"table\" + random();\n\n runCommand(\"create table \" + sourceTable + \"(a int, b int)\");\n\n String sourceTableGUID = assertTableIsRegistered(DEFAULT_DB, sourceTable);\n String a_guid = assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, sourceTable), \"a\"));\n String b_guid = assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, sourceTable), \"b\"));\n String ctasTableName = \"table\" + random();\n String query = \"create table \" + ctasTableName + \" as \" + \"select sum(a+b) as a, count(*) as b from \" + sourceTable;\n\n runCommand(query);\n\n String dest_a_guid = assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, ctasTableName), \"a\"));\n String dest_b_guid = assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, ctasTableName), \"b\"));\n\n Set<ReadEntity> inputs = getInputs(sourceTable, Entity.Type.TABLE);\n Set<WriteEntity> outputs = getOutputs(ctasTableName, Entity.Type.TABLE);\n HiveEventContext event = constructEvent(query, HiveOperation.CREATETABLE_AS_SELECT, inputs, outputs);\n AtlasEntity processEntity1 = validateProcess(event);\n AtlasEntity hiveProcessExecution1 = validateProcessExecution(processEntity1, event);\n AtlasObjectId process1 = toAtlasObjectId(hiveProcessExecution1.getRelationshipAttribute(\n BaseHiveEvent.ATTRIBUTE_PROCESS));\n Assert.assertEquals(process1.getGuid(), processEntity1.getGuid());\n Assert.assertEquals(numberOfProcessExecutions(processEntity1), 1);\n Assert.assertEquals(processEntity1.getGuid(), processEntity1.getGuid());\n\n assertTableIsRegistered(DEFAULT_DB, ctasTableName);\n\n String processQName = sortEventsAndGetProcessQualifiedName(event);\n List<String> aLineageInputs = Arrays.asList(a_guid, b_guid);\n String aLineageProcessName = processQName + \":\" + \"a\";\n\n LOG.debug(\"Searching for column lineage process {} \", aLineageProcessName);\n String guid = assertEntityIsRegistered(HiveDataTypes.HIVE_COLUMN_LINEAGE.getName(), ATTRIBUTE_QUALIFIED_NAME, aLineageProcessName, null);\n\n AtlasEntity colLineageEntity = atlasClientV2.getEntityByGuid(guid).getEntity();\n List<AtlasObjectId> processInputs = toAtlasObjectIdList(colLineageEntity.getAttribute(\"inputs\"));\n List<String> processInputsAsString = new ArrayList<>();\n\n for(AtlasObjectId input: processInputs){\n processInputsAsString.add(input.getGuid());\n }\n\n Collections.sort(processInputsAsString);\n Collections.sort(aLineageInputs);\n\n Assert.assertEquals(processInputsAsString, aLineageInputs);\n\n List<String> bLineageInputs = Arrays.asList(sourceTableGUID);\n String bLineageProcessName = processQName + \":\" + \"b\";\n\n LOG.debug(\"Searching for column lineage process {} \", bLineageProcessName);\n\n String guid1 = assertEntityIsRegistered(HiveDataTypes.HIVE_COLUMN_LINEAGE.getName(), ATTRIBUTE_QUALIFIED_NAME, bLineageProcessName, null);\n\n\n AtlasEntity colLineageEntity1 = atlasClientV2.getEntityByGuid(guid1).getEntity();\n List<AtlasObjectId> bProcessInputs = toAtlasObjectIdList(colLineageEntity1.getAttribute(\"inputs\"));\n List<String> bProcessInputsAsString = new ArrayList<>();\n\n for(AtlasObjectId input: bProcessInputs){\n bProcessInputsAsString.add(input.getGuid());\n }\n\n Collections.sort(bProcessInputsAsString);\n Collections.sort(bLineageInputs);\n\n Assert.assertEquals(bProcessInputsAsString, bLineageInputs);\n\n //Test lineage API response\n AtlasLineageInfo atlasLineageInfoInput = atlasClientV2.getLineageInfo(dest_a_guid, AtlasLineageInfo.LineageDirection.INPUT,0);\n Map<String, AtlasEntityHeader> entityMap = atlasLineageInfoInput.getGuidEntityMap();\n\n ObjectNode response = atlasClient.getInputGraphForEntity(dest_a_guid);\n JsonNode vertices = response.get(\"values\").get(\"vertices\");\n JsonNode dest_a_val = vertices.get(dest_a_guid);\n JsonNode src_a_val = vertices.get(a_guid);\n JsonNode src_b_val = vertices.get(b_guid);\n\n Assert.assertNotNull(dest_a_val);\n Assert.assertNotNull(src_a_val);\n Assert.assertNotNull(src_b_val);\n\n ObjectNode b_response = atlasClient.getInputGraphForEntity(dest_b_guid);\n JsonNode b_vertices = b_response.get(\"values\").get(\"vertices\");\n JsonNode b_val = b_vertices.get(dest_b_guid);\n JsonNode src_tbl_val = b_vertices.get(sourceTableGUID);\n\n Assert.assertNotNull(b_val);\n Assert.assertNotNull(src_tbl_val);\n }", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "Row createRow();", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "@Test void testInterpretTable() {\n sql(\"select * from \\\"hr\\\".\\\"emps\\\" order by \\\"empid\\\"\")\n .returnsRows(\"[100, 10, Bill, 10000.0, 1000]\",\n \"[110, 10, Theodore, 11500.0, 250]\",\n \"[150, 10, Sebastian, 7000.0, null]\",\n \"[200, 20, Eric, 8000.0, 500]\");\n }", "private LedgerEntry buildLedgerEntry( Account account, String[] tupule ) \n throws Exception {\n \n LedgerEntry entry = new LedgerEntry() ;\n entry.setAccount( account ) ;\n entry.setValueDate( new Date( VALUE_DT_SDF.parse( tupule[1] ).getTime() ) ) ;\n \n entry.setRemarks( tupule[2] ) ;\n \n Float withdrawalAmt = getFloatValue( tupule[4] ) ;\n Float depositAmt = getFloatValue( tupule[5] ) ;\n if( depositAmt > 0 ) {\n entry.setAmount( depositAmt ) ;\n }\n else if( withdrawalAmt > 0 ) {\n entry.setAmount( -withdrawalAmt ) ;\n }\n \n entry.setBalance( getFloatValue( tupule[6] ) ) ;\n entry.generateHash() ;\n \n return entry ;\n }", "public void openEntryRow(Appendable sb, String resourceId,\n String baseUrl, String urlArg) {\n try {\n String domId = cleanIdForJS(resourceId);\n String divId = \"div_\" + domId;\n /*\n String rowId = \"row_\" + domId;\n String imgId = \"img_\" + domId;\n String[] events = getEntryEventJS(resourceId, baseUrl, urlArg);\n String event1 = events[0];\n String event2 = events[1];\n String dartImg = HtmlUtil.img(iconUrl(\"/blank.gif\"), \"\", event2\n + HtmlUtil.attr(HtmlUtil.ATTR_WIDTH, \"10\")\n + HtmlUtil.attr(HtmlUtil.ATTR_HEIGHT, \"10\")\n + HtmlUtil.id(imgId));\n */\n // ? makes little black down arrow in first column of file search results table\n //sb.append(\"<tr valign=\\\"bottom\\\" \" + HtmlUtil.id(rowId) + \" \" + event1 + \">\");\n\n // makes first column in table, a <td>, for the invisible link to the \"resource page\" for this file\n // this sb.append line by itself makes an empty column with no link\n sb.append( \"<td><div \" + HtmlUtil.id(divId) + \"><table border=0 class=\\\"gsac-innerresult-table\\\" cellpadding=0 cellspacing=0><tr>\");\n\n // ? makes invisible link to the \"resource page\" for this file\n //sb.append(HtmlUtil.col(dartImg));\n\n } catch (IOException ioe) {\n throw new RuntimeException(ioe);\n }\n }", "TABLE createTABLE();", "@Test(timeout = 4000)\n public void test042() throws Throwable {\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.innerJoin(\"alter materialized viewjcsh%4%|@v9\", stringArray0, \"create materialized viewjcsh%4%|@v9\", \"\", stringArray0);\n assertEquals(\"create materialized viewjcsh%4%|@v9 as on alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null\", string0);\n }", "public String getSourceTable();", "private String getCloneSetTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET(\");\n \t\tbuilder.append(\"CLONE_SET_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"OWNER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"ELEMENTS TEXT NOT NULL,\");\n \t\tbuilder.append(\"NUMBER_OF_ELEMENTS INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public void createSourceOrderItemTable() throws SQLException {\n sourceExecuteWithLog(extraSQLCommand.getCreateTableOrderItem());\n }", "ExpRunTable createRunTable(String name, UserSchema schema, ContainerFilter cf);", "LineNumberTable(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException {\n this(name_index, length, (LineNumber[]) null, constant_pool);\n data = new byte[length];\n int byteReads = file.read(data);\n isInPackedState = true;\n // assert(bytesRead==length)\n }", "@Override\n\tpublic void buildSymbolTable(STableI table, Stack<STableI> stStack, int entryLoc, int tableLoc)\n\t\t\tthrows CompileTimeError {\n\t\t\n\t}" ]
[ "0.63796943", "0.5332689", "0.5316359", "0.5198467", "0.4989316", "0.49793717", "0.4952755", "0.48826933", "0.4853944", "0.48176202", "0.47946033", "0.47765112", "0.4759116", "0.47529298", "0.47223195", "0.4686311", "0.4674164", "0.4658765", "0.46557269", "0.46546587", "0.4643905", "0.4636987", "0.46250623", "0.46160802", "0.4615409", "0.46019277", "0.45946896", "0.45885873", "0.45454174", "0.45180222", "0.4515597", "0.4510917", "0.45045054", "0.4501511", "0.44985452", "0.449621", "0.44956002", "0.44951183", "0.44928628", "0.4485787", "0.44856295", "0.4484475", "0.4484023", "0.4481565", "0.44764993", "0.44669035", "0.44616437", "0.4446253", "0.44448733", "0.44440395", "0.44429567", "0.44426203", "0.44414276", "0.4439814", "0.44361743", "0.44223922", "0.44185662", "0.44158298", "0.44138467", "0.44087946", "0.44081098", "0.4400473", "0.43778348", "0.4375008", "0.43747392", "0.43732682", "0.43675405", "0.43666747", "0.43610096", "0.43594772", "0.43539605", "0.43483272", "0.43467492", "0.43447828", "0.4344101", "0.43364403", "0.43337253", "0.43286967", "0.43284845", "0.43268013", "0.4325137", "0.43248746", "0.43216023", "0.43139088", "0.4302367", "0.43020335", "0.4301486", "0.42996517", "0.42981467", "0.4298043", "0.42950782", "0.42905906", "0.4285863", "0.42786017", "0.42778516", "0.42717385", "0.42692193", "0.42691395", "0.42684516", "0.42648154" ]
0.62937796
1
Create an aliased JOURNAL_ENTRY_LINE table reference
public JournalEntryLine(Name alias) { this(alias, JOURNAL_ENTRY_LINE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JournalEntryLine(String alias) {\n this(DSL.name(alias), JOURNAL_ENTRY_LINE);\n }", "private static DataBaseEntry createEntry(String line) {\n int eq = line.indexOf(\"=\");\n if (eq < 0) {\n System.err.println(\"not found '=' in line \" + line);\n }\n int hash = line.indexOf(\"#\");\n if (hash < 0) {\n System.err.println(\"not found '#' in line \" + line);\n }\n String file = line.substring(0, eq);\n String cwd = line.substring(eq+1, hash);\n String compileString = line.substring(hash+1);\n \n CompileLineEntryBuilder builder = new CompileLineEntryBuilder(file);\n for (String option : splitCommandLine(compileString)) {\n builder.handle(option);\n }\n return builder.createDataBaseEntry();\n }", "public JournalEntryLine() {\n this(DSL.name(\"JOURNAL_ENTRY_LINE\"), null);\n }", "private void appendPrimaryTableName() {\n super.appendTableName(Constants.FROM, joinQueryInputs.primaryTableName);\n }", "public String getNextTableSqlAlias() {\n return \"t\"+(aliasCounter++);\n }", "@Test(enabled = false)\n public void testCreateExternalTable() throws Exception {\n String tableName = tableName();\n String colName = columnName();\n String pFile = createTestDFSPath(\"parentPath\");\n String query = String.format(\"create EXTERNAL table %s.%s(%s, %s) location '%s'\", DEFAULT_DB , tableName , colName + \" int\", \"name string\", pFile);\n\n runCommand(query);\n\n String tblId = assertTableIsRegistered(DEFAULT_DB, tableName, null, true);\n AtlasEntity tblEnity = atlasClientV2.getEntityByGuid(tblId).getEntity();\n List ddlList = (List) tblEnity.getRelationshipAttribute(ATTRIBUTE_DDL_QUERIES);\n\n assertNotNull(ddlList);\n assertEquals(ddlList.size(), 1);\n\n String processId = assertEntityIsRegistered(HiveDataTypes.HIVE_PROCESS.getName(), ATTRIBUTE_QUALIFIED_NAME, getTableProcessQualifiedName(DEFAULT_DB, tableName), null);\n\n AtlasEntity processsEntity = atlasClientV2.getEntityByGuid(processId).getEntity();\n\n assertEquals(processsEntity.getAttribute(\"userName\"), UserGroupInformation.getCurrentUser().getShortUserName());\n\n verifyTimestamps(processsEntity, \"startTime\");\n verifyTimestamps(processsEntity, \"endTime\");\n\n validateHDFSPaths(processsEntity, INPUTS, pFile);\n }", "private String getCloneSetLinkTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET_LINK(\");\n \t\tbuilder.append(\"CLONE_SET_LINK_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"BEFORE_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"AFTER_ELEMENT_ID LONG,\");\n \t\tbuilder.append(\"BEFORE_REVISION_ID LONG,\");\n \t\tbuilder.append(\"AFTER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"ADDED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"DELETED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CO_CHANGED_ELEMENTS INTEGER,\");\n \t\tbuilder.append(\"CODE_FRAGMENT_LINKS TEXT NOT NULL\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "private HashGroupifyEntry createEntry(final int row, final int index, final int hash, final int line) {\n final HashGroupifyEntry entry = new HashGroupifyEntry(this.dataOutput, row, hash);\n entry.next = hashTableBuckets[index];\n entry.representative = line;\n hashTableBuckets[index] = entry;\n if (hashTableFirstEntry == null) {\n hashTableFirstEntry = entry;\n hashTableLastEntry = entry;\n } else {\n hashTableLastEntry.nextOrdered = entry;\n hashTableLastEntry = entry;\n }\n return entry;\n }", "public static final String getAuthCollabOverKWTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authcollabkw_\" +shortname +\r\n\t\t\"(keyword varchar(255) NOT NULL, \" + \r\n\t\t\"author varchar(70) NOT NULL, \" + \r\n\t\t\" collabauth varchar(70) NOT NULL, \" +\r\n\t\t\"collabcnt int NOT NULL\" +\r\n\t\t\" ) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "private void appendFullTableNameAndAlias(String stageName) {\n builder.append(getFullTableName(stageName)).append(AS).append(getTableAlias(stageName));\n }", "public DataEntry createEntry(String tableName, DataEntry entry) {\n\t\tDataEntry oldEntry = null;\n\t\tif (tables.containsKey(tableName)) {\n\t\t\tTable table = tables.get(tableName);\n\t\t\toldEntry = table.create(entry.getProductId(), entry);\n\t\t\tdataToHistory(oldEntry);\n\t\t}\n\t\treturn oldEntry;\n\t}", "static String getAlterArtifactInstancesAddAccountIdTemplate(CentralRepoPlatforms selectedPlatform) {\n // Each \"%s\" will be replaced with the relevant TYPE_instances table name.\n return \"ALTER TABLE %s\"\n + \" ADD account_id \" + RdbmsCentralRepoFactory.getBigIntType(selectedPlatform) + \" DEFAULT NULL\";\n\n }", "public void setSourceTable(String sourceTable);", "public static final String getAuthKWRelTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_authkw_\" +shortname +\r\n\t\t\"(author varchar(70) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" PRIMARY KEY (keyword,author)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "AliasStatement createAliasStatement();", "@Ignore(\"Disabled due to missing functionality in Oracle XE.\")\n @Test\n public void referencePartitionedTable() throws FlywayException {\n flyway.setLocations(\"migration/dbsupport/oracle/sql/refpart\");\n flyway.migrate();\n flyway.clean();\n flyway.migrate();\n }", "public DiffPlanOutline() {\n\t\tsuper(\"DIFF_PLAN_OUTLINE\", org.jooq.examples.oracle.sys.Sys.SYS, org.jooq.examples.oracle.sys.packages.DbmsXplan.DBMS_XPLAN, org.jooq.impl.SQLDataType.VARCHAR);\n\n\t\tsetReturnParameter(RETURN_VALUE);\n\t\taddInParameter(SQL_TEXT);\n\t\taddInParameter(OUTLINE1);\n\t\taddInParameter(OUTLINE2);\n\t\taddInParameter(USER_NAME);\n\t}", "private String createLabelTableSQL()\n\t{\n\t\treturn \"LABEL ON TABLE \" + getFullPath() + \" IS '\" + SQLToolbox.cvtToSQLFieldColHdg(function.getLabel()) + \"'\";\n\t}", "static String getAlterArtifactInstancesAddAccountIdConstraintTemplate() {\n // Each \"%s\" will be replaced with the relevant TYPE_instances table name.\n return \"ALTER TABLE %s\"\n + \" ADD CONSTRAINT account_id_fk foreign key (account_id) references accounts(id)\";\n }", "public static void LineArchive() throws ClassNotFoundException, SQLException {\r\n Statement s1 = DBConnect.connection.createStatement();\r\n String writeLine = \"INSERT INTO completed_lines \"\r\n + \"(Line, Sku, Qty, Description1, Orig_Sku, Description2, Attribute2, Size2, Orig_Retail, Manuf_Inspection, New_Used, Reason, \"\r\n + \"Desc_Damage, Cust_Satisf, Warranty, Second_Cost, Form_Name, Ln_Date, Second_Sku_Vendor, Second_Sku_VPNum, Ord_C$, New_Sku, \"\r\n + \"First_DCS, Second_DCS) SELECT * FROM \" + InvAdj_Admin.frmNm + \" WHERE Sku IS NOT NULL\";\r\n \r\n // This inserts store and form name because I could not figure out how to include it in the insert statement above\r\n String setStrFmNm = \"UPDATE completed_lines \"\r\n // + \"SET Form_Name = '\" + InvAdj_Admin.frmNm + \"'\" + \",\"\r\n + \"SET Store = '\" + InvAdj_Admin.frmNm.split(\"_\")[1] + \"' \"\r\n + \"WHERE Sku IS NOT NULL AND Form_Name = '\"+ InvAdj_Admin.frmNm +\"'\";\r\n s1.execute(writeLine); \r\n s1.execute(setStrFmNm);\r\n }", "public interface PathAliasHandler {\n String toAliasedColumn(FieldExpression fieldExpression);\n}", "public static void insLns() throws ClassNotFoundException, SQLException {\r\n Statement s = DBConnect.connection.createStatement();\r\n for (int w = 1; w < 11; w++) {\r\n String insLines = \"INSERT INTO \" + StFrmNm\r\n + \"(Line) \"\r\n + \"VALUES(\"\r\n + \"'\" + w + \"'\"\r\n + \")\";\r\n s.execute(insLines);\r\n }\r\n }", "public LineNumberTable(LineNumberTable c) {\n this(c.getNameIndex(), c.getLength(), c.getLineNumberTable(), c.getConstantPool());\n }", "public void joinTable(List<AccountingLineTableRow> rows) {\n throw new IllegalStateException(\"Line elements may not join a table directly; the specified rendering is incorrect\");\n }", "@Override\n\tpublic String createTable() {\n\t\t\t\treturn \"CREATE TABLE history_table_view(id number(8) primary key not null ,sqltext text, pointid varchar2(1024), type varchar2(100))\";\n\t}", "public Mytable(String alias) {\n this(DSL.name(alias), MYTABLE);\n }", "Line createLine();", "String getSqlForExternalTool(Alias alias, String sql, SqlParser parser);", "public static final String getTopicTableCreationSQL(String shortname) {\r\n\t\tString crTopicTableSQL = \"CREATE TABLE IF NOT EXISTS dblp_topic_\" +shortname +\r\n\t\t\"(tid varchar(50) NOT NULL, \" +\r\n\t\t\" keyword varchar(255) NOT NULL, \" + \r\n\t\t\" istop tinyint UNSIGNED ZEROFILL, \" + // Is this keyword a top keyword for this topic\r\n\t\t\" PRIMARY KEY (tid,keyword)) \";\r\n\t\treturn crTopicTableSQL;\r\n\t}", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine addNewExternalOrderLine();", "protected abstract Object calcJoinRow();", "public abstract String[] createTablesStatementStrings();", "TableOrAlias createTableOrAlias();", "public static String AssetRef_CreateTable()\n\t{\n\t\tString str = \"create table assetref (\" \n\t\t\t\t+ \"id INTEGER PRIMARY KEY,\"\n\t\t\t\t+ \"uniqueId string,\"\n\t\t\t\t+ \"path string,\"\n\t\t\t\t+ \"name string,\"\n\t\t\t\t+ \"size int,\"\n\t\t\t\t+ \"lastChanged time\"\n\t\t\t\t+ \")\";\n\t\treturn str;\t\n\t}", "public Mytable(Name alias) {\n this(alias, MYTABLE);\n }", "private String getCloneGenealogyTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_GENEALOGY(\");\n \t\tbuilder.append(\"CLONE_GENEALOGY_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"START_REVISION_ID LONG,\");\n \t\tbuilder.append(\"END_REVISION_ID LONG,\");\n \t\tbuilder.append(\"CLONES TEXT NOT NULL,\");\n \t\tbuilder.append(\"CLONE_LINKS TEXT NOT NULL,\");\n \t\tbuilder.append(\"CHANGES INTEGER,\");\n \t\tbuilder.append(\"ADDITIONS INTEGER,\");\n \t\tbuilder.append(\"DELETIONS INTEGER,\");\n \t\tbuilder.append(\"DEAD INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "LineReferenceType getLineReference();", "public interface IEntry extends IRelation {\r\n\r\n String getJoinColumnName();\r\n\r\n\r\n void setJoinColumnName(String joinColumnName);\r\n\r\n\r\n String getJoinAttributeName();\r\n\r\n\r\n void setJoinAttributeName(String joinAttributeName);\r\n\r\n\r\n String getJoinEntityIdentifier();\r\n\r\n\r\n void setJoinEntityIdentifier(String joinEntityIdentifier);\r\n\r\n \r\n Entity getJoinEntity();\r\n}", "public AgentTable(String alias) {\n this(alias, AGENT);\n }", "@Test(timeout = 4000)\n public void test043() throws Throwable {\n String[] stringArray0 = new String[6];\n String string0 = SQLUtil.innerJoin(\"create table \", stringArray0, (String) null, \"FMK$x:Q_QfZ|{K*oyK \", stringArray0);\n assertEquals(\"null as FMK$x:Q_QfZ|{K*oyK on create table .null = FMK$x:Q_QfZ|{K*oyK .null and create table .null = FMK$x:Q_QfZ|{K*oyK .null and create table .null = FMK$x:Q_QfZ|{K*oyK .null and create table .null = FMK$x:Q_QfZ|{K*oyK .null and create table .null = FMK$x:Q_QfZ|{K*oyK .null and create table .null = FMK$x:Q_QfZ|{K*oyK .null\", string0);\n }", "private StringBuilder startBuild() {\n StringBuilder strBuilder = new StringBuilder()\n .append(\"CREATE EXTERNAL TABLE IF NOT EXISTS \");\n if (databaseName != null) {\n strBuilder.append(databaseName).append('.');\n }\n strBuilder.append(tableName);\n\n // yeah... schema is not always required.\n if (hiveSchema != null) {\n strBuilder.append(\" \").append(hiveSchema);\n }\n\n if (tableComment != null && !tableComment.isEmpty()) {\n strBuilder.append(\" COMMENT '\")\n .append(tableComment)\n .append(\"'\");\n }\n\n if (partitioning != null && !partitioning.getFields().isEmpty()) {\n strBuilder.append(\" PARTITIONED BY (\");\n for (Map.Entry<String, Partitioning.FieldType> entry : partitioning.getFields().entrySet()) {\n strBuilder = shouldEscapeColumns ?\n strBuilder.append('`').append(entry.getKey()).append('`') : strBuilder.append(entry.getKey());\n strBuilder.append(\" \")\n .append(FieldTypes.toHiveType(entry.getValue()))\n .append(\", \");\n }\n // remove trailing \", \"\n strBuilder.deleteCharAt(strBuilder.length() - 1)\n .deleteCharAt(strBuilder.length() - 1)\n .append(\")\");\n }\n\n if (rowFormat != null) {\n strBuilder.append(\" ROW FORMAT \").append(rowFormat);\n }\n return strBuilder;\n }", "@VisibleForTesting\n protected void addFullTableName(String stageName) {\n String bqTableName = getBQTableName(stageName);\n stageToFullTableNameMap.put(stageName,\n String.format(\"`%s.%s.%s`\", dataset.getProject(), dataset.getDataset(), bqTableName));\n }", "public String getJunctionTableName(String table1)\n\t{\n\t\treturn \"Junct_\"\n\t\t\t\t+ table1 \n\t\t\t\t+ \"_\"\n\t\t\t\t+ this.getDBTableName(); \n\t}", "public void buildLocation() {\n try (PreparedStatement prep = Database.getConnection()\n .prepareStatement(\"CREATE TABLE IF NOT EXISTS location (location_name\"\n + \" TEXT, lat REAL, lon REAL PRIMARY KEY (location_name));\")) {\n prep.executeUpdate();\n } catch (final SQLException e) {\n e.printStackTrace();\n }\n }", "public void joinRow(AccountingLineTableRow headerLabelRow, AccountingLineTableRow row) {\n AccountingLineTableCell cell = new AccountingLineTableCell();\n\n AccountingLineTable columnsTable = new AccountingLineTable();\n\n List<AccountingLineTableRow> rows = createRowsForFields();\n \n columnsTable.setRows(rows);\n cell.addRenderableElement(columnsTable);\n headerLabelRow.addCell(cell);\n }", "private void initRowSource() {\n\t\tRowStructure rs = new RowStructure(6);\n\t\trs.add(\"EMP_ID\", StringType.get());\n\t\trs.add(\"EMP_FULLNAME\", StringType.get());\n\t\trs.add(\"Work Date\", StringType.get());\n\t\trs.add(\"Start Time\t\t\", StringType.get());\n\t\trs.add(\"End Time\t\t\", StringType.get());\n\t\trs.add(\"Time Worked (mins)\", StringType.get());\n\t\trowDefinition = new RowDefinition(-1, rs);\n\t}", "org.datacontract.schemas._2004._07.cdiscount_service_marketplace_api_external_contract_data_order.ExternalOrderLine insertNewExternalOrderLine(int i);", "LINK createLINK();", "private String getStringToCreateDB(String addings) {\n StringBuffer createDBStringBuffer = new StringBuffer();\n createDBStringBuffer\n .append(SQLFormater.CREATE_TABLE)\n .append(\" \")\n .append(tableName)\n .append(\"(\")\n .append(idFieldName)\n .append(\" \")\n .append(DBCreator.INTEGER_TYPE)\n .append(\" \")\n .append(SQLFormater.PRIMARY_KEY);\n mapFieldsTypes.forEach((kField, vType) -> { // add all table's fields\n createDBStringBuffer\n .append(\", \")\n .append(kField)\n .append(\" \")\n .append(vType);\n if(mapFieldsConstraints.containsKey(kField)) { // add constraint for a field\n createDBStringBuffer\n .append(\" \")\n .append(mapFieldsConstraints.get(kField));\n }\n });\n if (addings != null && !addings.isEmpty()) { // add reference\n createDBStringBuffer\n .append(\", \")\n .append(addings);\n }\n createDBStringBuffer.append(\")\");\n return createDBStringBuffer.toString();\n }", "private String getQualifiedSrcDsTableName() {\n return sourceDB + \".\" + DATASET_TABLE_NAME;\n }", "protected void createExpandedNameTable( )\r\n {\r\n\r\n super.createExpandedNameTable();\r\n\r\n m_ErrorExt_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_EXT_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_SQLError_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_ERROR, DTM.ELEMENT_NODE);\r\n\r\n m_Message_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_MESSAGE, DTM.ELEMENT_NODE);\r\n\r\n m_Code_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_CODE, DTM.ELEMENT_NODE);\r\n\r\n m_State_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_STATE, DTM.ELEMENT_NODE);\r\n\r\n m_SQLWarning_TypeID =\r\n m_expandedNameTable.getExpandedTypeID(S_NAMESPACE, S_SQL_WARNING, DTM.ELEMENT_NODE);\r\n }", "@Override\n public DynamicTableSource createDynamicTableSource(Context context) {\n FactoryUtil.TableFactoryHelper helper = FactoryUtil.createTableFactoryHelper(this, context);\n\n final ReadableConfig config = helper.getOptions();\n\n // validate all options\n helper.validate();\n\n // get jdbc options\n JdbcOptions jdbcOptions = getJdbcOptions(config);\n\n // get resovled table schema\n ResolvedSchema resolvedSchema = context.getCatalogTable().getResolvedSchema();\n\n // create the table source\n return new ClickHouseDynamicTableSource(jdbcOptions, resolvedSchema);\n\n }", "public static String getBuildingLineURL(String table, String cords, int dis) {\n\t\treturn BUILDING_LINE_QUERY_SERVICE + \"table=\" + table + \"&cords=\"\n\t\t\t\t+ cords + \"&dis=\" + dis;\n\t}", "public static String getCreateSQLString(){\n\t\treturn \"create table \" +TABLE_NAME_FAMILY_PLANNING_RECORDS +\" ( \"\n\t\t\t\t+SERVICE_REC_ID+\" integer primary key, \"\n\t\t\t\t+FamilyPlanningServices.SERVICE_ID +\" integer, \"\n\t\t\t\t+CommunityMembers.COMMUNITY_MEMBER_ID +\" integer, \"\n\t\t\t\t+SERVICE_DATE+\" text,\"\n\t\t\t\t+SCHEDULE_DATE+\" text, \"\n\t\t\t\t+QUANTITY+\" numberic ,\"\n\t\t\t\t+SERVICE_TYPE+\" integer default 0,\"\n\t\t\t\t+DataClass.REC_STATE+ \" integer \"\n\t\t\t\t+\")\";\n\t}", "private void buildRowMapping() {\n final Map<String, ColumnDescriptor> targetSource = new TreeMap<>();\n\n // build a DB path .. find parent node that terminates the joint group...\n PrefetchTreeNode jointRoot = this;\n while (jointRoot.getParent() != null && !jointRoot.isDisjointPrefetch()\n && !jointRoot.isDisjointByIdPrefetch()) {\n jointRoot = jointRoot.getParent();\n }\n\n final String prefix;\n if (jointRoot != this) {\n Expression objectPath = ExpressionFactory.pathExp(getPath(jointRoot));\n ASTPath translated = (ASTPath) ((PrefetchProcessorNode) jointRoot)\n .getResolver()\n .getEntity()\n .translateToDbPath(objectPath);\n\n // make sure we do not include \"db:\" prefix\n prefix = translated.getOperand(0) + \".\";\n } else {\n prefix = \"\";\n }\n\n // find propagated keys, assuming that only one-step joins\n // share their column(s) with parent\n\n if (getParent() != null\n && !getParent().isPhantom()\n && getIncoming() != null\n && !getIncoming().getRelationship().isFlattened()) {\n\n DbRelationship r = getIncoming()\n .getRelationship()\n .getDbRelationships()\n .get(0);\n for (final DbJoin join : r.getJoins()) {\n appendColumn(targetSource, join.getTargetName(), prefix\n + join.getTargetName());\n }\n }\n\n ClassDescriptor descriptor = resolver.getDescriptor();\n\n descriptor.visitAllProperties(new PropertyVisitor() {\n\n public boolean visitAttribute(AttributeProperty property) {\n String target = property.getAttribute().getDbAttributePath();\n if(!property.getAttribute().isLazy()) {\n appendColumn(targetSource, target, prefix + target);\n }\n return true;\n }\n\n public boolean visitToMany(ToManyProperty property) {\n return visitRelationship(property);\n }\n\n public boolean visitToOne(ToOneProperty property) {\n return visitRelationship(property);\n }\n\n private boolean visitRelationship(ArcProperty arc) {\n DbRelationship dbRel = arc.getRelationship().getDbRelationships().get(0);\n for (DbAttribute attribute : dbRel.getSourceAttributes()) {\n String target = attribute.getName();\n\n appendColumn(targetSource, target, prefix + target);\n }\n return true;\n }\n });\n\n // append id columns ... (some may have been appended already via relationships)\n for (String pkName : descriptor.getEntity().getPrimaryKeyNames()) {\n appendColumn(targetSource, pkName, prefix + pkName);\n }\n\n // append inheritance discriminator columns...\n for (ObjAttribute column : descriptor.getDiscriminatorColumns()) {\n String target = column.getDbAttributePath();\n appendColumn(targetSource, target, prefix + target);\n }\n\n int size = targetSource.size();\n this.rowCapacity = (int) Math.ceil(size / 0.75);\n this.columns = new ColumnDescriptor[size];\n targetSource.values().toArray(columns);\n }", "FromTableJoin createFromTableJoin();", "public LoggingTable(String alias) {\n\t\tthis(alias, LOGGING);\n\t}", "public abstract void transformReportEntry(ReportRow entry);", "@Override\n\tpublic String getTableName() {\n\t\treturn \"DMDB.GY_DM_ZJLX\";\n\t}", "@Override\n public void setUp() throws SQLException {\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"ENTRY\\\" (\" +\n \"\\\"SHARED_ID\\\" SERIAL PRIMARY KEY, \" +\n \"\\\"TYPE\\\" VARCHAR, \" +\n \"\\\"VERSION\\\" INTEGER DEFAULT 1)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"FIELD\\\" (\" +\n \"\\\"ENTRY_SHARED_ID\\\" INTEGER REFERENCES \\\"ENTRY\\\"(\\\"SHARED_ID\\\") ON DELETE CASCADE, \" +\n \"\\\"NAME\\\" VARCHAR, \" +\n \"\\\"VALUE\\\" TEXT)\");\n\n connection.createStatement().executeUpdate(\n \"CREATE TABLE IF NOT EXISTS \\\"METADATA\\\" (\"\n + \"\\\"KEY\\\" VARCHAR,\"\n + \"\\\"VALUE\\\" TEXT)\");\n }", "public String createInsertStatement(String importTableName, JsonNode row, DataSourceConfig config) throws Exception {\n if (importTableName == null || importTableName.equals(\"\") || row == null) {\n throw new IllegalArgumentException(\"createInsertStatement: importTableName name or row are null or empty\");\n }\n\n StringBuilder columns = new StringBuilder(\"(\");\n StringBuilder values = new StringBuilder(\"(\");\n String transformedIdMrn = \"\";\n String transformedIdPpid = \"\";\n String transformedVisitId = \"\";\n String transformedVisitDate = \"\";\n String connectsAs = config.getConnectToPrimaryIdType();\n\n Iterator<Map.Entry<String, JsonNode>> fieldIterator = row.fields();\n while (fieldIterator.hasNext()) {\n\n Map.Entry<String, JsonNode> currentField = fieldIterator.next();\n //LOGGER.log(Level.INFO, \"Adding field to insert statement: \" + currentField.getKey() + \":\" + currentField.getValue() + \"|\");\n String fieldName = currentField.getKey();\n\n // Limit how big field names as database limits require this.\n final int MAX_COLUMN_NAME_LENGTH = 44;\n fieldName = (fieldName.length() >= MAX_COLUMN_NAME_LENGTH) ? fieldName.substring(0, MAX_COLUMN_NAME_LENGTH) : fieldName;\n\n fieldName = this.curateFieldName(fieldName, config.getSourceId(), importTableName);\n\n columns.append(fieldName).append(\", \");\n\n String value = currentField.getValue().toString();\n //LOGGER.log(Level.INFO, \"Value: \" + value);\n if (value == null || value.equals(\"\") || value.equals(\"\\\"\\\"\")) {\n value = \"null\";\n }\n\n // VISIT DATE TRANSFORM\n // Primary and non-primary follow the same strategy for transforming Visit Date\n // Everything is converted to system time\n if (config.getVisitIdColumn(\"visitDate\") != null) {\n String visitDateField = config.getVisitIdColumn(\"visitDate\");\n String curatedVisitDateFieldName = curateFieldName(visitDateField, config.getSourceId(), importTableName);\n if (fieldName.equals(curatedVisitDateFieldName)) {\n LOGGER.log(Level.INFO, \"This is a Visit Date field, calling visitDateTransformService\");\n visitDateTransformService.setDataSourceConfig(config);\n transformedVisitDate = wrapInSingleQuotes(visitDateTransformService.transform(sanitizeSpecialChars(value)));\n }\n }\n\n // VISIT ID TRANSFORM\n // primary\n // No transform necessary; Visit ID transforms all non-primary sources to the primary (map)\n\n // non-primary\n // getVisitIdConnectionsSource will be null for primary\n\n if (config.getVisitIdConnectionsSource() != null &&\n config.getVisitIdType() != null) {\n String visitIdField = config.getVisitIdColumn(config.getVisitIdType());\n String curatedVisitIdFieldName = curateFieldName(visitIdField, config.getSourceId(), importTableName);\n if (fieldName.equals(curatedVisitIdFieldName)) {\n LOGGER.log(Level.INFO, \"This is a Visit ID field, calling visitIdTransformService\");\n visitIdTransformService.setDataSourceConfig(config);\n transformedVisitId = wrapInSingleQuotes(visitIdTransformService.transform(sanitizeSpecialChars(value)));\n }\n }\n\n // PATIENT IDENTIFIER (PPID) TRANSFORM\n // If this value is for the integration field, we need to apply the PreprocessorService\n // We only apply this logic to nonprimary sources, as the primary requires no manipulation (for now).\n // We need to know how the source connects to primary to ensure we're manipulating the correct ID column (connectsAs)\n\n // primary\n if (config.getIdColumnNameMrn() != null) {\n if (fieldName.equals(curateFieldName(config.getIdColumnNameMrn(), config.getSourceId(), importTableName))) {\n transformedIdMrn = preprocessorService.transformId(config, value, \"MRN\", true, null);\n }\n }\n if (config.getIdColumnNamePpid() != null) {\n if (fieldName.equals(curateFieldName(config.getIdColumnNamePpid(), config.getSourceId(), importTableName))) {\n if (tokenGrowthService.detectTokenGrowth(config, value)) {\n LOGGER.log(Level.INFO, \"Token growth detected for this value compared against against the processed_id. Calling TokenGrowthService.\");\n // .get(0) means this only works if there is one token in `growth_tokens` in the config, which is all that is currently supported\n List<Integer> tokenGrowthDelimiterPositions = tokenGrowthService.correctedDelimiterPositions(config, config.getGrowthTokens(\"ppid\").get(0), config.getDelimiterPositions(\"ppid\"), value);\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, tokenGrowthDelimiterPositions);\n } else {\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, null);\n }\n }\n }\n\n // non-primary\n if (config.getIdColumnNameMrn() != null && connectsAs != null && connectsAs.equalsIgnoreCase(\"MRN\")) {\n if (fieldName.equals(curateFieldName(config.getIdColumnNameMrn(), config.getSourceId(), importTableName))) {\n transformedIdMrn = preprocessorService.transformId(config, value, \"MRN\", true, null);\n }\n }\n if (config.getIdColumnNamePpid() != null && connectsAs != null && connectsAs.equalsIgnoreCase(\"PPID\")) {\n // if there's token growth, determine the appropriate offset and pass the corrected tokenGrowthDelimiterPositions\n if (fieldName.equals(curateFieldName(config.getIdColumnNamePpid(), config.getSourceId(), importTableName))) {\n if (tokenGrowthService.detectTokenGrowth(config, value)) {\n LOGGER.log(Level.INFO, \"Token growth detected for this value compared against against the processed_id. Calling TokenGrowthService.\");\n // .get(0) means this only works if there is one token in `growth_tokens` in the config, which is all that is currently supported\n List<Integer> tokenGrowthDelimiterPositions = tokenGrowthService.correctedDelimiterPositions(config, config.getGrowthTokens(\"ppid\").get(0), config.getDelimiterPositions(\"ppid\"), value);\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, tokenGrowthDelimiterPositions);\n } else {\n transformedIdPpid = preprocessorService.transformId(config, value, \"PPID\", true, null);\n }\n }\n }\n values.append(curateValue(value)).append(\", \");\n }\n // Since join_id fields are at the end, append the transformedIdMrn, then transformedIdPpid last\n if (connectsAs.equalsIgnoreCase(\"MRN\") && (transformedIdMrn == null || transformedIdMrn.equals(\"\"))) {\n throw new Exception(\"ERROR! Trying to connect w/ MRN and transformedIdMrn is null, meaning the join_id column for this source will be empty and integration will fail!\");\n }\n if (connectsAs.equalsIgnoreCase(\"PPID\") && (transformedIdPpid == null || transformedIdPpid.equals(\"\"))) {\n throw new Exception(\"ERROR! Trying to connect w/ PPID and transformedIdPpid is null, meaning the join_id column for this source will be empty and integration will fail!\");\n }\n\n // Add value to join_visit_date, if it exists\n if (!transformedVisitDate.equals(\"\")) {\n values.append(transformedVisitDate).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_visit_date, \");\n\n // Add value to join_visit_id, if it exists\n if (!transformedVisitId.equals(\"\")) {\n values.append(transformedVisitId).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_visit_id, \");\n\n // Add the join_id columns as the last part of the insert statement, either the value or null if it's null\n if (!transformedIdMrn.equals(\"\")) {\n values.append(curateValue(transformedIdMrn)).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_id_mrn, \");\n\n if (!transformedIdPpid.equals(\"\")) {\n values.append(curateValue(transformedIdPpid)).append(\", \");\n } else {\n values.append(\"'null'\").append(\", \");\n }\n columns.append(importTableName + \"_join_id_ppid, \");\n\n // remove extra \",\" and add the closing braces\n columns.replace(columns.length() - 2, columns.length(), \")\");\n values.replace(values.length() - 2, values.length(), \")\");\n String valuesWithoutDoubleQuotes = values.toString().replace('\\\"', '\\'');\n\n String sqlInsertSttmt = \"INSERT INTO \" + importTableName + \" \" + columns.toString() + \" VALUES \" + valuesWithoutDoubleQuotes;\n\n //LOGGER.log(Level.INFO, \"Built insert statement: \" + sqlInsertSttmt);\n return sqlInsertSttmt;\n }", "protected abstract String getAlterTable(boolean nextLine, boolean only);", "public ExternalDocumentEntry(\n\t\t\torg.openhealthtools.mdht.uml.cda.ExternalDocument externalReference) {\n\t\tsuper(externalReference);\n\t}", "@Test(timeout = 4000)\n public void test054() throws Throwable {\n String[] stringArray0 = new String[8];\n String string0 = SQLUtil.join(\"inner\", \"create tablept5qf^h^w72cnj\", stringArray0, \"Y[W,@7e}2gcxB\", \"alter tableo\", stringArray0);\n assertEquals(\"Y[W,@7e}2gcxB as alter tableo on create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null and create tablept5qf^h^w72cnj.null = alter tableo.null\", string0);\n }", "public String getReferencedTableName();", "private Label handleLabel(String line, int lineNum, SymbolTable table) {\n\t\tLabel l = new Label(line.substring(1, line.length()-1));\n\t\tl.addToTable(lineNum, table);\n\t\treturn l;\n\t}", "FromTable createFromTable();", "public String getRowSetAlias();", "private String buildStaticViewString(Stream strm, String name) {\n\t\tString viewString = \"CREATE TEMP TABLE \"+name;\n\t\tviewString += \" AS \";\n\t\tviewString += \"SELECT * FROM \" + generateStreamData(strm, name, false) + \";\\r\\n\";\n\t\treturn viewString;\n\t}", "public abstract void appendReportEntryValues(ReportRow entry);", "public From table(String table) {\r\n\t\tString alias = null;\r\n\t\tif (table.toUpperCase()\r\n\t\t\t\t.contains(\" AS \"))\r\n\t\t\ttable = table.replaceAll(\"\\\\s+[Aa][Ss]\\\\s+\", \" \");\r\n\t\tfinal String[] parts = table.split(\"\\\\s+\");\r\n\t\tif (parts.length > 1) {\r\n\t\t\ttable = parts[0];\r\n\t\t\talias = parts[1];\r\n\t\t}\r\n\t\torigins.add(new FromOrigin().table(table)\r\n\t\t\t\t.alias(alias));\r\n\t\treturn this;\r\n\t}", "public void setup() {\r\n // These setters could be used to override the default.\r\n // this.setDatabasePolicy(new null());\r\n // this.setJDBCHelper(JDBCHelperFactory.create());\r\n this.setTableName(\"chm62edt_habitat_syntaxa\");\r\n this.setTableAlias(\"A\");\r\n this.setReadOnly(true);\r\n\r\n this.addColumnSpec(\r\n new CompoundPrimaryKeyColumnSpec(\r\n new StringColumnSpec(\"ID_HABITAT\", \"getIdHabitat\",\r\n \"setIdHabitat\", DEFAULT_TO_ZERO, NATURAL_PRIMARY_KEY),\r\n new StringColumnSpec(\"ID_SYNTAXA\", \"getIdSyntaxa\",\r\n \"setIdSyntaxa\", DEFAULT_TO_EMPTY_STRING,\r\n NATURAL_PRIMARY_KEY)));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"RELATION_TYPE\", \"getRelationType\",\r\n \"setRelationType\", DEFAULT_TO_NULL));\r\n this.addColumnSpec(\r\n new StringColumnSpec(\"ID_SYNTAXA_SOURCE\", \"getIdSyntaxaSource\",\r\n \"setIdSyntaxaSource\", DEFAULT_TO_EMPTY_STRING, REQUIRED));\r\n\r\n JoinTable syntaxa = new JoinTable(\"chm62edt_syntaxa B\", \"ID_SYNTAXA\",\r\n \"ID_SYNTAXA\");\r\n\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"NAME\", \"setSyntaxaName\"));\r\n syntaxa.addJoinColumn(new StringJoinColumn(\"AUTHOR\", \"setSyntaxaAuthor\"));\r\n this.addJoinTable(syntaxa);\r\n\r\n JoinTable syntaxasource = new JoinTable(\"chm62edt_syntaxa_source C\",\r\n \"ID_SYNTAXA_SOURCE\", \"ID_SYNTAXA_SOURCE\");\r\n\r\n syntaxasource.addJoinColumn(new StringJoinColumn(\"SOURCE\", \"setSource\"));\r\n syntaxasource.addJoinColumn(\r\n new StringJoinColumn(\"SOURCE_ABBREV\", \"setSourceAbbrev\"));\r\n syntaxasource.addJoinColumn(new IntegerJoinColumn(\"ID_DC\", \"setIdDc\"));\r\n this.addJoinTable(syntaxasource);\r\n }", "public static Line CreateLine(String id) { return new MyLine(id); }", "public DynamicSchemaTable(String alias) {\n this(alias, DYNAMIC_SCHEMA);\n }", "@Test(timeout = 4000)\n public void test033() throws Throwable {\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.join((String) null, \"create table\", stringArray0, (String) null, \"c^J^/\", stringArray0);\n assertEquals(\"null as c^J^/ on create table.null = c^J^/.null and create table.null = c^J^/.null and create table.null = c^J^/.null and create table.null = c^J^/.null and create table.null = c^J^/.null\", string0);\n }", "private void exportToInsertSql() {\n\n if (destTableNameList.isEmpty()) {\n JOptionPane.showMessageDialog(this, \"No table is selected.\");\n return;\n }\n final StringBuilder sb = new StringBuilder();\n for (final String tableName : destTableNameList) {\n utils.executeQuerySql(\"SELECT * FROM \" + tableName + \" WHERE 1=2\", new DataMetaUtils.QueryAction<Object>() {\n @Override\n public Object callback(ResultSet rs) throws SQLException {\n StringBuilder tableTriggerSb = new StringBuilder();\n ResultSetMetaData metaData = rs.getMetaData();\n String auditTableName = tableName + \"_AL\";\n tableTriggerSb.append(\"CREATE TABLE \").append(auditTableName).append(\" (\\n\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n tableTriggerSb.append(\" \");\n tableTriggerSb.append(metaData.getColumnName(i + 1));\n String typeName = metaData.getColumnTypeName(i + 1);\n tableTriggerSb.append(\" \")\n .append(typeName);\n if (metaData.getPrecision(i + 1) > 0) {\n tableTriggerSb.append(\"(\")\n .append(metaData.getPrecision(i + 1));\n if (metaData.getScale(i + 1) > 0) {\n tableTriggerSb.append(\",\")\n .append(metaData.getScale(i + 1));\n }\n tableTriggerSb.append(\")\");\n }\n\n tableTriggerSb.append(\",\\n\");\n\n }\n tableTriggerSb.append(\" ACT_TYPE CHAR(1),\\n\")\n .append(\" ACT_BY VARCHAR2(50),\\n\")\n .append(\" ACT_TIME DATE\\n\");\n tableTriggerSb.append(\");\\n\");\n\n\n //create trigger\n StringBuilder newInsert = new StringBuilder();\n StringBuilder delInsert = new StringBuilder();\n newInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n delInsert.append(\"INSERT INTO \").append(auditTableName).append(\"(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n delInsert.append(\"ACT_TYPE,\")\n .append(\"ACT_BY,\")\n .append(\"ACT_TIME) VALUES(\");\n\n for (int i = 0; i < metaData.getColumnCount(); i++) {\n\n newInsert.append(\":NEWROW.\").append(metaData.getColumnName(i + 1));\n newInsert.append(\",\");\n delInsert.append(\":OLDROW.\").append(metaData.getColumnName(i + 1));\n delInsert.append(\",\");\n }\n newInsert.append(\"v_actType,\")\n .append(\":NEWROW.UPDATED_BY,\")\n .append(\"sysdate);\\n\");\n delInsert.append(\"'D',\")\n .append(\"USER,\")\n .append(\"sysdate);\\n\");\n\n tableTriggerSb.append(\"CREATE OR REPLACE TRIGGER \")\n .append(\"TR_AL_\")\n .append(tableName)\n .append(\" \\n\")\n .append(\"AFTER INSERT OR DELETE OR UPDATE ON \")\n .append(tableName)\n .append(\" \\n\")\n .append(\"REFERENCING OLD AS \\\"OLDROW\\\" NEW AS \\\"NEWROW\\\" \\n\"\n + \"FOR EACH ROW \\n\"\n + \"ENABLE\\n\")\n .append(\"DECLARE\\n\")\n .append(\"v_actType char(1);\\n\")\n .append(\"BEGIN\\n\")\n .append(\"IF INSERTING OR UPDATING THEN \\n\"\n + \"BEGIN \\n\"\n + \"IF INSERTING THEN \\n v_actType := 'I'; \\nELSE\\n v_actType := 'U';\\n END IF;\\n\");\n tableTriggerSb.append(newInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \" ELSIF DELETING THEN \\n\"\n + \" BEGIN \\n\");\n\n tableTriggerSb.append(delInsert.toString());\n tableTriggerSb.append(\"END;\\n\"\n + \"END IF;\\n\"\n + \"END;\\n/\\n\");\n sb.append(tableTriggerSb.toString());\n\n return null;\n }\n });\n }\n\n SqlResultForm form = new SqlResultForm(null, true);\n form.setLocationRelativeTo(null);\n form.setSqlResult(sb.toString());\n form.setTestDsKey(((ValueName) cmbDs.getSelectedItem()).getValue());\n form.setVisible(true);\n\n }", "private String getRevisionTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table REVISION(\");\n \t\tbuilder.append(\"REVISION_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"REVISION_IDENTIFIER TEXT UNIQUE\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "public interface ISQLiteJoinTableCreator {\n\n}", "public Creator_4_tables() {\n// this.sourceUnits = sourceUnits;\n sourceUnits = new HashMap<String, PojoSourceCreatorUnit>();\n sourceTemplatePool.logEnvOnSrcCreate = app.cfg.getCfgBean().logEnvOnSrcCreate;\n env.setLogLeading(\"--cfenv--\");\n }", "private String createTableSQL()\n\t{\n\t\tStringBuffer str = new StringBuffer();\n\n\t\t// Keep track of the list of fields\n\t\tList<String> listFields = new ArrayList<String>();\n\n\t\t// Table command\n\t\tstr.append(\"CREATE TABLE \" + getFullPath() + \"( \");\n\t\tstr.append(createStandardGZFields());\n\n\t\t// Loop through all InputFields\n\t\tfor (InputFieldSet fieldSet : function.getInputFieldSets())\n\t\t{\n\t\t\tfor (InputField inputField : fieldSet.getInputFields())\n\t\t\t{\n\t\t\t\t// Phase 2 does not support repeating fields being journalled\n\t\t\t\tif (!Field.isRepeating(inputField))\n\t\t\t\t{\n\t\t\t\t\t// Field\n\t\t\t\t\tString fieldName = SQLToolbox.cvtToSQLFieldName(inputField.getId());\n\n\t\t\t\t\t// add if not yet existing\n\t\t\t\t\tif (listFields.indexOf(fieldName) == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tstr.append(\", \");\n\t\t\t\t\t\tString fieldDataType = inputField.getDataType();\n\t\t\t\t\t\tString fieldType = SQLToolbox.cvtToSQLFieldType(fieldDataType, inputField.getSize(), inputField\n\t\t\t\t\t\t\t\t\t\t.getDecimals());\n\t\t\t\t\t\tString fieldDefault = SQLToolbox.cvtToSQLDefault(fieldDataType);\n\t\t\t\t\t\tstr.append(fieldName + \" \" + fieldType + \" \" + \" not null default \" + fieldDefault);\n\t\t\t\t\t\tlistFields.add(fieldName);\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t// End\n\t\tstr.append(\" ) \");\n\t\t// RCDFMT \" + getJournalRcdName());\n\n\t\treturn str.toString();\n\t}", "public abstract void setupReferences() throws SQLException;", "public void AddRow(String Table, String Value)\r\n {\n }", "public Limelight(String name) {\n tableName = name;\n }", "public static void init_traffic_table() throws SQLException{\n\t\treal_traffic_updater.create_traffic_table(Date_Suffix);\n\t\t\n\t}", "protected void decorateSQL(Statement stmt) throws SQLException\n {\n getConnection();\n\n // create a table with some data\n stmt.executeUpdate(\n \"CREATE TABLE foo (a int, b char(100))\");\n stmt.execute(\"insert into foo values (1, 'hello world')\");\n stmt.execute(\"insert into foo values (2, 'happy world')\");\n stmt.execute(\"insert into foo values (3, 'sad world')\");\n stmt.execute(\"insert into foo values (4, 'crazy world')\");\n for (int i=0 ; i<7 ; i++)\n stmt.execute(\"insert into foo select * from foo\");\n stmt.execute(\"create index fooi on foo(a, b)\");\n }", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "@Test\n public void testColumnLevelLineage() throws Exception {\n String sourceTable = \"table\" + random();\n\n runCommand(\"create table \" + sourceTable + \"(a int, b int)\");\n\n String sourceTableGUID = assertTableIsRegistered(DEFAULT_DB, sourceTable);\n String a_guid = assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, sourceTable), \"a\"));\n String b_guid = assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, sourceTable), \"b\"));\n String ctasTableName = \"table\" + random();\n String query = \"create table \" + ctasTableName + \" as \" + \"select sum(a+b) as a, count(*) as b from \" + sourceTable;\n\n runCommand(query);\n\n String dest_a_guid = assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, ctasTableName), \"a\"));\n String dest_b_guid = assertColumnIsRegistered(HiveMetaStoreBridge.getColumnQualifiedName(HiveMetaStoreBridge.getTableQualifiedName(CLUSTER_NAME, DEFAULT_DB, ctasTableName), \"b\"));\n\n Set<ReadEntity> inputs = getInputs(sourceTable, Entity.Type.TABLE);\n Set<WriteEntity> outputs = getOutputs(ctasTableName, Entity.Type.TABLE);\n HiveEventContext event = constructEvent(query, HiveOperation.CREATETABLE_AS_SELECT, inputs, outputs);\n AtlasEntity processEntity1 = validateProcess(event);\n AtlasEntity hiveProcessExecution1 = validateProcessExecution(processEntity1, event);\n AtlasObjectId process1 = toAtlasObjectId(hiveProcessExecution1.getRelationshipAttribute(\n BaseHiveEvent.ATTRIBUTE_PROCESS));\n Assert.assertEquals(process1.getGuid(), processEntity1.getGuid());\n Assert.assertEquals(numberOfProcessExecutions(processEntity1), 1);\n Assert.assertEquals(processEntity1.getGuid(), processEntity1.getGuid());\n\n assertTableIsRegistered(DEFAULT_DB, ctasTableName);\n\n String processQName = sortEventsAndGetProcessQualifiedName(event);\n List<String> aLineageInputs = Arrays.asList(a_guid, b_guid);\n String aLineageProcessName = processQName + \":\" + \"a\";\n\n LOG.debug(\"Searching for column lineage process {} \", aLineageProcessName);\n String guid = assertEntityIsRegistered(HiveDataTypes.HIVE_COLUMN_LINEAGE.getName(), ATTRIBUTE_QUALIFIED_NAME, aLineageProcessName, null);\n\n AtlasEntity colLineageEntity = atlasClientV2.getEntityByGuid(guid).getEntity();\n List<AtlasObjectId> processInputs = toAtlasObjectIdList(colLineageEntity.getAttribute(\"inputs\"));\n List<String> processInputsAsString = new ArrayList<>();\n\n for(AtlasObjectId input: processInputs){\n processInputsAsString.add(input.getGuid());\n }\n\n Collections.sort(processInputsAsString);\n Collections.sort(aLineageInputs);\n\n Assert.assertEquals(processInputsAsString, aLineageInputs);\n\n List<String> bLineageInputs = Arrays.asList(sourceTableGUID);\n String bLineageProcessName = processQName + \":\" + \"b\";\n\n LOG.debug(\"Searching for column lineage process {} \", bLineageProcessName);\n\n String guid1 = assertEntityIsRegistered(HiveDataTypes.HIVE_COLUMN_LINEAGE.getName(), ATTRIBUTE_QUALIFIED_NAME, bLineageProcessName, null);\n\n\n AtlasEntity colLineageEntity1 = atlasClientV2.getEntityByGuid(guid1).getEntity();\n List<AtlasObjectId> bProcessInputs = toAtlasObjectIdList(colLineageEntity1.getAttribute(\"inputs\"));\n List<String> bProcessInputsAsString = new ArrayList<>();\n\n for(AtlasObjectId input: bProcessInputs){\n bProcessInputsAsString.add(input.getGuid());\n }\n\n Collections.sort(bProcessInputsAsString);\n Collections.sort(bLineageInputs);\n\n Assert.assertEquals(bProcessInputsAsString, bLineageInputs);\n\n //Test lineage API response\n AtlasLineageInfo atlasLineageInfoInput = atlasClientV2.getLineageInfo(dest_a_guid, AtlasLineageInfo.LineageDirection.INPUT,0);\n Map<String, AtlasEntityHeader> entityMap = atlasLineageInfoInput.getGuidEntityMap();\n\n ObjectNode response = atlasClient.getInputGraphForEntity(dest_a_guid);\n JsonNode vertices = response.get(\"values\").get(\"vertices\");\n JsonNode dest_a_val = vertices.get(dest_a_guid);\n JsonNode src_a_val = vertices.get(a_guid);\n JsonNode src_b_val = vertices.get(b_guid);\n\n Assert.assertNotNull(dest_a_val);\n Assert.assertNotNull(src_a_val);\n Assert.assertNotNull(src_b_val);\n\n ObjectNode b_response = atlasClient.getInputGraphForEntity(dest_b_guid);\n JsonNode b_vertices = b_response.get(\"values\").get(\"vertices\");\n JsonNode b_val = b_vertices.get(dest_b_guid);\n JsonNode src_tbl_val = b_vertices.get(sourceTableGUID);\n\n Assert.assertNotNull(b_val);\n Assert.assertNotNull(src_tbl_val);\n }", "Row createRow();", "protected void constructTable(Logger l, Statement s, int run)\n throws SQLException{\n createTable(s, run);\n insertResults(l,s,run);\n }", "@Test void testInterpretTable() {\n sql(\"select * from \\\"hr\\\".\\\"emps\\\" order by \\\"empid\\\"\")\n .returnsRows(\"[100, 10, Bill, 10000.0, 1000]\",\n \"[110, 10, Theodore, 11500.0, 250]\",\n \"[150, 10, Sebastian, 7000.0, null]\",\n \"[200, 20, Eric, 8000.0, 500]\");\n }", "private LedgerEntry buildLedgerEntry( Account account, String[] tupule ) \n throws Exception {\n \n LedgerEntry entry = new LedgerEntry() ;\n entry.setAccount( account ) ;\n entry.setValueDate( new Date( VALUE_DT_SDF.parse( tupule[1] ).getTime() ) ) ;\n \n entry.setRemarks( tupule[2] ) ;\n \n Float withdrawalAmt = getFloatValue( tupule[4] ) ;\n Float depositAmt = getFloatValue( tupule[5] ) ;\n if( depositAmt > 0 ) {\n entry.setAmount( depositAmt ) ;\n }\n else if( withdrawalAmt > 0 ) {\n entry.setAmount( -withdrawalAmt ) ;\n }\n \n entry.setBalance( getFloatValue( tupule[6] ) ) ;\n entry.generateHash() ;\n \n return entry ;\n }", "public void openEntryRow(Appendable sb, String resourceId,\n String baseUrl, String urlArg) {\n try {\n String domId = cleanIdForJS(resourceId);\n String divId = \"div_\" + domId;\n /*\n String rowId = \"row_\" + domId;\n String imgId = \"img_\" + domId;\n String[] events = getEntryEventJS(resourceId, baseUrl, urlArg);\n String event1 = events[0];\n String event2 = events[1];\n String dartImg = HtmlUtil.img(iconUrl(\"/blank.gif\"), \"\", event2\n + HtmlUtil.attr(HtmlUtil.ATTR_WIDTH, \"10\")\n + HtmlUtil.attr(HtmlUtil.ATTR_HEIGHT, \"10\")\n + HtmlUtil.id(imgId));\n */\n // ? makes little black down arrow in first column of file search results table\n //sb.append(\"<tr valign=\\\"bottom\\\" \" + HtmlUtil.id(rowId) + \" \" + event1 + \">\");\n\n // makes first column in table, a <td>, for the invisible link to the \"resource page\" for this file\n // this sb.append line by itself makes an empty column with no link\n sb.append( \"<td><div \" + HtmlUtil.id(divId) + \"><table border=0 class=\\\"gsac-innerresult-table\\\" cellpadding=0 cellspacing=0><tr>\");\n\n // ? makes invisible link to the \"resource page\" for this file\n //sb.append(HtmlUtil.col(dartImg));\n\n } catch (IOException ioe) {\n throw new RuntimeException(ioe);\n }\n }", "TABLE createTABLE();", "@Test(timeout = 4000)\n public void test042() throws Throwable {\n String[] stringArray0 = new String[5];\n String string0 = SQLUtil.innerJoin(\"alter materialized viewjcsh%4%|@v9\", stringArray0, \"create materialized viewjcsh%4%|@v9\", \"\", stringArray0);\n assertEquals(\"create materialized viewjcsh%4%|@v9 as on alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null and alter materialized viewjcsh%4%|@v9.null = .null\", string0);\n }", "public String getSourceTable();", "private String getCloneSetTableQuery() {\n \t\tfinal StringBuilder builder = new StringBuilder();\n \n \t\tbuilder.append(\"create table CLONE_SET(\");\n \t\tbuilder.append(\"CLONE_SET_ID LONG PRIMARY KEY,\");\n \t\tbuilder.append(\"OWNER_REVISION_ID LONG,\");\n \t\tbuilder.append(\"ELEMENTS TEXT NOT NULL,\");\n \t\tbuilder.append(\"NUMBER_OF_ELEMENTS INTEGER\");\n \t\tbuilder.append(\")\");\n \n \t\treturn builder.toString();\n \t}", "ExpRunTable createRunTable(String name, UserSchema schema, ContainerFilter cf);", "public void createSourceOrderItemTable() throws SQLException {\n sourceExecuteWithLog(extraSQLCommand.getCreateTableOrderItem());\n }", "LineNumberTable(int name_index, int length, DataInputStream file, ConstantPool constant_pool) throws IOException {\n this(name_index, length, (LineNumber[]) null, constant_pool);\n data = new byte[length];\n int byteReads = file.read(data);\n isInPackedState = true;\n // assert(bytesRead==length)\n }", "@Override\n\tpublic void buildSymbolTable(STableI table, Stack<STableI> stStack, int entryLoc, int tableLoc)\n\t\t\tthrows CompileTimeError {\n\t\t\n\t}" ]
[ "0.629171", "0.53315973", "0.53144914", "0.51978827", "0.49897715", "0.4978106", "0.495248", "0.4883171", "0.48550293", "0.48181716", "0.47952554", "0.47758582", "0.47580242", "0.47538728", "0.47231475", "0.46855995", "0.4672591", "0.46592727", "0.46545193", "0.46537685", "0.46434742", "0.4634873", "0.46245053", "0.4615463", "0.46149543", "0.46021128", "0.459329", "0.4587651", "0.45465836", "0.45162246", "0.4515104", "0.45095325", "0.45059407", "0.45010915", "0.44961077", "0.4495907", "0.4495781", "0.44939542", "0.44920233", "0.448637", "0.44855016", "0.44848484", "0.44844523", "0.44819516", "0.44762304", "0.4465904", "0.44592297", "0.44456547", "0.4444641", "0.44435525", "0.4442234", "0.4441592", "0.44404486", "0.4440284", "0.44366542", "0.4423268", "0.44185233", "0.44166443", "0.4413677", "0.44087625", "0.44069576", "0.4398714", "0.437738", "0.43755955", "0.43734503", "0.43718117", "0.43675327", "0.43656984", "0.43620583", "0.43594953", "0.43529716", "0.43465382", "0.43461865", "0.4344548", "0.43442866", "0.4335884", "0.43327707", "0.4328416", "0.4327812", "0.43273762", "0.43244696", "0.4323646", "0.43206874", "0.4314406", "0.43037194", "0.4301377", "0.43008974", "0.42988488", "0.42980257", "0.42961985", "0.42941108", "0.42890346", "0.42860234", "0.42792255", "0.4276063", "0.42720988", "0.4269059", "0.42683956", "0.42667612", "0.426548" ]
0.63780403
0
Created by IntelliJ IDEA. User: stsyhanou Date: 22.12.12 Time: 2:37 To change this template use File | Settings | File Templates.
public interface UserService { public void add(User user); public void remove(Integer id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "public void mo38117a() {\n }", "@Override\n public void perish() {\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void mo21785J() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "private Solution() {\n /**.\n * { constructor }\n */\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void mo21792Q() {\n }", "public final void mo51373a() {\n }", "public void mo97908d() {\n }", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public static void thisDemo() {\n\t}", "@SuppressWarnings(\"unused\")\n\tprivate void version() {\n\n\t}", "public void mo21825b() {\n }", "public void mo4359a() {\n }", "public void mo1531a() {\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "public void mo21779D() {\n }", "public void m23075a() {\n }", "@Override\n public void init() {\n\n }", "public static void generateCode()\n {\n \n }", "public void mo21795T() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "public void mo6081a() {\n }", "public void mo5382o() {\n }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n\tpublic void name() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo21781F() {\n }", "public void mo21877s() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "public void mo23813b() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "public void mo115188a() {\n }", "private static void oneUserExample()\t{\n\t}", "public void mo21878t() {\n }", "@org.junit.Test\r\n\tpublic void test() {\n\t\t\t\t\r\n\t}", "public void mo56167c() {\n }", "void pramitiTechTutorials() {\n\t\n}", "public void mo3376r() {\n }", "public void mo55254a() {\n }", "void berechneFlaeche() {\n\t}", "private void m50366E() {\n }", "@Override\r\n\tprotected void doF6() {\n\t\t\r\n\t}", "@Override\n public String getDescription() {\n return DESCRIPTION;\n }", "public void mo21782G() {\n }", "@Override\n protected void initialize() \n {\n \n }", "public void mo2740a() {\n }", "@Override\n void init() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "static void feladat9() {\n\t}", "private void test() {\n\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "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 void mo5248a() {\n }", "private test5() {\r\n\t\r\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "@Override\n public void memoria() {\n \n }", "public void mo21793R() {\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 }", "private TMCourse() {\n\t}", "public void mo9848a() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo115190b() {\n }", "@Override\n public void init() {\n }", "public static void main() {\n \n }", "public void mo21791P() {\n }", "public void designBasement() {\n\t\t\r\n\t}", "public void mo2471e() {\n }", "public void mo3749d() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}" ]
[ "0.6164781", "0.5919886", "0.5868808", "0.5863922", "0.5863922", "0.58362687", "0.5834371", "0.5812304", "0.58089954", "0.57991993", "0.57895565", "0.57869315", "0.57608175", "0.57386357", "0.57386357", "0.57385916", "0.57322204", "0.5730471", "0.5703378", "0.5698621", "0.56890947", "0.5685164", "0.5671672", "0.565388", "0.56532824", "0.5650157", "0.5647162", "0.56443167", "0.5642177", "0.563705", "0.56361175", "0.5623539", "0.5623313", "0.5621013", "0.56182647", "0.56143826", "0.5612458", "0.56118166", "0.56088406", "0.56076205", "0.5606822", "0.5604066", "0.5604066", "0.5595628", "0.5589018", "0.55846715", "0.5580863", "0.5580863", "0.5576971", "0.55738616", "0.55696857", "0.55688363", "0.556819", "0.55602175", "0.555806", "0.55433905", "0.55414695", "0.5535887", "0.5535459", "0.5533857", "0.55312896", "0.55263895", "0.55261546", "0.55230165", "0.55190074", "0.5512836", "0.55092734", "0.5507976", "0.55047727", "0.55047137", "0.55038214", "0.549931", "0.5497203", "0.5493977", "0.5487092", "0.5487092", "0.5487092", "0.5487092", "0.5487092", "0.5487092", "0.5486138", "0.5483608", "0.5481412", "0.54806334", "0.54806334", "0.54806334", "0.54806334", "0.54806334", "0.54806334", "0.54806334", "0.548043", "0.5480219", "0.54778767", "0.54771835", "0.5477025", "0.54678625", "0.5464863", "0.5461118", "0.5460126", "0.54565954", "0.5454926" ]
0.0
-1
/ WARNING void declaration
@Override public void drawScreen(int n, int n2) { void mouseY; void mouseX; super.drawScreen((int)mouseX, (int)mouseY); float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null); Color color = Color.getHSBColor(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(6.4887953f) ^ 0x7F4FA436), Float.intBitsToFloat(Float.floatToIntBits(4.629535f) ^ 0x7F142527)); Gui.drawRect((int)this.getX(), (int)this.getY(), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 14), (int)new Color(40, 40, 40).getRGB()); Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 2), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 12), (int)this.setting.getValue().getRGB()); RenderUtils.drawOutline(this.getX() + this.getWidth() - 12, this.getY() + 2, this.getX() + this.getWidth() - 2, this.getY() + 12, Float.intBitsToFloat(Float.floatToIntBits(2.7144578f) ^ 0x7F2DB9AD), new Color(20, 20, 20).getRGB()); if (this.open) { Gui.drawRect((int)this.getX(), (int)(this.getY() + 14), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 28), (int)new Color(40, 40, 40).getRGB()); float i = Float.intBitsToFloat(Float.floatToIntBits(1.3378998E38f) ^ 0x7EC94E07); while (i + Float.intBitsToFloat(Float.floatToIntBits(13.8331995f) ^ 0x7EDD54C9) < Float.intBitsToFloat(Float.floatToIntBits(0.07128618f) ^ 0x7F51FE7D)) { RenderUtils.drawRecta((float)(this.getX() + 2) + i, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(7.249331f) ^ 0x7F67FA85), Float.intBitsToFloat(Float.floatToIntBits(1.7045807f) ^ 0x7EEA2FB3), Color.getHSBColor(i / Float.intBitsToFloat(Float.floatToIntBits(0.115068644f) ^ 0x7F2BA91C), Float.intBitsToFloat(Float.floatToIntBits(4.3161592f) ^ 0x7F0A1DFA), Float.intBitsToFloat(Float.floatToIntBits(21.075346f) ^ 0x7E289A4F)).getRGB()); i += Float.intBitsToFloat(Float.floatToIntBits(3.807338f) ^ 0x7E95CD0B); } RenderUtils.drawOutline(this.getX() + 2, this.getY() + 16, this.getX() + 2 + this.getWidth() - 4, this.getY() + 27, Float.intBitsToFloat(Float.floatToIntBits(2.7503529f) ^ 0x7F3005C8), new Color(0, 0, 0).getRGB()); RenderUtils.drawRecta((float)(this.getX() + 2) + this.hueWidth, this.getY() + 16, Float.intBitsToFloat(Float.floatToIntBits(5.200255f) ^ 0x7F26687D), Float.intBitsToFloat(Float.floatToIntBits(1.2665411f) ^ 0x7E921E05), new Color(255, 255, 255).getRGB()); Gui.drawRect((int)this.getX(), (int)(this.getY() + 28), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 42), (int)new Color(40, 40, 40).getRGB()); RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 29, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.19645536f) ^ 0x7F792B98), new Color(255, 255, 255), color, 255, 255); RenderUtils.drawOutline(this.getX() + 2, this.getY() + 29, this.getX() + 2 + this.getWidth() - 4, this.getY() + 40, Float.intBitsToFloat(Float.floatToIntBits(103.69628f) ^ 0x7DCF647F), new Color(0, 0, 0).getRGB()); RenderUtils.drawRecta((float)(this.getX() + 2) + this.satWidth, this.getY() + 29, Float.intBitsToFloat(Float.floatToIntBits(7.3489017f) ^ 0x7F6B2A34), Float.intBitsToFloat(Float.floatToIntBits(0.1948352f) ^ 0x7F7782E1), new Color(255, 255, 255).getRGB()); Gui.drawRect((int)this.getX(), (int)(this.getY() + 42), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 56), (int)new Color(40, 40, 40).getRGB()); RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 42, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(1.5246161f) ^ 0x7EF3269F), new Color(0, 0, 0), color, 255, 255); RenderUtils.drawOutline(this.getX() + 2, this.getY() + 42, this.getX() + 2 + this.getWidth() - 4, this.getY() + 53, Float.intBitsToFloat(Float.floatToIntBits(3.7803736f) ^ 0x7F71F1A4), new Color(0, 0, 0).getRGB()); RenderUtils.drawRecta((float)(this.getX() + 2) + this.briWidth, this.getY() + 42, Float.intBitsToFloat(Float.floatToIntBits(8.346171f) ^ 0x7E8589EB), Float.intBitsToFloat(Float.floatToIntBits(0.08925866f) ^ 0x7C86CD3F), new Color(255, 255, 255).getRGB()); Gui.drawRect((int)this.getX(), (int)(this.getY() + 56), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 70), (int)new Color(40, 40, 40).getRGB()); this.renderAlphaBG(this.getX() + 2, this.getY() + 55, this.alphaBG); RenderUtils.drawSidewaysGradient(this.getX() + 2, this.getY() + 55, this.getWidth() - 4, Float.intBitsToFloat(Float.floatToIntBits(0.13166903f) ^ 0x7F36D43F), new Color(0, 0, 0), color, 0, 255); RenderUtils.drawOutline(this.getX() + 2, this.getY() + 55, this.getX() + 2 + this.getWidth() - 4, this.getY() + 66, Float.intBitsToFloat(Float.floatToIntBits(19.69502f) ^ 0x7E9D8F67), new Color(0, 0, 0).getRGB()); RenderUtils.drawRecta((float)(this.getX() + 2) + this.alphaWidth, this.getY() + 55, Float.intBitsToFloat(Float.floatToIntBits(6.702013f) ^ 0x7F5676E4), Float.intBitsToFloat(Float.floatToIntBits(0.13652846f) ^ 0x7F3BCE1E), new Color(255, 255, 255).getRGB()); Gui.drawRect((int)this.getX(), (int)(this.getY() + 70), (int)(this.getX() + this.getWidth()), (int)(this.getY() + 84), (int)new Color(40, 40, 40).getRGB()); Europa.FONT_MANAGER.drawString("Rainbow", this.getX() + 3, (float)(this.getY() + 78) - Europa.FONT_MANAGER.getHeight() / Float.intBitsToFloat(Float.floatToIntBits(0.8730777f) ^ 0x7F5F8205), Color.WHITE); Gui.drawRect((int)(this.getX() + this.getWidth() - 12), (int)(this.getY() + 72), (int)(this.getX() + this.getWidth() - 2), (int)(this.getY() + 82), (int)new Color(30, 30, 30).getRGB()); if (this.setting.getRainbow().booleanValue()) { RenderUtils.prepareGL(); GL11.glShadeModel((int)7425); GL11.glEnable((int)2848); GL11.glLineWidth((float)Float.intBitsToFloat(Float.floatToIntBits(0.2713932f) ^ 0x7EAAF40D)); GL11.glBegin((int)1); GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015137452f) ^ 0x7F070313)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(1.1948546f) ^ 0x7CE7F0FF)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.36357376f) ^ 0x7DC52657))); GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80)); GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.015521388f) ^ 0x7F014D6B)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.01025841f) ^ 0x7F5712E4)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.10675689f) ^ 0x7EA5A35B))); GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8 + 4), (double)(this.getY() + 74)); GL11.glEnd(); GL11.glBegin((int)1); GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.009417259f) ^ 0x7F654AD9)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.07014828f) ^ 0x7EF0A9E7)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.013465701f) ^ 0x7F239F3E))); GL11.glVertex2d((double)(this.getX() + this.getWidth() - 8), (double)(this.getY() + 80)); GL11.glColor3f((float)((float)ModuleColor.getActualColor().getRed() / Float.intBitsToFloat(Float.floatToIntBits(0.0155056f) ^ 0x7F010B33)), (float)((float)ModuleColor.getActualColor().getGreen() / Float.intBitsToFloat(Float.floatToIntBits(0.011914493f) ^ 0x7F3C3501)), (float)((float)ModuleColor.getActualColor().getBlue() / Float.intBitsToFloat(Float.floatToIntBits(0.012230922f) ^ 0x7F376434))); GL11.glVertex2d((double)(this.getX() + this.getWidth() - 10), (double)(this.getY() + 77)); GL11.glEnd(); RenderUtils.releaseGL(); } } Gui.drawRect((int)(this.getX() - 1), (int)this.getY(), (int)this.getX(), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB()); Gui.drawRect((int)(this.getX() + this.getWidth()), (int)this.getY(), (int)(this.getX() + this.getWidth() + 1), (int)(this.getY() + 84), (int)new Color(30, 30, 30).getRGB()); Europa.FONT_MANAGER.drawString(this.setting.getName(), this.getX() + 3, this.getY() + 3, Color.WHITE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneFlaeche() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "public void m23075a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract void mo27386d();", "void m1864a() {\r\n }", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public final void mo91715d() {\n }", "public void smell() {\n\t\t\n\t}", "void mo57277b();", "public void method_4270() {}", "public void mo44053a() {\n }", "public abstract void mo30696a();", "private void m50366E() {\n }", "public abstract void mo56925d();", "public void furyo ()\t{\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "private void ss(){\n }", "public void mo21779D() {\n }", "public abstract void mo42330e();", "public abstract void mo42331g();", "public abstract void mo102899a();", "private final void i() {\n }", "void mo41083a();", "public abstract void m15813a();", "public void mo21825b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private stendhal() {\n\t}", "public abstract void mo35054b();", "private void kk12() {\n\n\t}", "void mo28194a();", "public abstract void mo3994a();", "void mo72113b();", "public void mo21795T() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "void mo28306a();", "void mo80452a();", "public void mo21793R() {\n }", "public void mo4359a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo27464a();", "public void mo3749d() {\n }", "void mo54405a();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo21791P() {\n }", "void mo119582b();", "void mo80455b();", "public void mo21794S() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "private void sub() {\n\n\t}", "public void mo21789N() {\n }", "public void mo56167c() {\n }", "void mo84655a();", "@Override\n public void perish() {\n \n }", "public void mo2471e() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3376r() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "public void mo9137b() {\n }", "public void mo21781F() {\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 }", "void mo88521a();", "public void mo21787L() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void method(){}", "void mo41086b();", "public void mo21785J() {\n }", "void mo38026a();" ]
[ "0.72114015", "0.71405566", "0.71401", "0.7021417", "0.69780886", "0.6972193", "0.6960773", "0.69401586", "0.69401586", "0.69123584", "0.69039416", "0.68747616", "0.6874215", "0.68522483", "0.6835249", "0.6830557", "0.68150365", "0.68104607", "0.67968935", "0.67965853", "0.679537", "0.6792716", "0.67796046", "0.6776775", "0.6775711", "0.67680025", "0.67634565", "0.6762109", "0.6758278", "0.6756009", "0.67481816", "0.6738367", "0.6731588", "0.6721314", "0.67176443", "0.671043", "0.67065084", "0.6705694", "0.6702434", "0.6681549", "0.66799784", "0.66765684", "0.6667961", "0.666592", "0.6665633", "0.6659987", "0.6649683", "0.6647198", "0.66399497", "0.6639375", "0.6637081", "0.6631689", "0.6629893", "0.6624224", "0.6622723", "0.66161764", "0.6610774", "0.6602431", "0.6601196", "0.65961546", "0.65957415", "0.6590543", "0.65891594", "0.65787566", "0.65570784", "0.6553829", "0.6552855", "0.6550435", "0.65473944", "0.6547336", "0.654544", "0.6536497", "0.6534672", "0.65269655", "0.65260196", "0.652576", "0.65226996", "0.6518356", "0.6512249", "0.6510968", "0.65083987", "0.649768", "0.64932954", "0.64925736", "0.64919287", "0.64893085", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6485925", "0.6483748", "0.64826524", "0.64816594", "0.64801264", "0.6477539", "0.64773726", "0.6475095" ]
0.0
-1
/ WARNING void declaration
@Override public void mouseClicked(int n, int n2, int n3) { block4: { void mouseButton; void mouseY; void mouseX; block7: { block6: { block5: { block3: { super.mouseClicked((int)mouseX, (int)mouseY, (int)mouseButton); if (mouseX >= this.getX() && mouseX <= this.getX() + this.getWidth() && mouseY >= this.getY()) { if (mouseY <= this.getY() + this.getHeight() && mouseButton == true) { boolean bl = this.open = !this.open; } } if (!this.isMouseOnHue((int)mouseX, (int)mouseY) || mouseButton != false) break block3; if (!this.open) break block3; this.hueDragging = true; break block4; } if (!this.isMouseOnSat((int)mouseX, (int)mouseY) || mouseButton != false) break block5; if (!this.open) break block5; this.saturationDragging = true; break block4; } if (!this.isMouseOnBri((int)mouseX, (int)mouseY) || mouseButton != false || !this.open) break block6; this.brightnessDragging = true; break block4; } if (!this.isMouseOnAlpha((int)mouseX, (int)mouseY) || mouseButton != false) break block7; if (!this.open) break block7; this.alphaDragging = true; break block4; } if (!this.isMouseOnRainbow((int)mouseX, (int)mouseY) || mouseButton != false) break block4; if (this.open) { this.setting.setRainbow(this.setting.getRainbow() == false); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneFlaeche() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "public void m23075a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract void mo27386d();", "void m1864a() {\r\n }", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public final void mo91715d() {\n }", "public void smell() {\n\t\t\n\t}", "void mo57277b();", "public void method_4270() {}", "public void mo44053a() {\n }", "public abstract void mo30696a();", "private void m50366E() {\n }", "public abstract void mo56925d();", "public void furyo ()\t{\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "private void ss(){\n }", "public void mo21779D() {\n }", "public abstract void mo42330e();", "public abstract void mo42331g();", "public abstract void mo102899a();", "private final void i() {\n }", "void mo41083a();", "public abstract void m15813a();", "public void mo21825b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private stendhal() {\n\t}", "public abstract void mo35054b();", "private void kk12() {\n\n\t}", "void mo28194a();", "public abstract void mo3994a();", "void mo72113b();", "public void mo21795T() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "void mo28306a();", "void mo80452a();", "public void mo21793R() {\n }", "public void mo4359a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo27464a();", "public void mo3749d() {\n }", "void mo54405a();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo21791P() {\n }", "void mo119582b();", "void mo80455b();", "public void mo21794S() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "private void sub() {\n\n\t}", "public void mo21789N() {\n }", "public void mo56167c() {\n }", "void mo84655a();", "@Override\n public void perish() {\n \n }", "public void mo2471e() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3376r() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "public void mo9137b() {\n }", "public void mo21781F() {\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 }", "void mo88521a();", "public void mo21787L() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void method(){}", "void mo41086b();", "public void mo21785J() {\n }", "void mo38026a();" ]
[ "0.72114015", "0.71405566", "0.71401", "0.7021417", "0.69780886", "0.6972193", "0.6960773", "0.69401586", "0.69401586", "0.69123584", "0.69039416", "0.68747616", "0.6874215", "0.68522483", "0.6835249", "0.6830557", "0.68150365", "0.68104607", "0.67968935", "0.67965853", "0.679537", "0.6792716", "0.67796046", "0.6776775", "0.6775711", "0.67680025", "0.67634565", "0.6762109", "0.6758278", "0.6756009", "0.67481816", "0.6738367", "0.6731588", "0.6721314", "0.67176443", "0.671043", "0.67065084", "0.6705694", "0.6702434", "0.6681549", "0.66799784", "0.66765684", "0.6667961", "0.666592", "0.6665633", "0.6659987", "0.6649683", "0.6647198", "0.66399497", "0.6639375", "0.6637081", "0.6631689", "0.6629893", "0.6624224", "0.6622723", "0.66161764", "0.6610774", "0.6602431", "0.6601196", "0.65961546", "0.65957415", "0.6590543", "0.65891594", "0.65787566", "0.65570784", "0.6553829", "0.6552855", "0.6550435", "0.65473944", "0.6547336", "0.654544", "0.6536497", "0.6534672", "0.65269655", "0.65260196", "0.652576", "0.65226996", "0.6518356", "0.6512249", "0.6510968", "0.65083987", "0.649768", "0.64932954", "0.64925736", "0.64919287", "0.64893085", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6485925", "0.6483748", "0.64826524", "0.64816594", "0.64801264", "0.6477539", "0.64773726", "0.6475095" ]
0.0
-1
/ WARNING void declaration
@Override public void mouseReleased(int n, int n2, int n3) { void state; void mouseY; void mouseX; super.mouseReleased((int)mouseX, (int)mouseY, (int)state); this.hueDragging = false; this.saturationDragging = false; this.brightnessDragging = false; this.alphaDragging = false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneFlaeche() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "public void m23075a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract void mo27386d();", "void m1864a() {\r\n }", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public final void mo91715d() {\n }", "public void smell() {\n\t\t\n\t}", "void mo57277b();", "public void method_4270() {}", "public void mo44053a() {\n }", "public abstract void mo30696a();", "private void m50366E() {\n }", "public abstract void mo56925d();", "public void furyo ()\t{\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "private void ss(){\n }", "public void mo21779D() {\n }", "public abstract void mo42330e();", "public abstract void mo42331g();", "public abstract void mo102899a();", "private final void i() {\n }", "void mo41083a();", "public abstract void m15813a();", "public void mo21825b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private stendhal() {\n\t}", "public abstract void mo35054b();", "private void kk12() {\n\n\t}", "void mo28194a();", "public abstract void mo3994a();", "void mo72113b();", "public void mo21795T() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "void mo28306a();", "void mo80452a();", "public void mo21793R() {\n }", "public void mo4359a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo27464a();", "public void mo3749d() {\n }", "void mo54405a();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo21791P() {\n }", "void mo119582b();", "void mo80455b();", "public void mo21794S() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "private void sub() {\n\n\t}", "public void mo21789N() {\n }", "public void mo56167c() {\n }", "void mo84655a();", "@Override\n public void perish() {\n \n }", "public void mo2471e() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3376r() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "public void mo9137b() {\n }", "public void mo21781F() {\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 }", "void mo88521a();", "public void mo21787L() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void method(){}", "void mo41086b();", "public void mo21785J() {\n }", "void mo38026a();" ]
[ "0.72114015", "0.71405566", "0.71401", "0.7021417", "0.69780886", "0.6972193", "0.6960773", "0.69401586", "0.69401586", "0.69123584", "0.69039416", "0.68747616", "0.6874215", "0.68522483", "0.6835249", "0.6830557", "0.68150365", "0.68104607", "0.67968935", "0.67965853", "0.679537", "0.6792716", "0.67796046", "0.6776775", "0.6775711", "0.67680025", "0.67634565", "0.6762109", "0.6758278", "0.6756009", "0.67481816", "0.6738367", "0.6731588", "0.6721314", "0.67176443", "0.671043", "0.67065084", "0.6705694", "0.6702434", "0.6681549", "0.66799784", "0.66765684", "0.6667961", "0.666592", "0.6665633", "0.6659987", "0.6649683", "0.6647198", "0.66399497", "0.6639375", "0.6637081", "0.6631689", "0.6629893", "0.6624224", "0.6622723", "0.66161764", "0.6610774", "0.6602431", "0.6601196", "0.65961546", "0.65957415", "0.6590543", "0.65891594", "0.65787566", "0.65570784", "0.6553829", "0.6552855", "0.6550435", "0.65473944", "0.6547336", "0.654544", "0.6536497", "0.6534672", "0.65269655", "0.65260196", "0.652576", "0.65226996", "0.6518356", "0.6512249", "0.6510968", "0.65083987", "0.649768", "0.64932954", "0.64925736", "0.64919287", "0.64893085", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6485925", "0.6483748", "0.64826524", "0.64816594", "0.64801264", "0.6477539", "0.64773726", "0.6475095" ]
0.0
-1
/ WARNING void declaration
public void renderAlphaBG(int n, int n2, ResourceLocation resourceLocation) { void y; void x; void texture; mc.getTextureManager().bindTexture((ResourceLocation)texture); GL11.glPushMatrix(); GL11.glColor4f((float)Float.intBitsToFloat(Float.floatToIntBits(84.80346f) ^ 0x7D299B5F), (float)Float.intBitsToFloat(Float.floatToIntBits(356.26364f) ^ 0x7C3221BF), (float)Float.intBitsToFloat(Float.floatToIntBits(4.4841223f) ^ 0x7F0F7DEE), (float)Float.intBitsToFloat(Float.floatToIntBits(6.9323945f) ^ 0x7F5DD62D)); Gui.drawScaledCustomSizeModalRect((int)x, (int)y, (float)Float.intBitsToFloat(Float.floatToIntBits(1.9387513E38f) ^ 0x7F11DAFE), (float)Float.intBitsToFloat(Float.floatToIntBits(1.7625584E38f) ^ 0x7F0499A4), (int)104, (int)16, (int)(this.getWidth() - 4), (int)11, (float)Float.intBitsToFloat(Float.floatToIntBits(0.112598404f) ^ 0x7F3699FE), (float)Float.intBitsToFloat(Float.floatToIntBits(0.60222334f) ^ 0x7E9A2B4F)); GL11.glPopMatrix(); GlStateManager.clear((int)256); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneFlaeche() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "public void m23075a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract void mo27386d();", "void m1864a() {\r\n }", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public final void mo91715d() {\n }", "public void smell() {\n\t\t\n\t}", "void mo57277b();", "public void method_4270() {}", "public void mo44053a() {\n }", "public abstract void mo30696a();", "private void m50366E() {\n }", "public abstract void mo56925d();", "public void furyo ()\t{\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "private void ss(){\n }", "public void mo21779D() {\n }", "public abstract void mo42330e();", "public abstract void mo42331g();", "public abstract void mo102899a();", "private final void i() {\n }", "void mo41083a();", "public abstract void m15813a();", "public void mo21825b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private stendhal() {\n\t}", "public abstract void mo35054b();", "private void kk12() {\n\n\t}", "void mo28194a();", "public abstract void mo3994a();", "void mo72113b();", "public void mo21795T() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "void mo28306a();", "void mo80452a();", "public void mo21793R() {\n }", "public void mo4359a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo27464a();", "public void mo3749d() {\n }", "void mo54405a();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo21791P() {\n }", "void mo119582b();", "void mo80455b();", "public void mo21794S() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "private void sub() {\n\n\t}", "public void mo21789N() {\n }", "public void mo56167c() {\n }", "void mo84655a();", "@Override\n public void perish() {\n \n }", "public void mo2471e() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3376r() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "public void mo9137b() {\n }", "public void mo21781F() {\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 }", "void mo88521a();", "public void mo21787L() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void method(){}", "void mo41086b();", "public void mo21785J() {\n }", "void mo38026a();" ]
[ "0.72114015", "0.71405566", "0.71401", "0.7021417", "0.69780886", "0.6972193", "0.6960773", "0.69401586", "0.69401586", "0.69123584", "0.69039416", "0.68747616", "0.6874215", "0.68522483", "0.6835249", "0.6830557", "0.68150365", "0.68104607", "0.67968935", "0.67965853", "0.679537", "0.6792716", "0.67796046", "0.6776775", "0.6775711", "0.67680025", "0.67634565", "0.6762109", "0.6758278", "0.6756009", "0.67481816", "0.6738367", "0.6731588", "0.6721314", "0.67176443", "0.671043", "0.67065084", "0.6705694", "0.6702434", "0.6681549", "0.66799784", "0.66765684", "0.6667961", "0.666592", "0.6665633", "0.6659987", "0.6649683", "0.6647198", "0.66399497", "0.6639375", "0.6637081", "0.6631689", "0.6629893", "0.6624224", "0.6622723", "0.66161764", "0.6610774", "0.6602431", "0.6601196", "0.65961546", "0.65957415", "0.6590543", "0.65891594", "0.65787566", "0.65570784", "0.6553829", "0.6552855", "0.6550435", "0.65473944", "0.6547336", "0.654544", "0.6536497", "0.6534672", "0.65269655", "0.65260196", "0.652576", "0.65226996", "0.6518356", "0.6512249", "0.6510968", "0.65083987", "0.649768", "0.64932954", "0.64925736", "0.64919287", "0.64893085", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6485925", "0.6483748", "0.64826524", "0.64816594", "0.64801264", "0.6477539", "0.64773726", "0.6475095" ]
0.0
-1
/ WARNING void declaration Enabled force condition propagation Lifted jumps to return sites
public boolean isMouseOnHue(int n, int n2) { void y; void x; if (x <= this.getX() + 2) return false; if (x >= this.getX() + 2 + this.getWidth() - 4) return false; if (y <= this.getY() + 16) return false; if (y >= this.getY() + 27) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void jump_without_condition(String passed){\n\t\tcomplete_jump_req(passed.substring(4));\n\t}", "void z_piracy()\n {\n //branch (!f_setup.piracy);\n\n }", "public boolean c()\r\n/* 36: */ {\r\n/* 37:51 */ return false;\r\n/* 38: */ }", "public void noReturnOnVoid() {\n\t\treturn;\n\t}", "@Override\r\n\tpublic boolean voidIt() {\n\t\treturn false;\r\n\t}", "static void perform_jmp(String passed){\n\t\tint type = type_of_jmp(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tjump_without_condition(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "void breach();", "void bypass();", "public boolean isLegOut()\n{\n if (jumpState == 1)\n return true;\n return false;\n}", "@Override\n public void func_104112_b() {\n \n }", "public boolean isVoid()\r\n/* 146: */ {\r\n/* 147:177 */ return false;\r\n/* 148: */ }", "void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\n }", "public void smell() {\n\t\t\n\t}", "public abstract void mo32006dL(boolean z);", "void checkReturnSt (int ln) {\r\n if (!return_type.isVoid ())\r\n OzcError.needReturnSt (ln);\r\n else \r\n need_return = true;\r\n }", "@Override\n\tpublic boolean jump() {\n\t\tboolean rs = super.jump();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t\t\n\t}", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "public boolean c()\r\n/* 56: */ {\r\n/* 57: 77 */ return false;\r\n/* 58: */ }", "public void solution() {\n\t\t\n\t}", "public final void b() {\n /*\n r10 = this;\n r0 = 0\n java.lang.Object[] r1 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r3 = f53248e\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r7 = java.lang.Void.TYPE\n r4 = 0\n r5 = 55479(0xd8b7, float:7.7743E-41)\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7)\n if (r1 == 0) goto L_0x0025\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = f53248e\n r5 = 0\n r6 = 55479(0xd8b7, float:7.7743E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x0025:\n com.ss.android.ugc.aweme.live.alphaplayer.e$i r9 = r10.h\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = com.ss.android.ugc.aweme.live.alphaplayer.e.i.f53268a\n r5 = 0\n r6 = 55516(0xd8dc, float:7.7794E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r2, r3, r4, r5, r6, r7, r8)\n if (r2 == 0) goto L_0x004b\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = com.ss.android.ugc.aweme.live.alphaplayer.e.i.f53268a\n r5 = 0\n r6 = 55516(0xd8dc, float:7.7794E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x004b:\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r2 = g\n monitor-enter(r2)\n r0 = 1\n r9.f53270c = r0 // Catch:{ all -> 0x006e }\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = g // Catch:{ all -> 0x006e }\n r0.notifyAll() // Catch:{ all -> 0x006e }\n L_0x0056:\n boolean r0 = r9.f53269b // Catch:{ all -> 0x006e }\n if (r0 != 0) goto L_0x006c\n boolean r0 = r9.f53271d // Catch:{ all -> 0x006e }\n if (r0 != 0) goto L_0x006c\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = g // Catch:{ InterruptedException -> 0x0064 }\n r0.wait() // Catch:{ InterruptedException -> 0x0064 }\n goto L_0x0056\n L_0x0064:\n java.lang.Thread r0 = java.lang.Thread.currentThread() // Catch:{ all -> 0x006e }\n r0.interrupt() // Catch:{ all -> 0x006e }\n goto L_0x0056\n L_0x006c:\n monitor-exit(r2) // Catch:{ all -> 0x006e }\n return\n L_0x006e:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x006e }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.b():void\");\n }", "public final void b() {\n /*\n r9 = this;\n r0 = 0\n java.lang.Object[] r1 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r3 = f53268a\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r7 = java.lang.Void.TYPE\n r4 = 0\n r5 = 55519(0xd8df, float:7.7799E-41)\n r2 = r9\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7)\n if (r1 == 0) goto L_0x0025\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = f53268a\n r5 = 0\n r6 = 55519(0xd8df, float:7.7799E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x0025:\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = com.ss.android.ugc.aweme.live.alphaplayer.e.g\n monitor-enter(r0)\n r1 = 1\n r9.h = r1 // Catch:{ all -> 0x0044 }\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r1 = com.ss.android.ugc.aweme.live.alphaplayer.e.g // Catch:{ all -> 0x0044 }\n r1.notifyAll() // Catch:{ all -> 0x0044 }\n L_0x0030:\n boolean r1 = r9.f53269b // Catch:{ all -> 0x0044 }\n if (r1 != 0) goto L_0x0042\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r1 = com.ss.android.ugc.aweme.live.alphaplayer.e.g // Catch:{ InterruptedException -> 0x003a }\n r1.wait() // Catch:{ InterruptedException -> 0x003a }\n goto L_0x0030\n L_0x003a:\n java.lang.Thread r1 = java.lang.Thread.currentThread() // Catch:{ all -> 0x0044 }\n r1.interrupt() // Catch:{ all -> 0x0044 }\n goto L_0x0030\n L_0x0042:\n monitor-exit(r0) // Catch:{ all -> 0x0044 }\n return\n L_0x0044:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0044 }\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.i.b():void\");\n }", "public boolean C_enterTheZone(ListOfParameterLists parameterLists){\n //if(isEnter == true){\n if(debug)\n System.out.println(\"Condition from Rule7 :: is true\");\n\n\n return true;\n\n // }\n // else\n //return false;\n\n // Future work\n // Put the condition code here, eg. if the track is friendly, we\n // don't need to alert the analyst.\n\n }", "public void doublejump(){\r\n\t\t//jump a second time.\r\n\t}", "@Override\n\tpublic void leti() \n\t{\n\t}", "void blackhole(){ if (zzAtBOL) return; }", "public final void mo6599c() {\n /*\n r2 = this;\n r1 = r2.f40713f;\n monitor-enter(r1);\n r0 = r2.m38021e();\t Catch:{ all -> 0x0015 }\n if (r0 != 0) goto L_0x000d;\n L_0x0009:\n r0 = r2.f40710c;\t Catch:{ all -> 0x0015 }\n if (r0 != 0) goto L_0x000f;\n L_0x000d:\n monitor-exit(r1);\t Catch:{ all -> 0x0015 }\n L_0x000e:\n return;\n L_0x000f:\n r0 = 2;\n r2.m38011a(r0);\t Catch:{ all -> 0x0015 }\n monitor-exit(r1);\t Catch:{ all -> 0x0015 }\n goto L_0x000e;\n L_0x0015:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0015 }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.chromium.net.impl.CronetUrlRequest.c():void\");\n }", "public boolean i()\r\n/* 46: */ {\r\n/* 47:50 */ return true;\r\n/* 48: */ }", "public void think()\r\n/* 32: */ {\r\n/* 33: 29 */ think_blocking();\r\n/* 34: */ }", "public void noreturn(){\n System.out.println(\"universal\");\n }", "public boolean isJumping(){\n if (jumpState == 2)\n return true;\n return false;\n\n}", "public void set_return(boolean param){\n \n // setting primitive attribute tracker to true\n \n if (false) {\n local_returnTracker = false;\n \n } else {\n local_returnTracker = true;\n }\n \n this.local_return=param;\n \n\n }", "public void alg_RUNCONVEYER(){\nBlock.value=false;\nSystem.out.println(\"run\");\n\n}", "public SmallSet<CFGNode> interceptedAbruptStmts() {\n ASTNode$State state = state();\n try {\n \t\tSmallSet<CFGNode> branches = emptySmallSet();\n \t\tIterator itr = super.interceptedAbruptStmts().iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tStmt stmt = (Stmt)itr.next();\n \t\t\tif (stmt.isBreakStmt() && potentialTargetOf((BreakStmt)stmt) || \n \t\t\t\tstmt.isContinueStmt() && potentialTargetOf((ContinueStmt)stmt)) {\n \t\t\t\tcontinue;\n \t\t\t} \n \t\t\tbranches = branches.union(stmt);\n \t\t}\n \t\treturn branches;\n \t}\n finally {\n }\n }", "public boolean eliminateLoop(){ return false; }", "protected final /* synthetic */ java.lang.Object run() {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.chu();\n r3 = com.tencent.mm.plugin.appbrand.b.c.this;\n r3 = r3.iKh;\n if (r2 != r3) goto L_0x0022;\n L_0x000e:\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.iKh;\n r2 = r2.iKy;\n r2 = r2 & 1;\n if (r2 <= 0) goto L_0x0020;\n L_0x0018:\n r2 = r0;\n L_0x0019:\n if (r2 == 0) goto L_0x0022;\n L_0x001b:\n r0 = java.lang.Boolean.valueOf(r0);\n return r0;\n L_0x0020:\n r2 = r1;\n goto L_0x0019;\n L_0x0022:\n r0 = r1;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.b.c.5.run():java.lang.Object\");\n }", "static void jump_when_carry_not(String passed){\n\t\tif(!CS)\n\t\t\tcomplete_jump_req(passed.substring(4));\n\t}", "private static void execute1()\n\t{\n\t\tboolean flushRegisterValues = false;\n\t\tboolean branchFUflag = false;\n\t\tExecutionOfOpcode functionUnit = new ExecutionOfOpcode();\n\t\tString controlFlowInstruction = TypesOfOperations.BNZ + \"|\" + TypesOfOperations.BZ + \"|\"\n\t\t\t\t+ TypesOfOperations.JUMP + \"|\" + TypesOfOperations.BAL + \"|\" + TypesOfOperations.HALT;\n\n\t\tif (latches.containsKey(\"D\"))\n\t\t{\n\t\t\tif (!latches.get(\"D\").isNOP())\n\t\t\t{\n\t\t\t\t// Check if the instruction in Decode stage is not Control flow\n\t\t\t\t// instruction\n\t\t\t\tif (!controlFlowInstruction.contains(latches.get(\"D\").getOperation()))\n\t\t\t\t{\n\t\t\t\t\tInstruction instructionEx = latches.get(\"D\");\n\t\t\t\t\t// TODO check the src 1 and src 2 with forwarding registers\n\t\t\t\t\tif ((forwardingReg != null) && (forwardingRegMEMtoEX != null)\n\t\t\t\t\t\t\t&& forwardingReg.getKey().equals(forwardingRegMEMtoEX.getKey()))\n\t\t\t\t\t{\n\t\t\t\t\t\tforwardingRegMEMtoEX.setValue(forwardingReg.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tlatches.put(\"D\", functionUnit.executeInstruction(latches.get(\"D\")));\n\t\t\t\t} else\n\t\t\t\t// Here we have the branch instruction\n\t\t\t\t{\n\t\t\t\t\tbranchFUflag = true;\n\t\t\t\t\tlatches.put(\"E\", stages.get(\"E\"));\n\t\t\t\t\tstages.put(\"E\", new Instruction()); // Add NOP in the ALU1\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!branchFUflag)\n\t\t\t{\n\t\t\t\tmoveInstruction(\"E\", \"D\");\n\t\t\t\tif (flushRegisterValues)\n\t\t\t\t\tflushRegister();\n\t\t\t}\n\t\t}\n\t}", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public boolean isMoving() {\n/* 270 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "static void return_unconditionally(String passed){\n\t\tcomplete_return_requirements();\n\t}", "@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void b(boolean r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r2 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r0 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((boolean) r11) // Catch:{ all -> 0x004b }\n r10.n = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.b(boolean):void\");\n }", "private static void notPossible () {\r\n\t\tSystem.out.println(\"This operation is not possible\");\r\n\t}", "@Override\r\n\tpublic void laught() {\n\r\n\t}", "@Override\n public boolean step() {\n return false;\n }", "public boolean func_70097_a(DamageSource par1DamageSource, float par2) {\n/* 296 */ if (func_180431_b(par1DamageSource))\n/* */ {\n/* 298 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 302 */ return super.func_70097_a(par1DamageSource, par2);\n/* */ }", "@Override\n public boolean bodyCall(Node[] args, int length, RuleContext context) {\n try {\n checkArgs(length, context);\n BindingEnvironment env = context.getEnv();\n boolean ok = false;\n JEP mathParser = new JEP();\n Node varList = getArg(0, args, context);\n Node prevSt = getArg(1, args, context);\n Node cond = getArg(2, args, context);\n Node iter = getArg(3, args, context);\n \n return IfTrue_BranchBeTraversed.evaluateExpression(prevSt, cond, context, iter, varList, mathParser);\n\n \n } catch (Exception ex) {\n //Logger.getLogger(IfTrue_BranchBeTraversed.class.getName()).log(Level.SEVERE, null, ex);\n } finally{\n return true;\n }\n }", "@Override\n\tpublic void activity() {\n\t\tSystem.out.println(\"relaxing\");\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public boolean performAction(int action) {\n/* 567 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void kiemTraThangHopLi() {\n }", "@Override\n\tpublic void wantToGoOnBreak() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public int logic2()\r\n\t{\r\n\t\tint changesMade = 0;\r\n\t\t\t\r\n\t\treturn changesMade;\r\n\t}", "public abstract void mo70713b();", "public boolean b()\r\n/* 709: */ {\r\n/* 710:702 */ return this.l;\r\n/* 711: */ }", "public void method_9653() {\r\n this.field_9138.method_4479(false);\r\n }", "static void return_when_parity(String passed){\n\t\tif(P)\n\t\t\tcomplete_return_requirements();\n\t}", "public abstract boolean zzbek();", "public abstract void mo9254f(boolean z);", "static void complete_return_requirements(){\n\t\tString ad = memory.get(SP+1)+memory.get(SP);\n\t\tSP+=2;\n\t\tPC = hexa_to_deci(ad);\n\t\tmodified =true;\n\t}", "public void doSomething(){\n return;\n }", "public int logic4()\r\n\t{\r\n\t\tint changesMade = 0;\r\n\t\treturn changesMade;\r\n\t}", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "static void jump_when_parity(String passed){\n\t\tif(P)\n\t\t\tcomplete_jump_req(passed.substring(4));\n\t}", "public void noReturn() {\n\t\tSystem.out.println(\"noReturn method will not returing any thing\");\n\t}", "static void jump_when_parity_not(String passed){\n\t\tif(!P)\n\t\t\tcomplete_jump_req(passed.substring(4));\n\t}", "public boolean method_3897() {\r\n return false;\r\n }", "public void visit(ConditionElement1 conditionElement1) {\n\t\t\n\t\t// if a != 0, jmp true1\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc+Code.ne);\n\t\tCode.put2(11);\n\t\t\n\t\t// if b != 0, jmp true2\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.ne);\n\t\tCode.put2(8);\n\t\t\n\t\t// false: put 0,jmp next \n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jmp);\n\t\tCode.put2(5);\n\t\t\n\t\t// true1\n\t\tCode.put(Code.pop);\n\t\t\n\t\t// true2\n\t\tCode.loadConst(1);\n\t\t\n\t\t// next\n\t}", "@Override\r\n\tpublic void visit(ConditionExpression conditionExpression) {\n\r\n\t}", "@Override\n public void toogleFold() {\n }", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "public abstract void mo27385c();", "private void g()\r\n/* 30: */ {\r\n/* 31: 40 */ if (this.n) {\r\n/* 32: 41 */ return;\r\n/* 33: */ }\r\n/* 34: 45 */ if (this.l != null)\r\n/* 35: */ {\r\n/* 36: 47 */ if (this.f != null) {\r\n/* 37: 48 */ c();\r\n/* 38: */ }\r\n/* 39: 51 */ cuj.a(super.b(), this.l);\r\n/* 40: 52 */ this.n = true;\r\n/* 41: */ }\r\n/* 42: */ }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n public <A> Function1<Object, A> andThen$mcZI$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "static void return_not_carry(String passed){\n\t\tif(!CS)\n\t\t\tcomplete_return_requirements();\n\t}", "@Override\n\tpublic void breath() {\n\n\t}", "static void complete_jump_req(String passed){\n\t\t//\t\tString program_counter = decimel_to_hexa(PC);\n\t\t//\t\tfill_the_stack(program_counter.substring(0,2),program_counter.substring(2,4),psw());\n\t\tif(labels.get(passed)==null)\n\t\t\tPC = hexa_to_deci(passed);\n\t\telse\n\t\t\tPC = labels.get(passed);\n\t\tmodified =true;\n\t}", "public void b(boolean r31, boolean r32) {\n /*\n r30 = this;\n r4 = com.tencent.smtt.sdk.an.a();\n r0 = r30;\n r5 = r0.g;\n r4 = r4.c(r5);\n if (r4 == 0) goto L_0x0021;\n L_0x000e:\n if (r31 != 0) goto L_0x0021;\n L_0x0010:\n r4 = 0;\n com.tencent.smtt.sdk.TbsDownloader.a = r4;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -322; // 0xfffffffffffffebe float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n L_0x0020:\n return;\n L_0x0021:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_responsecode\";\n r6 = 0;\n r4 = r4.getInt(r5, r6);\n r5 = 1;\n if (r4 == r5) goto L_0x003c;\n L_0x0036:\n r5 = 2;\n if (r4 == r5) goto L_0x003c;\n L_0x0039:\n r5 = 4;\n if (r4 != r5) goto L_0x0051;\n L_0x003c:\n r4 = 1;\n r21 = r4;\n L_0x003f:\n if (r32 != 0) goto L_0x0055;\n L_0x0041:\n r0 = r30;\n r1 = r31;\n r2 = r21;\n r4 = r0.a(r1, r2);\n if (r4 == 0) goto L_0x0055;\n L_0x004d:\n r4 = 0;\n com.tencent.smtt.sdk.TbsDownloader.a = r4;\n goto L_0x0020;\n L_0x0051:\n r4 = 0;\n r21 = r4;\n goto L_0x003f;\n L_0x0055:\n r0 = r31;\n r1 = r30;\n r1.C = r0;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_downloadurl\";\n r6 = 0;\n r4 = r4.getString(r5, r6);\n r0 = r30;\n r0.h = r4;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_downloadurl_list\";\n r6 = 0;\n r4 = r4.getString(r5, r6);\n r5 = \"TbsDownload\";\n r6 = new java.lang.StringBuilder;\n r7 = \"backupUrlStrings:\";\n r6.<init>(r7);\n r6 = r6.append(r4);\n r6 = r6.toString();\n r7 = 1;\n com.tencent.smtt.utils.TbsLog.i(r5, r6, r7);\n r5 = 0;\n r0 = r30;\n r0.b = r5;\n r5 = 0;\n r0 = r30;\n r0.c = r5;\n if (r31 != 0) goto L_0x00c4;\n L_0x00a6:\n if (r4 == 0) goto L_0x00c4;\n L_0x00a8:\n r5 = \"\";\n r6 = r4.trim();\n r5 = r5.equals(r6);\n if (r5 != 0) goto L_0x00c4;\n L_0x00b5:\n r5 = r4.trim();\n r6 = \";\";\n r5 = r5.split(r6);\n r0 = r30;\n r0.b = r5;\n L_0x00c4:\n r5 = \"TbsDownload\";\n r6 = new java.lang.StringBuilder;\n r7 = \"[TbsApkDownloader.startDownload] mDownloadUrl=\";\n r6.<init>(r7);\n r0 = r30;\n r7 = r0.h;\n r6 = r6.append(r7);\n r7 = \" backupUrlStrings=\";\n r6 = r6.append(r7);\n r4 = r6.append(r4);\n r6 = \" mLocation=\";\n r4 = r4.append(r6);\n r0 = r30;\n r6 = r0.j;\n r4 = r4.append(r6);\n r6 = \" mCanceled=\";\n r4 = r4.append(r6);\n r0 = r30;\n r6 = r0.r;\n r4 = r4.append(r6);\n r6 = \" mHttpRequest=\";\n r4 = r4.append(r6);\n r0 = r30;\n r6 = r0.t;\n r4 = r4.append(r6);\n r4 = r4.toString();\n com.tencent.smtt.utils.TbsLog.i(r5, r4);\n r0 = r30;\n r4 = r0.h;\n if (r4 != 0) goto L_0x0138;\n L_0x011c:\n r0 = r30;\n r4 = r0.j;\n if (r4 != 0) goto L_0x0138;\n L_0x0122:\n r4 = com.tencent.smtt.sdk.QbSdk.m;\n r5 = 110; // 0x6e float:1.54E-43 double:5.43E-322;\n r4.onDownloadFinish(r5);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -302; // 0xfffffffffffffed2 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n goto L_0x0020;\n L_0x0138:\n r0 = r30;\n r4 = r0.t;\n if (r4 == 0) goto L_0x015a;\n L_0x013e:\n r0 = r30;\n r4 = r0.r;\n if (r4 != 0) goto L_0x015a;\n L_0x0144:\n r4 = com.tencent.smtt.sdk.QbSdk.m;\n r5 = 110; // 0x6e float:1.54E-43 double:5.43E-322;\n r4.onDownloadFinish(r5);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -303; // 0xfffffffffffffed1 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n goto L_0x0020;\n L_0x015a:\n if (r31 != 0) goto L_0x018d;\n L_0x015c:\n r0 = r30;\n r4 = r0.A;\n r0 = r30;\n r5 = r0.g;\n r5 = com.tencent.smtt.utils.Apn.getWifiSSID(r5);\n r4 = r4.contains(r5);\n if (r4 == 0) goto L_0x018d;\n L_0x016e:\n r4 = \"TbsDownload\";\n r5 = \"[TbsApkDownloader.startDownload] WIFI Unavailable\";\n com.tencent.smtt.utils.TbsLog.i(r4, r5);\n r4 = com.tencent.smtt.sdk.QbSdk.m;\n r5 = 110; // 0x6e float:1.54E-43 double:5.43E-322;\n r4.onDownloadFinish(r5);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -304; // 0xfffffffffffffed0 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n goto L_0x0020;\n L_0x018d:\n r30.f();\n r4 = \"TbsDownload\";\n r5 = \"STEP 1/2 begin downloading...\";\n r6 = 1;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r6);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r24 = r4.getDownloadMaxflow();\n r6 = 0;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_downloadflow\";\n r8 = 0;\n r4 = r4.getLong(r5, r8);\n if (r31 == 0) goto L_0x0271;\n L_0x01bc:\n r7 = e;\n r0 = r30;\n r0.B = r7;\n L_0x01c2:\n r0 = r30;\n r7 = r0.p;\n r0 = r30;\n r8 = r0.B;\n if (r7 > r8) goto L_0x01ea;\n L_0x01cc:\n r0 = r30;\n r7 = r0.q;\n r8 = 8;\n if (r7 <= r8) goto L_0x0279;\n L_0x01d4:\n r4 = 123; // 0x7b float:1.72E-43 double:6.1E-322;\n r5 = 0;\n r7 = 1;\n r0 = r30;\n r0.a(r4, r5, r7);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -306; // 0xfffffffffffffece float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n L_0x01ea:\n r0 = r30;\n r4 = r0.r;\n if (r4 != 0) goto L_0x026c;\n L_0x01f0:\n r0 = r30;\n r4 = r0.s;\n if (r4 == 0) goto L_0x023d;\n L_0x01f6:\n r0 = r30;\n r4 = r0.b;\n if (r4 != 0) goto L_0x0207;\n L_0x01fc:\n if (r6 != 0) goto L_0x0207;\n L_0x01fe:\n r4 = 1;\n r0 = r30;\n r1 = r21;\n r6 = r0.c(r4, r1);\n L_0x0207:\n r0 = r30;\n r5 = r0.v;\n if (r6 == 0) goto L_0x0ebc;\n L_0x020d:\n r4 = 1;\n L_0x020e:\n r5.setUnpkgFlag(r4);\n if (r21 != 0) goto L_0x0ec2;\n L_0x0213:\n r0 = r30;\n r5 = r0.v;\n if (r6 == 0) goto L_0x0ebf;\n L_0x0219:\n r4 = 1;\n L_0x021a:\n r5.setPatchUpdateFlag(r4);\n L_0x021d:\n if (r6 == 0) goto L_0x0ecc;\n L_0x021f:\n r4 = 1;\n r0 = r30;\n r0.b(r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -317; // 0xfffffffffffffec3 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n r4 = 100;\n r5 = \"success\";\n r7 = 1;\n r0 = r30;\n r0.a(r4, r5, r7);\n L_0x023d:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n if (r6 == 0) goto L_0x0ee1;\n L_0x0247:\n r5 = r4.mPreferences;\n r7 = \"tbs_download_success_retrytimes\";\n r8 = 0;\n r5 = r5.getInt(r7, r8);\n r7 = r4.a;\n r8 = \"tbs_download_success_retrytimes\";\n r5 = r5 + 1;\n r5 = java.lang.Integer.valueOf(r5);\n r7.put(r8, r5);\n L_0x025f:\n r4.commit();\n r0 = r30;\n r5 = r0.v;\n if (r6 == 0) goto L_0x0f09;\n L_0x0268:\n r4 = 1;\n L_0x0269:\n r5.setDownFinalFlag(r4);\n L_0x026c:\n r30.g();\n goto L_0x0020;\n L_0x0271:\n r7 = d;\n r0 = r30;\n r0.B = r7;\n goto L_0x01c2;\n L_0x0279:\n r22 = java.lang.System.currentTimeMillis();\n if (r31 != 0) goto L_0x0385;\n L_0x027f:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.mPreferences;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_downloadstarttime\";\n r10 = 0;\n r8 = r7.getLong(r8, r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r22 - r8;\n r10 = 86400000; // 0x5265c00 float:7.82218E-36 double:4.2687272E-316;\n r7 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r7 <= 0) goto L_0x0328;\n L_0x029b:\n r7 = \"TbsDownload\";\n r8 = \"[TbsApkDownloader.startDownload] OVER DOWNLOAD_PERIOD\";\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.a;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_downloadstarttime\";\n r9 = java.lang.Long.valueOf(r22);\t Catch:{ Throwable -> 0x0570 }\n r7.put(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.a;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_downloadflow\";\n r10 = 0;\n r9 = java.lang.Long.valueOf(r10);\t Catch:{ Throwable -> 0x0570 }\n r7.put(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7.commit();\t Catch:{ Throwable -> 0x0570 }\n r4 = 0;\n L_0x02db:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.utils.j.b(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x0385;\n L_0x02e5:\n r7 = \"TbsDownload\";\n r8 = \"DownloadBegin FreeSpace too small\";\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r7 = 105; // 0x69 float:1.47E-43 double:5.2E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -308; // 0xfffffffffffffecc float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0307:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0328:\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"[TbsApkDownloader.startDownload] downloadFlow=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r4);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r7 = (r4 > r24 ? 1 : (r4 == r24 ? 0 : -1));\n if (r7 < 0) goto L_0x02db;\n L_0x0342:\n r7 = \"TbsDownload\";\n r8 = \"STEP 1/2 begin downloading...failed because you exceeded max flow!\";\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r7 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -307; // 0xfffffffffffffecd float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0364:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0385:\n r7 = 1;\n r0 = r30;\n r0.y = r7;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.j;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0519;\n L_0x0390:\n r0 = r30;\n r7 = r0.j;\t Catch:{ Throwable -> 0x0570 }\n L_0x0394:\n r8 = \"TbsDownload\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"try url:\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r7);\t Catch:{ Throwable -> 0x0570 }\n r10 = \",mRetryTimes:\";\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n r10 = 1;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.i;\t Catch:{ Throwable -> 0x0570 }\n r8 = r7.equals(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x03cb;\n L_0x03c4:\n r0 = r30;\n r8 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r8.setDownloadUrl(r7);\t Catch:{ Throwable -> 0x0570 }\n L_0x03cb:\n r0 = r30;\n r0.i = r7;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r7);\t Catch:{ Throwable -> 0x0570 }\n r12 = 0;\n r0 = r30;\n r7 = r0.o;\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x0438;\n L_0x03dc:\n r12 = r30.k();\t Catch:{ Throwable -> 0x0570 }\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"[TbsApkDownloader.startDownload] range=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r7 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r7 > 0) goto L_0x051f;\n L_0x0400:\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"STEP 1/2 begin downloading...current\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Range\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"bytes=\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r10 = \"-\";\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n r7.setRequestProperty(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n L_0x0438:\n r0 = r30;\n r8 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r7 = (r12 > r10 ? 1 : (r12 == r10 ? 0 : -1));\n if (r7 != 0) goto L_0x05e8;\n L_0x0442:\n r7 = 0;\n L_0x0443:\n r8.setDownloadCancel(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.utils.Apn.getApnType(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.utils.Apn.getApnInfo(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r9 = r0.w;\t Catch:{ Throwable -> 0x0570 }\n if (r9 != 0) goto L_0x05eb;\n L_0x045c:\n r0 = r30;\n r9 = r0.x;\t Catch:{ Throwable -> 0x0570 }\n r10 = -1;\n if (r9 != r10) goto L_0x05eb;\n L_0x0463:\n r0 = r30;\n r0.w = r8;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.x = r7;\t Catch:{ Throwable -> 0x0570 }\n L_0x046b:\n r0 = r30;\n r7 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n if (r7 <= 0) goto L_0x047f;\n L_0x0471:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Referer\";\n r0 = r30;\n r9 = r0.h;\t Catch:{ Throwable -> 0x0570 }\n r7.addRequestProperty(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n L_0x047f:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.getResponseCode();\t Catch:{ Throwable -> 0x0570 }\n r8 = \"TbsDownload\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"[TbsApkDownloader.startDownload] responseCode=\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r7);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r8.setHttpCode(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x04e3;\n L_0x04a6:\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.sdk.TbsDownloader.getOverSea(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x04e3;\n L_0x04b0:\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.utils.Apn.getApnType(r8);\t Catch:{ Throwable -> 0x0570 }\n r9 = 3;\n if (r8 == r9) goto L_0x04c1;\n L_0x04bb:\n r8 = com.tencent.smtt.sdk.QbSdk.getDownloadWithoutWifi();\t Catch:{ Throwable -> 0x0570 }\n if (r8 == 0) goto L_0x04cb;\n L_0x04c1:\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.utils.Apn.getApnType(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x04e3;\n L_0x04cb:\n r30.c();\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ Throwable -> 0x0570 }\n if (r8 == 0) goto L_0x04d9;\n L_0x04d2:\n r8 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ Throwable -> 0x0570 }\n r9 = 111; // 0x6f float:1.56E-43 double:5.5E-322;\n r8.onDownloadFinish(r9);\t Catch:{ Throwable -> 0x0570 }\n L_0x04d9:\n r8 = \"TbsDownload\";\n r9 = \"Download is canceled due to NOT_WIFI error!\";\n r10 = 0;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ Throwable -> 0x0570 }\n L_0x04e3:\n r0 = r30;\n r8 = r0.r;\t Catch:{ Throwable -> 0x0570 }\n if (r8 == 0) goto L_0x0632;\n L_0x04e9:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x04f8:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0519:\n r0 = r30;\n r7 = r0.h;\t Catch:{ Throwable -> 0x0570 }\n goto L_0x0394;\n L_0x051f:\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"#1 STEP 1/2 begin downloading...current/total=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r9 = \"/\";\n r8 = r8.append(r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Range\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"bytes=\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r10 = \"-\";\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n r7.setRequestProperty(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n goto L_0x0438;\n L_0x0570:\n r7 = move-exception;\n L_0x0571:\n r8 = r7 instanceof javax.net.ssl.SSLHandshakeException;\t Catch:{ all -> 0x060d }\n if (r8 == 0) goto L_0x0e71;\n L_0x0575:\n if (r31 != 0) goto L_0x0e71;\n L_0x0577:\n r0 = r30;\n r8 = r0.b;\t Catch:{ all -> 0x060d }\n if (r8 == 0) goto L_0x0e71;\n L_0x057d:\n r8 = 0;\n r0 = r30;\n r8 = r0.a(r8);\t Catch:{ all -> 0x060d }\n if (r8 == 0) goto L_0x0e71;\n L_0x0586:\n r8 = \"TbsDownload\";\n r9 = new java.lang.StringBuilder;\t Catch:{ all -> 0x060d }\n r10 = \"[startdownload]url:\";\n r9.<init>(r10);\t Catch:{ all -> 0x060d }\n r0 = r30;\n r10 = r0.j;\t Catch:{ all -> 0x060d }\n r9 = r9.append(r10);\t Catch:{ all -> 0x060d }\n r10 = \" download exception:\";\n r9 = r9.append(r10);\t Catch:{ all -> 0x060d }\n r7 = r7.toString();\t Catch:{ all -> 0x060d }\n r7 = r9.append(r7);\t Catch:{ all -> 0x060d }\n r7 = r7.toString();\t Catch:{ all -> 0x060d }\n com.tencent.smtt.utils.TbsLog.e(r8, r7);\t Catch:{ all -> 0x060d }\n r7 = 125; // 0x7d float:1.75E-43 double:6.2E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ all -> 0x060d }\n L_0x05b8:\n r0 = r30;\n r7 = r0.g;\t Catch:{ all -> 0x060d }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ all -> 0x060d }\n r8 = -316; // 0xfffffffffffffec4 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ all -> 0x060d }\n if (r31 != 0) goto L_0x01c2;\n L_0x05c7:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x05e8:\n r7 = 1;\n goto L_0x0443;\n L_0x05eb:\n r0 = r30;\n r9 = r0.x;\t Catch:{ Throwable -> 0x0570 }\n if (r7 != r9) goto L_0x05fb;\n L_0x05f1:\n r0 = r30;\n r9 = r0.w;\t Catch:{ Throwable -> 0x0570 }\n r9 = r8.equals(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r9 != 0) goto L_0x046b;\n L_0x05fb:\n r0 = r30;\n r9 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r9.setNetworkChange(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.w = r8;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.x = r7;\t Catch:{ Throwable -> 0x0570 }\n goto L_0x046b;\n L_0x060d:\n r6 = move-exception;\n r16 = r4;\n L_0x0610:\n if (r31 != 0) goto L_0x0631;\n L_0x0612:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.a;\n r5 = \"tbs_downloadflow\";\n r7 = java.lang.Long.valueOf(r16);\n r4.put(r5, r7);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n L_0x0631:\n throw r6;\n L_0x0632:\n r8 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r7 == r8) goto L_0x063a;\n L_0x0636:\n r8 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n if (r7 != r8) goto L_0x0ba2;\n L_0x063a:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.getContentLength();\t Catch:{ Throwable -> 0x0570 }\n r8 = (long) r7;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8 + r12;\n r0 = r30;\n r0.l = r8;\t Catch:{ Throwable -> 0x0570 }\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"[TbsApkDownloader.startDownload] mContentLength=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r7.setPkgSize(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.mPreferences;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_apkfilesize\";\n r10 = 0;\n r8 = r7.getLong(r8, r10);\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r7 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r7 == 0) goto L_0x076e;\n L_0x0686:\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r7 = (r10 > r8 ? 1 : (r10 == r8 ? 0 : -1));\n if (r7 == 0) goto L_0x076e;\n L_0x068e:\n r7 = \"TbsDownload\";\n r10 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r11 = \"DownloadBegin tbsApkFileSize=\";\n r10.<init>(r11);\t Catch:{ Throwable -> 0x0570 }\n r10 = r10.append(r8);\t Catch:{ Throwable -> 0x0570 }\n r11 = \" but contentLength=\";\n r10 = r10.append(r11);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r12 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r10 = r10.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r10 = r10.toString();\t Catch:{ Throwable -> 0x0570 }\n r11 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r10, r11);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x0755;\n L_0x06b6:\n r7 = r30.n();\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x06cc;\n L_0x06bc:\n r7 = com.tencent.smtt.sdk.QbSdk.getDownloadWithoutWifi();\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0755;\n L_0x06c2:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.utils.Apn.isNetworkAvailable(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0755;\n L_0x06cc:\n r0 = r30;\n r7 = r0.b;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x06fe;\n L_0x06d2:\n r7 = 0;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x06fe;\n L_0x06db:\n if (r31 != 0) goto L_0x01c2;\n L_0x06dd:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x06fe:\n r7 = 113; // 0x71 float:1.58E-43 double:5.6E-322;\n r10 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r11 = \"tbsApkFileSize=\";\n r10.<init>(r11);\t Catch:{ Throwable -> 0x0570 }\n r8 = r10.append(r8);\t Catch:{ Throwable -> 0x0570 }\n r9 = \" but contentLength=\";\n r8 = r8.append(r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -310; // 0xfffffffffffffeca float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n L_0x0732:\n if (r31 != 0) goto L_0x01ea;\n L_0x0734:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0755:\n r7 = 101; // 0x65 float:1.42E-43 double:5.0E-322;\n r8 = \"WifiNetworkUnAvailable\";\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -304; // 0xfffffffffffffed0 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n goto L_0x0732;\n L_0x076e:\n r10 = 0;\n r9 = 0;\n r8 = 0;\n r7 = \"TbsDownload\";\n r11 = \"[TbsApkDownloader.startDownload] begin readResponse\";\n com.tencent.smtt.utils.TbsLog.i(r7, r11);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.t;\t Catch:{ IOException -> 0x0f2f, all -> 0x0f10 }\n r19 = r7.getInputStream();\t Catch:{ IOException -> 0x0f2f, all -> 0x0f10 }\n if (r19 == 0) goto L_0x0a6e;\n L_0x0784:\n r0 = r30;\n r7 = r0.t;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r7 = r7.getContentEncoding();\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n if (r7 == 0) goto L_0x0818;\n L_0x078e:\n r9 = \"gzip\";\n r9 = r7.contains(r9);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n if (r9 == 0) goto L_0x0818;\n L_0x0797:\n r18 = new java.util.zip.GZIPInputStream;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r18.<init>(r19);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n L_0x079c:\n r7 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\n r0 = new byte[r7];\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r26 = r0;\n r20 = new java.io.FileOutputStream;\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r7 = new java.io.File;\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r0 = r30;\n r8 = r0.k;\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r9 = \"x5.tbs.temp\";\n r7.<init>(r8, r9);\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r8 = 1;\n r0 = r20;\n r0.<init>(r7, r8);\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r14 = java.lang.System.currentTimeMillis();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r7 = 0;\n r8 = r12;\n r10 = r12;\n r16 = r4;\n L_0x07bf:\n r0 = r30;\n r4 = r0.r;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0891;\n L_0x07c5:\n r4 = \"TbsDownload\";\n r5 = \"STEP 1/2 begin downloading...Canceled!\";\n r8 = 1;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r8);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r16;\n L_0x07de:\n if (r7 == 0) goto L_0x0a72;\n L_0x07e0:\n r0 = r30;\n r1 = r20;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r18;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r19;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x07f7:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0818:\n if (r7 == 0) goto L_0x088d;\n L_0x081a:\n r9 = \"deflate\";\n r7 = r7.contains(r9);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n if (r7 == 0) goto L_0x088d;\n L_0x0823:\n r18 = new java.util.zip.InflaterInputStream;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r7 = new java.util.zip.Inflater;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r9 = 1;\n r7.<init>(r9);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r0 = r18;\n r1 = r19;\n r0.<init>(r1, r7);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n goto L_0x079c;\n L_0x0834:\n r7 = move-exception;\n r9 = r19;\n L_0x0837:\n r11 = r7 instanceof java.net.SocketTimeoutException;\t Catch:{ all -> 0x0b97 }\n if (r11 != 0) goto L_0x083f;\n L_0x083b:\n r11 = r7 instanceof java.net.SocketException;\t Catch:{ all -> 0x0b97 }\n if (r11 == 0) goto L_0x0abd;\n L_0x083f:\n r11 = 100000; // 0x186a0 float:1.4013E-40 double:4.94066E-319;\n r0 = r30;\n r0.m = r11;\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r12);\t Catch:{ all -> 0x0b97 }\n r11 = 103; // 0x67 float:1.44E-43 double:5.1E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r11, r7, r12);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r0.a(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x086c:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x088d:\n r18 = r19;\n goto L_0x079c;\n L_0x0891:\n r4 = 0;\n r5 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\n r0 = r18;\n r1 = r26;\n r27 = r0.read(r1, r4, r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r27 > 0) goto L_0x08e6;\n L_0x089e:\n r0 = r30;\n r4 = r0.b;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x08c9;\n L_0x08a4:\n r4 = 1;\n r0 = r30;\n r1 = r21;\n r4 = r0.c(r4, r1);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 != 0) goto L_0x08c9;\n L_0x08af:\n if (r31 != 0) goto L_0x08bf;\n L_0x08b1:\n r4 = 0;\n r0 = r30;\n r4 = r0.a(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x08bf;\n L_0x08ba:\n r7 = 1;\n r4 = r16;\n goto L_0x07de;\n L_0x08bf:\n r4 = 1;\n r0 = r30;\n r0.s = r4;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r6 = 0;\n r4 = r16;\n goto L_0x07de;\n L_0x08c9:\n r4 = 1;\n r0 = r30;\n r0.s = r4;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r4 = r0.b;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x08d5;\n L_0x08d4:\n r6 = 1;\n L_0x08d5:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = -311; // 0xfffffffffffffec9 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r16;\n goto L_0x07de;\n L_0x08e6:\n r4 = 0;\n r0 = r20;\n r1 = r26;\n r2 = r27;\n r0.write(r1, r4, r2);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r20.flush();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r31 != 0) goto L_0x09bb;\n L_0x08f5:\n r0 = r27;\n r4 = (long) r0;\n r4 = r4 + r16;\n r12 = (r4 > r24 ? 1 : (r4 == r24 ? 0 : -1));\n if (r12 < 0) goto L_0x0945;\n L_0x08fe:\n r8 = \"TbsDownload\";\n r9 = \"STEP 1/2 begin downloading...failed because you exceeded max flow!\";\n r10 = 1;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n r9 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \"downloadFlow=\";\n r9.<init>(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.append(r4);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \" downloadMaxflow=\";\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r24;\n r9 = r9.append(r0);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.toString();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = 1;\n r0 = r30;\n r0.a(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r30;\n r8 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r8);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = -307; // 0xfffffffffffffecd float:NaN double:NaN;\n r8.setDownloadInterruptCode(r9);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n goto L_0x07de;\n L_0x093c:\n r7 = move-exception;\n r8 = r18;\n r9 = r19;\n r10 = r20;\n goto L_0x0837;\n L_0x0945:\n r0 = r30;\n r12 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r12 = com.tencent.smtt.utils.j.b(r12);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n if (r12 != 0) goto L_0x09b9;\n L_0x094f:\n r8 = \"TbsDownload\";\n r9 = \"DownloadEnd FreeSpace too small \";\n r10 = 1;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = 105; // 0x69 float:1.47E-43 double:5.2E-322;\n r9 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \"freespace=\";\n r9.<init>(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = com.tencent.smtt.utils.v.a();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \",and minFreeSpace=\";\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r30;\n r10 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = r10.getDownloadMinFreeSpace();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.toString();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = 1;\n r0 = r30;\n r0.a(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r30;\n r8 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r8);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = -308; // 0xfffffffffffffecc float:NaN double:NaN;\n r8.setDownloadInterruptCode(r9);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n goto L_0x07de;\n L_0x099b:\n r7 = move-exception;\n r16 = r4;\n L_0x099e:\n r0 = r30;\n r1 = r20;\n r0.a(r1);\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n r0 = r30;\n r1 = r18;\n r0.a(r1);\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n r0 = r30;\n r1 = r19;\n r0.a(r1);\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n throw r7;\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n L_0x09b4:\n r7 = move-exception;\n r4 = r16;\n goto L_0x0571;\n L_0x09b9:\n r16 = r4;\n L_0x09bb:\n r0 = r27;\n r4 = (long) r0;\n r0 = r30;\n r1 = r22;\n r22 = r0.a(r1, r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r12 = java.lang.System.currentTimeMillis();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r27;\n r4 = (long) r0;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r8 = r8 + r4;\n r4 = r12 - r14;\n r28 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;\n r4 = (r4 > r28 ? 1 : (r4 == r28 ? 0 : -1));\n if (r4 <= 0) goto L_0x0f47;\n L_0x09d6:\n r4 = \"TbsDownload\";\n r5 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = \"#2 STEP 1/2 begin downloading...current/total=\";\n r5.<init>(r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = r5.append(r8);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = \"/\";\n r5 = r5.append(r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r14 = r0.l;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = r5.append(r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = r5.toString();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = 1;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0a10;\n L_0x0a00:\n r4 = (double) r8;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r14 = r0.l;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = (double) r14;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r4 / r14;\n r14 = 4636737291354636288; // 0x4059000000000000 float:0.0 double:100.0;\n r4 = r4 * r14;\n r4 = (int) r4;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5.onDownloadProgress(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n L_0x0a10:\n if (r31 != 0) goto L_0x0f44;\n L_0x0a12:\n r4 = r8 - r10;\n r14 = 1048576; // 0x100000 float:1.469368E-39 double:5.180654E-318;\n r4 = (r4 > r14 ? 1 : (r4 == r14 ? 0 : -1));\n if (r4 <= 0) goto L_0x0f44;\n L_0x0a1b:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloader.getOverSea(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 != 0) goto L_0x0a69;\n L_0x0a25:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.utils.Apn.getApnType(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = 3;\n if (r4 == r5) goto L_0x0a36;\n L_0x0a30:\n r4 = com.tencent.smtt.sdk.QbSdk.getDownloadWithoutWifi();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0a40;\n L_0x0a36:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.utils.Apn.getApnType(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 != 0) goto L_0x0a69;\n L_0x0a40:\n r30.c();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0a4e;\n L_0x0a47:\n r4 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = 111; // 0x6f float:1.56E-43 double:5.5E-322;\n r4.onDownloadFinish(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n L_0x0a4e:\n r4 = \"TbsDownload\";\n r5 = \"Download is paused due to NOT_WIFI error!\";\n r8 = 0;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r8);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = -304; // 0xfffffffffffffed0 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r16;\n goto L_0x07de;\n L_0x0a69:\n r4 = r8;\n L_0x0a6a:\n r14 = r12;\n r10 = r4;\n goto L_0x07bf;\n L_0x0a6e:\n r18 = r8;\n r20 = r10;\n L_0x0a72:\n r0 = r30;\n r1 = r20;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r18;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r19;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.s;\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x0a9a;\n L_0x0a8d:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -319; // 0xfffffffffffffec1 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n L_0x0a9a:\n if (r31 != 0) goto L_0x01ea;\n L_0x0a9c:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0abd:\n if (r31 != 0) goto L_0x0b3b;\n L_0x0abf:\n r0 = r30;\n r11 = r0.g;\t Catch:{ all -> 0x0b97 }\n r11 = com.tencent.smtt.utils.j.b(r11);\t Catch:{ all -> 0x0b97 }\n if (r11 != 0) goto L_0x0b3b;\n L_0x0ac9:\n r7 = 105; // 0x69 float:1.47E-43 double:5.2E-322;\n r11 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0b97 }\n r12 = \"freespace=\";\n r11.<init>(r12);\t Catch:{ all -> 0x0b97 }\n r12 = com.tencent.smtt.utils.v.a();\t Catch:{ all -> 0x0b97 }\n r11 = r11.append(r12);\t Catch:{ all -> 0x0b97 }\n r12 = \",and minFreeSpace=\";\n r11 = r11.append(r12);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r12 = r0.g;\t Catch:{ all -> 0x0b97 }\n r12 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r12);\t Catch:{ all -> 0x0b97 }\n r12 = r12.getDownloadMinFreeSpace();\t Catch:{ all -> 0x0b97 }\n r11 = r11.append(r12);\t Catch:{ all -> 0x0b97 }\n r11 = r11.toString();\t Catch:{ all -> 0x0b97 }\n r12 = 1;\n r0 = r30;\n r0.a(r7, r11, r12);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ all -> 0x0b97 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ all -> 0x0b97 }\n r11 = -308; // 0xfffffffffffffecc float:NaN double:NaN;\n r7.setDownloadInterruptCode(r11);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r0.a(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0b1a:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0b3b:\n r12 = 0;\n r0 = r30;\n r0.a(r12);\t Catch:{ all -> 0x0b97 }\n r11 = r30.j();\t Catch:{ all -> 0x0b97 }\n if (r11 != 0) goto L_0x0b88;\n L_0x0b48:\n r11 = 106; // 0x6a float:1.49E-43 double:5.24E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r11, r7, r12);\t Catch:{ all -> 0x0b97 }\n L_0x0b56:\n r0 = r30;\n r0.a(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x0b67:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0b88:\n r11 = 104; // 0x68 float:1.46E-43 double:5.14E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r11, r7, r12);\t Catch:{ all -> 0x0b97 }\n goto L_0x0b56;\n L_0x0b97:\n r7 = move-exception;\n r16 = r4;\n r18 = r8;\n r19 = r9;\n r20 = r10;\n goto L_0x099e;\n L_0x0ba2:\n r8 = 300; // 0x12c float:4.2E-43 double:1.48E-321;\n if (r7 < r8) goto L_0x0c25;\n L_0x0ba6:\n r8 = 307; // 0x133 float:4.3E-43 double:1.517E-321;\n if (r7 > r8) goto L_0x0c25;\n L_0x0baa:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Location\";\n r7 = r7.getHeaderField(r8);\t Catch:{ Throwable -> 0x0570 }\n r8 = android.text.TextUtils.isEmpty(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x0bec;\n L_0x0bbb:\n r0 = r30;\n r0.j = r7;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.q;\t Catch:{ Throwable -> 0x0570 }\n r7 = r7 + 1;\n r0 = r30;\n r0.q = r7;\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x0bcb:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0bec:\n r7 = 124; // 0x7c float:1.74E-43 double:6.13E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -312; // 0xfffffffffffffec8 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0c04:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0c25:\n r8 = 102; // 0x66 float:1.43E-43 double:5.04E-322;\n r9 = java.lang.String.valueOf(r7);\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r0 = r30;\n r0.a(r8, r9, r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = 416; // 0x1a0 float:5.83E-43 double:2.055E-321;\n if (r7 != r8) goto L_0x0ca7;\n L_0x0c35:\n r7 = 1;\n r0 = r30;\n r1 = r21;\n r7 = r0.c(r7, r1);\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0c71;\n L_0x0c40:\n r6 = 1;\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -214; // 0xffffffffffffff2a float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0c50:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0c71:\n r7 = 0;\n r0 = r30;\n r0.c(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -313; // 0xfffffffffffffec7 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0c86:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0ca7:\n r8 = 403; // 0x193 float:5.65E-43 double:1.99E-321;\n if (r7 == r8) goto L_0x0caf;\n L_0x0cab:\n r8 = 406; // 0x196 float:5.69E-43 double:2.006E-321;\n if (r7 != r8) goto L_0x0ce9;\n L_0x0caf:\n r0 = r30;\n r8 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r10 = -1;\n r8 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r8 != 0) goto L_0x0ce9;\n L_0x0cb9:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -314; // 0xfffffffffffffec6 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0cc8:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0ce9:\n r8 = 202; // 0xca float:2.83E-43 double:1.0E-321;\n if (r7 != r8) goto L_0x0d10;\n L_0x0ced:\n if (r31 != 0) goto L_0x01c2;\n L_0x0cef:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0d10:\n r0 = r30;\n r8 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r9 = r0.B;\t Catch:{ Throwable -> 0x0570 }\n if (r8 >= r9) goto L_0x0d8b;\n L_0x0d1a:\n r8 = 503; // 0x1f7 float:7.05E-43 double:2.485E-321;\n if (r7 != r8) goto L_0x0d8b;\n L_0x0d1e:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Retry-After\";\n r7 = r7.getHeaderField(r8);\t Catch:{ Throwable -> 0x0570 }\n r8 = java.lang.Long.parseLong(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.r;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0d68;\n L_0x0d38:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0d47:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0d68:\n if (r31 != 0) goto L_0x01c2;\n L_0x0d6a:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0d8b:\n r0 = r30;\n r8 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r9 = r0.B;\t Catch:{ Throwable -> 0x0570 }\n if (r8 >= r9) goto L_0x0e05;\n L_0x0d95:\n r8 = 408; // 0x198 float:5.72E-43 double:2.016E-321;\n if (r7 == r8) goto L_0x0da5;\n L_0x0d99:\n r8 = 504; // 0x1f8 float:7.06E-43 double:2.49E-321;\n if (r7 == r8) goto L_0x0da5;\n L_0x0d9d:\n r8 = 502; // 0x1f6 float:7.03E-43 double:2.48E-321;\n if (r7 == r8) goto L_0x0da5;\n L_0x0da1:\n r8 = 408; // 0x198 float:5.72E-43 double:2.016E-321;\n if (r7 != r8) goto L_0x0e05;\n L_0x0da5:\n r8 = 0;\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.r;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0de2;\n L_0x0db2:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0dc1:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0de2:\n if (r31 != 0) goto L_0x01c2;\n L_0x0de4:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0e05:\n r8 = r30.k();\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r8 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r8 > 0) goto L_0x0e41;\n L_0x0e0f:\n r0 = r30;\n r8 = r0.o;\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x0e41;\n L_0x0e15:\n r8 = 410; // 0x19a float:5.75E-43 double:2.026E-321;\n if (r7 == r8) goto L_0x0e41;\n L_0x0e19:\n r7 = 1;\n r0 = r30;\n r0.o = r7;\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x0e20:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0e41:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -315; // 0xfffffffffffffec5 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0e50:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0e71:\n r8 = 0;\n r0 = r30;\n r0.a(r8);\t Catch:{ all -> 0x060d }\n r8 = 107; // 0x6b float:1.5E-43 double:5.3E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x060d }\n r9 = 0;\n r0 = r30;\n r0.a(r8, r7, r9);\t Catch:{ all -> 0x060d }\n r0 = r30;\n r7 = r0.r;\t Catch:{ all -> 0x060d }\n if (r7 == 0) goto L_0x05b8;\n L_0x0e8c:\n r0 = r30;\n r7 = r0.g;\t Catch:{ all -> 0x060d }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ all -> 0x060d }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ all -> 0x060d }\n if (r31 != 0) goto L_0x01ea;\n L_0x0e9b:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0ebc:\n r4 = 0;\n goto L_0x020e;\n L_0x0ebf:\n r4 = 2;\n goto L_0x021a;\n L_0x0ec2:\n r0 = r30;\n r4 = r0.v;\n r5 = 0;\n r4.setPatchUpdateFlag(r5);\n goto L_0x021d;\n L_0x0ecc:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -318; // 0xfffffffffffffec2 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n r4 = 0;\n r0 = r30;\n r0.c(r4);\n goto L_0x023d;\n L_0x0ee1:\n r5 = r4.mPreferences;\n r7 = \"tbs_download_failed_retrytimes\";\n r8 = 0;\n r5 = r5.getInt(r7, r8);\n r7 = r4.a;\n r8 = \"tbs_download_failed_retrytimes\";\n r5 = r5 + 1;\n r9 = java.lang.Integer.valueOf(r5);\n r7.put(r8, r9);\n r7 = r4.getDownloadFailedMaxRetrytimes();\n if (r5 != r7) goto L_0x025f;\n L_0x0eff:\n r0 = r30;\n r5 = r0.v;\n r7 = 2;\n r5.setDownloadCancel(r7);\n goto L_0x025f;\n L_0x0f09:\n r4 = 0;\n goto L_0x0269;\n L_0x0f0c:\n r4 = move-exception;\n r6 = r4;\n goto L_0x0610;\n L_0x0f10:\n r7 = move-exception;\n r16 = r4;\n r18 = r8;\n r19 = r9;\n r20 = r10;\n goto L_0x099e;\n L_0x0f1b:\n r7 = move-exception;\n r16 = r4;\n r18 = r8;\n r20 = r10;\n goto L_0x099e;\n L_0x0f24:\n r7 = move-exception;\n r16 = r4;\n r20 = r10;\n goto L_0x099e;\n L_0x0f2b:\n r4 = move-exception;\n r7 = r4;\n goto L_0x099e;\n L_0x0f2f:\n r7 = move-exception;\n goto L_0x0837;\n L_0x0f32:\n r7 = move-exception;\n r8 = r18;\n r9 = r19;\n goto L_0x0837;\n L_0x0f39:\n r7 = move-exception;\n r4 = r16;\n r8 = r18;\n r9 = r19;\n r10 = r20;\n goto L_0x0837;\n L_0x0f44:\n r4 = r10;\n goto L_0x0a6a;\n L_0x0f47:\n r12 = r14;\n r4 = r10;\n goto L_0x0a6a;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.smtt.sdk.ag.b(boolean, boolean):void\");\n }", "private void int_to_void_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get the operand value\r\n long x = getIntOperand( nd, vms, 0 ) ;\r\n \r\n // Compute the value\r\n switch( op_code ) {\r\n case SRAND :\r\n if( random == null ) random = new java.util.Random(1) ;\r\n random.setSeed( x ) ;\r\n case ASSERT :\r\n if( x== 0 ) {\r\n // Assertion tripped.\r\n // The TM will throw an error.\r\n SourceCoords sc = vms.getCurrentCoords() ;\r\n vms.getConsole().putString(\"Assertion failed at \"+sc.toString()+\"\\n\") ;\r\n vms.setEvaluationState( vms.EVALUATION_STATE_TERMINATED ) ;\r\n }\r\n break ;\r\n default: Assert.check(false) ;\r\n }\r\n/* \r\n // New datum on scratch\r\n Clc_ASTUtilities util\r\n = (Clc_ASTUtilities) vms.getProperty(\"ASTUtilities\") ;\r\n AbstractDatum d\r\n = util.scratchDatum(nd.get_type(), vms) ;\r\n \r\n vms.top().map(nd, d) ; */\r\n putVoidResult(nd, vms);\r\n }", "public boolean method_210() {\r\n return false;\r\n }", "public node cnf() { rule: anything can sit immediately below ands\n //\n System.out.println( \" should not call \" );\n System.exit( 1 );\n return null;\n }", "abstract void mo956a(boolean z);", "public abstract void mo32005dK(boolean z);", "static void jump_when_sign_not(String passed){\n\t\tif(!S)\n\t\t\tcomplete_jump_req(passed.substring(3));\n\t}", "public boolean canJump() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void effetCase() {\n\t\t\n\t}", "@Override\r\n\tpublic void carBreak() {\n\t\t\r\n\t}", "private void insertJumpAtEndOfCondition(){\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.eq);\n\t\t\n\t\t// save current pc and store it as jmp address\n\t\tjmpNotThen.push(Code.pc);\n\t\tCode.put2(0);\n\t\t\n\t}", "@Override\r\n\tpublic void satisfy() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "protected int handlePrevious(int position) {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic void driving() {\n\t\t\n\t}", "private void level4() {\n }", "public void set_return(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n local_returnTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.local_return=param;\r\n \r\n\r\n }", "@Override\r\n\tvoid poop() {\n\t\tSystem.out.println(\"stinky\");\r\n\t}", "public int logic3()\r\n\t{\r\n\t\r\n\t\tint changesMade = 0;\r\n\t\treturn changesMade;\r\n\t}", "public boolean a()\r\n/* 598: */ {\r\n/* 599:597 */ return this.k;\r\n/* 600: */ }", "public abstract void mo9806a(int i, boolean z);", "@Override\n public <A> Function1<Object, A> andThen$mcIJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public boolean method_218() {\r\n return false;\r\n }" ]
[ "0.6354968", "0.62372243", "0.6197124", "0.6154875", "0.6135175", "0.5924401", "0.59136486", "0.59055716", "0.5900109", "0.5855695", "0.58514315", "0.58497983", "0.583783", "0.58320373", "0.58297753", "0.5823078", "0.58097535", "0.580116", "0.5794453", "0.5792954", "0.57851505", "0.5760512", "0.57458144", "0.57322407", "0.5709575", "0.5699074", "0.5697435", "0.5682981", "0.56828314", "0.56744695", "0.5673963", "0.5664928", "0.5664897", "0.5646433", "0.5645457", "0.56217086", "0.5621318", "0.5616299", "0.5614943", "0.56103474", "0.5606707", "0.5602395", "0.55770165", "0.55680585", "0.55643255", "0.55633324", "0.55628484", "0.5556628", "0.5553464", "0.5550173", "0.5544484", "0.55436575", "0.55421984", "0.55401623", "0.5539843", "0.55385756", "0.5538513", "0.5529507", "0.55284685", "0.5528452", "0.55243254", "0.55215245", "0.55178034", "0.5517802", "0.5515552", "0.5512896", "0.5512513", "0.551012", "0.55092496", "0.55080134", "0.5500247", "0.5497504", "0.5491903", "0.54909116", "0.54873925", "0.5486527", "0.5485824", "0.5475539", "0.5475306", "0.54730964", "0.5471299", "0.54690486", "0.5468594", "0.54676646", "0.5466736", "0.54635996", "0.54609776", "0.54545915", "0.54510015", "0.5446937", "0.5439661", "0.54357934", "0.54325527", "0.54303527", "0.54290605", "0.5425814", "0.5424369", "0.5419724", "0.54159707", "0.5408866", "0.54081225" ]
0.0
-1
/ WARNING void declaration
public boolean isMouseOnSat(int n, int n2) { void y; void x; return x > this.getX() + 2 && x < this.getX() + 2 + this.getWidth() - 4 && y > this.getY() + 29 && y < this.getY() + 40; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneFlaeche() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "public void m23075a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract void mo27386d();", "void m1864a() {\r\n }", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public final void mo91715d() {\n }", "public void smell() {\n\t\t\n\t}", "void mo57277b();", "public void method_4270() {}", "public void mo44053a() {\n }", "public abstract void mo30696a();", "private void m50366E() {\n }", "public abstract void mo56925d();", "public void furyo ()\t{\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "private void ss(){\n }", "public void mo21779D() {\n }", "public abstract void mo42330e();", "public abstract void mo42331g();", "public abstract void mo102899a();", "private final void i() {\n }", "void mo41083a();", "public abstract void m15813a();", "public void mo21825b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private stendhal() {\n\t}", "public abstract void mo35054b();", "private void kk12() {\n\n\t}", "void mo28194a();", "public abstract void mo3994a();", "void mo72113b();", "public void mo21795T() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "void mo28306a();", "void mo80452a();", "public void mo21793R() {\n }", "public void mo4359a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo27464a();", "public void mo3749d() {\n }", "void mo54405a();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo21791P() {\n }", "void mo119582b();", "void mo80455b();", "public void mo21794S() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "private void sub() {\n\n\t}", "public void mo21789N() {\n }", "public void mo56167c() {\n }", "void mo84655a();", "@Override\n public void perish() {\n \n }", "public void mo2471e() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3376r() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "public void mo9137b() {\n }", "public void mo21781F() {\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 }", "void mo88521a();", "public void mo21787L() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void method(){}", "void mo41086b();", "public void mo21785J() {\n }", "void mo38026a();" ]
[ "0.72114015", "0.71405566", "0.71401", "0.7021417", "0.69780886", "0.6972193", "0.6960773", "0.69401586", "0.69401586", "0.69123584", "0.69039416", "0.68747616", "0.6874215", "0.68522483", "0.6835249", "0.6830557", "0.68150365", "0.68104607", "0.67968935", "0.67965853", "0.679537", "0.6792716", "0.67796046", "0.6776775", "0.6775711", "0.67680025", "0.67634565", "0.6762109", "0.6758278", "0.6756009", "0.67481816", "0.6738367", "0.6731588", "0.6721314", "0.67176443", "0.671043", "0.67065084", "0.6705694", "0.6702434", "0.6681549", "0.66799784", "0.66765684", "0.6667961", "0.666592", "0.6665633", "0.6659987", "0.6649683", "0.6647198", "0.66399497", "0.6639375", "0.6637081", "0.6631689", "0.6629893", "0.6624224", "0.6622723", "0.66161764", "0.6610774", "0.6602431", "0.6601196", "0.65961546", "0.65957415", "0.6590543", "0.65891594", "0.65787566", "0.65570784", "0.6553829", "0.6552855", "0.6550435", "0.65473944", "0.6547336", "0.654544", "0.6536497", "0.6534672", "0.65269655", "0.65260196", "0.652576", "0.65226996", "0.6518356", "0.6512249", "0.6510968", "0.65083987", "0.649768", "0.64932954", "0.64925736", "0.64919287", "0.64893085", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6485925", "0.6483748", "0.64826524", "0.64816594", "0.64801264", "0.6477539", "0.64773726", "0.6475095" ]
0.0
-1
/ WARNING void declaration Enabled force condition propagation Lifted jumps to return sites
public boolean isMouseOnBri(int n, int n2) { void y; void x; if (x <= this.getX() + 2) return false; if (x >= this.getX() + 2 + this.getWidth() - 4) return false; if (y <= this.getY() + 42) return false; if (y >= this.getY() + 53) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void jump_without_condition(String passed){\n\t\tcomplete_jump_req(passed.substring(4));\n\t}", "void z_piracy()\n {\n //branch (!f_setup.piracy);\n\n }", "public boolean c()\r\n/* 36: */ {\r\n/* 37:51 */ return false;\r\n/* 38: */ }", "public void noReturnOnVoid() {\n\t\treturn;\n\t}", "@Override\r\n\tpublic boolean voidIt() {\n\t\treturn false;\r\n\t}", "static void perform_jmp(String passed){\n\t\tint type = type_of_jmp(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tjump_without_condition(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "void breach();", "void bypass();", "public boolean isLegOut()\n{\n if (jumpState == 1)\n return true;\n return false;\n}", "@Override\n public void func_104112_b() {\n \n }", "public boolean isVoid()\r\n/* 146: */ {\r\n/* 147:177 */ return false;\r\n/* 148: */ }", "void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\n }", "public void smell() {\n\t\t\n\t}", "public abstract void mo32006dL(boolean z);", "void checkReturnSt (int ln) {\r\n if (!return_type.isVoid ())\r\n OzcError.needReturnSt (ln);\r\n else \r\n need_return = true;\r\n }", "@Override\n\tpublic boolean jump() {\n\t\tboolean rs = super.jump();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t\t\n\t}", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "public boolean c()\r\n/* 56: */ {\r\n/* 57: 77 */ return false;\r\n/* 58: */ }", "public void solution() {\n\t\t\n\t}", "public final void b() {\n /*\n r10 = this;\n r0 = 0\n java.lang.Object[] r1 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r3 = f53248e\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r7 = java.lang.Void.TYPE\n r4 = 0\n r5 = 55479(0xd8b7, float:7.7743E-41)\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7)\n if (r1 == 0) goto L_0x0025\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = f53248e\n r5 = 0\n r6 = 55479(0xd8b7, float:7.7743E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x0025:\n com.ss.android.ugc.aweme.live.alphaplayer.e$i r9 = r10.h\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = com.ss.android.ugc.aweme.live.alphaplayer.e.i.f53268a\n r5 = 0\n r6 = 55516(0xd8dc, float:7.7794E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r2, r3, r4, r5, r6, r7, r8)\n if (r2 == 0) goto L_0x004b\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = com.ss.android.ugc.aweme.live.alphaplayer.e.i.f53268a\n r5 = 0\n r6 = 55516(0xd8dc, float:7.7794E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x004b:\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r2 = g\n monitor-enter(r2)\n r0 = 1\n r9.f53270c = r0 // Catch:{ all -> 0x006e }\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = g // Catch:{ all -> 0x006e }\n r0.notifyAll() // Catch:{ all -> 0x006e }\n L_0x0056:\n boolean r0 = r9.f53269b // Catch:{ all -> 0x006e }\n if (r0 != 0) goto L_0x006c\n boolean r0 = r9.f53271d // Catch:{ all -> 0x006e }\n if (r0 != 0) goto L_0x006c\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = g // Catch:{ InterruptedException -> 0x0064 }\n r0.wait() // Catch:{ InterruptedException -> 0x0064 }\n goto L_0x0056\n L_0x0064:\n java.lang.Thread r0 = java.lang.Thread.currentThread() // Catch:{ all -> 0x006e }\n r0.interrupt() // Catch:{ all -> 0x006e }\n goto L_0x0056\n L_0x006c:\n monitor-exit(r2) // Catch:{ all -> 0x006e }\n return\n L_0x006e:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x006e }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.b():void\");\n }", "public final void b() {\n /*\n r9 = this;\n r0 = 0\n java.lang.Object[] r1 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r3 = f53268a\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r7 = java.lang.Void.TYPE\n r4 = 0\n r5 = 55519(0xd8df, float:7.7799E-41)\n r2 = r9\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7)\n if (r1 == 0) goto L_0x0025\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = f53268a\n r5 = 0\n r6 = 55519(0xd8df, float:7.7799E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x0025:\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = com.ss.android.ugc.aweme.live.alphaplayer.e.g\n monitor-enter(r0)\n r1 = 1\n r9.h = r1 // Catch:{ all -> 0x0044 }\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r1 = com.ss.android.ugc.aweme.live.alphaplayer.e.g // Catch:{ all -> 0x0044 }\n r1.notifyAll() // Catch:{ all -> 0x0044 }\n L_0x0030:\n boolean r1 = r9.f53269b // Catch:{ all -> 0x0044 }\n if (r1 != 0) goto L_0x0042\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r1 = com.ss.android.ugc.aweme.live.alphaplayer.e.g // Catch:{ InterruptedException -> 0x003a }\n r1.wait() // Catch:{ InterruptedException -> 0x003a }\n goto L_0x0030\n L_0x003a:\n java.lang.Thread r1 = java.lang.Thread.currentThread() // Catch:{ all -> 0x0044 }\n r1.interrupt() // Catch:{ all -> 0x0044 }\n goto L_0x0030\n L_0x0042:\n monitor-exit(r0) // Catch:{ all -> 0x0044 }\n return\n L_0x0044:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0044 }\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.i.b():void\");\n }", "public boolean C_enterTheZone(ListOfParameterLists parameterLists){\n //if(isEnter == true){\n if(debug)\n System.out.println(\"Condition from Rule7 :: is true\");\n\n\n return true;\n\n // }\n // else\n //return false;\n\n // Future work\n // Put the condition code here, eg. if the track is friendly, we\n // don't need to alert the analyst.\n\n }", "public void doublejump(){\r\n\t\t//jump a second time.\r\n\t}", "@Override\n\tpublic void leti() \n\t{\n\t}", "void blackhole(){ if (zzAtBOL) return; }", "public final void mo6599c() {\n /*\n r2 = this;\n r1 = r2.f40713f;\n monitor-enter(r1);\n r0 = r2.m38021e();\t Catch:{ all -> 0x0015 }\n if (r0 != 0) goto L_0x000d;\n L_0x0009:\n r0 = r2.f40710c;\t Catch:{ all -> 0x0015 }\n if (r0 != 0) goto L_0x000f;\n L_0x000d:\n monitor-exit(r1);\t Catch:{ all -> 0x0015 }\n L_0x000e:\n return;\n L_0x000f:\n r0 = 2;\n r2.m38011a(r0);\t Catch:{ all -> 0x0015 }\n monitor-exit(r1);\t Catch:{ all -> 0x0015 }\n goto L_0x000e;\n L_0x0015:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0015 }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.chromium.net.impl.CronetUrlRequest.c():void\");\n }", "public boolean i()\r\n/* 46: */ {\r\n/* 47:50 */ return true;\r\n/* 48: */ }", "public void think()\r\n/* 32: */ {\r\n/* 33: 29 */ think_blocking();\r\n/* 34: */ }", "public void noreturn(){\n System.out.println(\"universal\");\n }", "public boolean isJumping(){\n if (jumpState == 2)\n return true;\n return false;\n\n}", "public void set_return(boolean param){\n \n // setting primitive attribute tracker to true\n \n if (false) {\n local_returnTracker = false;\n \n } else {\n local_returnTracker = true;\n }\n \n this.local_return=param;\n \n\n }", "public void alg_RUNCONVEYER(){\nBlock.value=false;\nSystem.out.println(\"run\");\n\n}", "public SmallSet<CFGNode> interceptedAbruptStmts() {\n ASTNode$State state = state();\n try {\n \t\tSmallSet<CFGNode> branches = emptySmallSet();\n \t\tIterator itr = super.interceptedAbruptStmts().iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tStmt stmt = (Stmt)itr.next();\n \t\t\tif (stmt.isBreakStmt() && potentialTargetOf((BreakStmt)stmt) || \n \t\t\t\tstmt.isContinueStmt() && potentialTargetOf((ContinueStmt)stmt)) {\n \t\t\t\tcontinue;\n \t\t\t} \n \t\t\tbranches = branches.union(stmt);\n \t\t}\n \t\treturn branches;\n \t}\n finally {\n }\n }", "public boolean eliminateLoop(){ return false; }", "protected final /* synthetic */ java.lang.Object run() {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.chu();\n r3 = com.tencent.mm.plugin.appbrand.b.c.this;\n r3 = r3.iKh;\n if (r2 != r3) goto L_0x0022;\n L_0x000e:\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.iKh;\n r2 = r2.iKy;\n r2 = r2 & 1;\n if (r2 <= 0) goto L_0x0020;\n L_0x0018:\n r2 = r0;\n L_0x0019:\n if (r2 == 0) goto L_0x0022;\n L_0x001b:\n r0 = java.lang.Boolean.valueOf(r0);\n return r0;\n L_0x0020:\n r2 = r1;\n goto L_0x0019;\n L_0x0022:\n r0 = r1;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.b.c.5.run():java.lang.Object\");\n }", "static void jump_when_carry_not(String passed){\n\t\tif(!CS)\n\t\t\tcomplete_jump_req(passed.substring(4));\n\t}", "private static void execute1()\n\t{\n\t\tboolean flushRegisterValues = false;\n\t\tboolean branchFUflag = false;\n\t\tExecutionOfOpcode functionUnit = new ExecutionOfOpcode();\n\t\tString controlFlowInstruction = TypesOfOperations.BNZ + \"|\" + TypesOfOperations.BZ + \"|\"\n\t\t\t\t+ TypesOfOperations.JUMP + \"|\" + TypesOfOperations.BAL + \"|\" + TypesOfOperations.HALT;\n\n\t\tif (latches.containsKey(\"D\"))\n\t\t{\n\t\t\tif (!latches.get(\"D\").isNOP())\n\t\t\t{\n\t\t\t\t// Check if the instruction in Decode stage is not Control flow\n\t\t\t\t// instruction\n\t\t\t\tif (!controlFlowInstruction.contains(latches.get(\"D\").getOperation()))\n\t\t\t\t{\n\t\t\t\t\tInstruction instructionEx = latches.get(\"D\");\n\t\t\t\t\t// TODO check the src 1 and src 2 with forwarding registers\n\t\t\t\t\tif ((forwardingReg != null) && (forwardingRegMEMtoEX != null)\n\t\t\t\t\t\t\t&& forwardingReg.getKey().equals(forwardingRegMEMtoEX.getKey()))\n\t\t\t\t\t{\n\t\t\t\t\t\tforwardingRegMEMtoEX.setValue(forwardingReg.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tlatches.put(\"D\", functionUnit.executeInstruction(latches.get(\"D\")));\n\t\t\t\t} else\n\t\t\t\t// Here we have the branch instruction\n\t\t\t\t{\n\t\t\t\t\tbranchFUflag = true;\n\t\t\t\t\tlatches.put(\"E\", stages.get(\"E\"));\n\t\t\t\t\tstages.put(\"E\", new Instruction()); // Add NOP in the ALU1\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!branchFUflag)\n\t\t\t{\n\t\t\t\tmoveInstruction(\"E\", \"D\");\n\t\t\t\tif (flushRegisterValues)\n\t\t\t\t\tflushRegister();\n\t\t\t}\n\t\t}\n\t}", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public boolean isMoving() {\n/* 270 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "static void return_unconditionally(String passed){\n\t\tcomplete_return_requirements();\n\t}", "@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void b(boolean r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r2 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r0 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((boolean) r11) // Catch:{ all -> 0x004b }\n r10.n = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.b(boolean):void\");\n }", "private static void notPossible () {\r\n\t\tSystem.out.println(\"This operation is not possible\");\r\n\t}", "@Override\r\n\tpublic void laught() {\n\r\n\t}", "@Override\n public boolean step() {\n return false;\n }", "public boolean func_70097_a(DamageSource par1DamageSource, float par2) {\n/* 296 */ if (func_180431_b(par1DamageSource))\n/* */ {\n/* 298 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 302 */ return super.func_70097_a(par1DamageSource, par2);\n/* */ }", "@Override\n public boolean bodyCall(Node[] args, int length, RuleContext context) {\n try {\n checkArgs(length, context);\n BindingEnvironment env = context.getEnv();\n boolean ok = false;\n JEP mathParser = new JEP();\n Node varList = getArg(0, args, context);\n Node prevSt = getArg(1, args, context);\n Node cond = getArg(2, args, context);\n Node iter = getArg(3, args, context);\n \n return IfTrue_BranchBeTraversed.evaluateExpression(prevSt, cond, context, iter, varList, mathParser);\n\n \n } catch (Exception ex) {\n //Logger.getLogger(IfTrue_BranchBeTraversed.class.getName()).log(Level.SEVERE, null, ex);\n } finally{\n return true;\n }\n }", "@Override\n\tpublic void activity() {\n\t\tSystem.out.println(\"relaxing\");\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public boolean performAction(int action) {\n/* 567 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void kiemTraThangHopLi() {\n }", "@Override\n\tpublic void wantToGoOnBreak() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public int logic2()\r\n\t{\r\n\t\tint changesMade = 0;\r\n\t\t\t\r\n\t\treturn changesMade;\r\n\t}", "public abstract void mo70713b();", "public boolean b()\r\n/* 709: */ {\r\n/* 710:702 */ return this.l;\r\n/* 711: */ }", "public void method_9653() {\r\n this.field_9138.method_4479(false);\r\n }", "static void return_when_parity(String passed){\n\t\tif(P)\n\t\t\tcomplete_return_requirements();\n\t}", "public abstract boolean zzbek();", "public abstract void mo9254f(boolean z);", "static void complete_return_requirements(){\n\t\tString ad = memory.get(SP+1)+memory.get(SP);\n\t\tSP+=2;\n\t\tPC = hexa_to_deci(ad);\n\t\tmodified =true;\n\t}", "public void doSomething(){\n return;\n }", "public int logic4()\r\n\t{\r\n\t\tint changesMade = 0;\r\n\t\treturn changesMade;\r\n\t}", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "static void jump_when_parity(String passed){\n\t\tif(P)\n\t\t\tcomplete_jump_req(passed.substring(4));\n\t}", "public void noReturn() {\n\t\tSystem.out.println(\"noReturn method will not returing any thing\");\n\t}", "static void jump_when_parity_not(String passed){\n\t\tif(!P)\n\t\t\tcomplete_jump_req(passed.substring(4));\n\t}", "public boolean method_3897() {\r\n return false;\r\n }", "public void visit(ConditionElement1 conditionElement1) {\n\t\t\n\t\t// if a != 0, jmp true1\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc+Code.ne);\n\t\tCode.put2(11);\n\t\t\n\t\t// if b != 0, jmp true2\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.ne);\n\t\tCode.put2(8);\n\t\t\n\t\t// false: put 0,jmp next \n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jmp);\n\t\tCode.put2(5);\n\t\t\n\t\t// true1\n\t\tCode.put(Code.pop);\n\t\t\n\t\t// true2\n\t\tCode.loadConst(1);\n\t\t\n\t\t// next\n\t}", "@Override\r\n\tpublic void visit(ConditionExpression conditionExpression) {\n\r\n\t}", "@Override\n public void toogleFold() {\n }", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "public abstract void mo27385c();", "private void g()\r\n/* 30: */ {\r\n/* 31: 40 */ if (this.n) {\r\n/* 32: 41 */ return;\r\n/* 33: */ }\r\n/* 34: 45 */ if (this.l != null)\r\n/* 35: */ {\r\n/* 36: 47 */ if (this.f != null) {\r\n/* 37: 48 */ c();\r\n/* 38: */ }\r\n/* 39: 51 */ cuj.a(super.b(), this.l);\r\n/* 40: 52 */ this.n = true;\r\n/* 41: */ }\r\n/* 42: */ }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n public <A> Function1<Object, A> andThen$mcZI$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "static void return_not_carry(String passed){\n\t\tif(!CS)\n\t\t\tcomplete_return_requirements();\n\t}", "@Override\n\tpublic void breath() {\n\n\t}", "static void complete_jump_req(String passed){\n\t\t//\t\tString program_counter = decimel_to_hexa(PC);\n\t\t//\t\tfill_the_stack(program_counter.substring(0,2),program_counter.substring(2,4),psw());\n\t\tif(labels.get(passed)==null)\n\t\t\tPC = hexa_to_deci(passed);\n\t\telse\n\t\t\tPC = labels.get(passed);\n\t\tmodified =true;\n\t}", "public void b(boolean r31, boolean r32) {\n /*\n r30 = this;\n r4 = com.tencent.smtt.sdk.an.a();\n r0 = r30;\n r5 = r0.g;\n r4 = r4.c(r5);\n if (r4 == 0) goto L_0x0021;\n L_0x000e:\n if (r31 != 0) goto L_0x0021;\n L_0x0010:\n r4 = 0;\n com.tencent.smtt.sdk.TbsDownloader.a = r4;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -322; // 0xfffffffffffffebe float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n L_0x0020:\n return;\n L_0x0021:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_responsecode\";\n r6 = 0;\n r4 = r4.getInt(r5, r6);\n r5 = 1;\n if (r4 == r5) goto L_0x003c;\n L_0x0036:\n r5 = 2;\n if (r4 == r5) goto L_0x003c;\n L_0x0039:\n r5 = 4;\n if (r4 != r5) goto L_0x0051;\n L_0x003c:\n r4 = 1;\n r21 = r4;\n L_0x003f:\n if (r32 != 0) goto L_0x0055;\n L_0x0041:\n r0 = r30;\n r1 = r31;\n r2 = r21;\n r4 = r0.a(r1, r2);\n if (r4 == 0) goto L_0x0055;\n L_0x004d:\n r4 = 0;\n com.tencent.smtt.sdk.TbsDownloader.a = r4;\n goto L_0x0020;\n L_0x0051:\n r4 = 0;\n r21 = r4;\n goto L_0x003f;\n L_0x0055:\n r0 = r31;\n r1 = r30;\n r1.C = r0;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_downloadurl\";\n r6 = 0;\n r4 = r4.getString(r5, r6);\n r0 = r30;\n r0.h = r4;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_downloadurl_list\";\n r6 = 0;\n r4 = r4.getString(r5, r6);\n r5 = \"TbsDownload\";\n r6 = new java.lang.StringBuilder;\n r7 = \"backupUrlStrings:\";\n r6.<init>(r7);\n r6 = r6.append(r4);\n r6 = r6.toString();\n r7 = 1;\n com.tencent.smtt.utils.TbsLog.i(r5, r6, r7);\n r5 = 0;\n r0 = r30;\n r0.b = r5;\n r5 = 0;\n r0 = r30;\n r0.c = r5;\n if (r31 != 0) goto L_0x00c4;\n L_0x00a6:\n if (r4 == 0) goto L_0x00c4;\n L_0x00a8:\n r5 = \"\";\n r6 = r4.trim();\n r5 = r5.equals(r6);\n if (r5 != 0) goto L_0x00c4;\n L_0x00b5:\n r5 = r4.trim();\n r6 = \";\";\n r5 = r5.split(r6);\n r0 = r30;\n r0.b = r5;\n L_0x00c4:\n r5 = \"TbsDownload\";\n r6 = new java.lang.StringBuilder;\n r7 = \"[TbsApkDownloader.startDownload] mDownloadUrl=\";\n r6.<init>(r7);\n r0 = r30;\n r7 = r0.h;\n r6 = r6.append(r7);\n r7 = \" backupUrlStrings=\";\n r6 = r6.append(r7);\n r4 = r6.append(r4);\n r6 = \" mLocation=\";\n r4 = r4.append(r6);\n r0 = r30;\n r6 = r0.j;\n r4 = r4.append(r6);\n r6 = \" mCanceled=\";\n r4 = r4.append(r6);\n r0 = r30;\n r6 = r0.r;\n r4 = r4.append(r6);\n r6 = \" mHttpRequest=\";\n r4 = r4.append(r6);\n r0 = r30;\n r6 = r0.t;\n r4 = r4.append(r6);\n r4 = r4.toString();\n com.tencent.smtt.utils.TbsLog.i(r5, r4);\n r0 = r30;\n r4 = r0.h;\n if (r4 != 0) goto L_0x0138;\n L_0x011c:\n r0 = r30;\n r4 = r0.j;\n if (r4 != 0) goto L_0x0138;\n L_0x0122:\n r4 = com.tencent.smtt.sdk.QbSdk.m;\n r5 = 110; // 0x6e float:1.54E-43 double:5.43E-322;\n r4.onDownloadFinish(r5);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -302; // 0xfffffffffffffed2 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n goto L_0x0020;\n L_0x0138:\n r0 = r30;\n r4 = r0.t;\n if (r4 == 0) goto L_0x015a;\n L_0x013e:\n r0 = r30;\n r4 = r0.r;\n if (r4 != 0) goto L_0x015a;\n L_0x0144:\n r4 = com.tencent.smtt.sdk.QbSdk.m;\n r5 = 110; // 0x6e float:1.54E-43 double:5.43E-322;\n r4.onDownloadFinish(r5);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -303; // 0xfffffffffffffed1 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n goto L_0x0020;\n L_0x015a:\n if (r31 != 0) goto L_0x018d;\n L_0x015c:\n r0 = r30;\n r4 = r0.A;\n r0 = r30;\n r5 = r0.g;\n r5 = com.tencent.smtt.utils.Apn.getWifiSSID(r5);\n r4 = r4.contains(r5);\n if (r4 == 0) goto L_0x018d;\n L_0x016e:\n r4 = \"TbsDownload\";\n r5 = \"[TbsApkDownloader.startDownload] WIFI Unavailable\";\n com.tencent.smtt.utils.TbsLog.i(r4, r5);\n r4 = com.tencent.smtt.sdk.QbSdk.m;\n r5 = 110; // 0x6e float:1.54E-43 double:5.43E-322;\n r4.onDownloadFinish(r5);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -304; // 0xfffffffffffffed0 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n goto L_0x0020;\n L_0x018d:\n r30.f();\n r4 = \"TbsDownload\";\n r5 = \"STEP 1/2 begin downloading...\";\n r6 = 1;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r6);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r24 = r4.getDownloadMaxflow();\n r6 = 0;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_downloadflow\";\n r8 = 0;\n r4 = r4.getLong(r5, r8);\n if (r31 == 0) goto L_0x0271;\n L_0x01bc:\n r7 = e;\n r0 = r30;\n r0.B = r7;\n L_0x01c2:\n r0 = r30;\n r7 = r0.p;\n r0 = r30;\n r8 = r0.B;\n if (r7 > r8) goto L_0x01ea;\n L_0x01cc:\n r0 = r30;\n r7 = r0.q;\n r8 = 8;\n if (r7 <= r8) goto L_0x0279;\n L_0x01d4:\n r4 = 123; // 0x7b float:1.72E-43 double:6.1E-322;\n r5 = 0;\n r7 = 1;\n r0 = r30;\n r0.a(r4, r5, r7);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -306; // 0xfffffffffffffece float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n L_0x01ea:\n r0 = r30;\n r4 = r0.r;\n if (r4 != 0) goto L_0x026c;\n L_0x01f0:\n r0 = r30;\n r4 = r0.s;\n if (r4 == 0) goto L_0x023d;\n L_0x01f6:\n r0 = r30;\n r4 = r0.b;\n if (r4 != 0) goto L_0x0207;\n L_0x01fc:\n if (r6 != 0) goto L_0x0207;\n L_0x01fe:\n r4 = 1;\n r0 = r30;\n r1 = r21;\n r6 = r0.c(r4, r1);\n L_0x0207:\n r0 = r30;\n r5 = r0.v;\n if (r6 == 0) goto L_0x0ebc;\n L_0x020d:\n r4 = 1;\n L_0x020e:\n r5.setUnpkgFlag(r4);\n if (r21 != 0) goto L_0x0ec2;\n L_0x0213:\n r0 = r30;\n r5 = r0.v;\n if (r6 == 0) goto L_0x0ebf;\n L_0x0219:\n r4 = 1;\n L_0x021a:\n r5.setPatchUpdateFlag(r4);\n L_0x021d:\n if (r6 == 0) goto L_0x0ecc;\n L_0x021f:\n r4 = 1;\n r0 = r30;\n r0.b(r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -317; // 0xfffffffffffffec3 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n r4 = 100;\n r5 = \"success\";\n r7 = 1;\n r0 = r30;\n r0.a(r4, r5, r7);\n L_0x023d:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n if (r6 == 0) goto L_0x0ee1;\n L_0x0247:\n r5 = r4.mPreferences;\n r7 = \"tbs_download_success_retrytimes\";\n r8 = 0;\n r5 = r5.getInt(r7, r8);\n r7 = r4.a;\n r8 = \"tbs_download_success_retrytimes\";\n r5 = r5 + 1;\n r5 = java.lang.Integer.valueOf(r5);\n r7.put(r8, r5);\n L_0x025f:\n r4.commit();\n r0 = r30;\n r5 = r0.v;\n if (r6 == 0) goto L_0x0f09;\n L_0x0268:\n r4 = 1;\n L_0x0269:\n r5.setDownFinalFlag(r4);\n L_0x026c:\n r30.g();\n goto L_0x0020;\n L_0x0271:\n r7 = d;\n r0 = r30;\n r0.B = r7;\n goto L_0x01c2;\n L_0x0279:\n r22 = java.lang.System.currentTimeMillis();\n if (r31 != 0) goto L_0x0385;\n L_0x027f:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.mPreferences;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_downloadstarttime\";\n r10 = 0;\n r8 = r7.getLong(r8, r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r22 - r8;\n r10 = 86400000; // 0x5265c00 float:7.82218E-36 double:4.2687272E-316;\n r7 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r7 <= 0) goto L_0x0328;\n L_0x029b:\n r7 = \"TbsDownload\";\n r8 = \"[TbsApkDownloader.startDownload] OVER DOWNLOAD_PERIOD\";\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.a;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_downloadstarttime\";\n r9 = java.lang.Long.valueOf(r22);\t Catch:{ Throwable -> 0x0570 }\n r7.put(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.a;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_downloadflow\";\n r10 = 0;\n r9 = java.lang.Long.valueOf(r10);\t Catch:{ Throwable -> 0x0570 }\n r7.put(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7.commit();\t Catch:{ Throwable -> 0x0570 }\n r4 = 0;\n L_0x02db:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.utils.j.b(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x0385;\n L_0x02e5:\n r7 = \"TbsDownload\";\n r8 = \"DownloadBegin FreeSpace too small\";\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r7 = 105; // 0x69 float:1.47E-43 double:5.2E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -308; // 0xfffffffffffffecc float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0307:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0328:\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"[TbsApkDownloader.startDownload] downloadFlow=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r4);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r7 = (r4 > r24 ? 1 : (r4 == r24 ? 0 : -1));\n if (r7 < 0) goto L_0x02db;\n L_0x0342:\n r7 = \"TbsDownload\";\n r8 = \"STEP 1/2 begin downloading...failed because you exceeded max flow!\";\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r7 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -307; // 0xfffffffffffffecd float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0364:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0385:\n r7 = 1;\n r0 = r30;\n r0.y = r7;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.j;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0519;\n L_0x0390:\n r0 = r30;\n r7 = r0.j;\t Catch:{ Throwable -> 0x0570 }\n L_0x0394:\n r8 = \"TbsDownload\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"try url:\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r7);\t Catch:{ Throwable -> 0x0570 }\n r10 = \",mRetryTimes:\";\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n r10 = 1;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.i;\t Catch:{ Throwable -> 0x0570 }\n r8 = r7.equals(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x03cb;\n L_0x03c4:\n r0 = r30;\n r8 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r8.setDownloadUrl(r7);\t Catch:{ Throwable -> 0x0570 }\n L_0x03cb:\n r0 = r30;\n r0.i = r7;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r7);\t Catch:{ Throwable -> 0x0570 }\n r12 = 0;\n r0 = r30;\n r7 = r0.o;\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x0438;\n L_0x03dc:\n r12 = r30.k();\t Catch:{ Throwable -> 0x0570 }\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"[TbsApkDownloader.startDownload] range=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r7 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r7 > 0) goto L_0x051f;\n L_0x0400:\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"STEP 1/2 begin downloading...current\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Range\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"bytes=\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r10 = \"-\";\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n r7.setRequestProperty(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n L_0x0438:\n r0 = r30;\n r8 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r7 = (r12 > r10 ? 1 : (r12 == r10 ? 0 : -1));\n if (r7 != 0) goto L_0x05e8;\n L_0x0442:\n r7 = 0;\n L_0x0443:\n r8.setDownloadCancel(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.utils.Apn.getApnType(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.utils.Apn.getApnInfo(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r9 = r0.w;\t Catch:{ Throwable -> 0x0570 }\n if (r9 != 0) goto L_0x05eb;\n L_0x045c:\n r0 = r30;\n r9 = r0.x;\t Catch:{ Throwable -> 0x0570 }\n r10 = -1;\n if (r9 != r10) goto L_0x05eb;\n L_0x0463:\n r0 = r30;\n r0.w = r8;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.x = r7;\t Catch:{ Throwable -> 0x0570 }\n L_0x046b:\n r0 = r30;\n r7 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n if (r7 <= 0) goto L_0x047f;\n L_0x0471:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Referer\";\n r0 = r30;\n r9 = r0.h;\t Catch:{ Throwable -> 0x0570 }\n r7.addRequestProperty(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n L_0x047f:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.getResponseCode();\t Catch:{ Throwable -> 0x0570 }\n r8 = \"TbsDownload\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"[TbsApkDownloader.startDownload] responseCode=\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r7);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r8.setHttpCode(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x04e3;\n L_0x04a6:\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.sdk.TbsDownloader.getOverSea(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x04e3;\n L_0x04b0:\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.utils.Apn.getApnType(r8);\t Catch:{ Throwable -> 0x0570 }\n r9 = 3;\n if (r8 == r9) goto L_0x04c1;\n L_0x04bb:\n r8 = com.tencent.smtt.sdk.QbSdk.getDownloadWithoutWifi();\t Catch:{ Throwable -> 0x0570 }\n if (r8 == 0) goto L_0x04cb;\n L_0x04c1:\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.utils.Apn.getApnType(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x04e3;\n L_0x04cb:\n r30.c();\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ Throwable -> 0x0570 }\n if (r8 == 0) goto L_0x04d9;\n L_0x04d2:\n r8 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ Throwable -> 0x0570 }\n r9 = 111; // 0x6f float:1.56E-43 double:5.5E-322;\n r8.onDownloadFinish(r9);\t Catch:{ Throwable -> 0x0570 }\n L_0x04d9:\n r8 = \"TbsDownload\";\n r9 = \"Download is canceled due to NOT_WIFI error!\";\n r10 = 0;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ Throwable -> 0x0570 }\n L_0x04e3:\n r0 = r30;\n r8 = r0.r;\t Catch:{ Throwable -> 0x0570 }\n if (r8 == 0) goto L_0x0632;\n L_0x04e9:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x04f8:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0519:\n r0 = r30;\n r7 = r0.h;\t Catch:{ Throwable -> 0x0570 }\n goto L_0x0394;\n L_0x051f:\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"#1 STEP 1/2 begin downloading...current/total=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r9 = \"/\";\n r8 = r8.append(r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Range\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"bytes=\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r10 = \"-\";\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n r7.setRequestProperty(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n goto L_0x0438;\n L_0x0570:\n r7 = move-exception;\n L_0x0571:\n r8 = r7 instanceof javax.net.ssl.SSLHandshakeException;\t Catch:{ all -> 0x060d }\n if (r8 == 0) goto L_0x0e71;\n L_0x0575:\n if (r31 != 0) goto L_0x0e71;\n L_0x0577:\n r0 = r30;\n r8 = r0.b;\t Catch:{ all -> 0x060d }\n if (r8 == 0) goto L_0x0e71;\n L_0x057d:\n r8 = 0;\n r0 = r30;\n r8 = r0.a(r8);\t Catch:{ all -> 0x060d }\n if (r8 == 0) goto L_0x0e71;\n L_0x0586:\n r8 = \"TbsDownload\";\n r9 = new java.lang.StringBuilder;\t Catch:{ all -> 0x060d }\n r10 = \"[startdownload]url:\";\n r9.<init>(r10);\t Catch:{ all -> 0x060d }\n r0 = r30;\n r10 = r0.j;\t Catch:{ all -> 0x060d }\n r9 = r9.append(r10);\t Catch:{ all -> 0x060d }\n r10 = \" download exception:\";\n r9 = r9.append(r10);\t Catch:{ all -> 0x060d }\n r7 = r7.toString();\t Catch:{ all -> 0x060d }\n r7 = r9.append(r7);\t Catch:{ all -> 0x060d }\n r7 = r7.toString();\t Catch:{ all -> 0x060d }\n com.tencent.smtt.utils.TbsLog.e(r8, r7);\t Catch:{ all -> 0x060d }\n r7 = 125; // 0x7d float:1.75E-43 double:6.2E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ all -> 0x060d }\n L_0x05b8:\n r0 = r30;\n r7 = r0.g;\t Catch:{ all -> 0x060d }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ all -> 0x060d }\n r8 = -316; // 0xfffffffffffffec4 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ all -> 0x060d }\n if (r31 != 0) goto L_0x01c2;\n L_0x05c7:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x05e8:\n r7 = 1;\n goto L_0x0443;\n L_0x05eb:\n r0 = r30;\n r9 = r0.x;\t Catch:{ Throwable -> 0x0570 }\n if (r7 != r9) goto L_0x05fb;\n L_0x05f1:\n r0 = r30;\n r9 = r0.w;\t Catch:{ Throwable -> 0x0570 }\n r9 = r8.equals(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r9 != 0) goto L_0x046b;\n L_0x05fb:\n r0 = r30;\n r9 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r9.setNetworkChange(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.w = r8;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.x = r7;\t Catch:{ Throwable -> 0x0570 }\n goto L_0x046b;\n L_0x060d:\n r6 = move-exception;\n r16 = r4;\n L_0x0610:\n if (r31 != 0) goto L_0x0631;\n L_0x0612:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.a;\n r5 = \"tbs_downloadflow\";\n r7 = java.lang.Long.valueOf(r16);\n r4.put(r5, r7);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n L_0x0631:\n throw r6;\n L_0x0632:\n r8 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r7 == r8) goto L_0x063a;\n L_0x0636:\n r8 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n if (r7 != r8) goto L_0x0ba2;\n L_0x063a:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.getContentLength();\t Catch:{ Throwable -> 0x0570 }\n r8 = (long) r7;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8 + r12;\n r0 = r30;\n r0.l = r8;\t Catch:{ Throwable -> 0x0570 }\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"[TbsApkDownloader.startDownload] mContentLength=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r7.setPkgSize(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.mPreferences;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_apkfilesize\";\n r10 = 0;\n r8 = r7.getLong(r8, r10);\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r7 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r7 == 0) goto L_0x076e;\n L_0x0686:\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r7 = (r10 > r8 ? 1 : (r10 == r8 ? 0 : -1));\n if (r7 == 0) goto L_0x076e;\n L_0x068e:\n r7 = \"TbsDownload\";\n r10 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r11 = \"DownloadBegin tbsApkFileSize=\";\n r10.<init>(r11);\t Catch:{ Throwable -> 0x0570 }\n r10 = r10.append(r8);\t Catch:{ Throwable -> 0x0570 }\n r11 = \" but contentLength=\";\n r10 = r10.append(r11);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r12 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r10 = r10.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r10 = r10.toString();\t Catch:{ Throwable -> 0x0570 }\n r11 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r10, r11);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x0755;\n L_0x06b6:\n r7 = r30.n();\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x06cc;\n L_0x06bc:\n r7 = com.tencent.smtt.sdk.QbSdk.getDownloadWithoutWifi();\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0755;\n L_0x06c2:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.utils.Apn.isNetworkAvailable(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0755;\n L_0x06cc:\n r0 = r30;\n r7 = r0.b;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x06fe;\n L_0x06d2:\n r7 = 0;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x06fe;\n L_0x06db:\n if (r31 != 0) goto L_0x01c2;\n L_0x06dd:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x06fe:\n r7 = 113; // 0x71 float:1.58E-43 double:5.6E-322;\n r10 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r11 = \"tbsApkFileSize=\";\n r10.<init>(r11);\t Catch:{ Throwable -> 0x0570 }\n r8 = r10.append(r8);\t Catch:{ Throwable -> 0x0570 }\n r9 = \" but contentLength=\";\n r8 = r8.append(r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -310; // 0xfffffffffffffeca float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n L_0x0732:\n if (r31 != 0) goto L_0x01ea;\n L_0x0734:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0755:\n r7 = 101; // 0x65 float:1.42E-43 double:5.0E-322;\n r8 = \"WifiNetworkUnAvailable\";\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -304; // 0xfffffffffffffed0 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n goto L_0x0732;\n L_0x076e:\n r10 = 0;\n r9 = 0;\n r8 = 0;\n r7 = \"TbsDownload\";\n r11 = \"[TbsApkDownloader.startDownload] begin readResponse\";\n com.tencent.smtt.utils.TbsLog.i(r7, r11);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.t;\t Catch:{ IOException -> 0x0f2f, all -> 0x0f10 }\n r19 = r7.getInputStream();\t Catch:{ IOException -> 0x0f2f, all -> 0x0f10 }\n if (r19 == 0) goto L_0x0a6e;\n L_0x0784:\n r0 = r30;\n r7 = r0.t;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r7 = r7.getContentEncoding();\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n if (r7 == 0) goto L_0x0818;\n L_0x078e:\n r9 = \"gzip\";\n r9 = r7.contains(r9);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n if (r9 == 0) goto L_0x0818;\n L_0x0797:\n r18 = new java.util.zip.GZIPInputStream;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r18.<init>(r19);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n L_0x079c:\n r7 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\n r0 = new byte[r7];\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r26 = r0;\n r20 = new java.io.FileOutputStream;\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r7 = new java.io.File;\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r0 = r30;\n r8 = r0.k;\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r9 = \"x5.tbs.temp\";\n r7.<init>(r8, r9);\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r8 = 1;\n r0 = r20;\n r0.<init>(r7, r8);\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r14 = java.lang.System.currentTimeMillis();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r7 = 0;\n r8 = r12;\n r10 = r12;\n r16 = r4;\n L_0x07bf:\n r0 = r30;\n r4 = r0.r;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0891;\n L_0x07c5:\n r4 = \"TbsDownload\";\n r5 = \"STEP 1/2 begin downloading...Canceled!\";\n r8 = 1;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r8);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r16;\n L_0x07de:\n if (r7 == 0) goto L_0x0a72;\n L_0x07e0:\n r0 = r30;\n r1 = r20;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r18;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r19;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x07f7:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0818:\n if (r7 == 0) goto L_0x088d;\n L_0x081a:\n r9 = \"deflate\";\n r7 = r7.contains(r9);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n if (r7 == 0) goto L_0x088d;\n L_0x0823:\n r18 = new java.util.zip.InflaterInputStream;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r7 = new java.util.zip.Inflater;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r9 = 1;\n r7.<init>(r9);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r0 = r18;\n r1 = r19;\n r0.<init>(r1, r7);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n goto L_0x079c;\n L_0x0834:\n r7 = move-exception;\n r9 = r19;\n L_0x0837:\n r11 = r7 instanceof java.net.SocketTimeoutException;\t Catch:{ all -> 0x0b97 }\n if (r11 != 0) goto L_0x083f;\n L_0x083b:\n r11 = r7 instanceof java.net.SocketException;\t Catch:{ all -> 0x0b97 }\n if (r11 == 0) goto L_0x0abd;\n L_0x083f:\n r11 = 100000; // 0x186a0 float:1.4013E-40 double:4.94066E-319;\n r0 = r30;\n r0.m = r11;\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r12);\t Catch:{ all -> 0x0b97 }\n r11 = 103; // 0x67 float:1.44E-43 double:5.1E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r11, r7, r12);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r0.a(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x086c:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x088d:\n r18 = r19;\n goto L_0x079c;\n L_0x0891:\n r4 = 0;\n r5 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\n r0 = r18;\n r1 = r26;\n r27 = r0.read(r1, r4, r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r27 > 0) goto L_0x08e6;\n L_0x089e:\n r0 = r30;\n r4 = r0.b;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x08c9;\n L_0x08a4:\n r4 = 1;\n r0 = r30;\n r1 = r21;\n r4 = r0.c(r4, r1);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 != 0) goto L_0x08c9;\n L_0x08af:\n if (r31 != 0) goto L_0x08bf;\n L_0x08b1:\n r4 = 0;\n r0 = r30;\n r4 = r0.a(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x08bf;\n L_0x08ba:\n r7 = 1;\n r4 = r16;\n goto L_0x07de;\n L_0x08bf:\n r4 = 1;\n r0 = r30;\n r0.s = r4;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r6 = 0;\n r4 = r16;\n goto L_0x07de;\n L_0x08c9:\n r4 = 1;\n r0 = r30;\n r0.s = r4;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r4 = r0.b;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x08d5;\n L_0x08d4:\n r6 = 1;\n L_0x08d5:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = -311; // 0xfffffffffffffec9 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r16;\n goto L_0x07de;\n L_0x08e6:\n r4 = 0;\n r0 = r20;\n r1 = r26;\n r2 = r27;\n r0.write(r1, r4, r2);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r20.flush();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r31 != 0) goto L_0x09bb;\n L_0x08f5:\n r0 = r27;\n r4 = (long) r0;\n r4 = r4 + r16;\n r12 = (r4 > r24 ? 1 : (r4 == r24 ? 0 : -1));\n if (r12 < 0) goto L_0x0945;\n L_0x08fe:\n r8 = \"TbsDownload\";\n r9 = \"STEP 1/2 begin downloading...failed because you exceeded max flow!\";\n r10 = 1;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n r9 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \"downloadFlow=\";\n r9.<init>(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.append(r4);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \" downloadMaxflow=\";\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r24;\n r9 = r9.append(r0);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.toString();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = 1;\n r0 = r30;\n r0.a(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r30;\n r8 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r8);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = -307; // 0xfffffffffffffecd float:NaN double:NaN;\n r8.setDownloadInterruptCode(r9);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n goto L_0x07de;\n L_0x093c:\n r7 = move-exception;\n r8 = r18;\n r9 = r19;\n r10 = r20;\n goto L_0x0837;\n L_0x0945:\n r0 = r30;\n r12 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r12 = com.tencent.smtt.utils.j.b(r12);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n if (r12 != 0) goto L_0x09b9;\n L_0x094f:\n r8 = \"TbsDownload\";\n r9 = \"DownloadEnd FreeSpace too small \";\n r10 = 1;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = 105; // 0x69 float:1.47E-43 double:5.2E-322;\n r9 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \"freespace=\";\n r9.<init>(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = com.tencent.smtt.utils.v.a();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \",and minFreeSpace=\";\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r30;\n r10 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = r10.getDownloadMinFreeSpace();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.toString();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = 1;\n r0 = r30;\n r0.a(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r30;\n r8 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r8);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = -308; // 0xfffffffffffffecc float:NaN double:NaN;\n r8.setDownloadInterruptCode(r9);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n goto L_0x07de;\n L_0x099b:\n r7 = move-exception;\n r16 = r4;\n L_0x099e:\n r0 = r30;\n r1 = r20;\n r0.a(r1);\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n r0 = r30;\n r1 = r18;\n r0.a(r1);\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n r0 = r30;\n r1 = r19;\n r0.a(r1);\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n throw r7;\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n L_0x09b4:\n r7 = move-exception;\n r4 = r16;\n goto L_0x0571;\n L_0x09b9:\n r16 = r4;\n L_0x09bb:\n r0 = r27;\n r4 = (long) r0;\n r0 = r30;\n r1 = r22;\n r22 = r0.a(r1, r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r12 = java.lang.System.currentTimeMillis();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r27;\n r4 = (long) r0;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r8 = r8 + r4;\n r4 = r12 - r14;\n r28 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;\n r4 = (r4 > r28 ? 1 : (r4 == r28 ? 0 : -1));\n if (r4 <= 0) goto L_0x0f47;\n L_0x09d6:\n r4 = \"TbsDownload\";\n r5 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = \"#2 STEP 1/2 begin downloading...current/total=\";\n r5.<init>(r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = r5.append(r8);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = \"/\";\n r5 = r5.append(r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r14 = r0.l;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = r5.append(r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = r5.toString();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = 1;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0a10;\n L_0x0a00:\n r4 = (double) r8;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r14 = r0.l;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = (double) r14;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r4 / r14;\n r14 = 4636737291354636288; // 0x4059000000000000 float:0.0 double:100.0;\n r4 = r4 * r14;\n r4 = (int) r4;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5.onDownloadProgress(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n L_0x0a10:\n if (r31 != 0) goto L_0x0f44;\n L_0x0a12:\n r4 = r8 - r10;\n r14 = 1048576; // 0x100000 float:1.469368E-39 double:5.180654E-318;\n r4 = (r4 > r14 ? 1 : (r4 == r14 ? 0 : -1));\n if (r4 <= 0) goto L_0x0f44;\n L_0x0a1b:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloader.getOverSea(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 != 0) goto L_0x0a69;\n L_0x0a25:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.utils.Apn.getApnType(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = 3;\n if (r4 == r5) goto L_0x0a36;\n L_0x0a30:\n r4 = com.tencent.smtt.sdk.QbSdk.getDownloadWithoutWifi();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0a40;\n L_0x0a36:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.utils.Apn.getApnType(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 != 0) goto L_0x0a69;\n L_0x0a40:\n r30.c();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0a4e;\n L_0x0a47:\n r4 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = 111; // 0x6f float:1.56E-43 double:5.5E-322;\n r4.onDownloadFinish(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n L_0x0a4e:\n r4 = \"TbsDownload\";\n r5 = \"Download is paused due to NOT_WIFI error!\";\n r8 = 0;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r8);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = -304; // 0xfffffffffffffed0 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r16;\n goto L_0x07de;\n L_0x0a69:\n r4 = r8;\n L_0x0a6a:\n r14 = r12;\n r10 = r4;\n goto L_0x07bf;\n L_0x0a6e:\n r18 = r8;\n r20 = r10;\n L_0x0a72:\n r0 = r30;\n r1 = r20;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r18;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r19;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.s;\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x0a9a;\n L_0x0a8d:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -319; // 0xfffffffffffffec1 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n L_0x0a9a:\n if (r31 != 0) goto L_0x01ea;\n L_0x0a9c:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0abd:\n if (r31 != 0) goto L_0x0b3b;\n L_0x0abf:\n r0 = r30;\n r11 = r0.g;\t Catch:{ all -> 0x0b97 }\n r11 = com.tencent.smtt.utils.j.b(r11);\t Catch:{ all -> 0x0b97 }\n if (r11 != 0) goto L_0x0b3b;\n L_0x0ac9:\n r7 = 105; // 0x69 float:1.47E-43 double:5.2E-322;\n r11 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0b97 }\n r12 = \"freespace=\";\n r11.<init>(r12);\t Catch:{ all -> 0x0b97 }\n r12 = com.tencent.smtt.utils.v.a();\t Catch:{ all -> 0x0b97 }\n r11 = r11.append(r12);\t Catch:{ all -> 0x0b97 }\n r12 = \",and minFreeSpace=\";\n r11 = r11.append(r12);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r12 = r0.g;\t Catch:{ all -> 0x0b97 }\n r12 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r12);\t Catch:{ all -> 0x0b97 }\n r12 = r12.getDownloadMinFreeSpace();\t Catch:{ all -> 0x0b97 }\n r11 = r11.append(r12);\t Catch:{ all -> 0x0b97 }\n r11 = r11.toString();\t Catch:{ all -> 0x0b97 }\n r12 = 1;\n r0 = r30;\n r0.a(r7, r11, r12);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ all -> 0x0b97 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ all -> 0x0b97 }\n r11 = -308; // 0xfffffffffffffecc float:NaN double:NaN;\n r7.setDownloadInterruptCode(r11);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r0.a(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0b1a:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0b3b:\n r12 = 0;\n r0 = r30;\n r0.a(r12);\t Catch:{ all -> 0x0b97 }\n r11 = r30.j();\t Catch:{ all -> 0x0b97 }\n if (r11 != 0) goto L_0x0b88;\n L_0x0b48:\n r11 = 106; // 0x6a float:1.49E-43 double:5.24E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r11, r7, r12);\t Catch:{ all -> 0x0b97 }\n L_0x0b56:\n r0 = r30;\n r0.a(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x0b67:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0b88:\n r11 = 104; // 0x68 float:1.46E-43 double:5.14E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r11, r7, r12);\t Catch:{ all -> 0x0b97 }\n goto L_0x0b56;\n L_0x0b97:\n r7 = move-exception;\n r16 = r4;\n r18 = r8;\n r19 = r9;\n r20 = r10;\n goto L_0x099e;\n L_0x0ba2:\n r8 = 300; // 0x12c float:4.2E-43 double:1.48E-321;\n if (r7 < r8) goto L_0x0c25;\n L_0x0ba6:\n r8 = 307; // 0x133 float:4.3E-43 double:1.517E-321;\n if (r7 > r8) goto L_0x0c25;\n L_0x0baa:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Location\";\n r7 = r7.getHeaderField(r8);\t Catch:{ Throwable -> 0x0570 }\n r8 = android.text.TextUtils.isEmpty(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x0bec;\n L_0x0bbb:\n r0 = r30;\n r0.j = r7;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.q;\t Catch:{ Throwable -> 0x0570 }\n r7 = r7 + 1;\n r0 = r30;\n r0.q = r7;\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x0bcb:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0bec:\n r7 = 124; // 0x7c float:1.74E-43 double:6.13E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -312; // 0xfffffffffffffec8 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0c04:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0c25:\n r8 = 102; // 0x66 float:1.43E-43 double:5.04E-322;\n r9 = java.lang.String.valueOf(r7);\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r0 = r30;\n r0.a(r8, r9, r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = 416; // 0x1a0 float:5.83E-43 double:2.055E-321;\n if (r7 != r8) goto L_0x0ca7;\n L_0x0c35:\n r7 = 1;\n r0 = r30;\n r1 = r21;\n r7 = r0.c(r7, r1);\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0c71;\n L_0x0c40:\n r6 = 1;\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -214; // 0xffffffffffffff2a float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0c50:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0c71:\n r7 = 0;\n r0 = r30;\n r0.c(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -313; // 0xfffffffffffffec7 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0c86:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0ca7:\n r8 = 403; // 0x193 float:5.65E-43 double:1.99E-321;\n if (r7 == r8) goto L_0x0caf;\n L_0x0cab:\n r8 = 406; // 0x196 float:5.69E-43 double:2.006E-321;\n if (r7 != r8) goto L_0x0ce9;\n L_0x0caf:\n r0 = r30;\n r8 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r10 = -1;\n r8 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r8 != 0) goto L_0x0ce9;\n L_0x0cb9:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -314; // 0xfffffffffffffec6 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0cc8:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0ce9:\n r8 = 202; // 0xca float:2.83E-43 double:1.0E-321;\n if (r7 != r8) goto L_0x0d10;\n L_0x0ced:\n if (r31 != 0) goto L_0x01c2;\n L_0x0cef:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0d10:\n r0 = r30;\n r8 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r9 = r0.B;\t Catch:{ Throwable -> 0x0570 }\n if (r8 >= r9) goto L_0x0d8b;\n L_0x0d1a:\n r8 = 503; // 0x1f7 float:7.05E-43 double:2.485E-321;\n if (r7 != r8) goto L_0x0d8b;\n L_0x0d1e:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Retry-After\";\n r7 = r7.getHeaderField(r8);\t Catch:{ Throwable -> 0x0570 }\n r8 = java.lang.Long.parseLong(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.r;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0d68;\n L_0x0d38:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0d47:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0d68:\n if (r31 != 0) goto L_0x01c2;\n L_0x0d6a:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0d8b:\n r0 = r30;\n r8 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r9 = r0.B;\t Catch:{ Throwable -> 0x0570 }\n if (r8 >= r9) goto L_0x0e05;\n L_0x0d95:\n r8 = 408; // 0x198 float:5.72E-43 double:2.016E-321;\n if (r7 == r8) goto L_0x0da5;\n L_0x0d99:\n r8 = 504; // 0x1f8 float:7.06E-43 double:2.49E-321;\n if (r7 == r8) goto L_0x0da5;\n L_0x0d9d:\n r8 = 502; // 0x1f6 float:7.03E-43 double:2.48E-321;\n if (r7 == r8) goto L_0x0da5;\n L_0x0da1:\n r8 = 408; // 0x198 float:5.72E-43 double:2.016E-321;\n if (r7 != r8) goto L_0x0e05;\n L_0x0da5:\n r8 = 0;\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.r;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0de2;\n L_0x0db2:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0dc1:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0de2:\n if (r31 != 0) goto L_0x01c2;\n L_0x0de4:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0e05:\n r8 = r30.k();\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r8 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r8 > 0) goto L_0x0e41;\n L_0x0e0f:\n r0 = r30;\n r8 = r0.o;\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x0e41;\n L_0x0e15:\n r8 = 410; // 0x19a float:5.75E-43 double:2.026E-321;\n if (r7 == r8) goto L_0x0e41;\n L_0x0e19:\n r7 = 1;\n r0 = r30;\n r0.o = r7;\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x0e20:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0e41:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -315; // 0xfffffffffffffec5 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0e50:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0e71:\n r8 = 0;\n r0 = r30;\n r0.a(r8);\t Catch:{ all -> 0x060d }\n r8 = 107; // 0x6b float:1.5E-43 double:5.3E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x060d }\n r9 = 0;\n r0 = r30;\n r0.a(r8, r7, r9);\t Catch:{ all -> 0x060d }\n r0 = r30;\n r7 = r0.r;\t Catch:{ all -> 0x060d }\n if (r7 == 0) goto L_0x05b8;\n L_0x0e8c:\n r0 = r30;\n r7 = r0.g;\t Catch:{ all -> 0x060d }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ all -> 0x060d }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ all -> 0x060d }\n if (r31 != 0) goto L_0x01ea;\n L_0x0e9b:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0ebc:\n r4 = 0;\n goto L_0x020e;\n L_0x0ebf:\n r4 = 2;\n goto L_0x021a;\n L_0x0ec2:\n r0 = r30;\n r4 = r0.v;\n r5 = 0;\n r4.setPatchUpdateFlag(r5);\n goto L_0x021d;\n L_0x0ecc:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -318; // 0xfffffffffffffec2 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n r4 = 0;\n r0 = r30;\n r0.c(r4);\n goto L_0x023d;\n L_0x0ee1:\n r5 = r4.mPreferences;\n r7 = \"tbs_download_failed_retrytimes\";\n r8 = 0;\n r5 = r5.getInt(r7, r8);\n r7 = r4.a;\n r8 = \"tbs_download_failed_retrytimes\";\n r5 = r5 + 1;\n r9 = java.lang.Integer.valueOf(r5);\n r7.put(r8, r9);\n r7 = r4.getDownloadFailedMaxRetrytimes();\n if (r5 != r7) goto L_0x025f;\n L_0x0eff:\n r0 = r30;\n r5 = r0.v;\n r7 = 2;\n r5.setDownloadCancel(r7);\n goto L_0x025f;\n L_0x0f09:\n r4 = 0;\n goto L_0x0269;\n L_0x0f0c:\n r4 = move-exception;\n r6 = r4;\n goto L_0x0610;\n L_0x0f10:\n r7 = move-exception;\n r16 = r4;\n r18 = r8;\n r19 = r9;\n r20 = r10;\n goto L_0x099e;\n L_0x0f1b:\n r7 = move-exception;\n r16 = r4;\n r18 = r8;\n r20 = r10;\n goto L_0x099e;\n L_0x0f24:\n r7 = move-exception;\n r16 = r4;\n r20 = r10;\n goto L_0x099e;\n L_0x0f2b:\n r4 = move-exception;\n r7 = r4;\n goto L_0x099e;\n L_0x0f2f:\n r7 = move-exception;\n goto L_0x0837;\n L_0x0f32:\n r7 = move-exception;\n r8 = r18;\n r9 = r19;\n goto L_0x0837;\n L_0x0f39:\n r7 = move-exception;\n r4 = r16;\n r8 = r18;\n r9 = r19;\n r10 = r20;\n goto L_0x0837;\n L_0x0f44:\n r4 = r10;\n goto L_0x0a6a;\n L_0x0f47:\n r12 = r14;\n r4 = r10;\n goto L_0x0a6a;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.smtt.sdk.ag.b(boolean, boolean):void\");\n }", "private void int_to_void_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get the operand value\r\n long x = getIntOperand( nd, vms, 0 ) ;\r\n \r\n // Compute the value\r\n switch( op_code ) {\r\n case SRAND :\r\n if( random == null ) random = new java.util.Random(1) ;\r\n random.setSeed( x ) ;\r\n case ASSERT :\r\n if( x== 0 ) {\r\n // Assertion tripped.\r\n // The TM will throw an error.\r\n SourceCoords sc = vms.getCurrentCoords() ;\r\n vms.getConsole().putString(\"Assertion failed at \"+sc.toString()+\"\\n\") ;\r\n vms.setEvaluationState( vms.EVALUATION_STATE_TERMINATED ) ;\r\n }\r\n break ;\r\n default: Assert.check(false) ;\r\n }\r\n/* \r\n // New datum on scratch\r\n Clc_ASTUtilities util\r\n = (Clc_ASTUtilities) vms.getProperty(\"ASTUtilities\") ;\r\n AbstractDatum d\r\n = util.scratchDatum(nd.get_type(), vms) ;\r\n \r\n vms.top().map(nd, d) ; */\r\n putVoidResult(nd, vms);\r\n }", "public boolean method_210() {\r\n return false;\r\n }", "public node cnf() { rule: anything can sit immediately below ands\n //\n System.out.println( \" should not call \" );\n System.exit( 1 );\n return null;\n }", "abstract void mo956a(boolean z);", "public abstract void mo32005dK(boolean z);", "static void jump_when_sign_not(String passed){\n\t\tif(!S)\n\t\t\tcomplete_jump_req(passed.substring(3));\n\t}", "public boolean canJump() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void effetCase() {\n\t\t\n\t}", "@Override\r\n\tpublic void carBreak() {\n\t\t\r\n\t}", "private void insertJumpAtEndOfCondition(){\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.eq);\n\t\t\n\t\t// save current pc and store it as jmp address\n\t\tjmpNotThen.push(Code.pc);\n\t\tCode.put2(0);\n\t\t\n\t}", "@Override\r\n\tpublic void satisfy() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "protected int handlePrevious(int position) {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic void driving() {\n\t\t\n\t}", "private void level4() {\n }", "public void set_return(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n local_returnTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.local_return=param;\r\n \r\n\r\n }", "@Override\r\n\tvoid poop() {\n\t\tSystem.out.println(\"stinky\");\r\n\t}", "public int logic3()\r\n\t{\r\n\t\r\n\t\tint changesMade = 0;\r\n\t\treturn changesMade;\r\n\t}", "public boolean a()\r\n/* 598: */ {\r\n/* 599:597 */ return this.k;\r\n/* 600: */ }", "public abstract void mo9806a(int i, boolean z);", "@Override\n public <A> Function1<Object, A> andThen$mcIJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public boolean method_218() {\r\n return false;\r\n }" ]
[ "0.6354968", "0.62372243", "0.6197124", "0.6154875", "0.6135175", "0.5924401", "0.59136486", "0.59055716", "0.5900109", "0.5855695", "0.58514315", "0.58497983", "0.583783", "0.58320373", "0.58297753", "0.5823078", "0.58097535", "0.580116", "0.5794453", "0.5792954", "0.57851505", "0.5760512", "0.57458144", "0.57322407", "0.5709575", "0.5699074", "0.5697435", "0.5682981", "0.56828314", "0.56744695", "0.5673963", "0.5664928", "0.5664897", "0.5646433", "0.5645457", "0.56217086", "0.5621318", "0.5616299", "0.5614943", "0.56103474", "0.5606707", "0.5602395", "0.55770165", "0.55680585", "0.55643255", "0.55633324", "0.55628484", "0.5556628", "0.5553464", "0.5550173", "0.5544484", "0.55436575", "0.55421984", "0.55401623", "0.5539843", "0.55385756", "0.5538513", "0.5529507", "0.55284685", "0.5528452", "0.55243254", "0.55215245", "0.55178034", "0.5517802", "0.5515552", "0.5512896", "0.5512513", "0.551012", "0.55092496", "0.55080134", "0.5500247", "0.5497504", "0.5491903", "0.54909116", "0.54873925", "0.5486527", "0.5485824", "0.5475539", "0.5475306", "0.54730964", "0.5471299", "0.54690486", "0.5468594", "0.54676646", "0.5466736", "0.54635996", "0.54609776", "0.54545915", "0.54510015", "0.5446937", "0.5439661", "0.54357934", "0.54325527", "0.54303527", "0.54290605", "0.5425814", "0.5424369", "0.5419724", "0.54159707", "0.5408866", "0.54081225" ]
0.0
-1
/ WARNING void declaration
public boolean isMouseOnAlpha(int n, int n2) { void y; void x; return x > this.getX() + 2 && x < this.getX() + 2 + this.getWidth() - 4 && y > this.getY() + 55 && y < this.getY() + 66; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneFlaeche() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "public void m23075a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract void mo27386d();", "void m1864a() {\r\n }", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public final void mo91715d() {\n }", "public void smell() {\n\t\t\n\t}", "void mo57277b();", "public void method_4270() {}", "public void mo44053a() {\n }", "public abstract void mo30696a();", "private void m50366E() {\n }", "public abstract void mo56925d();", "public void furyo ()\t{\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "private void ss(){\n }", "public void mo21779D() {\n }", "public abstract void mo42330e();", "public abstract void mo42331g();", "public abstract void mo102899a();", "private final void i() {\n }", "void mo41083a();", "public abstract void m15813a();", "public void mo21825b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private stendhal() {\n\t}", "public abstract void mo35054b();", "private void kk12() {\n\n\t}", "void mo28194a();", "public abstract void mo3994a();", "void mo72113b();", "public void mo21795T() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "void mo28306a();", "void mo80452a();", "public void mo21793R() {\n }", "public void mo4359a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo27464a();", "public void mo3749d() {\n }", "void mo54405a();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo21791P() {\n }", "void mo119582b();", "void mo80455b();", "public void mo21794S() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "private void sub() {\n\n\t}", "public void mo21789N() {\n }", "public void mo56167c() {\n }", "void mo84655a();", "@Override\n public void perish() {\n \n }", "public void mo2471e() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3376r() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "public void mo9137b() {\n }", "public void mo21781F() {\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 }", "void mo88521a();", "public void mo21787L() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void method(){}", "void mo41086b();", "public void mo21785J() {\n }", "void mo38026a();" ]
[ "0.72114015", "0.71405566", "0.71401", "0.7021417", "0.69780886", "0.6972193", "0.6960773", "0.69401586", "0.69401586", "0.69123584", "0.69039416", "0.68747616", "0.6874215", "0.68522483", "0.6835249", "0.6830557", "0.68150365", "0.68104607", "0.67968935", "0.67965853", "0.679537", "0.6792716", "0.67796046", "0.6776775", "0.6775711", "0.67680025", "0.67634565", "0.6762109", "0.6758278", "0.6756009", "0.67481816", "0.6738367", "0.6731588", "0.6721314", "0.67176443", "0.671043", "0.67065084", "0.6705694", "0.6702434", "0.6681549", "0.66799784", "0.66765684", "0.6667961", "0.666592", "0.6665633", "0.6659987", "0.6649683", "0.6647198", "0.66399497", "0.6639375", "0.6637081", "0.6631689", "0.6629893", "0.6624224", "0.6622723", "0.66161764", "0.6610774", "0.6602431", "0.6601196", "0.65961546", "0.65957415", "0.6590543", "0.65891594", "0.65787566", "0.65570784", "0.6553829", "0.6552855", "0.6550435", "0.65473944", "0.6547336", "0.654544", "0.6536497", "0.6534672", "0.65269655", "0.65260196", "0.652576", "0.65226996", "0.6518356", "0.6512249", "0.6510968", "0.65083987", "0.649768", "0.64932954", "0.64925736", "0.64919287", "0.64893085", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6485925", "0.6483748", "0.64826524", "0.64816594", "0.64801264", "0.6477539", "0.64773726", "0.6475095" ]
0.0
-1
/ WARNING void declaration Enabled force condition propagation Lifted jumps to return sites
public boolean isMouseOnRainbow(int n, int n2) { void y; void x; if (x <= this.getX() + this.getWidth() - 12) return false; if (x >= this.getX() + this.getWidth() - 2) return false; if (y <= this.getY() + 72) return false; if (y >= this.getY() + 82) return false; return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static void jump_without_condition(String passed){\n\t\tcomplete_jump_req(passed.substring(4));\n\t}", "void z_piracy()\n {\n //branch (!f_setup.piracy);\n\n }", "public boolean c()\r\n/* 36: */ {\r\n/* 37:51 */ return false;\r\n/* 38: */ }", "public void noReturnOnVoid() {\n\t\treturn;\n\t}", "@Override\r\n\tpublic boolean voidIt() {\n\t\treturn false;\r\n\t}", "static void perform_jmp(String passed){\n\t\tint type = type_of_jmp(passed);\n\t\tswitch(type){\n\t\tcase 1:\n\t\t\tjump_without_condition(passed);\n\t\t\tbreak;\n\t\t}\n\t}", "void breach();", "void bypass();", "public boolean isLegOut()\n{\n if (jumpState == 1)\n return true;\n return false;\n}", "@Override\n public void func_104112_b() {\n \n }", "public boolean isVoid()\r\n/* 146: */ {\r\n/* 147:177 */ return false;\r\n/* 148: */ }", "void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\n }", "public void smell() {\n\t\t\n\t}", "public abstract void mo32006dL(boolean z);", "void checkReturnSt (int ln) {\r\n if (!return_type.isVoid ())\r\n OzcError.needReturnSt (ln);\r\n else \r\n need_return = true;\r\n }", "@Override\n\tpublic boolean jump() {\n\t\tboolean rs = super.jump();\n\t\tif(rs == true){\n\t\t}\n\t\treturn rs;\n\t\t\n\t}", "public boolean ci() {\n/* 84 */ return true;\n/* */ }", "public boolean c()\r\n/* 56: */ {\r\n/* 57: 77 */ return false;\r\n/* 58: */ }", "public void solution() {\n\t\t\n\t}", "public final void b() {\n /*\n r10 = this;\n r0 = 0\n java.lang.Object[] r1 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r3 = f53248e\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r7 = java.lang.Void.TYPE\n r4 = 0\n r5 = 55479(0xd8b7, float:7.7743E-41)\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7)\n if (r1 == 0) goto L_0x0025\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = f53248e\n r5 = 0\n r6 = 55479(0xd8b7, float:7.7743E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x0025:\n com.ss.android.ugc.aweme.live.alphaplayer.e$i r9 = r10.h\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = com.ss.android.ugc.aweme.live.alphaplayer.e.i.f53268a\n r5 = 0\n r6 = 55516(0xd8dc, float:7.7794E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n boolean r2 = com.meituan.robust.PatchProxy.isSupport(r2, r3, r4, r5, r6, r7, r8)\n if (r2 == 0) goto L_0x004b\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = com.ss.android.ugc.aweme.live.alphaplayer.e.i.f53268a\n r5 = 0\n r6 = 55516(0xd8dc, float:7.7794E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x004b:\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r2 = g\n monitor-enter(r2)\n r0 = 1\n r9.f53270c = r0 // Catch:{ all -> 0x006e }\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = g // Catch:{ all -> 0x006e }\n r0.notifyAll() // Catch:{ all -> 0x006e }\n L_0x0056:\n boolean r0 = r9.f53269b // Catch:{ all -> 0x006e }\n if (r0 != 0) goto L_0x006c\n boolean r0 = r9.f53271d // Catch:{ all -> 0x006e }\n if (r0 != 0) goto L_0x006c\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = g // Catch:{ InterruptedException -> 0x0064 }\n r0.wait() // Catch:{ InterruptedException -> 0x0064 }\n goto L_0x0056\n L_0x0064:\n java.lang.Thread r0 = java.lang.Thread.currentThread() // Catch:{ all -> 0x006e }\n r0.interrupt() // Catch:{ all -> 0x006e }\n goto L_0x0056\n L_0x006c:\n monitor-exit(r2) // Catch:{ all -> 0x006e }\n return\n L_0x006e:\n r0 = move-exception\n monitor-exit(r2) // Catch:{ all -> 0x006e }\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.b():void\");\n }", "public final void b() {\n /*\n r9 = this;\n r0 = 0\n java.lang.Object[] r1 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r3 = f53268a\n java.lang.Class[] r6 = new java.lang.Class[r0]\n java.lang.Class r7 = java.lang.Void.TYPE\n r4 = 0\n r5 = 55519(0xd8df, float:7.7799E-41)\n r2 = r9\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7)\n if (r1 == 0) goto L_0x0025\n java.lang.Object[] r2 = new java.lang.Object[r0]\n com.meituan.robust.ChangeQuickRedirect r4 = f53268a\n r5 = 0\n r6 = 55519(0xd8df, float:7.7799E-41)\n java.lang.Class[] r7 = new java.lang.Class[r0]\n java.lang.Class r8 = java.lang.Void.TYPE\n r3 = r9\n com.meituan.robust.PatchProxy.accessDispatch(r2, r3, r4, r5, r6, r7, r8)\n return\n L_0x0025:\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r0 = com.ss.android.ugc.aweme.live.alphaplayer.e.g\n monitor-enter(r0)\n r1 = 1\n r9.h = r1 // Catch:{ all -> 0x0044 }\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r1 = com.ss.android.ugc.aweme.live.alphaplayer.e.g // Catch:{ all -> 0x0044 }\n r1.notifyAll() // Catch:{ all -> 0x0044 }\n L_0x0030:\n boolean r1 = r9.f53269b // Catch:{ all -> 0x0044 }\n if (r1 != 0) goto L_0x0042\n com.ss.android.ugc.aweme.live.alphaplayer.e$j r1 = com.ss.android.ugc.aweme.live.alphaplayer.e.g // Catch:{ InterruptedException -> 0x003a }\n r1.wait() // Catch:{ InterruptedException -> 0x003a }\n goto L_0x0030\n L_0x003a:\n java.lang.Thread r1 = java.lang.Thread.currentThread() // Catch:{ all -> 0x0044 }\n r1.interrupt() // Catch:{ all -> 0x0044 }\n goto L_0x0030\n L_0x0042:\n monitor-exit(r0) // Catch:{ all -> 0x0044 }\n return\n L_0x0044:\n r1 = move-exception\n monitor-exit(r0) // Catch:{ all -> 0x0044 }\n throw r1\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.ugc.aweme.live.alphaplayer.e.i.b():void\");\n }", "public boolean C_enterTheZone(ListOfParameterLists parameterLists){\n //if(isEnter == true){\n if(debug)\n System.out.println(\"Condition from Rule7 :: is true\");\n\n\n return true;\n\n // }\n // else\n //return false;\n\n // Future work\n // Put the condition code here, eg. if the track is friendly, we\n // don't need to alert the analyst.\n\n }", "public void doublejump(){\r\n\t\t//jump a second time.\r\n\t}", "@Override\n\tpublic void leti() \n\t{\n\t}", "void blackhole(){ if (zzAtBOL) return; }", "public final void mo6599c() {\n /*\n r2 = this;\n r1 = r2.f40713f;\n monitor-enter(r1);\n r0 = r2.m38021e();\t Catch:{ all -> 0x0015 }\n if (r0 != 0) goto L_0x000d;\n L_0x0009:\n r0 = r2.f40710c;\t Catch:{ all -> 0x0015 }\n if (r0 != 0) goto L_0x000f;\n L_0x000d:\n monitor-exit(r1);\t Catch:{ all -> 0x0015 }\n L_0x000e:\n return;\n L_0x000f:\n r0 = 2;\n r2.m38011a(r0);\t Catch:{ all -> 0x0015 }\n monitor-exit(r1);\t Catch:{ all -> 0x0015 }\n goto L_0x000e;\n L_0x0015:\n r0 = move-exception;\n monitor-exit(r1);\t Catch:{ all -> 0x0015 }\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.chromium.net.impl.CronetUrlRequest.c():void\");\n }", "public boolean i()\r\n/* 46: */ {\r\n/* 47:50 */ return true;\r\n/* 48: */ }", "public void think()\r\n/* 32: */ {\r\n/* 33: 29 */ think_blocking();\r\n/* 34: */ }", "public void noreturn(){\n System.out.println(\"universal\");\n }", "public boolean isJumping(){\n if (jumpState == 2)\n return true;\n return false;\n\n}", "public void set_return(boolean param){\n \n // setting primitive attribute tracker to true\n \n if (false) {\n local_returnTracker = false;\n \n } else {\n local_returnTracker = true;\n }\n \n this.local_return=param;\n \n\n }", "public void alg_RUNCONVEYER(){\nBlock.value=false;\nSystem.out.println(\"run\");\n\n}", "public SmallSet<CFGNode> interceptedAbruptStmts() {\n ASTNode$State state = state();\n try {\n \t\tSmallSet<CFGNode> branches = emptySmallSet();\n \t\tIterator itr = super.interceptedAbruptStmts().iterator();\n \t\twhile (itr.hasNext()) {\n \t\t\tStmt stmt = (Stmt)itr.next();\n \t\t\tif (stmt.isBreakStmt() && potentialTargetOf((BreakStmt)stmt) || \n \t\t\t\tstmt.isContinueStmt() && potentialTargetOf((ContinueStmt)stmt)) {\n \t\t\t\tcontinue;\n \t\t\t} \n \t\t\tbranches = branches.union(stmt);\n \t\t}\n \t\treturn branches;\n \t}\n finally {\n }\n }", "public boolean eliminateLoop(){ return false; }", "protected final /* synthetic */ java.lang.Object run() {\n /*\n r4 = this;\n r0 = 1;\n r1 = 0;\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.chu();\n r3 = com.tencent.mm.plugin.appbrand.b.c.this;\n r3 = r3.iKh;\n if (r2 != r3) goto L_0x0022;\n L_0x000e:\n r2 = com.tencent.mm.plugin.appbrand.b.c.this;\n r2 = r2.iKh;\n r2 = r2.iKy;\n r2 = r2 & 1;\n if (r2 <= 0) goto L_0x0020;\n L_0x0018:\n r2 = r0;\n L_0x0019:\n if (r2 == 0) goto L_0x0022;\n L_0x001b:\n r0 = java.lang.Boolean.valueOf(r0);\n return r0;\n L_0x0020:\n r2 = r1;\n goto L_0x0019;\n L_0x0022:\n r0 = r1;\n goto L_0x001b;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.mm.plugin.appbrand.b.c.5.run():java.lang.Object\");\n }", "static void jump_when_carry_not(String passed){\n\t\tif(!CS)\n\t\t\tcomplete_jump_req(passed.substring(4));\n\t}", "private static void execute1()\n\t{\n\t\tboolean flushRegisterValues = false;\n\t\tboolean branchFUflag = false;\n\t\tExecutionOfOpcode functionUnit = new ExecutionOfOpcode();\n\t\tString controlFlowInstruction = TypesOfOperations.BNZ + \"|\" + TypesOfOperations.BZ + \"|\"\n\t\t\t\t+ TypesOfOperations.JUMP + \"|\" + TypesOfOperations.BAL + \"|\" + TypesOfOperations.HALT;\n\n\t\tif (latches.containsKey(\"D\"))\n\t\t{\n\t\t\tif (!latches.get(\"D\").isNOP())\n\t\t\t{\n\t\t\t\t// Check if the instruction in Decode stage is not Control flow\n\t\t\t\t// instruction\n\t\t\t\tif (!controlFlowInstruction.contains(latches.get(\"D\").getOperation()))\n\t\t\t\t{\n\t\t\t\t\tInstruction instructionEx = latches.get(\"D\");\n\t\t\t\t\t// TODO check the src 1 and src 2 with forwarding registers\n\t\t\t\t\tif ((forwardingReg != null) && (forwardingRegMEMtoEX != null)\n\t\t\t\t\t\t\t&& forwardingReg.getKey().equals(forwardingRegMEMtoEX.getKey()))\n\t\t\t\t\t{\n\t\t\t\t\t\tforwardingRegMEMtoEX.setValue(forwardingReg.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingReg.getKey())))\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingReg.getValue());\n\t\t\t\t\tif ((instructionEx.getSrc1() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc1().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\t\t\t\t\t\tinstructionEx.setSrc1(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\t\t\t\t\tif ((instructionEx.getSrc2() != null)\n\t\t\t\t\t\t\t&& (instructionEx.getSrc2().getKey().equals(forwardingRegMEMtoEX.getKey())))\n\t\t\t\t\t{\n\n\t\t\t\t\t\tinstructionEx.setSrc2(forwardingRegMEMtoEX.getValue());\n\t\t\t\t\t}\n\n\t\t\t\t\tlatches.put(\"D\", functionUnit.executeInstruction(latches.get(\"D\")));\n\t\t\t\t} else\n\t\t\t\t// Here we have the branch instruction\n\t\t\t\t{\n\t\t\t\t\tbranchFUflag = true;\n\t\t\t\t\tlatches.put(\"E\", stages.get(\"E\"));\n\t\t\t\t\tstages.put(\"E\", new Instruction()); // Add NOP in the ALU1\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!branchFUflag)\n\t\t\t{\n\t\t\t\tmoveInstruction(\"E\", \"D\");\n\t\t\t\tif (flushRegisterValues)\n\t\t\t\t\tflushRegister();\n\t\t\t}\n\t\t}\n\t}", "public int g()\r\n/* 173: */ {\r\n/* 174:198 */ return 0;\r\n/* 175: */ }", "public boolean isMoving() {\n/* 270 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "static void return_unconditionally(String passed){\n\t\tcomplete_return_requirements();\n\t}", "@android.support.annotation.RequiresApi(api = 23)\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public final synchronized void b(boolean r11) {\n /*\n r10 = this;\n monitor-enter(r10)\n r8 = 1\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r2 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r9 = 0\n r1[r9] = r2 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r2 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r2 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n boolean r1 = com.meituan.robust.PatchProxy.isSupport(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x003a\n java.lang.Object[] r1 = new java.lang.Object[r8] // Catch:{ all -> 0x004b }\n java.lang.Byte r0 = java.lang.Byte.valueOf(r11) // Catch:{ all -> 0x004b }\n r1[r9] = r0 // Catch:{ all -> 0x004b }\n com.meituan.robust.ChangeQuickRedirect r3 = f29525a // Catch:{ all -> 0x004b }\n r4 = 0\n r5 = 16804(0x41a4, float:2.3547E-41)\n java.lang.Class[] r6 = new java.lang.Class[r8] // Catch:{ all -> 0x004b }\n java.lang.Class r0 = java.lang.Boolean.TYPE // Catch:{ all -> 0x004b }\n r6[r9] = r0 // Catch:{ all -> 0x004b }\n java.lang.Class r7 = java.lang.Void.TYPE // Catch:{ all -> 0x004b }\n r2 = r10\n com.meituan.robust.PatchProxy.accessDispatch(r1, r2, r3, r4, r5, r6, r7) // Catch:{ all -> 0x004b }\n monitor-exit(r10)\n return\n L_0x003a:\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n boolean r1 = r1 instanceof com.ss.android.medialib.camera.IESHwCamera // Catch:{ all -> 0x004b }\n if (r1 == 0) goto L_0x0049\n com.ss.android.medialib.camera.IESCameraInterface r1 = r10.f29527c // Catch:{ all -> 0x004b }\n com.ss.android.medialib.camera.IESHwCamera r1 = (com.ss.android.medialib.camera.IESHwCamera) r1 // Catch:{ all -> 0x004b }\n r1.c((boolean) r11) // Catch:{ all -> 0x004b }\n r10.n = r11 // Catch:{ all -> 0x004b }\n L_0x0049:\n monitor-exit(r10)\n return\n L_0x004b:\n r0 = move-exception\n monitor-exit(r10)\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.ss.android.medialib.camera.g.b(boolean):void\");\n }", "private static void notPossible () {\r\n\t\tSystem.out.println(\"This operation is not possible\");\r\n\t}", "@Override\r\n\tpublic void laught() {\n\r\n\t}", "@Override\n public boolean step() {\n return false;\n }", "public boolean func_70097_a(DamageSource par1DamageSource, float par2) {\n/* 296 */ if (func_180431_b(par1DamageSource))\n/* */ {\n/* 298 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 302 */ return super.func_70097_a(par1DamageSource, par2);\n/* */ }", "@Override\n public boolean bodyCall(Node[] args, int length, RuleContext context) {\n try {\n checkArgs(length, context);\n BindingEnvironment env = context.getEnv();\n boolean ok = false;\n JEP mathParser = new JEP();\n Node varList = getArg(0, args, context);\n Node prevSt = getArg(1, args, context);\n Node cond = getArg(2, args, context);\n Node iter = getArg(3, args, context);\n \n return IfTrue_BranchBeTraversed.evaluateExpression(prevSt, cond, context, iter, varList, mathParser);\n\n \n } catch (Exception ex) {\n //Logger.getLogger(IfTrue_BranchBeTraversed.class.getName()).log(Level.SEVERE, null, ex);\n } finally{\n return true;\n }\n }", "@Override\n\tpublic void activity() {\n\t\tSystem.out.println(\"relaxing\");\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public boolean performAction(int action) {\n/* 567 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "void kiemTraThangHopLi() {\n }", "@Override\n\tpublic void wantToGoOnBreak() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "public int logic2()\r\n\t{\r\n\t\tint changesMade = 0;\r\n\t\t\t\r\n\t\treturn changesMade;\r\n\t}", "public abstract void mo70713b();", "public boolean b()\r\n/* 709: */ {\r\n/* 710:702 */ return this.l;\r\n/* 711: */ }", "public void method_9653() {\r\n this.field_9138.method_4479(false);\r\n }", "static void return_when_parity(String passed){\n\t\tif(P)\n\t\t\tcomplete_return_requirements();\n\t}", "public abstract boolean zzbek();", "public abstract void mo9254f(boolean z);", "static void complete_return_requirements(){\n\t\tString ad = memory.get(SP+1)+memory.get(SP);\n\t\tSP+=2;\n\t\tPC = hexa_to_deci(ad);\n\t\tmodified =true;\n\t}", "public void doSomething(){\n return;\n }", "public int logic4()\r\n\t{\r\n\t\tint changesMade = 0;\r\n\t\treturn changesMade;\r\n\t}", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "static void jump_when_parity(String passed){\n\t\tif(P)\n\t\t\tcomplete_jump_req(passed.substring(4));\n\t}", "public void noReturn() {\n\t\tSystem.out.println(\"noReturn method will not returing any thing\");\n\t}", "static void jump_when_parity_not(String passed){\n\t\tif(!P)\n\t\t\tcomplete_jump_req(passed.substring(4));\n\t}", "public boolean method_3897() {\r\n return false;\r\n }", "public void visit(ConditionElement1 conditionElement1) {\n\t\t\n\t\t// if a != 0, jmp true1\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc+Code.ne);\n\t\tCode.put2(11);\n\t\t\n\t\t// if b != 0, jmp true2\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.ne);\n\t\tCode.put2(8);\n\t\t\n\t\t// false: put 0,jmp next \n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jmp);\n\t\tCode.put2(5);\n\t\t\n\t\t// true1\n\t\tCode.put(Code.pop);\n\t\t\n\t\t// true2\n\t\tCode.loadConst(1);\n\t\t\n\t\t// next\n\t}", "@Override\r\n\tpublic void visit(ConditionExpression conditionExpression) {\n\r\n\t}", "@Override\n public void toogleFold() {\n }", "boolean test() {\n return false; // REPLACE WITH SOLUTION\n }", "public abstract void mo27385c();", "private void g()\r\n/* 30: */ {\r\n/* 31: 40 */ if (this.n) {\r\n/* 32: 41 */ return;\r\n/* 33: */ }\r\n/* 34: 45 */ if (this.l != null)\r\n/* 35: */ {\r\n/* 36: 47 */ if (this.f != null) {\r\n/* 37: 48 */ c();\r\n/* 38: */ }\r\n/* 39: 51 */ cuj.a(super.b(), this.l);\r\n/* 40: 52 */ this.n = true;\r\n/* 41: */ }\r\n/* 42: */ }", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n public <A> Function1<Object, A> andThen$mcZI$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "static void return_not_carry(String passed){\n\t\tif(!CS)\n\t\t\tcomplete_return_requirements();\n\t}", "@Override\n\tpublic void breath() {\n\n\t}", "static void complete_jump_req(String passed){\n\t\t//\t\tString program_counter = decimel_to_hexa(PC);\n\t\t//\t\tfill_the_stack(program_counter.substring(0,2),program_counter.substring(2,4),psw());\n\t\tif(labels.get(passed)==null)\n\t\t\tPC = hexa_to_deci(passed);\n\t\telse\n\t\t\tPC = labels.get(passed);\n\t\tmodified =true;\n\t}", "public void b(boolean r31, boolean r32) {\n /*\n r30 = this;\n r4 = com.tencent.smtt.sdk.an.a();\n r0 = r30;\n r5 = r0.g;\n r4 = r4.c(r5);\n if (r4 == 0) goto L_0x0021;\n L_0x000e:\n if (r31 != 0) goto L_0x0021;\n L_0x0010:\n r4 = 0;\n com.tencent.smtt.sdk.TbsDownloader.a = r4;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -322; // 0xfffffffffffffebe float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n L_0x0020:\n return;\n L_0x0021:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_responsecode\";\n r6 = 0;\n r4 = r4.getInt(r5, r6);\n r5 = 1;\n if (r4 == r5) goto L_0x003c;\n L_0x0036:\n r5 = 2;\n if (r4 == r5) goto L_0x003c;\n L_0x0039:\n r5 = 4;\n if (r4 != r5) goto L_0x0051;\n L_0x003c:\n r4 = 1;\n r21 = r4;\n L_0x003f:\n if (r32 != 0) goto L_0x0055;\n L_0x0041:\n r0 = r30;\n r1 = r31;\n r2 = r21;\n r4 = r0.a(r1, r2);\n if (r4 == 0) goto L_0x0055;\n L_0x004d:\n r4 = 0;\n com.tencent.smtt.sdk.TbsDownloader.a = r4;\n goto L_0x0020;\n L_0x0051:\n r4 = 0;\n r21 = r4;\n goto L_0x003f;\n L_0x0055:\n r0 = r31;\n r1 = r30;\n r1.C = r0;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_downloadurl\";\n r6 = 0;\n r4 = r4.getString(r5, r6);\n r0 = r30;\n r0.h = r4;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_downloadurl_list\";\n r6 = 0;\n r4 = r4.getString(r5, r6);\n r5 = \"TbsDownload\";\n r6 = new java.lang.StringBuilder;\n r7 = \"backupUrlStrings:\";\n r6.<init>(r7);\n r6 = r6.append(r4);\n r6 = r6.toString();\n r7 = 1;\n com.tencent.smtt.utils.TbsLog.i(r5, r6, r7);\n r5 = 0;\n r0 = r30;\n r0.b = r5;\n r5 = 0;\n r0 = r30;\n r0.c = r5;\n if (r31 != 0) goto L_0x00c4;\n L_0x00a6:\n if (r4 == 0) goto L_0x00c4;\n L_0x00a8:\n r5 = \"\";\n r6 = r4.trim();\n r5 = r5.equals(r6);\n if (r5 != 0) goto L_0x00c4;\n L_0x00b5:\n r5 = r4.trim();\n r6 = \";\";\n r5 = r5.split(r6);\n r0 = r30;\n r0.b = r5;\n L_0x00c4:\n r5 = \"TbsDownload\";\n r6 = new java.lang.StringBuilder;\n r7 = \"[TbsApkDownloader.startDownload] mDownloadUrl=\";\n r6.<init>(r7);\n r0 = r30;\n r7 = r0.h;\n r6 = r6.append(r7);\n r7 = \" backupUrlStrings=\";\n r6 = r6.append(r7);\n r4 = r6.append(r4);\n r6 = \" mLocation=\";\n r4 = r4.append(r6);\n r0 = r30;\n r6 = r0.j;\n r4 = r4.append(r6);\n r6 = \" mCanceled=\";\n r4 = r4.append(r6);\n r0 = r30;\n r6 = r0.r;\n r4 = r4.append(r6);\n r6 = \" mHttpRequest=\";\n r4 = r4.append(r6);\n r0 = r30;\n r6 = r0.t;\n r4 = r4.append(r6);\n r4 = r4.toString();\n com.tencent.smtt.utils.TbsLog.i(r5, r4);\n r0 = r30;\n r4 = r0.h;\n if (r4 != 0) goto L_0x0138;\n L_0x011c:\n r0 = r30;\n r4 = r0.j;\n if (r4 != 0) goto L_0x0138;\n L_0x0122:\n r4 = com.tencent.smtt.sdk.QbSdk.m;\n r5 = 110; // 0x6e float:1.54E-43 double:5.43E-322;\n r4.onDownloadFinish(r5);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -302; // 0xfffffffffffffed2 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n goto L_0x0020;\n L_0x0138:\n r0 = r30;\n r4 = r0.t;\n if (r4 == 0) goto L_0x015a;\n L_0x013e:\n r0 = r30;\n r4 = r0.r;\n if (r4 != 0) goto L_0x015a;\n L_0x0144:\n r4 = com.tencent.smtt.sdk.QbSdk.m;\n r5 = 110; // 0x6e float:1.54E-43 double:5.43E-322;\n r4.onDownloadFinish(r5);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -303; // 0xfffffffffffffed1 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n goto L_0x0020;\n L_0x015a:\n if (r31 != 0) goto L_0x018d;\n L_0x015c:\n r0 = r30;\n r4 = r0.A;\n r0 = r30;\n r5 = r0.g;\n r5 = com.tencent.smtt.utils.Apn.getWifiSSID(r5);\n r4 = r4.contains(r5);\n if (r4 == 0) goto L_0x018d;\n L_0x016e:\n r4 = \"TbsDownload\";\n r5 = \"[TbsApkDownloader.startDownload] WIFI Unavailable\";\n com.tencent.smtt.utils.TbsLog.i(r4, r5);\n r4 = com.tencent.smtt.sdk.QbSdk.m;\n r5 = 110; // 0x6e float:1.54E-43 double:5.43E-322;\n r4.onDownloadFinish(r5);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -304; // 0xfffffffffffffed0 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n goto L_0x0020;\n L_0x018d:\n r30.f();\n r4 = \"TbsDownload\";\n r5 = \"STEP 1/2 begin downloading...\";\n r6 = 1;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r6);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r24 = r4.getDownloadMaxflow();\n r6 = 0;\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.mPreferences;\n r5 = \"tbs_downloadflow\";\n r8 = 0;\n r4 = r4.getLong(r5, r8);\n if (r31 == 0) goto L_0x0271;\n L_0x01bc:\n r7 = e;\n r0 = r30;\n r0.B = r7;\n L_0x01c2:\n r0 = r30;\n r7 = r0.p;\n r0 = r30;\n r8 = r0.B;\n if (r7 > r8) goto L_0x01ea;\n L_0x01cc:\n r0 = r30;\n r7 = r0.q;\n r8 = 8;\n if (r7 <= r8) goto L_0x0279;\n L_0x01d4:\n r4 = 123; // 0x7b float:1.72E-43 double:6.1E-322;\n r5 = 0;\n r7 = 1;\n r0 = r30;\n r0.a(r4, r5, r7);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -306; // 0xfffffffffffffece float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n L_0x01ea:\n r0 = r30;\n r4 = r0.r;\n if (r4 != 0) goto L_0x026c;\n L_0x01f0:\n r0 = r30;\n r4 = r0.s;\n if (r4 == 0) goto L_0x023d;\n L_0x01f6:\n r0 = r30;\n r4 = r0.b;\n if (r4 != 0) goto L_0x0207;\n L_0x01fc:\n if (r6 != 0) goto L_0x0207;\n L_0x01fe:\n r4 = 1;\n r0 = r30;\n r1 = r21;\n r6 = r0.c(r4, r1);\n L_0x0207:\n r0 = r30;\n r5 = r0.v;\n if (r6 == 0) goto L_0x0ebc;\n L_0x020d:\n r4 = 1;\n L_0x020e:\n r5.setUnpkgFlag(r4);\n if (r21 != 0) goto L_0x0ec2;\n L_0x0213:\n r0 = r30;\n r5 = r0.v;\n if (r6 == 0) goto L_0x0ebf;\n L_0x0219:\n r4 = 1;\n L_0x021a:\n r5.setPatchUpdateFlag(r4);\n L_0x021d:\n if (r6 == 0) goto L_0x0ecc;\n L_0x021f:\n r4 = 1;\n r0 = r30;\n r0.b(r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -317; // 0xfffffffffffffec3 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n r4 = 100;\n r5 = \"success\";\n r7 = 1;\n r0 = r30;\n r0.a(r4, r5, r7);\n L_0x023d:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n if (r6 == 0) goto L_0x0ee1;\n L_0x0247:\n r5 = r4.mPreferences;\n r7 = \"tbs_download_success_retrytimes\";\n r8 = 0;\n r5 = r5.getInt(r7, r8);\n r7 = r4.a;\n r8 = \"tbs_download_success_retrytimes\";\n r5 = r5 + 1;\n r5 = java.lang.Integer.valueOf(r5);\n r7.put(r8, r5);\n L_0x025f:\n r4.commit();\n r0 = r30;\n r5 = r0.v;\n if (r6 == 0) goto L_0x0f09;\n L_0x0268:\n r4 = 1;\n L_0x0269:\n r5.setDownFinalFlag(r4);\n L_0x026c:\n r30.g();\n goto L_0x0020;\n L_0x0271:\n r7 = d;\n r0 = r30;\n r0.B = r7;\n goto L_0x01c2;\n L_0x0279:\n r22 = java.lang.System.currentTimeMillis();\n if (r31 != 0) goto L_0x0385;\n L_0x027f:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.mPreferences;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_downloadstarttime\";\n r10 = 0;\n r8 = r7.getLong(r8, r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r22 - r8;\n r10 = 86400000; // 0x5265c00 float:7.82218E-36 double:4.2687272E-316;\n r7 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r7 <= 0) goto L_0x0328;\n L_0x029b:\n r7 = \"TbsDownload\";\n r8 = \"[TbsApkDownloader.startDownload] OVER DOWNLOAD_PERIOD\";\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.a;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_downloadstarttime\";\n r9 = java.lang.Long.valueOf(r22);\t Catch:{ Throwable -> 0x0570 }\n r7.put(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.a;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_downloadflow\";\n r10 = 0;\n r9 = java.lang.Long.valueOf(r10);\t Catch:{ Throwable -> 0x0570 }\n r7.put(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7.commit();\t Catch:{ Throwable -> 0x0570 }\n r4 = 0;\n L_0x02db:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.utils.j.b(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x0385;\n L_0x02e5:\n r7 = \"TbsDownload\";\n r8 = \"DownloadBegin FreeSpace too small\";\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r7 = 105; // 0x69 float:1.47E-43 double:5.2E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -308; // 0xfffffffffffffecc float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0307:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0328:\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"[TbsApkDownloader.startDownload] downloadFlow=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r4);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r7 = (r4 > r24 ? 1 : (r4 == r24 ? 0 : -1));\n if (r7 < 0) goto L_0x02db;\n L_0x0342:\n r7 = \"TbsDownload\";\n r8 = \"STEP 1/2 begin downloading...failed because you exceeded max flow!\";\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r7 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -307; // 0xfffffffffffffecd float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0364:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0385:\n r7 = 1;\n r0 = r30;\n r0.y = r7;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.j;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0519;\n L_0x0390:\n r0 = r30;\n r7 = r0.j;\t Catch:{ Throwable -> 0x0570 }\n L_0x0394:\n r8 = \"TbsDownload\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"try url:\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r7);\t Catch:{ Throwable -> 0x0570 }\n r10 = \",mRetryTimes:\";\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n r10 = 1;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.i;\t Catch:{ Throwable -> 0x0570 }\n r8 = r7.equals(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x03cb;\n L_0x03c4:\n r0 = r30;\n r8 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r8.setDownloadUrl(r7);\t Catch:{ Throwable -> 0x0570 }\n L_0x03cb:\n r0 = r30;\n r0.i = r7;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r7);\t Catch:{ Throwable -> 0x0570 }\n r12 = 0;\n r0 = r30;\n r7 = r0.o;\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x0438;\n L_0x03dc:\n r12 = r30.k();\t Catch:{ Throwable -> 0x0570 }\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"[TbsApkDownloader.startDownload] range=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r7 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r7 > 0) goto L_0x051f;\n L_0x0400:\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"STEP 1/2 begin downloading...current\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Range\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"bytes=\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r10 = \"-\";\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n r7.setRequestProperty(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n L_0x0438:\n r0 = r30;\n r8 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r7 = (r12 > r10 ? 1 : (r12 == r10 ? 0 : -1));\n if (r7 != 0) goto L_0x05e8;\n L_0x0442:\n r7 = 0;\n L_0x0443:\n r8.setDownloadCancel(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.utils.Apn.getApnType(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.utils.Apn.getApnInfo(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r9 = r0.w;\t Catch:{ Throwable -> 0x0570 }\n if (r9 != 0) goto L_0x05eb;\n L_0x045c:\n r0 = r30;\n r9 = r0.x;\t Catch:{ Throwable -> 0x0570 }\n r10 = -1;\n if (r9 != r10) goto L_0x05eb;\n L_0x0463:\n r0 = r30;\n r0.w = r8;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.x = r7;\t Catch:{ Throwable -> 0x0570 }\n L_0x046b:\n r0 = r30;\n r7 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n if (r7 <= 0) goto L_0x047f;\n L_0x0471:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Referer\";\n r0 = r30;\n r9 = r0.h;\t Catch:{ Throwable -> 0x0570 }\n r7.addRequestProperty(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n L_0x047f:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.getResponseCode();\t Catch:{ Throwable -> 0x0570 }\n r8 = \"TbsDownload\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"[TbsApkDownloader.startDownload] responseCode=\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r7);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r8.setHttpCode(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x04e3;\n L_0x04a6:\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.sdk.TbsDownloader.getOverSea(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x04e3;\n L_0x04b0:\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.utils.Apn.getApnType(r8);\t Catch:{ Throwable -> 0x0570 }\n r9 = 3;\n if (r8 == r9) goto L_0x04c1;\n L_0x04bb:\n r8 = com.tencent.smtt.sdk.QbSdk.getDownloadWithoutWifi();\t Catch:{ Throwable -> 0x0570 }\n if (r8 == 0) goto L_0x04cb;\n L_0x04c1:\n r0 = r30;\n r8 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.utils.Apn.getApnType(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x04e3;\n L_0x04cb:\n r30.c();\t Catch:{ Throwable -> 0x0570 }\n r8 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ Throwable -> 0x0570 }\n if (r8 == 0) goto L_0x04d9;\n L_0x04d2:\n r8 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ Throwable -> 0x0570 }\n r9 = 111; // 0x6f float:1.56E-43 double:5.5E-322;\n r8.onDownloadFinish(r9);\t Catch:{ Throwable -> 0x0570 }\n L_0x04d9:\n r8 = \"TbsDownload\";\n r9 = \"Download is canceled due to NOT_WIFI error!\";\n r10 = 0;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ Throwable -> 0x0570 }\n L_0x04e3:\n r0 = r30;\n r8 = r0.r;\t Catch:{ Throwable -> 0x0570 }\n if (r8 == 0) goto L_0x0632;\n L_0x04e9:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x04f8:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0519:\n r0 = r30;\n r7 = r0.h;\t Catch:{ Throwable -> 0x0570 }\n goto L_0x0394;\n L_0x051f:\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"#1 STEP 1/2 begin downloading...current/total=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r9 = \"/\";\n r8 = r8.append(r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n r9 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Range\";\n r9 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r10 = \"bytes=\";\n r9.<init>(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r10 = \"-\";\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r9 = r9.toString();\t Catch:{ Throwable -> 0x0570 }\n r7.setRequestProperty(r8, r9);\t Catch:{ Throwable -> 0x0570 }\n goto L_0x0438;\n L_0x0570:\n r7 = move-exception;\n L_0x0571:\n r8 = r7 instanceof javax.net.ssl.SSLHandshakeException;\t Catch:{ all -> 0x060d }\n if (r8 == 0) goto L_0x0e71;\n L_0x0575:\n if (r31 != 0) goto L_0x0e71;\n L_0x0577:\n r0 = r30;\n r8 = r0.b;\t Catch:{ all -> 0x060d }\n if (r8 == 0) goto L_0x0e71;\n L_0x057d:\n r8 = 0;\n r0 = r30;\n r8 = r0.a(r8);\t Catch:{ all -> 0x060d }\n if (r8 == 0) goto L_0x0e71;\n L_0x0586:\n r8 = \"TbsDownload\";\n r9 = new java.lang.StringBuilder;\t Catch:{ all -> 0x060d }\n r10 = \"[startdownload]url:\";\n r9.<init>(r10);\t Catch:{ all -> 0x060d }\n r0 = r30;\n r10 = r0.j;\t Catch:{ all -> 0x060d }\n r9 = r9.append(r10);\t Catch:{ all -> 0x060d }\n r10 = \" download exception:\";\n r9 = r9.append(r10);\t Catch:{ all -> 0x060d }\n r7 = r7.toString();\t Catch:{ all -> 0x060d }\n r7 = r9.append(r7);\t Catch:{ all -> 0x060d }\n r7 = r7.toString();\t Catch:{ all -> 0x060d }\n com.tencent.smtt.utils.TbsLog.e(r8, r7);\t Catch:{ all -> 0x060d }\n r7 = 125; // 0x7d float:1.75E-43 double:6.2E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ all -> 0x060d }\n L_0x05b8:\n r0 = r30;\n r7 = r0.g;\t Catch:{ all -> 0x060d }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ all -> 0x060d }\n r8 = -316; // 0xfffffffffffffec4 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ all -> 0x060d }\n if (r31 != 0) goto L_0x01c2;\n L_0x05c7:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x05e8:\n r7 = 1;\n goto L_0x0443;\n L_0x05eb:\n r0 = r30;\n r9 = r0.x;\t Catch:{ Throwable -> 0x0570 }\n if (r7 != r9) goto L_0x05fb;\n L_0x05f1:\n r0 = r30;\n r9 = r0.w;\t Catch:{ Throwable -> 0x0570 }\n r9 = r8.equals(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r9 != 0) goto L_0x046b;\n L_0x05fb:\n r0 = r30;\n r9 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r9.setNetworkChange(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.w = r8;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.x = r7;\t Catch:{ Throwable -> 0x0570 }\n goto L_0x046b;\n L_0x060d:\n r6 = move-exception;\n r16 = r4;\n L_0x0610:\n if (r31 != 0) goto L_0x0631;\n L_0x0612:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4 = r4.a;\n r5 = \"tbs_downloadflow\";\n r7 = java.lang.Long.valueOf(r16);\n r4.put(r5, r7);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n L_0x0631:\n throw r6;\n L_0x0632:\n r8 = 200; // 0xc8 float:2.8E-43 double:9.9E-322;\n if (r7 == r8) goto L_0x063a;\n L_0x0636:\n r8 = 206; // 0xce float:2.89E-43 double:1.02E-321;\n if (r7 != r8) goto L_0x0ba2;\n L_0x063a:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.getContentLength();\t Catch:{ Throwable -> 0x0570 }\n r8 = (long) r7;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8 + r12;\n r0 = r30;\n r0.l = r8;\t Catch:{ Throwable -> 0x0570 }\n r7 = \"TbsDownload\";\n r8 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r9 = \"[TbsApkDownloader.startDownload] mContentLength=\";\n r8.<init>(r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n com.tencent.smtt.utils.TbsLog.i(r7, r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.v;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r8 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r7.setPkgSize(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r7 = r7.mPreferences;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"tbs_apkfilesize\";\n r10 = 0;\n r8 = r7.getLong(r8, r10);\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r7 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r7 == 0) goto L_0x076e;\n L_0x0686:\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r7 = (r10 > r8 ? 1 : (r10 == r8 ? 0 : -1));\n if (r7 == 0) goto L_0x076e;\n L_0x068e:\n r7 = \"TbsDownload\";\n r10 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r11 = \"DownloadBegin tbsApkFileSize=\";\n r10.<init>(r11);\t Catch:{ Throwable -> 0x0570 }\n r10 = r10.append(r8);\t Catch:{ Throwable -> 0x0570 }\n r11 = \" but contentLength=\";\n r10 = r10.append(r11);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r12 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r10 = r10.append(r12);\t Catch:{ Throwable -> 0x0570 }\n r10 = r10.toString();\t Catch:{ Throwable -> 0x0570 }\n r11 = 1;\n com.tencent.smtt.utils.TbsLog.i(r7, r10, r11);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x0755;\n L_0x06b6:\n r7 = r30.n();\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x06cc;\n L_0x06bc:\n r7 = com.tencent.smtt.sdk.QbSdk.getDownloadWithoutWifi();\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0755;\n L_0x06c2:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.utils.Apn.isNetworkAvailable(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0755;\n L_0x06cc:\n r0 = r30;\n r7 = r0.b;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x06fe;\n L_0x06d2:\n r7 = 0;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x06fe;\n L_0x06db:\n if (r31 != 0) goto L_0x01c2;\n L_0x06dd:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x06fe:\n r7 = 113; // 0x71 float:1.58E-43 double:5.6E-322;\n r10 = new java.lang.StringBuilder;\t Catch:{ Throwable -> 0x0570 }\n r11 = \"tbsApkFileSize=\";\n r10.<init>(r11);\t Catch:{ Throwable -> 0x0570 }\n r8 = r10.append(r8);\t Catch:{ Throwable -> 0x0570 }\n r9 = \" but contentLength=\";\n r8 = r8.append(r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r10 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.append(r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = r8.toString();\t Catch:{ Throwable -> 0x0570 }\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -310; // 0xfffffffffffffeca float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n L_0x0732:\n if (r31 != 0) goto L_0x01ea;\n L_0x0734:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0755:\n r7 = 101; // 0x65 float:1.42E-43 double:5.0E-322;\n r8 = \"WifiNetworkUnAvailable\";\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -304; // 0xfffffffffffffed0 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n goto L_0x0732;\n L_0x076e:\n r10 = 0;\n r9 = 0;\n r8 = 0;\n r7 = \"TbsDownload\";\n r11 = \"[TbsApkDownloader.startDownload] begin readResponse\";\n com.tencent.smtt.utils.TbsLog.i(r7, r11);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.t;\t Catch:{ IOException -> 0x0f2f, all -> 0x0f10 }\n r19 = r7.getInputStream();\t Catch:{ IOException -> 0x0f2f, all -> 0x0f10 }\n if (r19 == 0) goto L_0x0a6e;\n L_0x0784:\n r0 = r30;\n r7 = r0.t;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r7 = r7.getContentEncoding();\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n if (r7 == 0) goto L_0x0818;\n L_0x078e:\n r9 = \"gzip\";\n r9 = r7.contains(r9);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n if (r9 == 0) goto L_0x0818;\n L_0x0797:\n r18 = new java.util.zip.GZIPInputStream;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r18.<init>(r19);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n L_0x079c:\n r7 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\n r0 = new byte[r7];\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r26 = r0;\n r20 = new java.io.FileOutputStream;\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r7 = new java.io.File;\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r0 = r30;\n r8 = r0.k;\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r9 = \"x5.tbs.temp\";\n r7.<init>(r8, r9);\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r8 = 1;\n r0 = r20;\n r0.<init>(r7, r8);\t Catch:{ IOException -> 0x0f32, all -> 0x0f24 }\n r14 = java.lang.System.currentTimeMillis();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r7 = 0;\n r8 = r12;\n r10 = r12;\n r16 = r4;\n L_0x07bf:\n r0 = r30;\n r4 = r0.r;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0891;\n L_0x07c5:\n r4 = \"TbsDownload\";\n r5 = \"STEP 1/2 begin downloading...Canceled!\";\n r8 = 1;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r8);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r16;\n L_0x07de:\n if (r7 == 0) goto L_0x0a72;\n L_0x07e0:\n r0 = r30;\n r1 = r20;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r18;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r19;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x07f7:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0818:\n if (r7 == 0) goto L_0x088d;\n L_0x081a:\n r9 = \"deflate\";\n r7 = r7.contains(r9);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n if (r7 == 0) goto L_0x088d;\n L_0x0823:\n r18 = new java.util.zip.InflaterInputStream;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r7 = new java.util.zip.Inflater;\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r9 = 1;\n r7.<init>(r9);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n r0 = r18;\n r1 = r19;\n r0.<init>(r1, r7);\t Catch:{ IOException -> 0x0834, all -> 0x0f1b }\n goto L_0x079c;\n L_0x0834:\n r7 = move-exception;\n r9 = r19;\n L_0x0837:\n r11 = r7 instanceof java.net.SocketTimeoutException;\t Catch:{ all -> 0x0b97 }\n if (r11 != 0) goto L_0x083f;\n L_0x083b:\n r11 = r7 instanceof java.net.SocketException;\t Catch:{ all -> 0x0b97 }\n if (r11 == 0) goto L_0x0abd;\n L_0x083f:\n r11 = 100000; // 0x186a0 float:1.4013E-40 double:4.94066E-319;\n r0 = r30;\n r0.m = r11;\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r12);\t Catch:{ all -> 0x0b97 }\n r11 = 103; // 0x67 float:1.44E-43 double:5.1E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r11, r7, r12);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r0.a(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x086c:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x088d:\n r18 = r19;\n goto L_0x079c;\n L_0x0891:\n r4 = 0;\n r5 = 8192; // 0x2000 float:1.14794E-41 double:4.0474E-320;\n r0 = r18;\n r1 = r26;\n r27 = r0.read(r1, r4, r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r27 > 0) goto L_0x08e6;\n L_0x089e:\n r0 = r30;\n r4 = r0.b;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x08c9;\n L_0x08a4:\n r4 = 1;\n r0 = r30;\n r1 = r21;\n r4 = r0.c(r4, r1);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 != 0) goto L_0x08c9;\n L_0x08af:\n if (r31 != 0) goto L_0x08bf;\n L_0x08b1:\n r4 = 0;\n r0 = r30;\n r4 = r0.a(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x08bf;\n L_0x08ba:\n r7 = 1;\n r4 = r16;\n goto L_0x07de;\n L_0x08bf:\n r4 = 1;\n r0 = r30;\n r0.s = r4;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r6 = 0;\n r4 = r16;\n goto L_0x07de;\n L_0x08c9:\n r4 = 1;\n r0 = r30;\n r0.s = r4;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r4 = r0.b;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x08d5;\n L_0x08d4:\n r6 = 1;\n L_0x08d5:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = -311; // 0xfffffffffffffec9 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r16;\n goto L_0x07de;\n L_0x08e6:\n r4 = 0;\n r0 = r20;\n r1 = r26;\n r2 = r27;\n r0.write(r1, r4, r2);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r20.flush();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r31 != 0) goto L_0x09bb;\n L_0x08f5:\n r0 = r27;\n r4 = (long) r0;\n r4 = r4 + r16;\n r12 = (r4 > r24 ? 1 : (r4 == r24 ? 0 : -1));\n if (r12 < 0) goto L_0x0945;\n L_0x08fe:\n r8 = \"TbsDownload\";\n r9 = \"STEP 1/2 begin downloading...failed because you exceeded max flow!\";\n r10 = 1;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = 112; // 0x70 float:1.57E-43 double:5.53E-322;\n r9 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \"downloadFlow=\";\n r9.<init>(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.append(r4);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \" downloadMaxflow=\";\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r24;\n r9 = r9.append(r0);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.toString();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = 1;\n r0 = r30;\n r0.a(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r30;\n r8 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r8);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = -307; // 0xfffffffffffffecd float:NaN double:NaN;\n r8.setDownloadInterruptCode(r9);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n goto L_0x07de;\n L_0x093c:\n r7 = move-exception;\n r8 = r18;\n r9 = r19;\n r10 = r20;\n goto L_0x0837;\n L_0x0945:\n r0 = r30;\n r12 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r12 = com.tencent.smtt.utils.j.b(r12);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n if (r12 != 0) goto L_0x09b9;\n L_0x094f:\n r8 = \"TbsDownload\";\n r9 = \"DownloadEnd FreeSpace too small \";\n r10 = 1;\n com.tencent.smtt.utils.TbsLog.i(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = 105; // 0x69 float:1.47E-43 double:5.2E-322;\n r9 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \"freespace=\";\n r9.<init>(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = com.tencent.smtt.utils.v.a();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = \",and minFreeSpace=\";\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r30;\n r10 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = r10.getDownloadMinFreeSpace();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.append(r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = r9.toString();\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r10 = 1;\n r0 = r30;\n r0.a(r8, r9, r10);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r0 = r30;\n r8 = r0.g;\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r8 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r8);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n r9 = -308; // 0xfffffffffffffecc float:NaN double:NaN;\n r8.setDownloadInterruptCode(r9);\t Catch:{ IOException -> 0x093c, all -> 0x099b }\n goto L_0x07de;\n L_0x099b:\n r7 = move-exception;\n r16 = r4;\n L_0x099e:\n r0 = r30;\n r1 = r20;\n r0.a(r1);\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n r0 = r30;\n r1 = r18;\n r0.a(r1);\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n r0 = r30;\n r1 = r19;\n r0.a(r1);\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n throw r7;\t Catch:{ Throwable -> 0x09b4, all -> 0x0f0c }\n L_0x09b4:\n r7 = move-exception;\n r4 = r16;\n goto L_0x0571;\n L_0x09b9:\n r16 = r4;\n L_0x09bb:\n r0 = r27;\n r4 = (long) r0;\n r0 = r30;\n r1 = r22;\n r22 = r0.a(r1, r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r12 = java.lang.System.currentTimeMillis();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r27;\n r4 = (long) r0;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r8 = r8 + r4;\n r4 = r12 - r14;\n r28 = 1000; // 0x3e8 float:1.401E-42 double:4.94E-321;\n r4 = (r4 > r28 ? 1 : (r4 == r28 ? 0 : -1));\n if (r4 <= 0) goto L_0x0f47;\n L_0x09d6:\n r4 = \"TbsDownload\";\n r5 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = \"#2 STEP 1/2 begin downloading...current/total=\";\n r5.<init>(r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = r5.append(r8);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = \"/\";\n r5 = r5.append(r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r14 = r0.l;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = r5.append(r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = r5.toString();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = 1;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r14);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0a10;\n L_0x0a00:\n r4 = (double) r8;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r14 = r0.l;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r14 = (double) r14;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r4 / r14;\n r14 = 4636737291354636288; // 0x4059000000000000 float:0.0 double:100.0;\n r4 = r4 * r14;\n r4 = (int) r4;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5.onDownloadProgress(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n L_0x0a10:\n if (r31 != 0) goto L_0x0f44;\n L_0x0a12:\n r4 = r8 - r10;\n r14 = 1048576; // 0x100000 float:1.469368E-39 double:5.180654E-318;\n r4 = (r4 > r14 ? 1 : (r4 == r14 ? 0 : -1));\n if (r4 <= 0) goto L_0x0f44;\n L_0x0a1b:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloader.getOverSea(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 != 0) goto L_0x0a69;\n L_0x0a25:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.utils.Apn.getApnType(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = 3;\n if (r4 == r5) goto L_0x0a36;\n L_0x0a30:\n r4 = com.tencent.smtt.sdk.QbSdk.getDownloadWithoutWifi();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0a40;\n L_0x0a36:\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.utils.Apn.getApnType(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 != 0) goto L_0x0a69;\n L_0x0a40:\n r30.c();\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n if (r4 == 0) goto L_0x0a4e;\n L_0x0a47:\n r4 = com.tencent.smtt.sdk.QbSdk.m;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = 111; // 0x6f float:1.56E-43 double:5.5E-322;\n r4.onDownloadFinish(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n L_0x0a4e:\n r4 = \"TbsDownload\";\n r5 = \"Download is paused due to NOT_WIFI error!\";\n r8 = 0;\n com.tencent.smtt.utils.TbsLog.i(r4, r5, r8);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r0 = r30;\n r4 = r0.g;\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r5 = -304; // 0xfffffffffffffed0 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\t Catch:{ IOException -> 0x0f39, all -> 0x0f2b }\n r4 = r16;\n goto L_0x07de;\n L_0x0a69:\n r4 = r8;\n L_0x0a6a:\n r14 = r12;\n r10 = r4;\n goto L_0x07bf;\n L_0x0a6e:\n r18 = r8;\n r20 = r10;\n L_0x0a72:\n r0 = r30;\n r1 = r20;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r18;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r1 = r19;\n r0.a(r1);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.s;\t Catch:{ Throwable -> 0x0570 }\n if (r7 != 0) goto L_0x0a9a;\n L_0x0a8d:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -319; // 0xfffffffffffffec1 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n L_0x0a9a:\n if (r31 != 0) goto L_0x01ea;\n L_0x0a9c:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0abd:\n if (r31 != 0) goto L_0x0b3b;\n L_0x0abf:\n r0 = r30;\n r11 = r0.g;\t Catch:{ all -> 0x0b97 }\n r11 = com.tencent.smtt.utils.j.b(r11);\t Catch:{ all -> 0x0b97 }\n if (r11 != 0) goto L_0x0b3b;\n L_0x0ac9:\n r7 = 105; // 0x69 float:1.47E-43 double:5.2E-322;\n r11 = new java.lang.StringBuilder;\t Catch:{ all -> 0x0b97 }\n r12 = \"freespace=\";\n r11.<init>(r12);\t Catch:{ all -> 0x0b97 }\n r12 = com.tencent.smtt.utils.v.a();\t Catch:{ all -> 0x0b97 }\n r11 = r11.append(r12);\t Catch:{ all -> 0x0b97 }\n r12 = \",and minFreeSpace=\";\n r11 = r11.append(r12);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r12 = r0.g;\t Catch:{ all -> 0x0b97 }\n r12 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r12);\t Catch:{ all -> 0x0b97 }\n r12 = r12.getDownloadMinFreeSpace();\t Catch:{ all -> 0x0b97 }\n r11 = r11.append(r12);\t Catch:{ all -> 0x0b97 }\n r11 = r11.toString();\t Catch:{ all -> 0x0b97 }\n r12 = 1;\n r0 = r30;\n r0.a(r7, r11, r12);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ all -> 0x0b97 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ all -> 0x0b97 }\n r11 = -308; // 0xfffffffffffffecc float:NaN double:NaN;\n r7.setDownloadInterruptCode(r11);\t Catch:{ all -> 0x0b97 }\n r0 = r30;\n r0.a(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0b1a:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0b3b:\n r12 = 0;\n r0 = r30;\n r0.a(r12);\t Catch:{ all -> 0x0b97 }\n r11 = r30.j();\t Catch:{ all -> 0x0b97 }\n if (r11 != 0) goto L_0x0b88;\n L_0x0b48:\n r11 = 106; // 0x6a float:1.49E-43 double:5.24E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r11, r7, r12);\t Catch:{ all -> 0x0b97 }\n L_0x0b56:\n r0 = r30;\n r0.a(r10);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r9);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x0b67:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0b88:\n r11 = 104; // 0x68 float:1.46E-43 double:5.14E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x0b97 }\n r12 = 0;\n r0 = r30;\n r0.a(r11, r7, r12);\t Catch:{ all -> 0x0b97 }\n goto L_0x0b56;\n L_0x0b97:\n r7 = move-exception;\n r16 = r4;\n r18 = r8;\n r19 = r9;\n r20 = r10;\n goto L_0x099e;\n L_0x0ba2:\n r8 = 300; // 0x12c float:4.2E-43 double:1.48E-321;\n if (r7 < r8) goto L_0x0c25;\n L_0x0ba6:\n r8 = 307; // 0x133 float:4.3E-43 double:1.517E-321;\n if (r7 > r8) goto L_0x0c25;\n L_0x0baa:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Location\";\n r7 = r7.getHeaderField(r8);\t Catch:{ Throwable -> 0x0570 }\n r8 = android.text.TextUtils.isEmpty(r7);\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x0bec;\n L_0x0bbb:\n r0 = r30;\n r0.j = r7;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.q;\t Catch:{ Throwable -> 0x0570 }\n r7 = r7 + 1;\n r0 = r30;\n r0.q = r7;\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x0bcb:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0bec:\n r7 = 124; // 0x7c float:1.74E-43 double:6.13E-322;\n r8 = 0;\n r9 = 1;\n r0 = r30;\n r0.a(r7, r8, r9);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -312; // 0xfffffffffffffec8 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0c04:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0c25:\n r8 = 102; // 0x66 float:1.43E-43 double:5.04E-322;\n r9 = java.lang.String.valueOf(r7);\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r0 = r30;\n r0.a(r8, r9, r10);\t Catch:{ Throwable -> 0x0570 }\n r8 = 416; // 0x1a0 float:5.83E-43 double:2.055E-321;\n if (r7 != r8) goto L_0x0ca7;\n L_0x0c35:\n r7 = 1;\n r0 = r30;\n r1 = r21;\n r7 = r0.c(r7, r1);\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0c71;\n L_0x0c40:\n r6 = 1;\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -214; // 0xffffffffffffff2a float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0c50:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0c71:\n r7 = 0;\n r0 = r30;\n r0.c(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -313; // 0xfffffffffffffec7 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0c86:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0ca7:\n r8 = 403; // 0x193 float:5.65E-43 double:1.99E-321;\n if (r7 == r8) goto L_0x0caf;\n L_0x0cab:\n r8 = 406; // 0x196 float:5.69E-43 double:2.006E-321;\n if (r7 != r8) goto L_0x0ce9;\n L_0x0caf:\n r0 = r30;\n r8 = r0.l;\t Catch:{ Throwable -> 0x0570 }\n r10 = -1;\n r8 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r8 != 0) goto L_0x0ce9;\n L_0x0cb9:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -314; // 0xfffffffffffffec6 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0cc8:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0ce9:\n r8 = 202; // 0xca float:2.83E-43 double:1.0E-321;\n if (r7 != r8) goto L_0x0d10;\n L_0x0ced:\n if (r31 != 0) goto L_0x01c2;\n L_0x0cef:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0d10:\n r0 = r30;\n r8 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r9 = r0.B;\t Catch:{ Throwable -> 0x0570 }\n if (r8 >= r9) goto L_0x0d8b;\n L_0x0d1a:\n r8 = 503; // 0x1f7 float:7.05E-43 double:2.485E-321;\n if (r7 != r8) goto L_0x0d8b;\n L_0x0d1e:\n r0 = r30;\n r7 = r0.t;\t Catch:{ Throwable -> 0x0570 }\n r8 = \"Retry-After\";\n r7 = r7.getHeaderField(r8);\t Catch:{ Throwable -> 0x0570 }\n r8 = java.lang.Long.parseLong(r7);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.r;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0d68;\n L_0x0d38:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0d47:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0d68:\n if (r31 != 0) goto L_0x01c2;\n L_0x0d6a:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0d8b:\n r0 = r30;\n r8 = r0.p;\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r9 = r0.B;\t Catch:{ Throwable -> 0x0570 }\n if (r8 >= r9) goto L_0x0e05;\n L_0x0d95:\n r8 = 408; // 0x198 float:5.72E-43 double:2.016E-321;\n if (r7 == r8) goto L_0x0da5;\n L_0x0d99:\n r8 = 504; // 0x1f8 float:7.06E-43 double:2.49E-321;\n if (r7 == r8) goto L_0x0da5;\n L_0x0d9d:\n r8 = 502; // 0x1f6 float:7.03E-43 double:2.48E-321;\n if (r7 == r8) goto L_0x0da5;\n L_0x0da1:\n r8 = 408; // 0x198 float:5.72E-43 double:2.016E-321;\n if (r7 != r8) goto L_0x0e05;\n L_0x0da5:\n r8 = 0;\n r0 = r30;\n r0.a(r8);\t Catch:{ Throwable -> 0x0570 }\n r0 = r30;\n r7 = r0.r;\t Catch:{ Throwable -> 0x0570 }\n if (r7 == 0) goto L_0x0de2;\n L_0x0db2:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0dc1:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0de2:\n if (r31 != 0) goto L_0x01c2;\n L_0x0de4:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0e05:\n r8 = r30.k();\t Catch:{ Throwable -> 0x0570 }\n r10 = 0;\n r8 = (r8 > r10 ? 1 : (r8 == r10 ? 0 : -1));\n if (r8 > 0) goto L_0x0e41;\n L_0x0e0f:\n r0 = r30;\n r8 = r0.o;\t Catch:{ Throwable -> 0x0570 }\n if (r8 != 0) goto L_0x0e41;\n L_0x0e15:\n r8 = 410; // 0x19a float:5.75E-43 double:2.026E-321;\n if (r7 == r8) goto L_0x0e41;\n L_0x0e19:\n r7 = 1;\n r0 = r30;\n r0.o = r7;\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01c2;\n L_0x0e20:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r9 = java.lang.Long.valueOf(r4);\n r7.put(r8, r9);\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7.commit();\n goto L_0x01c2;\n L_0x0e41:\n r0 = r30;\n r7 = r0.g;\t Catch:{ Throwable -> 0x0570 }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ Throwable -> 0x0570 }\n r8 = -315; // 0xfffffffffffffec5 float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ Throwable -> 0x0570 }\n if (r31 != 0) goto L_0x01ea;\n L_0x0e50:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0e71:\n r8 = 0;\n r0 = r30;\n r0.a(r8);\t Catch:{ all -> 0x060d }\n r8 = 107; // 0x6b float:1.5E-43 double:5.3E-322;\n r0 = r30;\n r7 = r0.a(r7);\t Catch:{ all -> 0x060d }\n r9 = 0;\n r0 = r30;\n r0.a(r8, r7, r9);\t Catch:{ all -> 0x060d }\n r0 = r30;\n r7 = r0.r;\t Catch:{ all -> 0x060d }\n if (r7 == 0) goto L_0x05b8;\n L_0x0e8c:\n r0 = r30;\n r7 = r0.g;\t Catch:{ all -> 0x060d }\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\t Catch:{ all -> 0x060d }\n r8 = -309; // 0xfffffffffffffecb float:NaN double:NaN;\n r7.setDownloadInterruptCode(r8);\t Catch:{ all -> 0x060d }\n if (r31 != 0) goto L_0x01ea;\n L_0x0e9b:\n r0 = r30;\n r7 = r0.g;\n r7 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r7);\n r7 = r7.a;\n r8 = \"tbs_downloadflow\";\n r4 = java.lang.Long.valueOf(r4);\n r7.put(r8, r4);\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r4.commit();\n goto L_0x01ea;\n L_0x0ebc:\n r4 = 0;\n goto L_0x020e;\n L_0x0ebf:\n r4 = 2;\n goto L_0x021a;\n L_0x0ec2:\n r0 = r30;\n r4 = r0.v;\n r5 = 0;\n r4.setPatchUpdateFlag(r5);\n goto L_0x021d;\n L_0x0ecc:\n r0 = r30;\n r4 = r0.g;\n r4 = com.tencent.smtt.sdk.TbsDownloadConfig.getInstance(r4);\n r5 = -318; // 0xfffffffffffffec2 float:NaN double:NaN;\n r4.setDownloadInterruptCode(r5);\n r4 = 0;\n r0 = r30;\n r0.c(r4);\n goto L_0x023d;\n L_0x0ee1:\n r5 = r4.mPreferences;\n r7 = \"tbs_download_failed_retrytimes\";\n r8 = 0;\n r5 = r5.getInt(r7, r8);\n r7 = r4.a;\n r8 = \"tbs_download_failed_retrytimes\";\n r5 = r5 + 1;\n r9 = java.lang.Integer.valueOf(r5);\n r7.put(r8, r9);\n r7 = r4.getDownloadFailedMaxRetrytimes();\n if (r5 != r7) goto L_0x025f;\n L_0x0eff:\n r0 = r30;\n r5 = r0.v;\n r7 = 2;\n r5.setDownloadCancel(r7);\n goto L_0x025f;\n L_0x0f09:\n r4 = 0;\n goto L_0x0269;\n L_0x0f0c:\n r4 = move-exception;\n r6 = r4;\n goto L_0x0610;\n L_0x0f10:\n r7 = move-exception;\n r16 = r4;\n r18 = r8;\n r19 = r9;\n r20 = r10;\n goto L_0x099e;\n L_0x0f1b:\n r7 = move-exception;\n r16 = r4;\n r18 = r8;\n r20 = r10;\n goto L_0x099e;\n L_0x0f24:\n r7 = move-exception;\n r16 = r4;\n r20 = r10;\n goto L_0x099e;\n L_0x0f2b:\n r4 = move-exception;\n r7 = r4;\n goto L_0x099e;\n L_0x0f2f:\n r7 = move-exception;\n goto L_0x0837;\n L_0x0f32:\n r7 = move-exception;\n r8 = r18;\n r9 = r19;\n goto L_0x0837;\n L_0x0f39:\n r7 = move-exception;\n r4 = r16;\n r8 = r18;\n r9 = r19;\n r10 = r20;\n goto L_0x0837;\n L_0x0f44:\n r4 = r10;\n goto L_0x0a6a;\n L_0x0f47:\n r12 = r14;\n r4 = r10;\n goto L_0x0a6a;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.tencent.smtt.sdk.ag.b(boolean, boolean):void\");\n }", "private void int_to_void_step( ExpressionNode nd, VMState vms ) {\n Assert.check( vms.top().at( nd ) == null ) ;\r\n \r\n // Clear the selection\r\n vms.top().setSelected( null ) ;\r\n \r\n // Get the operand value\r\n long x = getIntOperand( nd, vms, 0 ) ;\r\n \r\n // Compute the value\r\n switch( op_code ) {\r\n case SRAND :\r\n if( random == null ) random = new java.util.Random(1) ;\r\n random.setSeed( x ) ;\r\n case ASSERT :\r\n if( x== 0 ) {\r\n // Assertion tripped.\r\n // The TM will throw an error.\r\n SourceCoords sc = vms.getCurrentCoords() ;\r\n vms.getConsole().putString(\"Assertion failed at \"+sc.toString()+\"\\n\") ;\r\n vms.setEvaluationState( vms.EVALUATION_STATE_TERMINATED ) ;\r\n }\r\n break ;\r\n default: Assert.check(false) ;\r\n }\r\n/* \r\n // New datum on scratch\r\n Clc_ASTUtilities util\r\n = (Clc_ASTUtilities) vms.getProperty(\"ASTUtilities\") ;\r\n AbstractDatum d\r\n = util.scratchDatum(nd.get_type(), vms) ;\r\n \r\n vms.top().map(nd, d) ; */\r\n putVoidResult(nd, vms);\r\n }", "public boolean method_210() {\r\n return false;\r\n }", "public node cnf() { rule: anything can sit immediately below ands\n //\n System.out.println( \" should not call \" );\n System.exit( 1 );\n return null;\n }", "abstract void mo956a(boolean z);", "public abstract void mo32005dK(boolean z);", "static void jump_when_sign_not(String passed){\n\t\tif(!S)\n\t\t\tcomplete_jump_req(passed.substring(3));\n\t}", "public boolean canJump() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void effetCase() {\n\t\t\n\t}", "@Override\r\n\tpublic void carBreak() {\n\t\t\r\n\t}", "private void insertJumpAtEndOfCondition(){\n\t\tCode.loadConst(0);\n\t\tCode.put(Code.jcc + Code.eq);\n\t\t\n\t\t// save current pc and store it as jmp address\n\t\tjmpNotThen.push(Code.pc);\n\t\tCode.put2(0);\n\t\t\n\t}", "@Override\r\n\tpublic void satisfy() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "protected int handlePrevious(int position) {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic void driving() {\n\t\t\n\t}", "private void level4() {\n }", "public void set_return(int param){\r\n \r\n // setting primitive attribute tracker to true\r\n local_returnTracker =\r\n param != java.lang.Integer.MIN_VALUE;\r\n \r\n this.local_return=param;\r\n \r\n\r\n }", "@Override\r\n\tvoid poop() {\n\t\tSystem.out.println(\"stinky\");\r\n\t}", "public int logic3()\r\n\t{\r\n\t\r\n\t\tint changesMade = 0;\r\n\t\treturn changesMade;\r\n\t}", "public boolean a()\r\n/* 598: */ {\r\n/* 599:597 */ return this.k;\r\n/* 600: */ }", "public abstract void mo9806a(int i, boolean z);", "@Override\n public <A> Function1<Object, A> andThen$mcIJ$sp (Function1<Object, A> arg0)\n {\n return null;\n }", "public boolean method_218() {\r\n return false;\r\n }" ]
[ "0.6354968", "0.62372243", "0.6197124", "0.6154875", "0.6135175", "0.5924401", "0.59136486", "0.59055716", "0.5900109", "0.5855695", "0.58514315", "0.58497983", "0.583783", "0.58320373", "0.58297753", "0.5823078", "0.58097535", "0.580116", "0.5794453", "0.5792954", "0.57851505", "0.5760512", "0.57458144", "0.57322407", "0.5709575", "0.5699074", "0.5697435", "0.5682981", "0.56828314", "0.56744695", "0.5673963", "0.5664928", "0.5664897", "0.5646433", "0.5645457", "0.56217086", "0.5621318", "0.5616299", "0.5614943", "0.56103474", "0.5606707", "0.5602395", "0.55770165", "0.55680585", "0.55643255", "0.55633324", "0.55628484", "0.5556628", "0.5553464", "0.5550173", "0.5544484", "0.55436575", "0.55421984", "0.55401623", "0.5539843", "0.55385756", "0.5538513", "0.5529507", "0.55284685", "0.5528452", "0.55243254", "0.55215245", "0.55178034", "0.5517802", "0.5515552", "0.5512896", "0.5512513", "0.551012", "0.55092496", "0.55080134", "0.5500247", "0.5497504", "0.5491903", "0.54909116", "0.54873925", "0.5486527", "0.5485824", "0.5475539", "0.5475306", "0.54730964", "0.5471299", "0.54690486", "0.5468594", "0.54676646", "0.5466736", "0.54635996", "0.54609776", "0.54545915", "0.54510015", "0.5446937", "0.5439661", "0.54357934", "0.54325527", "0.54303527", "0.54290605", "0.5425814", "0.5424369", "0.5419724", "0.54159707", "0.5408866", "0.54081225" ]
0.0
-1
/ WARNING void declaration
@Override public void update(int n, int n2) { void mouseY; void mouseX; super.update((int)mouseX, (int)mouseY); float[] hsb = Color.RGBtoHSB(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), null); double difference = Math.min(95, Math.max(0, (int)(mouseX - this.getX()))); this.hueWidth = Float.intBitsToFloat(Float.floatToIntBits(0.012939732f) ^ 0x7EEB012B) * (hsb[0] * Float.intBitsToFloat(Float.floatToIntBits(0.22324012f) ^ 0x7DD0990F) / Float.intBitsToFloat(Float.floatToIntBits(0.07544195f) ^ 0x7E2E814F)); this.satWidth = Float.intBitsToFloat(Float.floatToIntBits(0.009555363f) ^ 0x7EA18E19) * (hsb[1] * Float.intBitsToFloat(Float.floatToIntBits(0.021556562f) ^ 0x7F049763) / Float.intBitsToFloat(Float.floatToIntBits(0.026331188f) ^ 0x7F63B481)); this.briWidth = Float.intBitsToFloat(Float.floatToIntBits(0.02392782f) ^ 0x7E790447) * (hsb[2] * Float.intBitsToFloat(Float.floatToIntBits(0.09763377f) ^ 0x7E73F437) / Float.intBitsToFloat(Float.floatToIntBits(0.019418718f) ^ 0x7F2B1401)); this.alphaWidth = Float.intBitsToFloat(Float.floatToIntBits(0.010174015f) ^ 0x7E9BB0E9) * ((float)this.setting.getValue().getAlpha() / Float.intBitsToFloat(Float.floatToIntBits(0.0089911735f) ^ 0x7F6C4FB7)); this.changeColor(difference, new Color(Color.HSBtoRGB((float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.15404371830294214) ^ 0x7F9477B45E21F7BFL) * Double.longBitsToDouble(Double.doubleToLongBits(0.050973544293479105) ^ 0x7FDC99345367453FL) / Double.longBitsToDouble(Double.doubleToLongBits(0.03014217321508198) ^ 0x7FE85D9700C1AF0AL)), hsb[1], hsb[2])), new Color(Color.HSBtoRGB(Float.intBitsToFloat(Float.floatToIntBits(1.8279414E38f) ^ 0x7F0984DF), hsb[1], hsb[2])), this.hueDragging); this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.1223112785883676) ^ 0x7FE88FCABD780F54L) * Double.longBitsToDouble(Double.doubleToLongBits(0.026943886254004668) ^ 0x7FED172D9927021DL) / Double.longBitsToDouble(Double.doubleToLongBits(0.05427001644334754) ^ 0x7FDD4947938E1C55L)), hsb[2])), new Color(Color.HSBtoRGB(hsb[0], Float.intBitsToFloat(Float.floatToIntBits(1.1082437E38f) ^ 0x7EA6BFFF), hsb[2])), this.saturationDragging); this.changeColor(difference, new Color(Color.HSBtoRGB(hsb[0], hsb[1], (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.12328622126775308) ^ 0x7FE84FAF90647595L) * Double.longBitsToDouble(Double.doubleToLongBits(0.09854681448488288) ^ 0x7FCFBA5D315669BFL) / Double.longBitsToDouble(Double.doubleToLongBits(0.029067112480345214) ^ 0x7FEB43C4E5F80CC0L)))), new Color(Color.HSBtoRGB(hsb[0], hsb[1], Float.intBitsToFloat(Float.floatToIntBits(3.3573391E38f) ^ 0x7F7C9400))), this.brightnessDragging); this.changeAlpha(difference, (float)(difference / Double.longBitsToDouble(Double.doubleToLongBits(0.014823398455503097) ^ 0x7FD99BBADCA7DC11L) * Double.longBitsToDouble(Double.doubleToLongBits(0.013271171619186513) ^ 0x7FE4CDEA80AC0D24L) / Double.longBitsToDouble(Double.doubleToLongBits(0.08218747250746601) ^ 0x7FDAEA3CFA8F7AADL)), this.alphaDragging); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneFlaeche() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "public void m23075a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract void mo27386d();", "void m1864a() {\r\n }", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public final void mo91715d() {\n }", "public void smell() {\n\t\t\n\t}", "void mo57277b();", "public void method_4270() {}", "public void mo44053a() {\n }", "public abstract void mo30696a();", "private void m50366E() {\n }", "public abstract void mo56925d();", "public void furyo ()\t{\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "private void ss(){\n }", "public void mo21779D() {\n }", "public abstract void mo42330e();", "public abstract void mo42331g();", "public abstract void mo102899a();", "private final void i() {\n }", "void mo41083a();", "public abstract void m15813a();", "public void mo21825b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private stendhal() {\n\t}", "public abstract void mo35054b();", "private void kk12() {\n\n\t}", "void mo28194a();", "public abstract void mo3994a();", "void mo72113b();", "public void mo21795T() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "void mo28306a();", "void mo80452a();", "public void mo21793R() {\n }", "public void mo4359a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo27464a();", "public void mo3749d() {\n }", "void mo54405a();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo21791P() {\n }", "void mo119582b();", "void mo80455b();", "public void mo21794S() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "private void sub() {\n\n\t}", "public void mo21789N() {\n }", "public void mo56167c() {\n }", "void mo84655a();", "@Override\n public void perish() {\n \n }", "public void mo2471e() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3376r() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "public void mo9137b() {\n }", "public void mo21781F() {\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 }", "void mo88521a();", "public void mo21787L() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void method(){}", "void mo41086b();", "public void mo21785J() {\n }", "void mo38026a();" ]
[ "0.72114015", "0.71405566", "0.71401", "0.7021417", "0.69780886", "0.6972193", "0.6960773", "0.69401586", "0.69401586", "0.69123584", "0.69039416", "0.68747616", "0.6874215", "0.68522483", "0.6835249", "0.6830557", "0.68150365", "0.68104607", "0.67968935", "0.67965853", "0.679537", "0.6792716", "0.67796046", "0.6776775", "0.6775711", "0.67680025", "0.67634565", "0.6762109", "0.6758278", "0.6756009", "0.67481816", "0.6738367", "0.6731588", "0.6721314", "0.67176443", "0.671043", "0.67065084", "0.6705694", "0.6702434", "0.6681549", "0.66799784", "0.66765684", "0.6667961", "0.666592", "0.6665633", "0.6659987", "0.6649683", "0.6647198", "0.66399497", "0.6639375", "0.6637081", "0.6631689", "0.6629893", "0.6624224", "0.6622723", "0.66161764", "0.6610774", "0.6602431", "0.6601196", "0.65961546", "0.65957415", "0.6590543", "0.65891594", "0.65787566", "0.65570784", "0.6553829", "0.6552855", "0.6550435", "0.65473944", "0.6547336", "0.654544", "0.6536497", "0.6534672", "0.65269655", "0.65260196", "0.652576", "0.65226996", "0.6518356", "0.6512249", "0.6510968", "0.65083987", "0.649768", "0.64932954", "0.64925736", "0.64919287", "0.64893085", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6485925", "0.6483748", "0.64826524", "0.64816594", "0.64801264", "0.6477539", "0.64773726", "0.6475095" ]
0.0
-1
/ WARNING void declaration
public void changeColor(double d, Color color, Color color2, boolean bl) { block2: { void difference; void dragging; if (dragging == false) break block2; if (difference == Double.longBitsToDouble(Double.doubleToLongBits(1.2749872908217061E308) ^ 0x7FE6B20E10D32E17L)) { void zeroColor; this.setting.setValue(new Color(zeroColor.getRed(), zeroColor.getGreen(), zeroColor.getBlue(), this.setting.getValue().getAlpha())); } else { void color3; this.setting.setValue(new Color(color3.getRed(), color3.getGreen(), color3.getBlue(), this.setting.getValue().getAlpha())); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneFlaeche() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "public void m23075a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract void mo27386d();", "void m1864a() {\r\n }", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public final void mo91715d() {\n }", "public void smell() {\n\t\t\n\t}", "void mo57277b();", "public void method_4270() {}", "public void mo44053a() {\n }", "public abstract void mo30696a();", "private void m50366E() {\n }", "public abstract void mo56925d();", "public void furyo ()\t{\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "private void ss(){\n }", "public void mo21779D() {\n }", "public abstract void mo42330e();", "public abstract void mo42331g();", "public abstract void mo102899a();", "private final void i() {\n }", "void mo41083a();", "public abstract void m15813a();", "public void mo21825b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private stendhal() {\n\t}", "public abstract void mo35054b();", "private void kk12() {\n\n\t}", "void mo28194a();", "public abstract void mo3994a();", "void mo72113b();", "public void mo21795T() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "void mo28306a();", "void mo80452a();", "public void mo21793R() {\n }", "public void mo4359a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo27464a();", "public void mo3749d() {\n }", "void mo54405a();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo21791P() {\n }", "void mo119582b();", "void mo80455b();", "public void mo21794S() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "private void sub() {\n\n\t}", "public void mo21789N() {\n }", "public void mo56167c() {\n }", "void mo84655a();", "@Override\n public void perish() {\n \n }", "public void mo2471e() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3376r() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "public void mo9137b() {\n }", "public void mo21781F() {\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 }", "void mo88521a();", "public void mo21787L() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void method(){}", "void mo41086b();", "public void mo21785J() {\n }", "void mo38026a();" ]
[ "0.72114015", "0.71405566", "0.71401", "0.7021417", "0.69780886", "0.6972193", "0.6960773", "0.69401586", "0.69401586", "0.69123584", "0.69039416", "0.68747616", "0.6874215", "0.68522483", "0.6835249", "0.6830557", "0.68150365", "0.68104607", "0.67968935", "0.67965853", "0.679537", "0.6792716", "0.67796046", "0.6776775", "0.6775711", "0.67680025", "0.67634565", "0.6762109", "0.6758278", "0.6756009", "0.67481816", "0.6738367", "0.6731588", "0.6721314", "0.67176443", "0.671043", "0.67065084", "0.6705694", "0.6702434", "0.6681549", "0.66799784", "0.66765684", "0.6667961", "0.666592", "0.6665633", "0.6659987", "0.6649683", "0.6647198", "0.66399497", "0.6639375", "0.6637081", "0.6631689", "0.6629893", "0.6624224", "0.6622723", "0.66161764", "0.6610774", "0.6602431", "0.6601196", "0.65961546", "0.65957415", "0.6590543", "0.65891594", "0.65787566", "0.65570784", "0.6553829", "0.6552855", "0.6550435", "0.65473944", "0.6547336", "0.654544", "0.6536497", "0.6534672", "0.65269655", "0.65260196", "0.652576", "0.65226996", "0.6518356", "0.6512249", "0.6510968", "0.65083987", "0.649768", "0.64932954", "0.64925736", "0.64919287", "0.64893085", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6485925", "0.6483748", "0.64826524", "0.64816594", "0.64801264", "0.6477539", "0.64773726", "0.6475095" ]
0.0
-1
/ WARNING void declaration
public void changeAlpha(double d, float f, boolean bl) { block2: { void difference; void dragging; if (dragging == false) break block2; if (difference == Double.longBitsToDouble(Double.doubleToLongBits(7.977172206938858E307) ^ 0x7FDC6651265A7509L)) { this.setting.setValue(new Color(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), 0)); } else { void alpha; this.setting.setValue(new Color(this.setting.getValue().getRed(), this.setting.getValue().getGreen(), this.setting.getValue().getBlue(), (int)(alpha * Float.intBitsToFloat(Float.floatToIntBits(0.015395311f) ^ 0x7F033C9D)))); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void berechneFlaeche() {\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public final void mo51373a() {\n }", "public void m23075a() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public abstract void mo70713b();", "public void mo38117a() {\n }", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public abstract void mo27386d();", "void m1864a() {\r\n }", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public final void mo91715d() {\n }", "public void smell() {\n\t\t\n\t}", "void mo57277b();", "public void method_4270() {}", "public void mo44053a() {\n }", "public abstract void mo30696a();", "private void m50366E() {\n }", "public abstract void mo56925d();", "public void furyo ()\t{\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "private void ss(){\n }", "public void mo21779D() {\n }", "public abstract void mo42330e();", "public abstract void mo42331g();", "public abstract void mo102899a();", "private final void i() {\n }", "void mo41083a();", "public abstract void m15813a();", "public void mo21825b() {\n }", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void mo21878t() {\n }", "public void mo115188a() {\n }", "@Override\n\tpublic void function() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo115190b() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo21782G() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "private stendhal() {\n\t}", "public abstract void mo35054b();", "private void kk12() {\n\n\t}", "void mo28194a();", "public abstract void mo3994a();", "void mo72113b();", "public void mo21795T() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "public void mo12930a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "void mo28306a();", "void mo80452a();", "public void mo21793R() {\n }", "public void mo4359a() {\n }", "public void mo21792Q() {\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public abstract void mo27464a();", "public void mo3749d() {\n }", "void mo54405a();", "@Override\n\t\t\t\tpublic void a() {\n\n\t\t\t\t}", "public void mo21791P() {\n }", "void mo119582b();", "void mo80455b();", "public void mo21794S() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@Override\n\tpublic void aaa() {\n\t\t\n\t}", "public void mo55254a() {\n }", "public void mo21877s() {\n }", "private void sub() {\n\n\t}", "public void mo21789N() {\n }", "public void mo56167c() {\n }", "void mo84655a();", "@Override\n public void perish() {\n \n }", "public void mo2471e() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3376r() {\n }", "public void mo5248a() {\n }", "@Override\n\tpublic void leti() \n\t{\n\t}", "public void mo9137b() {\n }", "public void mo21781F() {\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 }", "void mo88521a();", "public void mo21787L() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void call(Void aVoid) {\n\n }", "public void method(){}", "void mo41086b();", "public void mo21785J() {\n }", "void mo38026a();" ]
[ "0.72114015", "0.71405566", "0.71401", "0.7021417", "0.69780886", "0.6972193", "0.6960773", "0.69401586", "0.69401586", "0.69123584", "0.69039416", "0.68747616", "0.6874215", "0.68522483", "0.6835249", "0.6830557", "0.68150365", "0.68104607", "0.67968935", "0.67965853", "0.679537", "0.6792716", "0.67796046", "0.6776775", "0.6775711", "0.67680025", "0.67634565", "0.6762109", "0.6758278", "0.6756009", "0.67481816", "0.6738367", "0.6731588", "0.6721314", "0.67176443", "0.671043", "0.67065084", "0.6705694", "0.6702434", "0.6681549", "0.66799784", "0.66765684", "0.6667961", "0.666592", "0.6665633", "0.6659987", "0.6649683", "0.6647198", "0.66399497", "0.6639375", "0.6637081", "0.6631689", "0.6629893", "0.6624224", "0.6622723", "0.66161764", "0.6610774", "0.6602431", "0.6601196", "0.65961546", "0.65957415", "0.6590543", "0.65891594", "0.65787566", "0.65570784", "0.6553829", "0.6552855", "0.6550435", "0.65473944", "0.6547336", "0.654544", "0.6536497", "0.6534672", "0.65269655", "0.65260196", "0.652576", "0.65226996", "0.6518356", "0.6512249", "0.6510968", "0.65083987", "0.649768", "0.64932954", "0.64925736", "0.64919287", "0.64893085", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6486098", "0.6485925", "0.6483748", "0.64826524", "0.64816594", "0.64801264", "0.6477539", "0.64773726", "0.6475095" ]
0.0
-1
Repository for TV series.
@Repository public interface SeriesRepository extends BaseRepository<SeriesEntity, Long> { /** * Query target entity by the given imdb id. * * @param imdbId imdb id * @return optional entity */ Optional<SeriesEntity> findByImdbId(String imdbId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TickerRepository {\n}", "public Series( String t, String s, String r){\n title = t;\n studio = s;\n rating = r;\n}", "public Series (String t, String s){\n title = t;\n studio = s;\n rating = \"PG\";\n}", "public List<TVShow> getAllShows(){\n\tList<TVShow> shows = new ArrayList<>();\n\ttvShowRepo.findAll().forEach(show->shows.add(show));\n\treturn shows;\n}", "public Series () {\n super();\n this.price = RandomFill.generateNumber(5,15);\n this.listSeason = RandomFill.generateListSeason();\n }", "public interface ITVFactory {\n ITV createTV();\n}", "public interface TvSeriesListner {\n void ItemClick(TvSeason model, int pos);\n}", "@UML(identifier=\"CI_Series\", specification=ISO_19115)\npublic interface Series {\n /**\n * Name of the series, or aggregate dataset, of which the dataset is a part.\n * Returns {@code null} if none.\n *\n * @return The name of the series or aggregate dataset.\n */\n @UML(identifier=\"name\", obligation=OPTIONAL, specification=ISO_19115)\n InternationalString getName();\n\n /**\n * Information identifying the issue of the series.\n *\n * @return Information identifying the issue of the series.\n */\n @UML(identifier=\"issueIdentification\", obligation=OPTIONAL, specification=ISO_19115)\n String getIssueIdentification();\n\n /**\n * Details on which pages of the publication the article was published.\n *\n * @return Details on which pages of the publication the article was published.\n */\n @UML(identifier=\"page\", obligation=OPTIONAL, specification=ISO_19115)\n String getPage();\n}", "public List<Video> getTrendingVideos() {\n\t\tIterable<History> historyVideos = historyRepo.findAll();\r\n\t\t\r\n\t\t// each hearted video has one point\r\n\t\tIterable<Heart> heartVideos = heartRepo.findAll();\r\n\t\t\r\n\t\t// initialize points\r\n\t\tHashMap<String, Integer> points = new HashMap<String, Integer>();\r\n\t\t\r\n\t\tfor (History history : historyVideos) {\r\n\t\t\tString key = history.getHistoryKey().getVideoId();\r\n\t\t\tInteger value = points.get(key);\r\n\t\t\tif (value != null) {\r\n\t\t\t\tpoints.put(key, points.get(key) + 1);\r\n\t\t\t} else {\r\n\t\t\t points.put(key, 1); // start by one point\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor (Heart heart : heartVideos) {\r\n\t\t\tString key = heart.getVideoId();\r\n\t\t\tInteger value = points.get(key);\r\n\t\t\tif (value != null) {\r\n\t\t\t\tpoints.put(key, points.get(key) + 1);\r\n\t\t\t} else {\r\n\t\t\t points.put(key, 1); // start by one point\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// sort by points\r\n\t\tMap<String, Integer> sortedPoints = sortByValue(points);\r\n\t\t\r\n\t\t// initialize videos\r\n\t\tList<Video> trendingVideos = new ArrayList<Video>();\r\n\t\t\r\n\t\t// iterate map (first 10 items from reverse)\r\n\t\tList<String> keyList = new ArrayList<String>(sortedPoints.keySet());\r\n\t\tfor (int i = keyList.size() - 1; i > keyList.size() - 6; i--) {\r\n\t\t String key = keyList.get(i);\r\n\t\t \r\n\t\t // init video\r\n\t\t Video video = new Video();\r\n\t\t\tvideo.setId(key);\r\n\t\t\tvideo.setTitle(getTitleQuietly(key));\r\n\t\t\tvideo.setThumbnailImageUrl(\"https://i.ytimg.com/vi/\" + key + \"/maxresdefault.jpg\");\r\n\t\t\ttrendingVideos.add(video);\t\t \r\n\t\t}\r\n\t\t\r\n\t\t// return result\r\n\t\treturn trendingVideos;\r\n\t}", "@Override\r\n\tpublic Optional<TVSeriesDefinition> scrapeData(TheMovieDBSeriesSearchEntry parameter) {\n\t\ttry {\r\n\t\t\tfinal StringBuilder builder = new StringBuilder();\r\n\t\t\tScanner scanner = new Scanner(new File(\"./data/test/themoviedbtest/tvseries/tv series page.html\"));\r\n\t\t\twhile (scanner.hasNext()) {\r\n\t\t\t\tbuilder.append(scanner.nextLine());\r\n\t\t\t}\r\n\t\t\tscanner.close();\r\n\r\n\t\t\tfinal String parsing = builder.toString();\r\n\t\t\t\r\n\t\t\tDocument doc = Jsoup.parse(parsing);\r\n\t\t\tElements elements = doc.select(\"div.item-poster-card\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t} catch(Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\treturn Optional.empty();\r\n\t}", "public interface TimelineMetaStore {\n /**\n * Get timeline meta by identifier.\n * Return null if this timeline meta is not exist.\n *\n * @param identifier The identifier of timeline meta.\n *\n * @return TimelineMeta\n */\n TimelineMeta read(TimelineIdentifier identifier);\n\n /**\n * Search timeline meta by search parameter.\n * Search will throw TimelineException when index info not set in TimelineSchema.\n *\n * @param searchParameter The parameter of search, which will convert to SearchQuery.\n *\n * @return SearchResult<TimelineMeta>\n */\n SearchResult<TimelineMeta> search(SearchParameter searchParameter);\n\n /**\n * Search timeline meta by search parameter.\n * Search will throw TimelineException when index info not set in TimelineSchema.\n *\n * @param searchQuery The searchQuery of search, which is self-defined query condition.\n *\n * @return SearchResult<TimelineMeta>\n */\n SearchResult<TimelineMeta> search(SearchQuery searchQuery);\n\n /**\n * Insert a new timeline meta with properties.\n *\n * @param meta The meta of timeline.\n *\n * @return TimelineMeta\n */\n TimelineMeta insert(TimelineMeta meta);\n\n /**\n * Update existed timeline meta with new properties.\n * It will insert a new meta if the timeline meta not exist.\n *\n * @param meta the meta of timeline.\n *\n * @return TimelineMeta\n */\n TimelineMeta update(TimelineMeta meta);\n\n /**\n * Delete existed timeline meta by identifier.\n * It won't throw exception, when the timeline meta with this identifier not exist.\n *\n * @param identifier The identifier of the timeline to be delete.\n */\n void delete(TimelineIdentifier identifier);\n\n /**\n * Create the table of meta store;\n * And create the SearchIndex of timeline meta if necessary.\n */\n void prepareTables();\n\n /**\n * Drop the table of meta store.\n * And Drop the SearchIndex of timeline meta if exist.\n **/\n void dropAllTables();\n\n /**\n * Close store service.\n */\n void close();\n}", "public interface VoteRepository {\n List<Vote> searchVotes(VoteSearchCriteria searchCriteria);\n\n Vote getVoteById(int voteId);\n\n List<Vote> getActiveVotes();\n\n void saveVote(Vote vote);\n\n void deleteVote(int voteId);\n\n List<Subject> getSubjectsByVote(int voteId);\n\n void addSubjectToVote(int voteId, List<Subject> subjects);\n\n List<Vote> getVotesBySubject(int subjectId);\n\n void shutDown();\n\n int countVotes();\n}", "public Episode(String name, String year, String episodeNumber, TVSeries series) {\r\n\t\tsuper(name, year, year);\r\n\t\tthis.episodeNumber = episodeNumber;\r\n\t\tthis.series = series;\r\n\t\tsuper.setMediaType(\"EPISODE\");\r\n\t}", "public interface SpittleRepositoryCustom {\n\n List<Spittle> findRecent();\n\n List<Spittle> findRecent(int count);\n\n}", "public interface IProductDao extends IBaseDao<Product>{\n\n /**\n * 根据系列id查找该系列对应的静态页面的Url\n *\n * @param sid 系列id\n * @return 对应系列id的静态页面的Url\n */\n Series findSeriesBySid(Long sid);\n\n List<Product> findProductListBySid(Long sid);\n\n List<Product> findProductList(PageBean pageBean);\n}", "public interface StationRepository extends Repository<Station,Long> {\n}", "public interface ProductInfoRepository {\n}", "public interface IAtfMetadataSvs {\n\t/**\n\t * 注册AT工作流蓝图:CREATE or UPDATE\n\t * \n\t * @param workflowMetadata\n\t * @throws AtfException\n\t */\n\tvoid register(AtWorkflowMetadata workflowMetadata) throws AtfException;\n\n\t/**\n\t * 更新AT工作流蓝图:UPDATE\n\t * \n\t * @param workflowMetadata\n\t * @throws AtfException\n\t */\n\tvoid update(AtWorkflowMetadata workflowMetadata) throws AtfException;\n\n\t/**\n\t * \n\t * @param name\n\t * 工作流名(nickname)\n\t * @param version\n\t * 版本号\n\t * @return 指定版本或最新版本的AT工作流蓝图\n\t * @throws AtfException\n\t */\n\tAtWorkflowMetadata find(String name, Long version) throws AtfException;\n\n\t/**\n\t * \n\t * @param name\n\t * 工作流名(nickname)\n\t * @return 最新版本的AT工作流蓝图\n\t * @throws AtfException\n\t */\n\tAtWorkflowMetadata findLatest(String name) throws AtfException;\n\n\t/**\n\t * \n\t * @return AT工作流蓝图生成器\n\t */\n\tAtfMetadataBuilder getMetadataBuilder();\n}", "private void prepareSeries() {\n int[] covers = new int[]{\n R.drawable.serie1,\n R.drawable.serie2,\n R.drawable.serie3,\n R.drawable.serie4,\n R.drawable.serie5,\n R.drawable.serie6,\n R.drawable.serie7,\n R.drawable.serie8,\n R.drawable.serie9};\n HashMap<Integer, List<String>> captsBySeason = new HashMap<>();\n\n List<String> capts = new ArrayList<>();\n\n capts.add(\"LA desaparicio de WIll\");\n capts.add(\"La loca de la calle Maple\");\n capts.add(\"Todo está bien\");\n capts.add(\"EL cuerpo\");\n capts.add(\"La pulga y el acróbata\");\n capts.add(\"EL monstruo\");\n capts.add(\"La bañera\");\n capts.add(\"El otro lado\");\n capts.add(\"MADMAX\");\n capts = new ArrayList<>();\n captsBySeason.put(1,capts);\n capts.add(\"Dulce of truco, bicho raro\");\n capts.add(\"El renacuajo\");\n capts.add(\"Will, el Sabio\");\n capts.add(\"Dig Dug\");\n capts.add(\"El espia\");\n capts.add(\"La hermana perdida\");\n capts.add(\"El azotamentes\");\n capts.add(\"El portal\");\n captsBySeason.put(2,capts);\n Serie a = new Serie(\"Stranger Things\",\n 2, covers[0], captsBySeason);\n serieList.add(a);\n\n capts = new ArrayList<>();\n captsBySeason = new HashMap<>();\n capts.add(\"Days Gone Bye\");\n capts.add(\"Guts\");\n capts.add(\"Tell It to the Frogs\");\n capts.add(\"Vatos\");\n capts.add(\"Wildfire\");\n capts.add(\"TS-19\");\n captsBySeason.put(1,capts);\n capts.add(\"What Lies Ahead\");\n capts.add(\"Bloodletting\");\n capts.add(\"Save the Last One\");\n capts.add(\"Cherokee Rose\");\n capts.add(\"Chupacabra\");\n capts.add(\"Secrets\");\n capts.add(\"Pretty Much Dead Already\");\n capts.add(\"Nebraska\");\n capts.add(\"Triggerfinger\");\n capts.add(\"18 Miles Out\");\n capts.add(\"Judge, Jury, Executioner\");\n capts.add(\"Better Angels\");\n capts.add(\"Beside the Dying Fire\");\n captsBySeason.put(2,capts);\n a = new Serie(\"The Walking Dead\", 9, covers[1],captsBySeason);\n serieList.add(a);\n\n a = new Serie(\"The Big Bang Theory 5\", 12, covers[2],captsBySeason);\n serieList.add(a);\n\n a = new Serie(\"Lucifer\", 4, covers[3],captsBySeason);\n serieList.add(a);\n\n a = new Serie(\"Daredevil\", 3, covers[4],captsBySeason);\n serieList.add(a);\n\n a = new Serie(\"Game of thrones\", 8, covers[5],captsBySeason);\n serieList.add(a);\n\n a = new Serie(\"La Casa de las Flores\",1, covers[6],captsBySeason);\n serieList.add(a);\n\n a = new Serie(\"Orange is the new Black\", 6, covers[7],captsBySeason);\n serieList.add(a);\n\n a = new Serie(\"House of Cards\", 6, covers[8],captsBySeason);\n serieList.add(a);\n\n\n adapter.notifyDataSetChanged();\n }", "public boolean addToSeries(TvEpisode episode, TvSeries series) throws NullPointerException;", "public Repository (Application application, Activity activity){\n VideoDatabase database=VideoDatabase.getInstance(application);\n myDAO=database.myDAO();\n allChapters=myDAO.getAllChapter();\n allLecture=myDAO.getAllLecture();\n this.activity=activity;\n //allChapterJson=myDAO.getAllChapterJson();\n //allLectureJson=myDAO.getAllLectureJson();\n }", "LiveStockDatabase(LiveStock liveStock){\r\n\t\tthis.liveStock = liveStock;\r\n\t}", "@RequestMapping(\"/series/{id}\")\n public ApiWrapperSingle<ApiVideoDTO> getSeriesById(@ModelAttribute(\"options\") OptionsIndexVideo options) {\n ApiWrapperSingle<ApiVideoDTO> wrapper = new ApiWrapperSingle<>();\n // Set the type to movie\n options.setType(\"SERIES\");\n wrapper.setOptions(options);\n\n if (options.getId() > 0L) {\n LOG.info(\"Getting series with ID '{}'\", options.getId());\n jsonApi.getSingleVideo(wrapper);\n }\n wrapper.setStatusCheck();\n return wrapper;\n }", "public interface Series {\n int getNext();\n void reset();\n void setStart(int x);\n\n\n}", "public SeriesModel(String title, LinkedHashMap<String, Episode> episodes) {\n\t\tsuper(title, episodes);\n\t}", "public interface SeasonRepository extends PagingAndSortingRepository<Season, Long> {\n public Season findByYear (int year);\n public Season findByNameContaining (String name);\n}", "public interface VideoRepository extends JpaRepository<VideoPO, Integer> {\n\n public VideoPO findByVideoName(String videoName);\n\n public List<VideoPO> findByChapterId(Integer userId);\n public List<VideoPO> findByCourseId(Integer courseId);\n}", "public interface TerminalHistoryService\n{\n Iterable<TerminalHistory> listAllTerminalHistory();\n\n TerminalHistory getTerminalHistoryById(Integer id);\n\n TerminalHistory saveTerminalHistory(TerminalHistory location);\n\n void deleteTerminalHistory(Integer id);\n}", "public interface Sticker {\n\n /**\n * Returns sticker content.\n * @return the sticker content.\n */\n public String getContent();\n\n /**\n * Sets sticker content.\n * @param content the new content.\n */\n public void setContent(String content);\n\n /**\n * Returns sticker author token.\n * @return the author token.\n */\n public String getAuthor();\n\n /**\n * Returns number of sticker votes.\n * @return the number of votes.\n */\n public Integer getVotes();\n\n /**\n * Adds user token to list of users who voted for this sticker.\n * @see pl.com.tegess.RetrospectionSystem.model.users.User\n *\n * @param token the user token.\n */\n public void addVote(String token);\n\n /**\n * Removes user token from list of users who voted for this sticker.\n * @see pl.com.tegess.RetrospectionSystem.model.users.User\n *\n * @param token the user token.\n */\n public void removeVote(String token);\n\n /**\n * Sets votes number.\n * @param votes the votes number.\n */\n public void setVotes(Integer votes);\n\n /**\n * Returns true if sticker is instance of StickerComposite.\n * Returns false if sticker is instance of StickerLeaf.\n * @see StickerComposite\n * @see StickerLeaf\n *\n * @return true or false.\n */\n public boolean isComposite();\n\n /**\n * Returns short content of sticker. Short content means 20 chars and '...' at the end.\n *\n * @return the short content.\n */\n public String getShortContent();\n\n /**\n * Returns true if user voted for this token. False if user didn't vote for\n * this token.\n * @see pl.com.tegess.RetrospectionSystem.model.users.User\n *\n * @param token the user token.\n * @return true or false.\n */\n public boolean containsVoteFrom(String token);\n\n /**\n * Returns sticker id.\n * @return the sticker id.\n */\n public Integer getId();\n\n}", "public interface VideoEngine {\n\n /**\n * The abstract methods below are declared as void methods with no parameters. You need to\n * expand each declaration to specify a return type and parameters, as necessary. You also need\n * to include a detailed comment for each abstract method describing its effect, its return\n * value, any corner cases that the client may need to consider, any exceptions the method may\n * throw (including a description of the circumstances under which this will happen), and so on.\n * You should include enough details that a client could use this data structure without ever\n * being surprised or not knowing what will happen, even though they haven't read the\n * implementation.\n */\n\n /**\n * Adds a new video to the system library, avoiding duplicates.\n *\n * <p>If newVideo is not null, the system does not contain newVideo, and this\n * system has available capacity, then addVideo modifies the library so that it contains\n * newVideo. All other videos remain unmodified.\n *\n * <p>If newVideo is null, then addVideo throws NullPointerException without\n * modifying the library.\n *\n * <p>If this library already contains newVideo, then\n * addVideo returns false without modifying the library.\n *\n * @param newVideo The new video to be added to the library\n * @return true if the addition is successful; false if the video already is in the library\n * @throws NullPointerException if the video is null\n */\n public boolean addVideo(Video newVideo)throws NullPointerException;\n\n /**\n * Removes an existing video from the system library.\n *\n * <p>If the system contains video, removeVideo will modify the system so that it no\n * longer contains video. All other videos remain unmodified.\n *\n * <p>If this set does not contain video, removeVideo will return false without\n * modifying the system. If video is null, then remove throws NullPointerException\n * without modifying the library.\n *\n * @param video The video in the system to be removed\n * @return true if the removal was successful; false if the video was not removed or\n * the system does not contain video\n * @throws NullPointerException if video is null\n */\n public boolean removeVideo(Video video)throws NullPointerException;\n\n /**\n * Adds an existing television episode to an existing television series.\n *\n * <p>If the system contains episode and series, addToSeries will add episode to the\n * series. The rest of the system is unmodified. If series already contains episode,\n * addToSeries will return false without modifying the system.\n *\n * <p>If the system does not contain episode and or series, addToSeries will return false without\n * mofifying the system. The episode and series must already exist in the system\n *\n * <p>If series and or episode is null, addToSeries will throw NullPointerException\n *\n * @param episode The TvEpisode to add to the existing series\n * @param series The Tvseries which the TvEpisode is added to\n * @return true if episode was added to series or if the series already contains the episode;\n * false if the series and or the episode do not exist, Or if the episode is already in the series.\n * @throws NullPointerException if the series is null, the episode is null, or both the series and the episode are null\n */\n public boolean addToSeries(TvEpisode episode, TvSeries series) throws NullPointerException;\n\n /**\n * Removes a television episode from a television series.\n *\n * <p>If the system contains series, series contains episode, and neither are null,\n * removeFromSeries will remove episode from series.\n *\n * <p>If series and or episode are null, removeFromSeries will throw NullPointerException\n *\n * <p>If series does not contain episode or the system does not contain series, the\n * removeFromSeries will return false\n *\n * @param episode The episode to be removed from series\n * @param series The series containing the episode to be removed\n * @return true if the episode was successfully removed from the series;\n * false if the series does not contain episode, the system does not contain series, the system\n * does not contain the episode.\n * @throws NullPointerException If episode and or series is null\n */\n public boolean removeFromSeries(TvEpisode episode, TvSeries series) throws NullPointerException;\n\n /**\n * Sets a user's rating for a video, as a number of stars from 1 to 5.\n *\n * <p>If the user has already rated the video, rateVideo throws IllegalArgumentException\n *\n * <p> If any parameter going into rateVideo is null, rateVideo throws\n * NullPointerException\n *\n * <p> If numStars is outside of the range of integer set {1,2,3,4,5}, rateVideo\n * throws IllegalArgumentException\n *\n * @param numStars The integer quantity of stars given to rate the video\n * @param theUser The user who creates the rating\n * @param theVideo The video that recieves the rating\n * @throws NullPointerException If any numStars, theUser, or theVideo are null\n * @throws IllegalArgumentException If the user has already rated the video, the number of stars is\n * not an integer from (inclusive) 1 to 5 (inclusive).\n */\n public void rateVideo(int numStars, User theUser, Video theVideo) throws NullPointerException, IllegalArgumentException;\n\n /**\n * Clears a user's rating on a video.\n *\n * <p>If this user has rated this video and the rating has not\n * already been cleared, then the rating is cleared and the state will appear as if the rating\n * was never made.\n *\n * <p>If there is an existing rating and the user and the video are not null, clearRating will\n * remove the rating and return true\n *\n * <p>If this user has not rated this video, or if the rating has already been\n * cleared, then this method will throw an IllegalArgumentException.\n *\n * @param theUser user whose rating should be cleared\n * @param theVideo video from which the user's rating should be cleared\n * @return true if the rating was successfully cleared; false otherwise\n * @throws IllegalArgumentException if the user does not currently have a rating on record for the video\n * @throws NullPointerException if either the user or the video is null\n */\n public boolean clearRating(User theUser, Video theVideo) throws IllegalArgumentException, NullPointerException;\n\n /**\n * Predicts the rating a user will assign to a video that they have not yet rated, as a number\n * of stars from 1 to 5. Uses user behavior and interests (previously watched videos and ratings)\n * to predict the rating of an unrated or unwatched video. In the case that the user has no behavior,\n * predictRating will return the average rating for the video from all other users.\n *\n * <p>If the user has no pre-existing behaivor, then the video's rating will be determined by the\n * other users' ratings for that video. predictRating will return the average rating for theVideo\n *\n * <p>If user is null, the video is null, predictRating will return NullPointerException\n *\n * <p>If the video or the user cannot be found in the system, predictRating will return null\n *\n * <p>If theUser has no existing behavior and the video has no average rating, predictRating will return null\n *\n * @param theUser the user that the rating prediction is to be performed with.\n * @param theVideo the video that rating should be predicted.\n * @return prediction, the integer value between 1 and 5 that represents the number of stars for\n * the rating prediction; null if no user behavior and average video rating exist or if theUser\n * or theVideo does not exist\n * @throws NullPointerException theUser and or theVideo is null\n */\n public int predictRating(User theUser, Video theVideo) throws NullPointerException;\n\n /**\n * Suggests a video for a user based on their predicted ratings and ratings.\n *\n * <p>If the user has no predicted ratings or previously watched and rated videos, suggestVideo will\n * return popular videos among other users.\n *\n * <p>If there are no popular videos among other users and the user has no predicted ratings, suggestVideo will\n * return null\n *\n * <p>If theUser is null, suggestVideo will throw NullPointerException\n *\n * @param theUser the user to reccomend a video to\n * @return reccomendedVideo, the Video that is reccomended based on their predicted ratings if successful; null if\n * there are no popular videos among other users and theUser has no predictedRatings\n * @throws NullPointerException if theUser is null\n */\n public Video suggestVideo(User theUser) throws NullPointerException;\n\n\n}", "public interface RepoPrestamos {\n\n public List<Prestamo> getPrestamosPendientes();\n public Prestamo getPrestamo(Long id);\n public void addPrestamo(Prestamo prestamo);\n public void removePrestamo(Prestamo prestamo);\n public void updatePrestamo(Prestamo prestamo);\n\n}", "public Series(String title, String description, int duration, Distributor distributor, String[] country, double score, Date productionDate, String type, String[] actors, double price, ArrayList<Season> listSeason) {\n super(title, description, duration, distributor, country, score, productionDate, type, actors);\n this.price = price;\n this.listSeason = listSeason;\n }", "public interface VideoService {\n /**\n * 查询一个video\n *\n * @param id\n * @return\n * @throws Exception\n */\n Video findVideoById(Integer id) throws Exception;\n\n /**\n * 保存一个video\n *\n * @param video\n * @throws Exception\n */\n void saveVideo(Video video) throws Exception;\n\n /**\n * 更新一个video\n *\n * @param video\n * @throws Exception\n */\n void updateVideo(Video video) throws Exception;\n\n /**\n * 查询所有video\n *\n * @return\n * @throws Exception\n */\n List<Video> findAllVideo() throws Exception;\n\n /**\n * 通过id删除\n *\n * @throws Exception\n */\n void deleteVideoById(Integer id) throws Exception;\n\n /**\n * 查找所有的video总数\n *\n * @return\n * @throws Exception\n */\n int findCountVideo() throws Exception;\n\n /**\n * 查询一个video\n *\n * @return\n * @throws Exception\n */\n Video queryVideoService() throws Exception;\n}", "public interface VocabularyRepository {\n Single<List<VocabularyEntity>> getAllVocabularies();\n Completable putVocabulary(VocabularyEntity vocabulary);\n Single<VocabularyEntity> getVocabulary(Long vocabularyId);\n Single<Boolean> isVocabularyExists(String title);\n Single<RunResultEntity> getLastRunResultFor(Long vocabularyId);\n\n}", "private static StringBuilder generateSqlForSeries(IndexParams params) {\n \n StringBuilder sbSQL = new StringBuilder(\"SELECT ser.id\");\n sbSQL.append(SQL_COMMA_SPACE_QUOTE).append(SERIES).append(SQL_AS_VIDEO_TYPE);\n sbSQL.append(\", ser.title, ser.title_original AS originalTitle, ser.title_sort AS sortTitle\");\n sbSQL.append(\", ser.start_year AS videoYear, null as releaseDate\");\n sbSQL.append(\", ser.id AS seriesId, null AS seasonId, null AS season, -1 AS episode\");\n\t\tif (!params.getLibrary_item()) { sbSQL.append(\", null AS library_base \");}\n sbSQL.append(\", (SELECT min(vid.watched) from videodata vid,season sea where vid.season_id=sea.id and sea.series_id=ser.id) as watched\");\n sbSQL.append(\", ser.create_timestamp as createTimestamp \");\n sbSQL.append(DataItemTools.addSqlDataItems(params.getDataItems(), \"ser\"));\n\n if (params.checkNewest()) {\n String source = params.getNewestSource();\n if (LITERAL_CREATION.equalsIgnoreCase(source)) {\n sbSQL.append(\", ser.create_timestamp AS newest\");\n } else if (LITERAL_LASTSCAN.equalsIgnoreCase(source)) {\n sbSQL.append(\", ser.last_scanned AS newest\");\n } else {\n params.addParameter(LITERAL_EXTRA, Boolean.FALSE);\n\n sbSQL.append(\", (SELECT MAX(sf.file_date) FROM stage_file sf \");\n sbSQL.append(\"JOIN mediafile mf ON mf.id=sf.mediafile_id JOIN mediafile_videodata mv ON mv.mediafile_id=mf.id \");\n sbSQL.append(\"JOIN videodata vd ON mv.videodata_id=vd.id JOIN season sea ON sea.id=vd.season_id \");\n sbSQL.append(\"WHERE sea.series_id=ser.id AND sf.file_type\");\n sbSQL.append(SQL_SELECTABLE_VIDEOS);\n sbSQL.append(\"AND sf.status\");\n sbSQL.append(SQL_IGNORE_STATUS_SET);\n sbSQL.append(\"AND mf.extra=:extra) as newest \");\n }\n }\n\t\tif (params.getLibrary_item()) {\n\t\t\tsbSQL.append(\" ,l.base_directory as library_base from series_libraries sl join library l on l.id = sl.library_id join series ser on ser.id = sl.series_id WHERE 1=1\");\n }\n\t\telse {sbSQL.append(\" FROM series ser WHERE 1=1\");}\n \n\n if (params.getId() > 0L) {\n sbSQL.append(\" AND ser.id=\").append(params.getId());\n }\n\n if (params.includeYear()) {\n sbSQL.append(\" AND ser.start_year=\").append(params.getYear());\n } else if (params.excludeYear()) {\n sbSQL.append(\" AND ser.start_year!=\").append(params.getYear());\n }\n if (params.getYearStart() > 0) {\n sbSQL.append(\" AND ser.start_year>=\").append(params.getYearStart());\n }\n if (params.getYearEnd() > 0) {\n sbSQL.append(\" AND ser.start_year<=\").append(params.getYearEnd());\n }\n\n if (params.getWatched() != null) {\n sbSQL.append(\" AND exists\");\n sbSQL.append(\" (SELECT 1 FROM videodata v,season sea WHERE v.watched=\" );\n sbSQL.append(params.getWatched().booleanValue() ? \"1\" : \"0\");\n sbSQL.append(\" AND v.season_id=sea.id and sea.series_id=ser.id)\");\n }\n\n // check genre inclusion/exclusion\n includeOrExcludeGenre(SERIES, params, sbSQL);\n\n // check studio inclusion/exclusion\n includeOrExcludeStudio(SERIES, params, sbSQL);\n\t\t\n\t\t// check library inclusion/exclusion\n includeOrExcludeLibrary(SERIES, params, sbSQL);\n\n // check country inclusion/exclusion\n includeOrExcludeCountry(SERIES, params, sbSQL);\n\n // check certification inclusion/exclusion\n includeOrExcludeCertification(SERIES, params, sbSQL);\n\n // check award inclusion/exclusion\n includeOrExcludeAward(SERIES, params, sbSQL);\n\n // check video source inclusion/exclusion\n includeOrExcludeVideoSource(SERIES, params, sbSQL);\n\n // check resolution inclusion/exclusion\n includeOrExcludeResolution(SERIES, params, sbSQL);\n\n // check rating inclusion/exclusion\n includeOrExcludeRating(SERIES, params, sbSQL);\n\n // check boxed set inclusion/exclusion\n includeOrExcludeBoxedSet(SERIES, params, sbSQL);\n\n // check newest\n final String newestSource = params.getNewestSource();\n if (newestSource != null) {\n Date newestDate = params.getNewestDate();\n params.addParameter(LITERAL_NEWEST_DATE, newestDate);\n\n if (LITERAL_CREATION.equalsIgnoreCase(newestSource)) {\n if (params.includeNewest()) {\n sbSQL.append(\" AND ser.create_timestamp >= :newestDate\");\n } else {\n sbSQL.append(\" AND ser.create_timestamp < :newestDate\");\n }\n } else if (LITERAL_LASTSCAN.equalsIgnoreCase(newestSource)) {\n if (params.includeNewest()) {\n sbSQL.append(\" AND (ser.last_scanned is null or ser.last_scanned >= :newestDate)\");\n } else {\n sbSQL.append(\" AND ser.last_scanned is not null AND ser.last_scanned < :newestDate\");\n }\n } else {\n params.addParameter(LITERAL_EXTRA, Boolean.FALSE);\n \n addExistsOrNot(params.includeNewest(), sbSQL);\n sbSQL.append(\"SELECT 1 FROM stage_file sf JOIN mediafile mf ON mf.id=sf.mediafile_id \");\n sbSQL.append(\"JOIN mediafile_videodata mv ON mv.mediafile_id=mf.id JOIN videodata vd ON mv.videodata_id=vd.id \");\n sbSQL.append(\"JOIN season sea ON sea.id=vd.season_id WHERE sea.series_id=ser.id \");\n sbSQL.append(\"AND sf.file_type\");\n sbSQL.append(SQL_SELECTABLE_VIDEOS);\n sbSQL.append(\"AND sf.status\");\n sbSQL.append(SQL_IGNORE_STATUS_SET);\n sbSQL.append(\"AND mf.extra=:extra \");\n sbSQL.append(\"AND sf.file_date >= :newestDate)\");\n }\n }\n\n // add the search string, this will be empty if there is no search required\n return sbSQL.append(params.getSearchString(false));\n }", "public interface PanelRepository extends JpaRepository<Panel, Long> {\n\n /**\n * Finds a {@link Panel} by the given serial.\n *\n * @param serial The serial\n * @return {@link Panel}\n */\n Panel findBySerial(String serial);\n}", "@Override\n public MovieListing getMovies() {\n // inventory.whatsAvailable()\n // inventory.whatIsUnavailable();\n return movieRepo.getMovies();\n }", "@Override\n\tpublic List<TvShow> findAll() throws SystemException {\n\t\treturn findAll(QueryUtil.ALL_POS, QueryUtil.ALL_POS, null);\n\t}", "public interface ITopicsRepository {\n\n @NonNull\n LiveData<List<Topic>> getTopics();\n\n void updateTopic(@NonNull Topic topic);\n\n void createTopic(@NonNull String text);\n\n}", "public interface TMDbService {\n\n public static final String BASE_URL = \"http://api.themoviedb.org/\";\n\n //https://api.themoviedb.org/3/movie/popular?api_key=<<api_key>>&language=en-US&page=1\n @GET(\"3/movie/{category}\")\n Call<MovieResultSet> getMoviesList(@Path(\"category\") @MovieFilterDescriptor.MovieFilterDef String category, @Query(\"api_key\") String apiKey, @Query(\"language\")String language, @Query(\"page\") int page);\n\n //https://api.themoviedb.org/3/movie/328111?api_key=<<api_key>>&language=en-U\n @GET(\"3/movie/{movie_id}\")\n Call<DetailedMovie> getMovieDetail(@Path(\"movie_id\") int movieId, @Query(\"api_key\") String apiKey, @Query(\"language\")String language);\n\n //https://api.themoviedb.org/3/movie/{movie_id}/videos?api_key=<<api_key>>&language=en-US\n @GET(\"3/movie/{movie_id}/videos\")\n Call<VideoResultSet> getMovieVideos(@Path(\"movie_id\") int movieId, @Query(\"api_key\") String apiKey, @Query(\"language\")String language);\n\n //https://api.themoviedb.org/3/movie/{movie_id}/reviews?api_key=<<api_key>>&language=en-US&page=1\n @GET(\"3/movie/{movie_id}/reviews\")\n Call<ReviewResultSet> getMovieReviews(@Path(\"movie_id\") int movieId, @Query(\"api_key\") String apiKey, @Query(\"language\")String language, @Query(\"page\") int page);\n\n}", "public interface Repository {\n\n }", "public interface Repository {\n\n }", "public interface Repository {}", "public interface RepoDataView {\n}", "public interface Repository {\n public void addPrg(PrgState prg);\n public List<PrgState> getAll();\n public void setAll(List<PrgState> _newPrgs);\n public void removeCurrent();\n public void logPrgStateExec() throws FileNotFoundException, UnsupportedEncodingException;\n public void logPrgStateExec(PrgState p) throws FileNotFoundException;\n public void serialize(PrgState prgState,String fname);\n public PrgState deserialize(String fname);\n PrgState getCurrent();\n}", "public interface ChartRepository {\n public List<Map<String, Object>> getItems(String sql);\n public List<Map<String, Object>> getItems(String sql, Date target);\n\n public List<Object> getItemsForSnowCover(String sql);\n public List<Object> getItemsForSnowCover(String sql, Date target);\n}", "public Episode(){\n \n }", "public interface WeatherDayRepository {\n List<WeatherDay> getWeatherDays();\n}", "public interface EventRepositoryService {\n\n EventDeploymentBuilder createDeployment();\n\n void deleteDeployment(String deploymentId);\n\n EventDefinitionQuery createEventDefinitionQuery();\n \n ChannelDefinitionQuery createChannelDefinitionQuery();\n\n /**\n * Changes the category of a deployment.\n * \n * @param deploymentId\n * The id of the deployment of which the category will be changed.\n * @param category\n * The new category.\n */\n void setDeploymentCategory(String deploymentId, String category);\n\n /**\n * Changes the tenant id of a deployment.\n * \n * @param deploymentId\n * The id of the deployment of which the tenant identifier will be changed.\n * @param newTenantId\n * The new tenant identifier.\n */\n void setDeploymentTenantId(String deploymentId, String newTenantId);\n \n /**\n * Changes the parent deployment id of a deployment. This is used to move deployments to a different app deployment parent.\n * \n * @param deploymentId\n * The id of the deployment of which the parent deployment identifier will be changed.\n * @param newParentDeploymentId\n * The new parent deployment identifier.\n */\n void changeDeploymentParentDeploymentId(String deploymentId, String newParentDeploymentId);\n\n List<String> getDeploymentResourceNames(String deploymentId);\n\n InputStream getResourceAsStream(String deploymentId, String resourceName);\n\n EventDeploymentQuery createDeploymentQuery();\n\n EventDefinition getEventDefinition(String eventDefinitionId);\n\n InputStream getEventDefinitionResource(String eventDefinitionId);\n\n void setEventDefinitionCategory(String eventDefinitionId, String category);\n \n ChannelDefinition getChannelDefinition(String channelDefinitionId);\n\n InputStream getChannelDefinitionResource(String channelDefinitionId);\n\n void setChannelDefinitionCategory(String channelDefinitionId, String category);\n \n EventModel getEventModelById(String eventDefinitionId);\n\n EventModel getEventModelByKey(String eventDefinitionKey);\n \n EventModel getEventModelByKey(String eventDefinitionKey, String tenantId);\n\n EventModel getEventModelByKeyAndParentDeploymentId(String eventDefinitionKey, String parentDeploymentId);\n\n EventModel getEventModelByKeyAndParentDeploymentId(String eventDefinitionKey, String parentDeploymentId, String tenantId);\n \n ChannelModel getChannelModelById(String channelDefinitionId);\n\n ChannelModel getChannelModelByKey(String channelDefinitionKey);\n \n ChannelModel getChannelModelByKey(String channelDefinitionKey, String tenantId);\n\n ChannelModel getChannelModelByKeyAndParentDeploymentId(String channelDefinitionKey, String parentDeploymentId);\n\n ChannelModel getChannelModelByKeyAndParentDeploymentId(String channelDefinitionKey, String parentDeploymentId, String tenantId);\n \n /**\n * Programmatically build and register a new {@link EventModel}.\n */\n EventModelBuilder createEventModelBuilder();\n \n InboundChannelModelBuilder createInboundChannelModelBuilder();\n \n OutboundChannelModelBuilder createOutboundChannelModelBuilder();\n}", "public interface MetaRepository extends JpaRepository<T_metas, Integer> {\n\n}", "default List<SearchResult> search(String tvShowName, int season, int episode, Quality quality) {\n return search(new SearchQuery(tvShowName, season, episode, quality));\n }", "@Repository\npublic interface MovieRepository extends ElasticsearchRepository<Movie, Long> {\n\n List<Movie> findByName(String name);\n List<Movie> findByRatingBetween(Double start, Double end);\n List<Movie> findByDirector(Director director);\n}", "@Repository\npublic interface DynamoDBRepository {\n\n public void createSongTable();\n\n public void createArtistTable();\n\n public void populateSongs();\n\n public String populateSongs(String name, String spotifyId);\n\n public void populateArtists(String[][] artists);\n\n public void populateSongs(String filename);\n\n}", "public Series()\n {\n super();\n }", "public interface INewsInfoRepository {\n}", "public interface TweetRepository {\n void subscribeTweets(TweetStreamSubscriber tweetStreamSubscriber, String filter, boolean isNetworkAvailable);\n\n void unsusbscribeTweets(TweetStreamSubscriber tweetStreamListener);\n\n void tweets(TweetStreamSubscriber tweetStreamSubscriber);\n\n void removeOldTweets();\n\n void setTweetLifeSpan(long lifeSpan);\n\n void removeTweets();\n}", "public interface IEventoRepository extends IRepositoryBase<Evento> {\n}", "ArrayList<Serie> getSeries(){\n\n Uri builtUri = Uri.parse(seriesURL)\n .buildUpon()\n .build();\n String url = builtUri.toString();\n\n return doCallSerie(url);\n }", "public interface RailWayStationDao extends GenericDao<RailWayStation>{\n /**\n * Gets RailWayStation by name.\n *\n * @param title String.\n * @return RailWayStation.\n */\n RailWayStation getStationByTitle(String title);\n}", "public interface IRevisionRepository extends IAdaptable, IWorkbookComponent {\n\n /**\n * Gets the revision manager with corresponding resource ID. If no revision\n * manager is related to the specified resource ID, a new one will be\n * created with the specified content type.\n * \n * @param resourceId\n * the ID of the resource\n * @param contentType\n * the content type of the resource, see {@link IRevision} for\n * all available content types\n * @return the corresponding revision manager with the specified resource ID\n * @see IRevision\n * @see IRevisionManager\n */\n IRevisionManager getRevisionManager(String resourceId, String contentType);\n\n}", "public interface MetroSearchRepository extends ElasticsearchRepository<Metro, Long> {\n}", "public interface WidgetRepository {\n\n /**\n * Finds widget by it's id.\n *\n * @param id widget identifier.\n * @return found widget or {@link Optional#empty()} if widget with specified id was not found.\n */\n Optional<Widget> findById(final String id);\n\n /**\n * Saves specified widget in repository.\n *\n * @param widget widget to be saved in repository.\n */\n void save(final Widget widget);\n\n /**\n * Deletes widget with specified identifier.\n * If widget with specified id does not exist - do nothing.\n *\n * @param id identifier of a widget to be removed.\n */\n void deleteById(final String id);\n\n /**\n * Gets all widget from repository.\n *\n * @return list of all widgets in repository.\n */\n List<Widget> findAll();\n}", "public interface VedioDao {\n void addVedio(Vedio vedio);\n\n void deleteVedio(Vedio news);\n\n int findCountVedioByCondition(int typeId, String vedioKey);\n\n List<Vedio> findVedioByCondition(int begin, int pageCount, int typeId, String vedioKey);\n\n void deleteMoreVedio(String[] checkVedioIDs);\n \n Vedio find(int vedio_id);\n}", "public interface RecipeListRepository {\n void getSavedRecipes();\n void updateRecipe(Recipe recipe);\n void removeRecipe(Recipe recipe);\n void getFavoriteRecipes();\n}", "public ReviewRepository() {\n Review vrGameOne = new Review(1L, \"BeatSaber\", \"/images/BeatSaber-photo1.jpg\",\n \"/images/BeatSaber-photo2.jpg\", \"Fitness/Rhythm\",\n \"This game is so much fun! It also gives you a great workout if you play on Expert Plus mode.\",\n \"May 1, 2018\", \"Beat Saber is a virtual reality rhythm game where the player slices \" +\n \"blocks representing musical beats with a pair of sabers.\");\n Review vrGameTwo = new Review(2L, \"The Room\", \"/images/the-room-photo1.jpg\",\n \"/images/the-room-photo2.jpg\", \"Puzzle/Adventure\", \"This game is \" +\n \"challenging but fun. I like how you are able to get hints if you get stuck.\", \"March 26, 2020\",\n \"The Room is game where the player has to solve puzzles to advance. Each level \" +\n \"has a different theme.\");\n Review vrGameThree = new Review(3L, \"Synth Riders\", \"/images/synth-riders-photo1.jpg\",\n \"/images/synth-riders-photo2.jpg\", \"Dance/Rhythm\", \"This game is so much fun. \" +\n \"It has great music and I love the neon environment.\", \"June 21, 2018\", \"Synth Riders is \" +\n \"a lot like Beat Saber, but instead of slicing blocks with sabers, the player hits multicolored orbs \" +\n \"representing musical beats.\");\n Review vrGameFour = new Review(4L, \"Bigscreen\", \"/images/bigscreen-photo1.jpg\",\n \"/images/bigscreen-photo2.jpg\", \"Entertainment\", \"I love this VR game. It \" +\n \"feels like you are actually in the movie theater! An added bonus is that you can mute other \" +\n \"people in the theater if they are being too loud! I love it!\", \"May 21, 2019\",\n \"BigScreen is a virtual reality movie theater. You can watch movies (even 3D ones) \" +\n \"with random people, or you can join a private theater with just you and your friends. In \" +\n \"addition to movies, there are also rooms where you can watch TV shows.\");\n\n reviewList.put(vrGameOne.getId(), vrGameOne);\n reviewList.put(vrGameTwo.getId(), vrGameTwo);\n reviewList.put(vrGameThree.getId(), vrGameThree);\n reviewList.put(vrGameFour.getId(), vrGameFour);\n }", "public interface FactRepository {\n\n List<Fact> find(String topic);\n}", "public interface StyleRepository extends NamedRepository<Style> {\n}", "public interface VoucherRepository {\n //可领优惠券列表\n List<VoucherEntity> getVoucherList();\n //优惠券详情\n VoucherEntity getVoucherDetail(String id);\n //更新优惠券\n void updateVoucher(VoucherEntity voucherEntity);\n //获取过期优惠券列表\n List<VoucherEntity> getOverDueList();\n}", "public EpisodeController(){\n\t\t//intentionally empty, I think\n\t}", "public interface InstrumentRepository {\n\n /**\n * Returns instrument object by its vendor code.\n *\n * @param vendorCode vendor code of necessary instrument\n * @return instrument object\n */\n Instrument getInstrument(String vendorCode);\n\n /**\n * Returns instruments map from data source.\n *\n * @return instruments map\n */\n HashMap<String, Instrument> getInstruments();\n\n /**\n * Adds new instrument to data source.\n *\n * @param vendorCode vendor code of new instrument\n * @param instrument new instrument object\n */\n void putInstrument(String vendorCode, Instrument instrument);\n\n /**\n * Returns instruments count from instrument source.\n *\n * @return instruments count\n */\n int getInstrumentCount();\n}", "public interface ProgramaTVDAO {\n\t/**\n\t * Crea una nueva monitorización\n\t * @param titulo Título del programa\n\t * @param episodeCode Código del Episodio (ej. T01E03)\n\t * @param fechaInicio Fecha y hora de Inicio\n\t * @param fechaFin Fecha y hora de Fin\n\t * @param hashtag Hashtag que se monitorizará\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV crearMonitorizacion(String titulo, String episodeCode, Date fechaInicio, Date fechaFin, String hashtag);\n\n\t/**\n\t * Monitorización por clave primaria\n\t * @param primaryKey Clave primaria\n\t * @return Objeto ProgramaTV\n\t */\n\tpublic ProgramaTV programaPorId(Long primaryKey);\n\t\n\t/**\n\t * Todas las monitorizaciones que llevan el mismo hashtag\n\t * @param hashtag Hashtag\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> ProgramasPorHashtag(String hashtag);\n\t\n\t/**\n\t * Lista de monitorizaciones del mismo programa\n\t * @param titulo Título del programa\n\t * @return Lista de objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> programasPorTitulo(String titulo);\n\t\n\t /**\n\t * Todas las monitorizaciones\n\t * @return Lists de todos los objetos ProgramaTV\n\t */\n\tpublic List<ProgramaTV> todosLosProgramas();\n\t\n\t/**\n\t * Top 5 programas más vistos\n\t * @return Array ordenado de los 5 programas más vistos\n\t */\n\tpublic ProgramaTV[] programasTop5();\n\n\t/**\n\t * Actualiza monitorizacion\n\t * @param prog Objeto ProgramaTV\n\t */\n\tpublic void updateProgramaTV(ProgramaTV prog);\n\n\n\t/**\n\t * Borra una monitorización\n\t * @param prog Clave primaria de la monitorización\n\t */\n\tpublic void deleteProgramaTV(Long prog);\n\t\n\t/**\n\t * Borra todos los programas\n\t */\n\tpublic void deleteAll();\n\t\n\n\t\n\n\t}", "public interface PriceRepository extends Repository<Price, Integer> {\n}", "public interface MusicRepository extends CrudRepository<Music, Integer> {\n}", "public interface IMetaService {\n\n // Get FLV from FLVService\n // grab a reader from FLV\n // Set up CuePoints\n // Set up MetaData\n // Pass CuePoint array into MetaData\n // read in current MetaData if there is MetaData\n // if there isn't MetaData, write new MetaData\n // Call writeMetaData method on MetaService\n // that in turn will write the current metadata\n // and the cuepoint data\n // after that, call writeMetaCue()\n // this will loop through all the tags making\n // sure that the cuepoints are inserted\n\n /**\n * Initiates writing of the MetaData\n *\n * @param meta\n * Metadata\n * @throws IOException\n * I/O exception\n */\n public void write(IMetaData<?, ?> meta) throws IOException;\n\n /**\n * Writes the MetaData\n *\n * @param metaData\n * Metadata\n */\n public void writeMetaData(IMetaData<?, ?> metaData);\n\n /**\n * Writes the Meta Cue Points\n */\n public void writeMetaCue();\n\n /**\n * Read the MetaData\n *\n * @return metaData Metadata\n * @param buffer\n * IoBuffer source\n */\n public MetaData<?, ?> readMetaData(IoBuffer buffer);\n\n /**\n * Read the Meta Cue Points\n *\n * @return Meta cue points\n */\n public IMetaCue[] readMetaCue();\n\n /**\n * Media file to be accessed\n *\n * @param file\n * file\n */\n public void setFile(File file);\n\n /**\n * Returns the file being accessed\n *\n * @return file\n */\n public File getFile();\n\n}", "private static void addTV() {\n\n TV newTV = new TV(); // create new TV object\n\n String TVMake = Validate.readString(ASK_MAKE_TV); // Ask for the make and store input\n\n newTV.setMake(TVMake); // set make of TV based on user input\n\n int screenSize = Validate.readInt(ASK_SCREENSIZE_TV); // Ask for the screen size\n\n newTV.setScreenSize(screenSize); // set screensize of TV based on user input\n\n int type = Validate.readInt(ASK_TYPE_TV,3); // Ask for type of TV\n\n newTV.setType(type); // set type of TV based on user input\n\n boolean capableOf3D = Validate.readBoolean(ASK_3D_TV); // Ask if 3d compatible\n\n newTV.set3DCapability(capableOf3D); // set 3d capability of TV based on user input\n\n double price = Validate.readDouble(ASK_PRICE_TV); // Ask for price of TV\n\n newTV.setPrice(price); // set price of TV based on user input\n\n ProductDB.addProduct(newTV); // add new TV to the product DB\n\n newTV.saveTV(); // saves new tv to productDB text file\n\n }", "@Override\r\n\tpublic Class<?> getResourceClass() {\n\t\treturn TimeSeries.class;\r\n\t}", "public interface RsvpRepository {\n\n void save(Rsvp rsvp) throws DataAccessException; \n \n}", "public interface MovieRepository extends JpaRepository<Movie, Long> {\n Movie findByTitle(String title);\n}", "public interface ServerInstanceRepository extends MongoRepository<SFDCServerInstance, String> {\n List<SFDCServerInstance> findByKey(String key);\n}", "public interface SPARQLService {\n // TODO: Create methods for at least CRUD \n}", "public interface NewsItemRepository {\n /**\n * Add a new {@code NewsItem} to the repository\n * @param newsItem {@code NewsItem} to store\n */\n void addNewsItem(NewsItem newsItem);\n\n /**\n * Obtain a news item by id, throw an ObjectRetrievalFailureException if the id cannot be found\n * @param id long representing the id of the news item to look for\n * @return The found id\n * @throws org.springframework.orm.ObjectRetrievalFailureException if the NewsItem belonging to the provided id\n * cannot be found.\n */\n NewsItem obtainNewsItemById(long id) throws ObjectRetrievalFailureException;\n\n /**\n * Returns a list with all provided {@code NewsItem}\n * @return List containing all news items\n */\n List<NewsItem> listAllNewsItems();\n\n /**\n * Returns a maximum number of {@code NewsItem} objects\n * @param maxNumberOfItemsToReturn int representing the maximum amount of items to return\n * @return List containing {@code NewsItem} objects. \n */\n List<NewsItem> listNewsItemsLatest(int maxNumberOfItemsToReturn);\n}", "public SongService(SongRepository repo) {\n\t\tthis.songRepo = repo;\n\t}", "public interface VideoDataRepository extends CrudRepository<VideoData, Long> {\n\n /**\n * find videos\n * @param recorderInfo\n * @return\n */\n public List<VideoData> findByRecorderInfo(RecorderInfo recorderInfo);\n}", "Optional<SeriesEntity> findByImdbId(String imdbId);", "@GET\n @Produces(\"application/json\")\n public Response getAllMusicVideos(){\n \n //get all music videos from the DB\n List<MusicVideo> listOfMusicVideos = selectAllMusicVideosFromDB() ;\n \n //log the number of music videos\n LOGGER.log(Level.INFO, String.format(\"There are %d music videos on the server\", listOfMusicVideos.size())) ;\n \n //set poster image for each music video\n listOfMusicVideos = setPosterImageForMusicVideos(listOfMusicVideos) ;\n \n //sort list\n listOfMusicVideos.sort(null) ;\n \n //parse list of music videos to JSON and set JSON as entity of response\n Gson gson = new GsonBuilder()\n .excludeFieldsWithoutExposeAnnotation()\n .serializeNulls()\n .create();\n String jsonString = gson.toJson(listOfMusicVideos) ;\n Response.ResponseBuilder responseBuilder = Response.ok() ;\n responseBuilder.entity(jsonString) ;\n \n return responseBuilder.build() ;\n }", "public interface MovieRepository extends MongoRepository<Movie, String> {\n}", "public interface TeapotRepository extends MongoRepository<Teapot, String> {\n\n}", "public interface IMoviesService{\n String getPath(int Vid);\n Movies getPic(int Vid);\n ArrayList<Movies> search(Map map);\n void views(int Vid);\n void upload(Map map);\n Review review(Map map);\n ArrayList<Movies> getInfo(Map map);\n}", "public static void main(String[] args) {\n\n\t\t\n\t\tTv smartTv = new SmartTv();\n\t\t\n\t\tsmartTv.channelUp();\n\t\tsmartTv.channelUp();\n\t\tsmartTv.channelUp();\n\t\tsmartTv.channelDown();\n\t\tsmartTv.power();\n\t\tsmartTv.power();\n//\t\tsmartTv.internetSwitch(); //오류 :이전의 Tv 설계도로 만든 변수 smartTv로는, 새로운 SmartTv()의 인터넷스위치를 조작할 버튼이없다 조작할수 없다\n//\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t, 새로운 SmartTv() 안에 있는 기능들중 Tv설계도에도 있는 기능들만 조작할수 있다\t\n\t\t\n\t\tSystem.out.println(smartTv.channel);\n\t\tSystem.out.println(smartTv.power);\n\t\t\n\t\t\n\t}", "TRepo createRepo();", "@Override\n public List<Track> getAllTracks() {\n return trackRepository.findAll();\n }", "void getSearchSeasonData();", "public interface SliderDao {\n void addSlider(Slider slider);\n\n void editSlider(Slider slider);\n\n List<Slider> getAllSlider();\n\n Slider getSliderById(int sliderId);\n}", "protected MovieRepository(String url) {\n URL = url;\n }", "public interface VideoCustomDao {\n\n Page<Video> findGalleryVideosUniqueParted(VideoStatus status, Pageable pageable);\n}", "public Vector<Artista> findAllArtisti();", "public interface SavingsRepository extends Repository<Savings,Long>{\n}", "public NGDSeries getSeries() {\n return series;\n }", "public interface TaxisRepository {\n\n interface LoadTaxisCallback {\n void onTaxisLoaded(List<Taxi> loadedTaxis);\n }\n\n void getTaxis(@NonNull LoadTaxisCallback callback);\n\n// void refreshData();\n}", "public interface SavingsRepository extends Repository<Savings, Long> {\n}" ]
[ "0.5890966", "0.5632263", "0.5450344", "0.53406674", "0.53299505", "0.53119296", "0.5304912", "0.5304549", "0.5191747", "0.51797664", "0.51424056", "0.5122542", "0.51191527", "0.5113303", "0.50256914", "0.5019153", "0.5017113", "0.49985027", "0.49965477", "0.4991151", "0.49682966", "0.4966442", "0.49570814", "0.4950616", "0.4899674", "0.48946062", "0.48676097", "0.4857221", "0.48539165", "0.4847329", "0.4839097", "0.48342827", "0.4833503", "0.4832864", "0.4818201", "0.48166785", "0.48162025", "0.48032844", "0.48026496", "0.48007804", "0.47992957", "0.47992957", "0.4795674", "0.47948015", "0.47888678", "0.47757623", "0.47692147", "0.4766664", "0.47656053", "0.4762444", "0.47541848", "0.4744876", "0.47428057", "0.47367206", "0.47363126", "0.47358215", "0.47246885", "0.47228283", "0.47177297", "0.47131985", "0.46971786", "0.46964175", "0.46918505", "0.4691116", "0.46874052", "0.4684211", "0.46832204", "0.46804687", "0.4678773", "0.4672731", "0.46726656", "0.46680498", "0.4655301", "0.465384", "0.46490836", "0.4643805", "0.46436182", "0.46405602", "0.46378264", "0.46349904", "0.4633246", "0.46252275", "0.46206772", "0.46205607", "0.46185803", "0.45940587", "0.45877087", "0.45824632", "0.45817274", "0.45800927", "0.45765805", "0.45752913", "0.4574239", "0.45685327", "0.45664784", "0.45635796", "0.45600185", "0.45577455", "0.4550888", "0.45495695" ]
0.5445404
3
Query target entity by the given imdb id.
Optional<SeriesEntity> findByImdbId(String imdbId);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Query(\"{id : ?0}\")\n Movie findMovieById(String id);", "@Test\r\n public void testGetMovieInfoImdb() throws MovieDbException {\r\n LOG.info(\"getMovieInfoImdb\");\r\n MovieDb result = tmdb.getMovieInfoImdb(\"tt0076759\", \"en-US\");\r\n assertTrue(\"Error getting the movie from IMDB ID\", result.getId() == 11);\r\n }", "Movie getMovieById(final int movieId);", "@Override\n public Movie getFromId (Integer id) {return this.movies.get(id);}", "@Override\r\n\tpublic Movie selectByPrimaryKey(String id) {\n\t\treturn this.movieMapper.selectByPrimaryKey(id);\r\n\t}", "@Override\n\tpublic Movie searchMovieById(int movieid) {\n\t\tString sql=\"Select * from movie where MOVIE_ID=\"+movieid+\"\";\n\t\tJdbcTemplate jdbcTemplate=JdbcTemplateFactory.getJdbcTemplate();\n\t\tList<Movie> idMList=jdbcTemplate.query(sql, new MovieRowMapper());\n\t\tif(idMList==null||idMList.isEmpty()){\n\t\t\treturn null;\n\t\t}\n\t\treturn idMList.get(0);\n\t}", "@Test\n public void getOneMovieByimdbId() throws Exception {\n Movie expected = new Movie();\n expected.setMovieId(1L);\n when(movieService.findMovieByImdbId(\"tt0241\")).thenReturn(expected);\n mockMvc.perform(get(baseUrl + \"/imdbId/tt0241\"))\n .andExpect(status().isOk())\n .andExpect(jsonPath(\"$.imdbId\").value(expected.getImdbId()))\n .andExpect(jsonPath(\"$.movieId\").value(expected.getMovieId()));\n }", "Movie findOne(@Param(\"id\") Long id);", "@Override\r\n\tpublic Film findFilmById(int id) {\n\t\treturn filmRepository.getOne(id);\r\n\t}", "T queryForId(ID id) throws SQLException, DaoException;", "Coach findById(long id);", "public Film getFilmById(Integer id);", "private MusicVideo selectMusicVideoFromDB(int id){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n \n try{\n \n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo WHERE id =:id\", MusicVideo.class) ;\n query.setParameter(\"id\", id) ;\n MusicVideo musicVideo = query.getSingleResult() ;\n session.close() ;\n return musicVideo ;\n }\n catch(NoResultException ex){\n \n session.close() ;\n return null ;\n }\n }", "@Query(\"{ 'id': ?0}\")\n\tHero findById(Integer id);", "Artist getById(long id);", "@Override\n public List<Movie> findAllById(Iterable<Integer> id) {\n return movieRepository.findAllById(id);\n }", "AccessModelEntity selectByPrimaryKey(String id);", "@Override\n\tpublic Medico findById(Integer id_medico) {\n\t\treturn medicoMapper.findById(id_medico);\n\t}", "JModuleInfo queryById(long id);", "@RequestMapping(value = \"/{id}\", method = RequestMethod.GET)\n\tpublic ResponseEntity<Movie> findMovie(@PathVariable(\"id\") String id) {\n\t\tLOG.debug(\"Entering findMovie\");\n\t\tMovie movie = moviesRepo.findOne(id);\n\t\tif (null != movie) {\n\t\t\treturn ResponseEntity.ok(movie);\n\t\t}\n\t\treturn ResponseEntity.notFound().build();\n\n\t}", "@GET(\"movie_suggestions.json\")\n Call<MoviesResponse> getSimilarMovies(@Query(\"movie_id\") String id);", "public void setTargetid(Integer targetid) {\n this.targetid = targetid;\n }", "@Override\n\tpublic Movie findMovieById(String movieId) throws MovieNotFoundException {\n\t\tMovie movie=repository.findMovieById(movieId);\n\t\tif(movie==null){\n\t\t\tthrow new MovieNotFoundException();\n\t\t}\n\t\t\n\t\treturn movie;\n\t}", "public Movie getMovie(String id)\r\n\t{\n\t\tMap<String,Object> constrains = new HashMap<String,Object>(1);\r\n\t\tconstrains.put(\"id\", id.trim());\r\n\t\tList<Movie> rets = mongo.search(null, null, constrains, null, -1, 1, Movie.class);\r\n\t\tif(rets!=null && rets.size() > 0)\r\n\t\t\treturn rets.get(0);\t\r\n\t\treturn null;\r\n\t}", "public Movie findOne(long ID){\n\t\treturn theMoviewRepository.getOne(ID);\n\t}", "public static MyMovie fetchMovieFromDB(Context context,int id) {\n\n // TODO deal with empty query\n MovieSqlHelper movieDB = new MovieSqlHelper(context);\n Log.d(\"-fetchMovie\",\"id = \"+id);\n Cursor MC = movieDB.getReadableDatabase().query(DBConstants.MOVIES_T,null,DBConstants.ID_C+\"=?\",new String[]{\"\"+id},null,null,null);\n MC.moveToFirst();\n MyMovie M = new MyMovie(MC.getInt(MC.getColumnIndex(DBConstants.ID_C)),\n MC.getString(MC.getColumnIndex(DBConstants.SUBJECT_C)),\n MC.getString(MC.getColumnIndex(DBConstants.BODY_C)),\n MC.getString(MC.getColumnIndex(DBConstants.IMAGE_URL_C)));\n M.setImageString64(MC.getString(MC.getColumnIndex(DBConstants.MOVIE_IMAGE_C)));\n MC.close();\n movieDB.close();\n\n return M;\n }", "@Override\r\n\t\t\tpublic void retrieved(ID target) {\n\t\t\t\t\r\n\t\t\t}", "public Cursor getMovie(int id) {\n String selection = ColumnMovie.ID + \" = ?\";\n String[] selectionArgs = {Integer.toString(id)};\n return getAnyRow(MOVIE_TABLE_NAME, null, selection, selectionArgs, null, null, null);\n }", "@SuppressWarnings(\"unchecked\")\n\tpublic T get(Long id) {\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t\n\t\treturn (T) session.get(target, id);\n\t}", "public Artista select (int id) {\n EntityManager e = IndConnector.getConnection();\n Artista a = e.find(Artista.class, new Long(id));\n e.close();\n return a;\n }", "public static void queryTable(DynamoDbClient ddb) {\r\n String sqlStatement = \"SELECT * FROM MoviesPartiQ where year = ? ORDER BY year\";\r\n try {\r\n\r\n List<AttributeValue> parameters = new ArrayList<>();\r\n AttributeValue att1 = AttributeValue.builder()\r\n .n(String.valueOf(\"2013\"))\r\n .build();\r\n parameters.add(att1);\r\n\r\n // Get items in the table and write out the ID value.\r\n ExecuteStatementResponse response = executeStatementRequest(ddb, sqlStatement, parameters);\r\n System.out.println(\"ExecuteStatement successful: \"+ response.toString());\r\n\r\n } catch (DynamoDbException e) {\r\n System.err.println(e.getMessage());\r\n System.exit(1);\r\n }\r\n }", "public Film find(int id) {\n\t\t\n\t\tString codeFilm = null;\n\t\tString nomFilm = null;\n\t\tFilm film = new Film();\n\t\t\n\t\ttry {\n\t\t\tResultSet result = Connection.selectFrom(\"SELECT codeFilm, nomFilm \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"FROM film \"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+ \"WHERE idFilm=\"\n\t\t\t\t\t\t\t\t\t\t\t\t\t+id\n\t\t\t\t\t\t\t\t\t\t\t\t\t+\";\");\n\t\t\t\n\t\t\twhile(result.next())\n\t\t\t{\n\t\t\t\tcodeFilm = result.getString(\"codeFilm\");\n\t\t\t\tnomFilm = result.getString(\"nomFilm\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t\tfilm = new Film(id,codeFilm,nomFilm);\n\t\tConnection.close();\n\t\treturn film;\n\t}", "@GetMapping(\"/movies/{id}\")\n @Timed\n public ResponseEntity<Movie> getMovie(@PathVariable Long id) {\n log.debug(\"REST request to get Movie : {}\", id);\n Movie movie = movieRepository.findOne(id);\n return Optional.ofNullable(movie)\n .map(result -> new ResponseEntity<>(\n result,\n HttpStatus.OK))\n .orElse(new ResponseEntity<>(HttpStatus.NOT_FOUND));\n }", "CfgSearchRecommend selectByPrimaryKey(Long id);", "public Ramen getRamen(String id){\n return ramenRepository.findOne(id);\r\n }", "@Transactional(readOnly = true)\n public Movie findOne(Long id) {\n log.debug(\"Request to get Movie : {}\", id);\n return movieRepository.findOne(id);\n }", "public static Result search(Long id, String query) {\n Datasource d = Datasource.find.byId(id);\n if (d == null) {\n return notFound(\"Datasource you requested does not exist\");\n }\n Set<Dataset> matching = findDatasets(d, query);\n if (matching.isEmpty()) {\n return ok(\"No datasets found for search query. Sorry!\");\n }\n String result = \"\";\n for (Dataset set : matching) {\n result += set.getName() + \"\\n\";\n }\n return ok(result);\n }", "@Override\n\tpublic DatabaseObject selectByID(DatabaseHandler db) throws Exception {\n\t\treturn db.getWorkById(id);\n\t\t\n\t}", "@Override\n public T findById(ID id) throws SQLException {\n\n return this.dao.queryForId(id);\n\n }", "@Test\r\n public void testGetLatestMovie() throws MovieDbException {\r\n LOG.info(\"getLatestMovie\");\r\n MovieDb result = tmdb.getLatestMovie();\r\n assertTrue(\"No latest movie found\", result != null);\r\n assertTrue(\"No latest movie found\", result.getId() > 0);\r\n }", "@Override\n\tpublic T findById(ID id) {\n\t\treturn parserEntity(this.getConcreteDAO().findById(id));\n\t}", "@GET(\"movie_details.json?with_cast=true&with_images=true\")\n Call<MovieDetailsResponse> getMovieDetails(@Query(\"movie_id\") String id);", "public ResponseEntity<Movie> getMovieById(Long id) {\n if(movieRepository.existsById(id)){\n Movie movie = movieRepository.findById(id).get();\n return new ResponseEntity<>(movie, HttpStatus.OK);\n } else\n return new ResponseEntity<>(null, HttpStatus.NOT_FOUND);\n }", "private List<MusicVideo> selectMusicVideosFromDBOwnedByArtiste(int artisteId){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre WHERE mv.artiste.id=:artisteId\", MusicVideo.class) ;\n query.setParameter(\"artisteId\", artisteId) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "public abstract MediaItem getMediaItem(String id);", "@Override\n\tpublic MedicalTest findTestById(String testId) {\n\n\t\tOptional<MedicalTest> optional = testDao.findById(testId);\n\t\tif (optional.isPresent()) {\n\t\t\tMedicalTest test = optional.get();\n\t\t\treturn test;\n\t\t}\n\t\tthrow new MedicalTestNotFoundException(\"Test not found for Test Id= \" + testId);\n\t}", "@Override\r\n\tpublic Person findbyid(int id) {\n\t\tQuery query=em.createQuery(\"Select p from Person p where p.id= \"+id);\r\n\t\tPerson p=(Person) query.getSingleResult();\r\n\t\treturn p;\r\n\t\r\n\t}", "public person findbyid(int id){\n\t\t\treturn j.queryForObject(\"select * from person where id=? \", new Object[] {id},new BeanPropertyRowMapper<person>(person.class));\r\n\t\t\r\n\t}", "public void findbyid() throws Exception {\n try {\n Ume_unidade_medidaDAO ume_unidade_medidaDAO = getUme_unidade_medidaDAO();\n List<Ume_unidade_medidaT> listTemp = ume_unidade_medidaDAO.getByPK( ume_unidade_medidaT);\t \n\n ume_unidade_medidaT= listTemp.size()>0?listTemp.get(0):new Ume_unidade_medidaT();\n \n } catch (Exception e) {\n e.printStackTrace();\n setMsg(\"Falha ao realizar consulta!\");\t\n } finally {\n\tclose();\n }\n }", "Abum selectByPrimaryKey(String id);", "M getById(Serializable id) throws DataAccessException;", "@RequestMapping(\n value = \"/getMovieId/{movieId}\",\n method = RequestMethod.GET,\n produces = MediaType.APPLICATION_JSON_VALUE\n\n )\n public ResponseEntity<Object> getMovieId(@PathVariable(\"movieId\") Long id) {\n Optional<MoviesEntity> moviesOptional = moviesService.findById(id);\n return new ResponseEntity<Object>(moviesOptional, HttpStatus.OK);\n }", "@Override\n\tpublic ScenicSpots selectById(String id) {\n\t\t;\n\t\treturn mapper.selectByPrimaryKey(id);\n\t}", "public WorkExperience queryWorkExpById(int workExperienceId) throws Exception;", "Tourst selectByPrimaryKey(String id);", "Agent findById(String id);", "public abstract T byId(ID id);", "@Override\n\tpublic Danmu getDanmu(String id) {\n\t\tString hql = \"from Danmu m where m.id =?\";\n\t\tQuery query = sessionFactory.getCurrentSession().createQuery(hql);\n\t\tquery.setString(0, id);\n\t\treturn (Danmu)query.uniqueResult(); \n\t}", "public void getMovieDetails(@NonNull final String imdbId, final MovieDetailsTask.onShowDetails listener) {\n MovieDetailsTask movieDetailsTask = new MovieDetailsTask();\n movieDetailsTask.addListener(listener);\n movieDetailsTask.execute(imdbId);\n }", "@Override\n public JurUrl selectByPrimaryKey(Integer id) {\n return jurUrlMapper.selectByPrimaryKey(id);\n }", "public ProjectIdea getProjectIdea(int id){\n //String sql = \"SELECT * FROM project_idea WHERE idea_id = ?\";\n try{\n ProjectIdea result = super.queryForId(id);\n return result;\n } catch(SQLException e){\n System.out.println(e.getMessage());\n }\n return null;\n }", "Dish selectByPrimaryKey(String id);", "@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)\r\n\tpublic Music querySongById(Integer id) {\n\t\tMusic music = musicdao.selectSong(id);\r\n\t\treturn music;\r\n\t}", "public Movie getMovie(int id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(TABLE_MOVIE, new String[]{KEY_ID,\n KEY_NAME, KEY_DESC, KEY_VOTE_AVG, KEY_RELEASE_DATE, KEY_ADULT, KEY_POSTER_PATH, KEY_BACKDROP_PATH}, KEY_ID + \"=?\",\n new String[]{String.valueOf(id)}, null, null, null, null);\n if (cursor != null)\n cursor.moveToFirst();\n\n Movie movie = new Movie(cursor.getColumnName(1),\n cursor.getString(3), cursor.getString(4),cursor.getString(2),cursor.getString(6),cursor.getString(7),cursor.getString(5),cursor.getString(0));\n\n return movie;\n }", "List<Movie> getMovie(String movieId);", "@Override\n\tpublic Item findItemById(Long id) {\n\t\tCriteriaBuilder cb=entityManager.getCriteriaBuilder();\n\t\t\n\t\tCriteriaQuery<Item> q = cb.createQuery(Item.class);\n\t\t Root<Item> c = q.from(Item.class);\n\t\t ParameterExpression<Long> p = cb.parameter(Long.class);\n\t\t q.select(c).where(cb.equal(c.get(\"id\"), p));\n\t\t TypedQuery<Item> query = entityManager.createQuery(q);\n\t\t query.setParameter(p, id);\n\t\t Item i = query.getSingleResult();\n\t\treturn i;\n\t}", "public abstract T findEntityById(int id);", "TycCompanyExecutiveCrawler selectByPrimaryKey(Integer id);", "public o selectById(long id);", "@Secured({\"ROLE_USER\", \"ROLE_ADMIN\"}) \r\n\tMovie findByMovieID(Long movieID);", "@Override\n\tpublic Room queryById(String id) {\n\t\treturn null;\n\t}", "@Override\r\n public Damagething damfindById(Integer da_id) {\n return userMapper.damfindById(da_id);\r\n }", "CommunityInform selectByPrimaryKey(String id);", "Enfermedad selectByPrimaryKey(Integer idenfermedad);", "@ApiOperation(value = \"Find a movie by id\", notes = \"Find a movie by id\")\n @ApiResponses(value = {\n @ApiResponse(code = 200, message = \"Success\", response = MovieDto.class),\n @ApiResponse(code = 400, message = \"Bad request\"),\n @ApiResponse(code = 404, message = \"Not found\"),\n })\n @CrossOrigin\n @GetMapping(value = \"/find/{id}\", produces = MediaType.APPLICATION_JSON_UTF8_VALUE)\n public ResponseEntity findById(\n @ApiParam(value = \"A movie id\", defaultValue = \"2503\", required = true)\n @PathVariable(name = \"id\") Integer id) {\n MovieDto movie = movieService.findById(id);\n return new ResponseEntity<>(movie, HttpStatus.OK);\n }", "Member selectByPrimaryKey(Long id);", "public interface ImdbRatingScraper {\n\n public ImdbInfo getImdbInfo(String id) throws Exception;\n\n\n}", "@Override\n public void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n String omdbId = request.getParameter(IMDB_ID_PARAMETER_KEY);\n\n if (!isParameterValid(omdbId, MAX_CHARS)) {\n System.err.println(\n \"ItemSubmissionServlet: omdbId parameter given in Get Request is invalid!\");\n return;\n }\n\n response.setContentType(\"application/json\");\n response.getWriter().println(\n new Gson().toJson(EntertainmentItemDatastore.getInstance().queryItemByOmdbId(omdbId)));\n }", "TempletLink selectByPrimaryKey(String id);", "AppStandard selectById(String id);", "SecondSlideshow selectByPrimaryKey(Integer id);", "@Override\n\tpublic Marca obtener(int id) {\n\t\treturn marcadao.obtener(id);\n\t}", "@Override\n\tpublic Gasto findById(Integer id) {\n\t\treturn gastoModel.findById(id).orElseThrow(null);\n\t}", "public void getDetail(int id) {\n\t\t\n\t}", "IceApp selectByPrimaryKey(Long id);", "Yqbd selectByPrimaryKey(Integer id);", "RecordLike selectByPrimaryKey(String id);", "public MotorCycle findId(String id){\r\n\t\treturn motorCycleDao.findId(id);\r\n\t}", "private URI lookupURI(URI imdbURI) throws IOException,\n URISyntaxException {\n // lookup uri if not yet set\n String imdbString = IMDBLink.getMovieURIString(target\n .getMovieTitle(), target.getYear());\n if (imdbString != null) {\n imdbURI = new URI(imdbString);\n target.setIMDBMovieURI(imdbURI);\n }\n return imdbURI;\n }", "@Test\r\n public void testGetSimilarMovies() throws MovieDbException {\r\n LOG.info(\"getSimilarMovies\");\r\n List<MovieDb> results = tmdb.getSimilarMovies(ID_MOVIE_BLADE_RUNNER, LANGUAGE_DEFAULT, 0);\r\n assertTrue(\"No similar movies found\", !results.isEmpty());\r\n }", "YzStiveExplosion selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic final <S extends MODEL> S find(IDENTIFIER id, Class<S> targetedEntity) {\r\n\t\tLOGGER.trace(\"Finding Entity [{}] with Persistence Identifier [{}]\", targetedEntity, id);\r\n\t\tif (targetedEntity == null) {\r\n\t\t\tthrow DaoRuntimeException.cannotPerformCRUDOnNullEntity();\r\n\t\t}\r\n\r\n\t\tif (id == null) {\r\n\t\t\tthrow DaoRuntimeException.cannotFindEntity(targetedEntity.toString(), null, null);\r\n\t\t}\r\n\t\tS entityToBeFound = null;\r\n\r\n\t\ttry {\r\n\t\t\tentityToBeFound = entityManager.find(targetedEntity, id);\r\n\t\t} catch (Exception exception) {\r\n\t\t\tHandlerUtil.handle(exception);\r\n\t\t\tThrowables.getRootCause(exception);\r\n\t\t\tthrow DaoRuntimeException.cannotFindEntity(targetedEntity.toString(), String.valueOf(id), exception);\r\n\r\n\t\t} finally {\r\n\t\t\tcloseEntityManager(entityManager);\r\n\t\t}\r\n\t\treturn entityToBeFound;\r\n\r\n\t}", "Article selectByPrimaryKey(String id);", "public Object consultar(int id) throws Exception {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public Cursor getMoviesInList(int id) {\n String selection = ColumnMoviesList.ID_LIST + \" = ?\";\n String[] selectionArgs = {Integer.toString(id)};\n String columns[] = new String[]{ColumnMoviesList.ID_MOVIE};\n return getAnyRow(MOVIESLIST_TABLE_NAME, columns, selection, selectionArgs, null, null, null);\n }", "@Override\n public Result readById(final int id) throws DaoException {\n throw new DaoException(\"Unsupported operation. Result has no id\");\n }", "@Override\r\n\tpublic FyTestRecord findById(Long id) {\n\t\treturn testRecordDao.findOne(id);\r\n\t}", "public Voto find(int id ) { \n\t\treturn em.find(Voto.class, id);\n\t}", "public Movement retrive(long id) {\n\t\tString selection = \"and \" + \"mov\" + \".\"\n\t\t\t\t+ SGFDataModelSQLiteHelper.COLUMN_MOVEMENT_ID + \"=\"\n\t\t\t\t+ Long.toString(id) + \" \";\n\t\tMovement mv = getAllMovements(selection).get(0);\n\t\treturn mv;\n\n\t}", "private static void search_by_id() {\r\n\t\ttry (// Creates a connection and statement object\r\n\t\t\t\tConnection conn = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/PoisedPMS\",\"poisedpms\",\"poisedpms\");\r\n\t\t\t\t\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\t\r\n\t\t\t){\r\n\t\t\tScanner input = new Scanner(System.in);\r\n\t\t\r\n\t\t\tSystem.out.println(\"Project id: \");\r\n\t\t\tString project_id_str = input.nextLine();\r\n\t\t\r\n\t\t\tString strSelectProject = String.format(\"SELECT * FROM projects INNER JOIN project_statuses ON \"\r\n\t\t\t\t\t+ \"projects.project_id = project_statuses.project_id;\");\r\n\t\t\tResultSet project_rset = stmt.executeQuery(strSelectProject);\r\n\t\t\t\r\n\t\t\tfetch_all_project_info(stmt, project_id_str, project_rset);\r\n\t\t/**\r\n\t\t * @exception If entered project id cannot be found in the projects table then an SQLException is thrown\r\n\t\t */\t\r\n\t\t} catch ( SQLException ex ) {\r\n\t\t\tex . printStackTrace ();\r\n\t\t}\r\n\t\t\r\n\t}" ]
[ "0.61766964", "0.58312154", "0.57846624", "0.5781111", "0.57330155", "0.5720712", "0.5633806", "0.5561511", "0.5438822", "0.5433504", "0.5386496", "0.5368018", "0.53058213", "0.5303831", "0.5212519", "0.51864856", "0.517704", "0.51624215", "0.51606214", "0.51541865", "0.51275146", "0.5118362", "0.5112147", "0.5109055", "0.5097445", "0.50945395", "0.5090421", "0.5084566", "0.50813454", "0.50781953", "0.5063802", "0.50596", "0.50586885", "0.5044289", "0.5042858", "0.5033619", "0.50168675", "0.5016178", "0.5003498", "0.49983484", "0.49976078", "0.49910158", "0.4988725", "0.49734733", "0.49638477", "0.49605483", "0.49551293", "0.4937803", "0.49234915", "0.49202034", "0.4916088", "0.4915528", "0.49138936", "0.4913635", "0.4907228", "0.48965585", "0.4889763", "0.48875055", "0.48858508", "0.48802072", "0.48778012", "0.48708197", "0.48684138", "0.48671994", "0.48617786", "0.48611784", "0.48584113", "0.4855521", "0.48555064", "0.4845298", "0.4844955", "0.48424438", "0.48353127", "0.48301196", "0.48263204", "0.4823763", "0.4807265", "0.48031712", "0.48011532", "0.47964063", "0.47864303", "0.47859573", "0.47773603", "0.4775793", "0.4765753", "0.47630206", "0.47552958", "0.47525677", "0.47512534", "0.4733383", "0.4732224", "0.47296596", "0.47275996", "0.4724413", "0.47221702", "0.4721077", "0.47165835", "0.47086728", "0.47083503", "0.47083467" ]
0.62258244
0
DropHandler will process data objects dropped on to the scrollpane and the treetable
DropHandler(FileUploaderApplet container) { this.container = container; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void dragDropped() {\n\n\t}", "@Override\r\n public void drop(DropTargetDropEvent dtde) {\r\n onDropFile(dtde);\r\n }", "public void handle(DragEvent event) {\n if (currentlyDraggedType == draggableType) {\n // problem = event is drop completed is false when should be true...\n // https://bugs.openjdk.java.net/browse/JDK-8117019\n // putting drop completed at start not making complete on VLAB...\n\n // Data dropped\n // If there is an image on the dragboard, read it and use it\n Dragboard db = event.getDragboard();\n Node node = event.getPickResult().getIntersectedNode();\n if (node != targetGridPane && db.hasImage()) {\n\n Integer cIndex = GridPane.getColumnIndex(node);\n Integer rIndex = GridPane.getRowIndex(node);\n int x = cIndex == null ? 0 : cIndex;\n int y = rIndex == null ? 0 : rIndex;\n // Places at 0,0 - will need to take coordinates once that is implemented\n ImageView image = new ImageView(db.getImage());\n\n int nodeX = GridPane.getColumnIndex(currentlyDraggedImage);\n int nodeY = GridPane.getRowIndex(currentlyDraggedImage);\n switch (draggableType) {\n case CARD:\n if (canBuildingPlace(nodeX, nodeY, x, y)) {\n removeDraggableDragEventHandlers(draggableType, targetGridPane);\n // TODO = spawn a building here of different types\n Building newBuilding = convertCardToBuildingByCoordinates(nodeX, nodeY, x, y);\n onLoad(newBuilding);\n } else {\n // draggedEntity.relocateToPoint(new Point2D(event.getSceneX(),\n // event.getSceneY()));\n // throw new NullPointerException(\"Can't drop!\");\n return;\n }\n break;\n case ITEM:\n if (unequippedInventory.getChildren().contains(currentlyDraggedImage)) {\n // Equip the item\n Entity item = world.getUnequippedInventoryItemEntityByCoordinates(nodeX, nodeY);\n if (!canEquipItem(item, x, y, targetGridPane)) return;\n removeDraggableDragEventHandlers(draggableType, targetGridPane);\n removeItemByCoordinates(nodeX, nodeY);\n unequippedInventory.getChildren().remove(currentlyDraggedImage);\n addDragEventHandlers(image, DRAGGABLE_TYPE.ITEM, equippedItems,\n unequippedInventory);\n targetGridPane.add(image, x, y, 1, 1);\n equipItemsRecord.put(item, image);\n world.equipItem(item);\n world.addEquippedInventoryItem(item);\n } else {\n // Destroy the item\n equipItemsRecord.remove(world.getEquippedInventoryItemEntityByCoordinates(nodeX, nodeX));\n removeDraggableDragEventHandlers(draggableType, targetGridPane);\n removeEquippedItemByCoordinates(nodeX, nodeX);\n }\n break;\n default:\n break;\n }\n draggedEntity.setVisible(false);\n draggedEntity.setMouseTransparent(false);\n currentlyDraggedImage = null;\n currentlyDraggedType = null;\n\n // remove drag event handlers before setting currently dragged image to null\n printThreadingNotes(\"DRAG DROPPED ON GRIDPANE HANDLED\");\n }\n }\n event.setDropCompleted(true);\n // consuming prevents the propagation of the event to the anchorPaneRoot (as a\n // sub-node of anchorPaneRoot, GridPane is prioritized)\n // https://openjfx.io/javadoc/11/javafx.base/javafx/event/Event.html#consume()\n // to understand this in full detail, ask your tutor or read\n // https://docs.oracle.com/javase/8/javafx/events-tutorial/processing.htm\n event.consume();\n }", "@Override\n public void mouseDrop()\n {\n }", "@Override\r\n public void dragOver(DropTargetDragEvent dtde) {}", "@Override\n public void drop(DropTargetDropEvent e) {\n try {\n\n Transferable t = e.getTransferable();\n DataFlavor dataFlavor = t.getTransferDataFlavors()[1];\n DataObject dataObject = (DataObject) t.getTransferData(dataFlavor);\n\n DataSet dataSet = dataObject.getLookup().lookup(DataSet.class);//get the object from lookup listener\n NeuralNetwork nnet = dataObject.getLookup().lookup(NeuralNetwork.class);//get the object from lookup listener\n\n if (dataSet != null) {\n trainingSet = dataSet;\n\n neuralNetworkAndDataSetInformationCheck(neuralNetwork, trainingSet);\n if (radioDataSet.isSelected()) {\n IOSettingsDialog dataSetSettings = IOSettingsDialog.getInstance();\n dataSetSettings.initializeInformation(trainingSet, jmeVisualization);\n dataSetSettings.setVisible(true);\n }\n\n }\n\n if (nnet != null) {\n neuralNetwork = nnet;\n neuralNetworkAndDataSetInformationCheck(neuralNetwork, trainingSet);\n }\n\n if (neuralNetwork != null && trainingSet != null) {\n trainSignal = true;\n removeContent();\n trainingPreprocessing();\n addContent();\n neuralNetworkAndDataSetInformationCheck(neuralNetwork, trainingSet);\n initializeConsumerProducer(1000);\n }\n\n e.dropComplete(true);\n } catch (UnsupportedFlavorException | IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n }", "@Override\r\n\t\tpublic void dragOver(DropTargetDragEvent dtde) {\n\t\t\t\r\n\t\t}", "private void buildNonEntityDragHandlers(DRAGGABLE_TYPE draggableType, GridPane sourceGridPane,\n GridPane targetGridPane) {\n // TODO = be more selective about where something can be dropped\n // for example, in the specification, villages can only be dropped on path,\n // whilst vampire castles cannot go on the path\n gridPaneSetOnDragDropped.put(draggableType, new EventHandler<DragEvent>() {\n public void handle(DragEvent event) {\n // TODO = for being more selective about where something can be dropped,\n // consider applying additional if-statement logic\n /*\n * you might want to design the application so dropping at an invalid location\n * drops at the most recent valid location hovered over, or simply allow the\n * card/item to return to its slot (the latter is easier, as you won't have to\n * store the last valid drop location!)\n */\n if (currentlyDraggedType == draggableType) {\n // problem = event is drop completed is false when should be true...\n // https://bugs.openjdk.java.net/browse/JDK-8117019\n // putting drop completed at start not making complete on VLAB...\n\n // Data dropped\n // If there is an image on the dragboard, read it and use it\n Dragboard db = event.getDragboard();\n Node node = event.getPickResult().getIntersectedNode();\n if (node != targetGridPane && db.hasImage()) {\n\n Integer cIndex = GridPane.getColumnIndex(node);\n Integer rIndex = GridPane.getRowIndex(node);\n int x = cIndex == null ? 0 : cIndex;\n int y = rIndex == null ? 0 : rIndex;\n // Places at 0,0 - will need to take coordinates once that is implemented\n ImageView image = new ImageView(db.getImage());\n\n int nodeX = GridPane.getColumnIndex(currentlyDraggedImage);\n int nodeY = GridPane.getRowIndex(currentlyDraggedImage);\n switch (draggableType) {\n case CARD:\n if (canBuildingPlace(nodeX, nodeY, x, y)) {\n removeDraggableDragEventHandlers(draggableType, targetGridPane);\n // TODO = spawn a building here of different types\n Building newBuilding = convertCardToBuildingByCoordinates(nodeX, nodeY, x, y);\n onLoad(newBuilding);\n } else {\n // draggedEntity.relocateToPoint(new Point2D(event.getSceneX(),\n // event.getSceneY()));\n // throw new NullPointerException(\"Can't drop!\");\n return;\n }\n break;\n case ITEM:\n if (unequippedInventory.getChildren().contains(currentlyDraggedImage)) {\n // Equip the item\n Entity item = world.getUnequippedInventoryItemEntityByCoordinates(nodeX, nodeY);\n if (!canEquipItem(item, x, y, targetGridPane)) return;\n removeDraggableDragEventHandlers(draggableType, targetGridPane);\n removeItemByCoordinates(nodeX, nodeY);\n unequippedInventory.getChildren().remove(currentlyDraggedImage);\n addDragEventHandlers(image, DRAGGABLE_TYPE.ITEM, equippedItems,\n unequippedInventory);\n targetGridPane.add(image, x, y, 1, 1);\n equipItemsRecord.put(item, image);\n world.equipItem(item);\n world.addEquippedInventoryItem(item);\n } else {\n // Destroy the item\n equipItemsRecord.remove(world.getEquippedInventoryItemEntityByCoordinates(nodeX, nodeX));\n removeDraggableDragEventHandlers(draggableType, targetGridPane);\n removeEquippedItemByCoordinates(nodeX, nodeX);\n }\n break;\n default:\n break;\n }\n draggedEntity.setVisible(false);\n draggedEntity.setMouseTransparent(false);\n currentlyDraggedImage = null;\n currentlyDraggedType = null;\n\n // remove drag event handlers before setting currently dragged image to null\n printThreadingNotes(\"DRAG DROPPED ON GRIDPANE HANDLED\");\n }\n }\n event.setDropCompleted(true);\n // consuming prevents the propagation of the event to the anchorPaneRoot (as a\n // sub-node of anchorPaneRoot, GridPane is prioritized)\n // https://openjfx.io/javadoc/11/javafx.base/javafx/event/Event.html#consume()\n // to understand this in full detail, ask your tutor or read\n // https://docs.oracle.com/javase/8/javafx/events-tutorial/processing.htm\n event.consume();\n }\n\n });\n\n // this doesn't fire when we drag over GridPane because in the event handler for\n // dragging over GridPanes, we consume the event\n anchorPaneRootSetOnDragOver.put(draggableType, new EventHandler<DragEvent>() {\n // https://github.com/joelgraff/java_fx_node_link_demo/blob/master/Draggable_Node/DraggableNodeDemo/src/application/RootLayout.java#L110\n @Override\n public void handle(DragEvent event) {\n if (currentlyDraggedType == draggableType) {\n if (event.getGestureSource() != anchorPaneRoot && event.getDragboard().hasImage()) {\n event.acceptTransferModes(TransferMode.MOVE);\n }\n }\n if (currentlyDraggedType != null) {\n draggedEntity.relocateToPoint(new Point2D(event.getSceneX(), event.getSceneY()));\n }\n event.consume();\n }\n });\n\n // this doesn't fire when we drop over GridPane because in the event handler for\n // dropping over GridPanes, we consume the event\n anchorPaneRootSetOnDragDropped.put(draggableType, new EventHandler<DragEvent>() {\n public void handle(DragEvent event) {\n if (currentlyDraggedType == draggableType) {\n // Data dropped\n // If there is an image on the dragboard, read it and use it\n Dragboard db = event.getDragboard();\n Node node = event.getPickResult().getIntersectedNode();\n if (node != anchorPaneRoot && db.hasImage()) {\n // Places at 0,0 - will need to take coordinates once that is implemented\n currentlyDraggedImage.setVisible(true);\n draggedEntity.setVisible(false);\n draggedEntity.setMouseTransparent(false);\n // remove drag event handlers before setting currently dragged image to null\n removeDraggableDragEventHandlers(draggableType, targetGridPane);\n\n currentlyDraggedImage = null;\n currentlyDraggedType = null;\n }\n }\n // let the source know whether the image was successfully transferred and used\n event.setDropCompleted(true);\n event.consume();\n }\n });\n }", "void onDropped();", "@Override\r\n\tpublic void dropped(DNDEvent e) {\n\t\tif (dockable.getTitle() == e.getDragSource()) {\r\n\t\t\tDockableTitleBar titleBar = (DockableTitleBar)dockable.getTitle().getParent();\r\n\t\t\tDNDEvent event = new DNDEvent(\r\n\t\t\t\t\te.getDragSource(), \r\n\t\t\t\t\te.getDropTarget(), \r\n\t\t\t\t\ttitleBar.getLocationOnScreen().x + e.getX() - e.getOriginX(), \r\n\t\t\t\t\ttitleBar.getLocationOnScreen().y + e.getY() + e.getOriginY(), \r\n\t\t\t\t\te.getOriginX(), e.getOriginY(), \r\n\t\t\t\t\tDNDEvent.RESULT_FAILURE);\r\n\t\t\ttitleBar.dropped(event);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t// TODO: quick but really dirty...\r\n\t\t//Dockable sourceDockable = (Dockable)e.getDragSource().getParent().getParent().getParent().getParent();\r\n\t\t// TODO: less dirty...\r\n\t\tDockable sourceDockable = (Dockable)((DockableTitleBar)e.getDragSource().getParent()).getDockable();\r\n\t\tDockable targetDockable = dockable;\r\n\t\t\r\n\t\tDockingCanvas sourceCanvas = sourceDockable.getDockingRoot().getDockingCanvas();\r\n\t\tDockingCanvas targetCanvas = targetDockable.getDockingRoot().getDockingCanvas();\r\n\t\t\r\n\t\t\r\n\t\t// remove drag source\r\n\t\tsourceDockable.getDockingRoot().remove();\r\n\t\tif (sourceCanvas.isDisposable() && sourceCanvas.getComponentCount() == 0) {\r\n\t\t\tsourceCanvas.getOwner().dispose();\r\n\t\t}\r\n\t\t\r\n\t\t// add to drop target\r\n\t\ttargetDockable.getDockingRoot().add(sourceDockable, direction);\r\n\t\t\r\n\t\t\r\n\t\t// re-validate and repaint target canvas\r\n\t\ttargetCanvas.revalidate();\r\n\t\ttargetCanvas.repaint();\r\n\t\t\r\n\t\t// re-validate and repaint source canvas if different to target canvas\r\n\t\tif (targetCanvas != sourceCanvas) {\r\n\t\t\tsourceCanvas.revalidate();\r\n\t\t\tsourceCanvas.repaint();\r\n\t\t}\r\n\t\t\r\n\t\tmouseOver = false;\r\n\t\t\r\n\t\t//dockable.getDockingRoot().findRoot().printTree(\"\");\r\n\t}", "public void dragDropEnd(DragSourceDropEvent evt) {\n }", "public void drop(DropTargetEvent event) {\n if(dropItem == null)\n return;\n TreeObject[] sel = getSelection();\n for (int i = 0; i < sel.length; i++) {\n if(dropBefore) {\n sel[i].moveBefore(dropItem);\n } else if(dropInto) {\n sel[i].moveTo(dropItem);\n } else {\n sel[sel.length - i - 1].moveAfter(dropItem);\n }\n }\n treeViewer1.refresh();\n }", "@Override\r\n\t\t\t\t\tpublic void dropAccept(DropTargetEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void dropAccept(DropTargetEvent event) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void dragOver(DropTargetEvent event) {\n\t\t\t\t\r\n\t\t\t}", "public void drop( DropTargetDropEvent evt )\r\n {\r\n log(out, \"FileDropIn.drop(): drop event.\");\r\n try\r\n { // Get whatever was dropped\r\n Transferable tr = evt.getTransferable();\r\n\r\n // Is it a file list?\r\n if (tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor))\r\n {\r\n // Say we'll take it.\r\n //evt.acceptDrop ( java.awt.dnd.DnDConstants.ACTION_COPY_OR_MOVE );\r\n evt.acceptDrop(DnDConstants.ACTION_COPY);\r\n log(out, \"FileDropIn.drop(): file list accepted.\");\r\n\r\n // Get a useful list\r\n java.util.List fileList = (java.util.List) tr.getTransferData(DataFlavor.javaFileListFlavor);\r\n //java.util.Iterator iterator = fileList.iterator();\r\n\r\n // Convert list to array\r\n File[] filesTemp = new File[fileList.size()];\r\n fileList.toArray(filesTemp);\r\n final File[] files = filesTemp;\r\n\r\n // Alert listener to drop.\r\n if (listener != null)\r\n listener.filesDropped(files);\r\n\r\n // Mark that drop is completed.\r\n evt.getDropTargetContext().dropComplete(true);\r\n log(out, \"FileDropIn.drop(): drop complete.\");\r\n } // end if: file list\r\n else\r\n {\r\n log(out, \"FileDropIn.drop(): not a file list - abort.\");\r\n evt.rejectDrop();\r\n } // end else: not a file list\r\n } // end try\r\n catch (IOException io)\r\n {\r\n log(out, \"FileDrop.drop(): IOException - abort:\");\r\n io.printStackTrace(out);\r\n evt.rejectDrop();\r\n } // end catch IOException\r\n catch (UnsupportedFlavorException ufe)\r\n {\r\n log(out, \"FileDrop.drop(): UnsupportedFlavorException - abort:\");\r\n ufe.printStackTrace(out);\r\n evt.rejectDrop();\r\n } // end catch: UnsupportedFlavorException\r\n finally\r\n {\r\n // If it's a Swing component, reset its border\r\n if (comp instanceof javax.swing.JComponent)\r\n {\r\n JComponent jc = (JComponent) comp;\r\n jc.setBorder(normalBorder);\r\n log(out, \"FileDropIn.drop(): normal border restored.\");\r\n } // end if: JComponent\r\n } // end finally\r\n }", "@Override\r\n\t\t\t\t\tpublic void dragOver(DropTargetEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public void \tdragOver(DropTargetDragEvent dtde){}", "@Override\n\tpublic void drop(DropTargetDropEvent event) {\n\n\t\t// Accept copy drops\n\t\tevent.acceptDrop(DnDConstants.ACTION_COPY);\n\n\t\t// Get the transfer which can provide the dropped item data\n\t\tTransferable transferable = event.getTransferable();\n\n\t\t// Get the data formats of the dropped item\n\t\tDataFlavor[] flavors = transferable.getTransferDataFlavors();\n\n\t\t// Loop through the flavors\n\t\tfor (DataFlavor flavor : flavors) {\n\t\t\ttry {\n\t\t\t\t// If the drop items are files\n\t\t\t\tif (flavor.isFlavorJavaFileListType()) {\n\n\t\t\t\t\t// Get all of the dropped files\n\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\tList<File> files = (List<File>) transferable.getTransferData(flavor);\n\n\t\t\t\t\t// Loop them through\n\t\t\t\t\tfor (File file : files) {\n\t\t\t\t\t\tString path = file.getPath();\n\t\t\t\t\t\tif (path.toLowerCase().endsWith(\".png\") || path.toLowerCase().endsWith(\".jpg\") || path.toLowerCase().endsWith(\".jpeg\") || path.toLowerCase().endsWith(\".bmp\")) {\n\t\t\t\t\t\t\t// Print out the file path\n\t\t\t\t\t\t\tpath = file.getPath();\n\t\t\t\t\t\t\tSystem.out.println(\"File path is '\" + path + \"'.\");\n\t\t\t\t\t\t\tif (getQuestEditation() != null) {\n\t\t\t\t\t\t\t\tgetQuestEditation().getImagePanel().setImage(path, false);\n\t\t\t\t\t\t\t\tgetQuestEditation().getImagePanel().repaint();\n\t\t\t\t\t\t\t\tgetQuestEditation().setPictureIsFromFolder(false);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgetAddAnswer().getAnswerPanel().setImage(path, false);\n\t\t\t\t\t\t\t\tgetAddAnswer().getAnswerPanel().repaint();\n\t\t\t\t\t\t\t\tgetAddAnswer().setPictureIsFromFolder(false);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else if (flavor.match(DataFlavor.imageFlavor)) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tImage image = (Image) transferable.getTransferData(DataFlavor.imageFlavor);\n\t\t\t\t\t\tif (getQuestEditation() != null) {\n\t\t\t\t\t\t\tgetQuestEditation().getImagePanel().setImage((BufferedImage) image);\n\t\t\t\t\t\t\tgetQuestEditation().getImagePanel().setPath(\"none\");\n\t\t\t\t\t\t\tgetQuestEditation().getImagePanel().repaint();\n\t\t\t\t\t\t\tgetQuestEditation().setPictureIsFromFolder(false);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tgetAddAnswer().getAnswerPanel().setImage((BufferedImage) image);\n\t\t\t\t\t\t\tgetAddAnswer().getAnswerPanel().setPath(\"none\");\n\t\t\t\t\t\t\tgetAddAnswer().getAnswerPanel().repaint();\n\t\t\t\t\t\t\tgetAddAnswer().setPictureIsFromFolder(false);\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (InvalidDnDOperationException ex) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.println(\"word 2010 error\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t// Inform that the drop is complete\n\t\tevent.dropComplete(true);\n\t}", "void onDrop(int from, int to);", "@Override\r\n public void dragExit(DropTargetEvent dte) {}", "@Override\n\tpublic void drop(DropTargetDropEvent e) {\n\t\tgetContainerDelegate().removeFromPlaceHolderVisibleRequesters(getTargetComponent());\n\t\tgetTargetComponent().setFocused(false);\n\t\ttry {\n\t\t\tDataFlavor chosen = chooseDropFlavor(e);\n\t\t\tif (chosen == null) {\n\t\t\t\te.rejectDrop();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// the actions that the source has specified with\n\t\t\t// DragGestureRecognizer\n\t\t\tint sa = e.getSourceActions();\n\n\t\t\tif ((sa & acceptableActions) == 0) {\n\t\t\t\te.rejectDrop();\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tObject data = null;\n\n\t\t\ttry {\n\n\t\t\t\t/*\n\t\t\t\t * the source listener receives this action in dragDropEnd. if\n\t\t\t\t * the action is DnDConstants.ACTION_COPY_OR_MOVE then the\n\t\t\t\t * source receives MOVE!\n\t\t\t\t */\n\n\t\t\t\tdata = e.getTransferable().getTransferData(chosen);\n\t\t\t\tif (logger.isLoggable(Level.FINE)) {\n\t\t\t\t\tlogger.fine(\"data is a \" + data.getClass().getName());\n\t\t\t\t}\n\t\t\t\tif (data == null) {\n\t\t\t\t\tthrow new NullPointerException();\n\t\t\t\t}\n\t\t\t} catch (Throwable t) {\n\t\t\t\tif (logger.isLoggable(Level.WARNING)) {\n\t\t\t\t\tlogger.warning(\"Couldn't get transfer data: \" + t.getMessage());\n\t\t\t\t}\n\t\t\t\tt.printStackTrace();\n\t\t\t\te.dropComplete(false);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (data instanceof FIBDraggable) {\n\n\t\t\t\ttry {\n\t\t\t\t\tFIBDraggable element = (FIBDraggable) data;\n\t\t\t\t\tif (element == null) {\n\t\t\t\t\t\te.rejectDrop();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tObject source = e.getSource();\n\n\t\t\t\t\t// OK, let's got for the drop\n\t\t\t\t\tif (source instanceof FIBDropTarget && element.acceptDragging((FIBDropTarget) source)) {\n\t\t\t\t\t\tPoint pt = e.getLocation();\n\t\t\t\t\t\tif (element.elementDragged((FIBDropTarget) source, pt)) {\n\t\t\t\t\t\t\te.acceptDrop(acceptableActions);\n\t\t\t\t\t\t\te.dropComplete(true);\n\t\t\t\t\t\t\tlogger.info(\"Drop succeeded\");\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\te.rejectDrop();\n\t\t\t\t\te.dropComplete(false);\n\t\t\t\t\treturn;\n\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tlogger.warning(\"Unexpected: \" + e1);\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\te.rejectDrop();\n\t\t\t\t\te.dropComplete(false);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t\te.rejectDrop();\n\t\t\te.dropComplete(false);\n\t\t\treturn;\n\t\t}\n\n\t\tfinally {\n\t\t\t// getController().getDrawingView().resetCapturedNode();\n\t\t}\n\t}", "@Override\r\n\t\t\t\t\tpublic void dragOperationChanged(DropTargetEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void dragOperationChanged(DropTargetEvent event) {\n\t\t\t\t\r\n\t\t\t}", "public void dropActionChanged(DropTargetDragEvent dtde){}", "@Override\r\n\t\tpublic void dragExit(DropTargetEvent dte) {\n\t\t\t\r\n\t\t}", "public void dragOver(DropTargetDragEvent dtde) {\n // empty\n }", "@Override\r\n\t\t\tpublic void drop(DropTargetEvent event) {\n\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event.data;\r\n\t\t\t\tif (selection.size() > 0) {\r\n\t\t\t\t\tIStructuredSelection structuredSelection = (IStructuredSelection) selection;\r\n\t\t\t\t\tTopic element = (Topic) structuredSelection.getFirstElement();\r\n\t\t\t\t\ttextFrom.setText(element.getName());\r\n\t\t\t\t\t\r\n\t\t\t\t\ttransform.setFromTopic(element.getName());\r\n\t\t\t\t\tem.getTransaction().begin();\r\n\t\t\t\t\tem.merge(transform);\r\n\t\t\t\t\tem.getTransaction().commit();\r\n\t\t\t\t}\r\n\t\t\t}", "public void dragOver(DropTargetDragEvent dtde) {\n\t\t\n\t}", "@Override\r\n\t\t\t\t\tpublic void drop(DropTargetEvent event) {\n\t\t\t\t\t\tIStructuredSelection selection = (IStructuredSelection) event.data;\r\n\t\t\t\t\t\tif (selection.size() > 0) {\r\n\t\t\t\t\t\t\tIStructuredSelection structuredSelection = (IStructuredSelection) selection;\r\n\t\t\t\t\t\t\tTopic element = (Topic) structuredSelection.getFirstElement();\r\n\t\t\t\t\t\t\ttextTo.setText(element.getName());\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\ttransform.setToTopic(element.getName());\r\n\t\t\t\t\t\t\tem.getTransaction().begin();\r\n\t\t\t\t\t\t\tem.merge(transform);\r\n\t\t\t\t\t\t\tem.getTransaction().commit();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "@Override\n\t\t\tpublic void dragExit(DropTargetEvent e) {\n\t\t\t}", "public void drop(DropTargetDropEvent dtde){\n if(draggedFile!=null){\n log.info(\"MotionViewer.drop(): opening file \"+draggedFile);\n try{\n recentFiles.addFile(draggedFile);\n getPlayer().startPlayback(draggedFile);\n }catch(FileNotFoundException e){\n e.printStackTrace();\n }\n }\n }", "@Override\n\tpublic void handleDrop(Player player, Task task, Game game) {\n\t\t\n\t}", "@Override\n public boolean onDrag(View viewDroppedUpon , DragEvent de){\n\n\n log(\"adapter pos\"+this.viewHolder.getAdapterPosition());\n switch (de.getAction()){\n\n case DragEvent.ACTION_DRAG_STARTED:\n //log(\"StartingDrag\"+DragEvent.ACTION_DRAG_STARTED);\n return true;\n\n case DragEvent.ACTION_DRAG_ENDED:\n //log(\"Ending Drag\"+DragEvent.ACTION_DRAG_ENDED);\n return true;\n\n case DragEvent.ACTION_DRAG_ENTERED:\n //log(\"Drag entered \"+DragEvent.ACTION_DRAG_ENTERED);\n return true;\n\n case DragEvent.ACTION_DRAG_EXITED:\n //log(\"Drag ended \"+DragEvent.ACTION_DRAG_ENDED);\n\n return true;\n\n case DragEvent.ACTION_DRAG_LOCATION:\n //log(\"Drag location \"+DragEvent.ACTION_DRAG_LOCATION);\n return true;\n\n case DragEvent.ACTION_DROP:\n //log(\"droppable is \"+this.droppable);\n\n log(\"Action dropped \" + DragEvent.ACTION_DROP);\n\n View dropped=(View)de.getLocalState();\n\n\n log(\"viewDroppedUpon tag \"+viewDroppedUpon.getTag());\n log(\"dropped tag \"+dropped.getTag());\n int pos=this.viewHolder.getAdapterPosition();\n\n\n\n mPairMaker.makePairs(dropped,viewDroppedUpon,pos,LongPressListener.getPosition());\n\n\n\n\n\n return true;\n }\n\n\n\n return false;\n }", "@Override\r\n public void dropActionChanged(DropTargetDragEvent dtde) {}", "public void drop(DropTargetDropEvent dtde) {\n Transferable t = dtde.getTransferable();\n\n DocumentTreeNode[] treeNodes = null;\n try {\n treeNodes = (DocumentTreeNode[]) t.getTransferData(DocumentTreeNodeArrayTransferable.DATA_FLAVOR);\n } catch (Exception e) {\n DeployHelper.logException(e);\n }\n\n if (treeNodes == null) {\n return;\n }\n\n Point location = dtde.getLocation();\n\n DiagramView view = DeployHelper.getDiagramView(mainFrame);\n\n Diagram diagram = view.getDiagram();\n\n UpdateDiagramAction compositeAction = new UpdateDiagramAction(view, \"Add elements to diagram\");\n\n for (DocumentTreeNode treeNode : treeNodes) {\n java.lang.Object object = treeNode.getNodeObject();\n ModelElement modelElement = null;\n if (object instanceof GraphNode) {\n modelElement = DeployHelper.getElement((GraphElement) object);\n } else if (object instanceof ModelElement) {\n modelElement = (ModelElement) object;\n }\n\n if (modelElement != null && isSupportedModelElement(modelElement, diagram)) {\n compositeAction.put(getAddNodeAction(view, modelElement, location), view);\n }\n }\n\n mainFrame.handleActionEvent(compositeAction, view, \"Add dragged elements\");\n mainFrame.getDocumentTree().updateTree();\n DeployHelper.notifySelectionChanged(mainFrame, view);\n }", "@Override\n\tpublic void handleDroppedCFComponent(CFComponent component) {\n\n\t}", "@Override\r\n public void dragEnter(DropTargetDragEvent dtde) {}", "@Generated\n @Selector(\"tableView:performDropWithCoordinator:\")\n void tableViewPerformDropWithCoordinator(@NotNull UITableView tableView,\n @NotNull @Mapped(ObjCObjectMapper.class) UITableViewDropCoordinator coordinator);", "@Override\n public void handle(DragEvent event) {\n Dragboard db = event.getDragboard();\n\n if (event.getGestureSource() != skin.getScrollPane() && db.hasString()) {\n event.acceptTransferModes(TransferMode.COPY);\n }\n event.consume();\n }", "@Override\n public void mouseDragged(MouseEvent e) {\n Point tabPt = e.getPoint(); // e.getDragOrigin();\n if (startPt != null\n && Math.sqrt(Math.pow(tabPt.x - startPt.x, 2)\n + Math.pow(tabPt.y - startPt.y, 2)) > gestureMotionThreshold) {\n DnDTabbedPane src = (DnDTabbedPane) e.getSource();\n TransferHandler th = src.getTransferHandler();\n dragTabIndex = src.indexAtLocation(tabPt.x, tabPt.y);\n th.exportAsDrag(src, e, TransferHandler.MOVE);\n lineRect.setRect(0, 0, 0, 0);\n src.getRootPane().getGlassPane().setVisible(true);\n src.setDropLocation(new DropLocation(tabPt, -1));\n startPt = null;\n }\n }", "void onItemDropped(EntityId droppedItem);", "private void setUpDragDrop() {\n\t\tsetUpDrop();\n\n\t\t// set up drag stuff\n\t\tdragSource = DragSource.getDefaultDragSource();\n\t\tdragGestureAdapter = new DragGestureAdapter(this);\n\t\tdragSourceAdapter = new DragSrcAdapter(this);\n\t\tdragSource.createDefaultDragGestureRecognizer(listingPanel.getFieldPanel(), dragAction,\n\t\t\tdragGestureAdapter);\n\t}", "public void onDrag(int dragSource, int dropTarget) {\n\t}", "@Override\r\n\t\tpublic void dropActionChanged(DropTargetDragEvent dtde) {\n\t\t\t\r\n\t\t}", "private void set_dnd() {\n \t\tcardDragController = new PickupDragController(RootPanel.get(), false);\n \t\tcardDragController.addDragHandler(new CardHandler());\n \t\tcardDropPanel = new VerticalPanelDropController(getView().getCards_panel());\n \n \t\t// TODO v�rifier si il y a des lag en utilisant l'application sur le\n \t\t// serveur\n \t\t// mettre en commentaire ces deux lignes\n \n \t\t// VerticalPanelDropController dropController = new\n \t\t// VerticalPanelDropController(getView().getDrop_cards_panel());\n \t\t// cardDragController.registerDropController(dropController);\n \n \t\t// dragController.makeDraggable(getView().getDndImage());\n \n \t\t// AbsolutePositionDropController sp = new\n \t\t// AbsolutePositionDropController(\n \t\t// getView().getDropPanel());\n \t\t// IndexedDropController dropController = new\n \t\t// IndexedDropController(getView().getDropPanel());\n \n \t\t// dragController.registerDropController(sp);\n \t\t// dragController.makeDraggable(getView().getMainLabel());\n \t\t// dragController.makeDraggable(getView().getHtml_panel());\n \t\t// for (CardPresenter c : allCards)\n \t\t// dragController.makeDraggable(c.getView().getWholePanel());\n \n \t}", "void onDragged();", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t\tif ((arg0.isAltDown() && SwingUtilities.isLeftMouseButton(arg0)) || (arg0.isAltDown() && SwingUtilities.isRightMouseButton(arg0)) ) {\n\t\t\t//updatePlayerMousePos(arg0);\n\t\t\ttranslateBoard(arg0);\n\t\t\tboardTranslation = true;\n\t\t} else {\n\t\t\tif (player != null) {\n\t\t\t\tupdatePlayerMousePos(arg0);\n\t\t\t\tif (!player.visitor) {\n\t\t\t\t\tObjectFunctions.getOwnedStack(gameInstance, player, ial);\n\t\t\t\t\tStringBuilder strB = new StringBuilder();\n\t\t\t\t\tStringUtils.toString(ial, ' ', strB).append(' ');\n\t\t\t\t\toutText = strB.toString();\n\t\t\t\t\tif (!isSelectStarted) {\n\t\t\t\t\t\tObjectFunctions.getSelectedObjects(gameInstance, player, ial);\n\t\t\t\t\t\tMoveFunctions.dragObjects(this, gameInstance, player, arg0, ial, objOrigPosX, objOrigPosY, mousePressedGamePos, mouseBoardPos, mouseWheelValue);\n\t\t\t\t\t\t/*Handle all drags of Token Objects*/\n\t\t\t\t\t\tif (this.privateArea.containsScreenCoordinates(mouseScreenX, mouseScreenY)) {\n\t\t\t\t\t\t\tthis.privateArea.currentDragPosition = this.privateArea.getInsertPosition(mouseScreenX, mouseScreenY);\n\t\t\t\t\t\t\toutText = \"Position:\" + this.privateArea.currentDragPosition;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tthis.privateArea.currentDragPosition = -1;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (hoveredObject == null && !SwingUtilities.isMiddleMouseButton(arg0) && !(SwingUtilities.isLeftMouseButton(arg0) && arg0.isShiftDown()) && !mouseInPrivateArea) {\n\t\t\t\t\t\t\tselectWidth = mouseScreenX - beginSelectPosScreenX;\n\t\t\t\t\t\t\tselectHeight = mouseScreenY - beginSelectPosScreenY;\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\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\trepaint();\n\t}", "private void addDragEventHandlers(ImageView view, DRAGGABLE_TYPE draggableType, GridPane sourceGridPane,\n GridPane targetGridPane) {\n view.setOnDragDetected(new EventHandler<MouseEvent>() {\n public void handle(MouseEvent event) {\n currentlyDraggedImage = view; // set image currently being dragged, so squares setOnDragEntered can\n // detect it...\n currentlyDraggedType = draggableType;\n // Drag was detected, start drap-and-drop gesture\n // Allow any transfer node\n Dragboard db = view.startDragAndDrop(TransferMode.MOVE);\n\n // Put ImageView on dragboard\n ClipboardContent cbContent = new ClipboardContent();\n cbContent.putImage(view.getImage());\n db.setContent(cbContent);\n view.setVisible(false);\n\n buildNonEntityDragHandlers(draggableType, sourceGridPane, targetGridPane);\n draggedEntity.relocateToPoint(new Point2D(event.getSceneX(), event.getSceneY()));\n // switch (draggableType) {\n // case CARD:\n // draggedEntity.setImage(vampireCastleCardImage);\n // break;\n // case ITEM:\n // draggedEntity.setImage(swordImage);\n // break;\n // default:\n // break;\n // }\n\n draggedEntity.setVisible(true);\n draggedEntity.setMouseTransparent(true);\n draggedEntity.toFront();\n\n // IMPORTANT!!!\n // to be able to remove event handlers, need to use addEventHandler\n // https://stackoverflow.com/a/67283792\n targetGridPane.addEventHandler(DragEvent.DRAG_DROPPED, gridPaneSetOnDragDropped.get(draggableType));\n anchorPaneRoot.addEventHandler(DragEvent.DRAG_OVER, anchorPaneRootSetOnDragOver.get(draggableType));\n anchorPaneRoot.addEventHandler(DragEvent.DRAG_DROPPED,\n anchorPaneRootSetOnDragDropped.get(draggableType));\n\n for (Node n : targetGridPane.getChildren()) {\n // events for entering and exiting are attached to squares children because that\n // impacts opacity change\n // these do not affect visibility of original image...\n // https://stackoverflow.com/questions/41088095/javafx-drag-and-drop-to-gridpane\n gridPaneNodeSetOnDragEntered.put(draggableType, new EventHandler<DragEvent>() {\n // TODO = be more selective about whether highlighting changes - if it cannot be\n // dropped in the location, the location shouldn't be highlighted!\n public void handle(DragEvent event) {\n Integer cIndex = GridPane.getColumnIndex(n);\n Integer rIndex = GridPane.getRowIndex(n);\n int x = cIndex == null ? 0 : cIndex;\n int y = rIndex == null ? 0 : rIndex;\n\n int nodeX = GridPane.getColumnIndex(currentlyDraggedImage);\n int nodeY = GridPane.getRowIndex(currentlyDraggedImage);\n\n if (currentlyDraggedType == draggableType) {\n // The drag-and-drop gesture entered the target\n // show the user that it is an actual gesture target\n if (!draggableType.equals(DRAGGABLE_TYPE.ITEM)) {\n if (canBuildingPlace(nodeX, nodeY, x, y))\n n.setOpacity(0.7);\n } else if (event.getGestureSource() != n && event.getDragboard().hasImage()) {\n n.setOpacity(0.7);\n }\n }\n event.consume();\n }\n });\n gridPaneNodeSetOnDragExited.put(draggableType, new EventHandler<DragEvent>() {\n // TODO = since being more selective about whether highlighting changes, you\n // could program the game so if the new highlight location is invalid the\n // highlighting doesn't change, or leave this as-is\n public void handle(DragEvent event) {\n // if (currentlyDraggedType == draggableType) {\n n.setOpacity(1);\n // }\n\n event.consume();\n }\n });\n n.addEventHandler(DragEvent.DRAG_ENTERED, gridPaneNodeSetOnDragEntered.get(draggableType));\n n.addEventHandler(DragEvent.DRAG_EXITED, gridPaneNodeSetOnDragExited.get(draggableType));\n }\n event.consume();\n }\n });\n }", "private void setEvents() {\n \n // On drag detected event (the start of a drag and drop)\n this.setOnDragDetected( e-> {\n if(this.dragEnabled) {\n Dragboard db;\n \n // if on board transfer mode is move, if from the pieces box, copy\n if(this.isOnBoard) { db = startDragAndDrop(TransferMode.MOVE); }\n else { db = startDragAndDrop(TransferMode.COPY); }\n \n ClipboardContent content = new ClipboardContent();\n content.putString(toString());\n db.setContent(content);\n \n if(StrategoView.ENABLE_CONSOLE_DEBUG) { System.out.print(\"Drag started on \"); }\n this.startFullDrag();\n }\n e.consume();\n });\n \n // Mouse dragover event handler (for accepting a drag and drop)\n this.setOnDragOver(new EventHandler<DragEvent>() {\n @Override\n public void handle(DragEvent event) {\n if(dropEnabled) {\n Dragboard db = event.getDragboard();\n if (db.hasString()) {\n event.acceptTransferModes(TransferMode.COPY_OR_MOVE);\n }\n event.consume();\n }\n }\n });\n \n // Drag over entered event ( mouse is dragging over this)\n this.setOnDragEntered(e -> {\n if(dropEnabled) {\n\n // setting color to \"highlight\" square mouse is over\n Color c = Color.MAGENTA;\n setBorderColor(c);\n \n if(StrategoView.ENABLE_CONSOLE_DEBUG) { System.out.print(\"Drag entered \");}\n }\n });\n\n // Drag over exited event ( mouse is no longer dragging over this)\n this.setOnDragExited(e -> {\n if(dropEnabled) {\n\n // reseting to stored color value (mouse drag no longer over)\n setBorderColor(this.borderColor);\n e.consume();\n \n if(StrategoView.ENABLE_CONSOLE_DEBUG) { System.out.print(\"Drag exited \"); }\n }\n });\n \n // Drag over dropped event (the drag and drop event is completed)\n this.setOnDragDropped(e -> {\n Dragboard db = e.getDragboard();\n boolean success = false;\n int toPieceIndex = pieceIndex; // saving previous piece\n if(db.hasString() && this.dropEnabled) {\n \n //TODO check with controller for valid position\n \n boolean moved = false;\n \n String rawInfo = db.getString();\n String[] info = rawInfo.split(\" \");\n this.playerColor = Color.web(info[5]);\n isVisible = (info[6].substring(0, 4).equals(\"true\"));\n int fromPieceIndex = Integer.parseInt(info[0]);\n int fromRow = StrategoView.translate(Integer.parseInt(info[1]));\n int fromCol = StrategoView.translate(Integer.parseInt(info[2]));\n int toRow = StrategoView.translate(row);\n int toCol = StrategoView.translate(col);\n // getting whether the moved piece came from the board (true) or the pieces box (false)\n boolean fromBoard = (info[4].substring(0, 4).equals(\"true\"));\n if(fromBoard) {\n \n // requesting movement from controller\n if(Piece.isMoveValid(fromRow, fromCol, toRow, toCol, PieceView.convertPieceIndexToType(fromPieceIndex))) {\n // piece will move\n //this.show();\n //controller.getPosition(fromRow, fromCol);\n \n }\n moved = controller.movePiece(fromRow, fromCol, toRow, toCol);\n \n \n if(StrategoView.ENABLE_CONSOLE_DEBUG) {\n if(!moved) {\n System.out.println(\"Not moved (from controller)\");\n }\n System.out.printf(\"From Piece index: %d \", fromPieceIndex);\n System.out.printf(\"To Piece index: %d \", toPieceIndex);\n }\n \n \n }else { // Not from board (placed during setup)\n moved = true;\n this.pieceIndex = fromPieceIndex;\n update();\n if(toPieceIndex != pieceIndex){ // if pieced placed is not the same piece already there\n StrategoView.updateLabels(pieceIndex, -1); // decrement count of new piece\n \n if(toPieceIndex >= 0) { // If position on board was occupied by another piece\n StrategoView.updateLabels(toPieceIndex, 1); // increment count of old piece\n }\n }\n // Changing border color value (drag over exit event will actually set the border color)\n this.borderColor = Color.web(info[3]);\n\n }\n if(moved) {\n success = true;\n }\n \n if(StrategoView.ENABLE_CONSOLE_DEBUG) {\n System.out.print(\"Drag ended on \");\n System.out.printf(\"String: %s %s %s\\n\", info[0], info[1], info[2]);\n System.out.printf(\"Dropped on row %d and col %d\\n\", row, col);\n }\n \n }\n e.setDropCompleted(success);\n \n e.consume();\n \n });\n }", "@Override\n\t\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t}", "public void onFrameDrop() {}", "@Override\r\n\t\t\tpublic void dragEnter(DropTargetEvent event) {\n\t\t\t\t\r\n\t\t\t}", "public void onDropOutFoder(Object dragInfo){\n\t\t\n\t\tif(path!=null&&(!path.equals(\"\"))){\n\t\t\tmFolderDrop.setVisibility(View.GONE);\n\t\t\tif(dragInfo!=null){\n\t\t\t\tDataInfo info = (DataInfo) dragInfo;\n\t\t\t\tMap<String, Object> retmap=null;\n\t\t\t\tSystem.out.println(\"drop outside info name \"+ info.getName() + \"position=\" + info.getPosition()+ \"currentPage =\" + currentPage);\n\t\t\t\ttry {\n\t\t\t\t\t//retmap = libCloud.Mydownload_depart(Params.RECOMMEND_VIDEO,path,info.getResid());\n\t\t\t\t\tretmap = libCloud.Mydownload_depart(Params.RECOMMEND_VIDEO,path,info.getId());\n\t\t\t\t} catch (WeiboException 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\tMyDownloadVideoDataAdapter adapter1 = (MyDownloadVideoDataAdapter) ((CustomerGridView) mListViews.get(currentPage -1)).getAdapter();\n\t\t\t\tSystem.out.println(\"drop outside drop position = \" + info.getPosition());\n\t\t\t\tList<DataInfo> list1 = adapter1.getList();\n\t\t\t\tfor(int i=0;i<list1.size();i++){\n\t\t\t\t\tDataInfo inf = list1.get(i);\n\t\t\t\t\tSystem.out.println(\"position = \" + inf.getPosition() + \"name = \" + inf.getName());\n\t\t\t\t}\n\t\t\t\tlist1.remove(info.getPosition());\n\t\t\t\t//adapter1.getList().remove(info.getPosition());\n\t\t\t\tfor(int i=0;i<list1.size();i++){\n\t\t\t\t\tDataInfo inf = list1.get(i);\n\t\t\t\t\tSystem.out.println(\"position = \" + inf.getPosition() + \"name = \" + inf.getName());\n\t\t\t\t}\n\t\t\t\tadapter1.notifyDataSetChanged();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic void dragEnter(DropTargetDragEvent e) {\n\t\t\t}", "private void handleDragDetectedEvent(Event event) {\n String id = DragAndDropDataManager.getInstance().putData(source.getTransferData());\n \n Dragboard db = source.getDragSource().startDragAndDrop(TransferMode.COPY); \n ClipboardContent content = new ClipboardContent();\n content.putString(id);\n db.setContent(content);\n \n source.handleDragDetectedEvent((MouseEvent) event);\n \n event.consume();\n }", "@Override\r\n\t\t\t\t\tpublic void dragEnter(DropTargetEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "public void drop(DragAndDropEvent event) {\n\t\t\t\t// Wrapper for the object that is dragged\n\t\t\t\tTransferable t = event.getTransferable();\n\n\t\t\t\t// Make sure the drag source is the same tree\n\t\t\t\tif (t.getSourceComponent() != treeTable)\n\t\t\t\t\treturn;\n\n\t\t\t\tAbstractSelectTargetDetails target = (AbstractSelectTargetDetails) event.getTargetDetails();\n\n\t\t\t\t// Get ids of the dragged item and the target item\n\t\t\t\tObject sourceItemId = t.getData(\"itemId\");\n\t\t\t\tObject targetItemId = target.getItemIdOver();\n\n\t\t\t\t// if we drop on ourselves, ignore\n\t\t\t\tif (sourceItemId == targetItemId)\n\t\t\t\t\treturn;\n\n\t\t\t\t// On which side of the target the item was dropped\n\t\t\t\tVerticalDropLocation location = target.getDropLocation();\n\n\t\t\t\t// place source after target\n\t\t\t\ttreeHier.moveAfterSibling(sourceItemId, targetItemId);\n\n\t\t\t\t// if top, switch them\n\t\t\t\tif (location == VerticalDropLocation.TOP) {\n\t\t\t\t\ttreeHier.moveAfterSibling(targetItemId, sourceItemId);\n\t\t\t\t}\n\n\t\t\t\tCollection<ExpressZipLayer> layers = (Collection<ExpressZipLayer>) treeHier.rootItemIds();\n\t\t\t\tfor (SetupMapViewListener listener : listeners)\n\t\t\t\t\tlistener.layerMovedEvent(layers);\n\t\t\t}", "@Override\r\n\t\tpublic void dragEnter(DropTargetDragEvent dtde) {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void dragLeave(DropTargetEvent event) {\n\t\t\t\t\r\n\t\t\t}", "public ReplicateTab(int datasetIndex, int replicateIndex) {\n layout = new VerticalLayout();\n\n treatedCoding = new MyGraphFileGrid(\"Treated Coding <b><i>(+)</i></b> Strand\");\n treatedCoding.setCaptionAsHtml(true);\n treatedTemplate = new MyGraphFileGrid(\"Treated Template <b><i>(-)</i></b> Strand\");\n treatedTemplate.setCaptionAsHtml(true);\n untreatedCoding = new MyGraphFileGrid(\"Untreated Coding <b><i>(+)</i></b> Strand\");\n untreatedCoding.setCaptionAsHtml(true);\n untreatedTemplate = new MyGraphFileGrid(\"Untreated Template <b><i>(-)</i></b> Strand\");\n untreatedTemplate.setCaptionAsHtml(true);\n\n graphFileGrid = new Grid<>(\"Available Graph Files\");\n float graphFileGridWidth = 900;\n graphFileGrid.setWidth(graphFileGridWidth, Unit.PIXELS);\n graphFileGrid.addColumn(GraphFileBean::getName)\n .setCaption(\"File name\")\n .setWidth(graphFileGridWidth / 2)\n .setId(\"Name\");\n graphFileGrid.addColumn(GraphFileBean::getCreationDate)\n .setCaption(\"Creation Date\")\n .setWidth(graphFileGridWidth / 3.5);\n graphFileGrid.addColumn(GraphFileBean::getSizeInKB)\n .setCaption(\"Size (kB)\")\n .setWidthUndefined(); //Column takes up remaining space\n\n graphFileGrid.addStyleName(\"my-file-grid\");\n graphFileGrid.sort(graphFileGrid.getColumn(\"Name\"));\n\n graphFileGrid.setItems(graphFileBeans);\n\n\n //Drag and drop implementation\n setupDragSource(graphFileGrid);\n setupDragSource(treatedCoding);\n setupDragSource(treatedTemplate);\n setupDragSource(untreatedCoding);\n setupDragSource(untreatedTemplate);\n\n //Setup drop target for the graph file grid\n GridDropTarget dropTarget = new GridDropTarget<>(graphFileGrid, DropMode.ON_TOP_OR_BETWEEN);\n dropTarget.setDropEffect(DropEffect.MOVE);\n dropTarget.addGridDropListener(event -> {\n //Remove dragged item from source\n Grid<GraphFileBean> dragSourceGrid = (Grid<GraphFileBean>) event.getDragSourceComponent().get();\n ListDataProvider<GraphFileBean> sourceProvider = (ListDataProvider<GraphFileBean>) dragSourceGrid.getDataProvider();\n sourceProvider.getItems().remove(draggedItem);\n dragSourceGrid.deselectAll();\n sourceProvider.refreshAll();\n Collection<GraphFileBean> items = ((ListDataProvider<GraphFileBean>) graphFileGrid.getDataProvider()).getItems();\n if (!items.contains(draggedItem))\n items.add(draggedItem);\n graphFileGrid.getDataProvider().refreshAll();\n });\n\n\n //Layout the components\n presenter.updateReplicateID(datasetIndex, replicateIndex, createAlphabeticalIndex(replicateIndex));\n VerticalLayout treatedLayout = new VerticalLayout(treatedCoding, treatedTemplate);\n VerticalLayout untreatedLayout = new VerticalLayout(untreatedCoding, untreatedTemplate);\n HorizontalLayout gridLayout = new HorizontalLayout(treatedLayout, untreatedLayout);\n gridLayout.setComponentAlignment(treatedLayout, Alignment.MIDDLE_LEFT);\n gridLayout.setComponentAlignment(untreatedLayout, Alignment.MIDDLE_RIGHT);\n gridLayout.setWidth(100, Unit.PERCENTAGE);\n layout.addComponents(new InfoBar(Globals.REPLICATE_TAB_INFO), gridLayout, graphFileGrid);\n layout.setComponentAlignment(graphFileGrid, Alignment.BOTTOM_CENTER);\n setCompositionRoot(layout);\n\n\n }", "public void drop(DropTargetDropEvent dtde) {\n DnDUtils.debugPrintln(\"DropTarget drop, drop action = \"\n + DnDUtils.showActions(dtde.getDropAction()));\n\n // Check the drop action\n if ((dtde.getDropAction() & DnDConstants.ACTION_COPY_OR_MOVE) != 0) {\n // Accept the drop and get the transfer data\n dtde.acceptDrop(dtde.getDropAction());\n Transferable transferable = dtde.getTransferable();\n boolean dropSucceeded = false;\n\n try {\n tree.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));\n\n // Save the user's selections\n saveTreeSelection();\n\n dropSucceeded = dropNodes(dtde.getDropAction(), transferable,\n dtde.getLocation());\n\n DnDUtils.debugPrintln(\"Drop completed, success: \"\n + dropSucceeded);\n\n } catch (Exception e) {\n DnDUtils.debugPrintln(\"Exception while handling drop \" + e);\n\n } finally {\n tree.setCursor(Cursor.getDefaultCursor());\n\n // Restore the user's selections\n restoreTreeSelection();\n dtde.dropComplete(dropSucceeded);\n }\n\n } else {\n DnDUtils.debugPrintln(\"Drop target rejected drop\");\n dtde.dropComplete(false);\n }\n }", "@Override\n\tpublic void onDragEnd(boolean success) {\n\t\t\n\t}", "@Override\r\n\tpublic void onDrop(final DragContext context) {\r\n\t\tsuper.onDrop(context);\r\n\r\n\t\tfor (Element elem : highlightedCells) {\r\n\t\t\tif (elem != null) {\r\n//\t\t\t\tDOM.setStyleAttribute(elem, BACKGROUND, \"#FFFFFF\");\r\n\t\t\t\telem.getStyle().setBackgroundColor(\"#FFFFFF\");\r\n\t\t\t}\r\n\t\t}\r\n\t\thighlightedCells = null;\r\n\r\n\t\tDraggable draggable = draggableList.get(0);\r\n\r\n\t\tBooking appointment = ((BookingWidget) context.draggable).getAppointment();\r\n\r\n\t\tlong originalStartToEndTimeDistance = appointment.getEnd().getTime() - appointment.getStart().getTime();\r\n\r\n\t\t// get the column and row for the draggable widget\r\n\t\tint row = getRow(context, draggable) - 1;\r\n\t\tint col = getColumn(context, draggable);\r\n\t\tint cell = row * daysPerWeek + col;\r\n\r\n\t\t// calculate the new start & end dates\r\n\t\tDate newStart = DateUtils.shiftDate(firstDateDisplayed, cell);\r\n\t\tDateUtils.copyTime(appointment.getStart(), newStart);\r\n\r\n\t\tDate newEnd = new Date(newStart.getTime() + originalStartToEndTimeDistance);\r\n\r\n\t\t// Set the appointment's new start & end dates\r\n\t\tappointment.setStart(newStart);\r\n\t\tappointment.setEnd(newEnd);\r\n\t}", "@Override\n\t\t\tpublic void drop(DropTargetDropEvent event) {\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tTransferable tf = event.getTransferable();\n\t\t\t\t\tif(tf.isDataFlavorSupported(DataFlavor.javaFileListFlavor))\n\t\t\t\t\t{\n\t\t\t\t\t\tevent.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE);\n\t\t\t\t\t\tList file_list = (List) tf.getTransferData(DataFlavor.javaFileListFlavor);\n\t\t\t\t\t\tIterator file_iterator = file_list.iterator();\n\t\t\t\t\t\twhile(file_iterator.hasNext())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tFile file = (File) file_iterator.next();\n\t\t\t\t\t\t\tinput_box.setText(input_box.getText() + \" \" + file.getAbsolutePath());\n\t\t\t\t\t\t\tevent.dropComplete(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tContent.setText(\"Cannot add this file\\n\");\n\t\t\t\t\t\tevent.rejectDrop();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(Exception e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void dropview() {\n\t\tthis.remove(scrollPane);\n\t}", "public void handle(DragEvent event) {\n Integer cIndex = GridPane.getColumnIndex(n);\n Integer rIndex = GridPane.getRowIndex(n);\n int x = cIndex == null ? 0 : cIndex;\n int y = rIndex == null ? 0 : rIndex;\n\n int nodeX = GridPane.getColumnIndex(currentlyDraggedImage);\n int nodeY = GridPane.getRowIndex(currentlyDraggedImage);\n\n if (currentlyDraggedType == draggableType) {\n // The drag-and-drop gesture entered the target\n // show the user that it is an actual gesture target\n if (!draggableType.equals(DRAGGABLE_TYPE.ITEM)) {\n if (canBuildingPlace(nodeX, nodeY, x, y))\n n.setOpacity(0.7);\n } else if (event.getGestureSource() != n && event.getDragboard().hasImage()) {\n n.setOpacity(0.7);\n }\n }\n event.consume();\n }", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\t\t\t\n\t\t}", "@Override\n protected void handleDropFromLayout(DragAndDropEvent event) {\n LayoutBoundTransferable transferable = (LayoutBoundTransferable) event\n .getTransferable();\n\n // Get the target details\n AccordionTargetDetails details = (AccordionTargetDetails) event\n .getTargetDetails();\n DDAccordion acc = (DDAccordion) details.getTarget();\n Component c = transferable.getComponent();\n int idx = details.getOverIndex();\n VerticalDropLocation location = details.getDropLocation();\n\n // Detach from old source\n Component source = transferable.getSourceComponent();\n if (source instanceof ComponentContainer) {\n ((ComponentContainer) source).removeComponent(c);\n } else if (source instanceof SingleComponentContainer) {\n ((SingleComponentContainer) source).setContent(null);\n }\n\n if (location == VerticalDropLocation.TOP) {\n acc.addTab(c, idx);\n } else if (location == VerticalDropLocation.BOTTOM) {\n acc.addTab(c, idx + 1);\n } else {\n acc.addTab(c);\n }\n }", "@Override\r\n\t\t\t\t\tpublic void dragLeave(DropTargetEvent event) {\n\t\t\t\t\t\t\r\n\t\t\t\t\t}", "@Override\n\tpublic void mouseDragged(int arg0, int arg1, int arg2, int arg3) {\n\n\t}", "@Override\n public void onDragEnd() {\n // Do nothing.\n }", "public interface DropListener {\n\t\n\t/**\n\t * Called when an item is to be dropped.\n\t * @param from - index item started at.\n\t * @param to - index to place item at.\n\t */\n\tvoid onDrop(int from, int to);\n}", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t}", "public void dragOver( DropTargetDragEvent evt )\r\n { // This is called continually as long as the mouse is\r\n // over the drag target.\r\n }", "public boolean execute(DropTargetDropEvent evt) {\n\t\t\tdropIt();\n\n\t\t\treturn true;\n\t\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\r\n\t}", "@Override\n public void mouseDragged(MouseEvent arg0) {\n \n }", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\t\t\n\t}", "public void setDropEnabled(boolean enabled) { this.dropEnabled = enabled; }", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\r\n\tpublic void mouseDragged(MouseEvent e) {\n\r\n\t}", "@Override\n\t\tpublic void mouseDragged(MouseEvent e) {\n\n\t\t}", "public void onDrag(int dragSource, int dropTarget) {\n\t\t}", "public DropAwareJXTable() {\n acceptableActions = DnDConstants.ACTION_COPY_OR_MOVE;\n dt = new DropTarget(this, acceptableActions, this);\n }", "public void dragDropEnd(boolean success);", "@Override\n\t\tpublic void mouseDragged(MouseEvent arg0) {\n\t\t\t\n\t\t}", "@Override\r\n public void mouseDragged(MouseEvent e) {\n }", "public void dragExit(DropTargetEvent dte) {\n\t\t\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent e) {\n\n\t}", "@Override\n\tpublic void mouseDragged(MouseEvent arg0) {\n\t}", "@Override\r\n\t\t\tpublic void mouseDragged(MouseEvent arg0) {\n\r\n\t\t\t}", "@Override\n \tpublic void mouseDragged(MouseEvent e) {\n \t}" ]
[ "0.6541509", "0.6346943", "0.6320959", "0.6253968", "0.62107563", "0.61959696", "0.6165745", "0.6058334", "0.60200286", "0.6010603", "0.5991182", "0.5982714", "0.595394", "0.59511393", "0.5933491", "0.59241605", "0.5923593", "0.5894186", "0.58750236", "0.5855218", "0.5845407", "0.5826226", "0.5809458", "0.58054495", "0.5756078", "0.5751848", "0.57432795", "0.56939673", "0.5693571", "0.56871927", "0.56514615", "0.56465185", "0.563909", "0.5616666", "0.56079733", "0.56053483", "0.560181", "0.56014675", "0.5576295", "0.5574212", "0.5570705", "0.55696774", "0.5558683", "0.5541195", "0.55385554", "0.553516", "0.55052155", "0.5502935", "0.5490219", "0.54851234", "0.5478632", "0.54710877", "0.54689604", "0.5459075", "0.5458218", "0.54555756", "0.5447305", "0.54469264", "0.5440578", "0.5439647", "0.5432893", "0.54313487", "0.5418433", "0.5416814", "0.5413413", "0.5409916", "0.5408223", "0.5405309", "0.5405309", "0.5405309", "0.53966904", "0.53857106", "0.5363872", "0.5360974", "0.53585935", "0.535794", "0.5356655", "0.5352402", "0.5345793", "0.5345793", "0.5344216", "0.53441244", "0.53441244", "0.53441244", "0.53441244", "0.53441244", "0.53420615", "0.5338872", "0.5338872", "0.53362143", "0.53352445", "0.533049", "0.5328178", "0.53224003", "0.53171104", "0.5308896", "0.530874", "0.5305654", "0.53034216", "0.5288686" ]
0.5977429
12
Test if not currently emailing & dropped content is a File
public boolean canImport(JComponent comp, DataFlavor[] flavors) { return (!container.isEmailing() && FileList.hasAnyFileFlavor(flavors)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isFile() { return false; }", "public boolean isFile() { return true; }", "@Override\n\tpublic boolean isFile() {\n\t\treturn true;\n\t}", "boolean hasMimeType();", "public boolean isAttachment() {\n return isAttachment;\n }", "@Override\r\n public boolean isFile() throws FileSystemException {\r\n // Use equals instead of == to avoid any class loader worries.\r\n return FileType.FILE.equals(this.getType());\r\n }", "boolean hasAttachment();", "@Override\r\n\tpublic boolean isFile(String path) {\n\t\treturn false;\r\n\t}", "boolean isFile() throws IOException;", "boolean safeIsFile(FsPath path);", "boolean hasHaveReceiveAttachment();", "public boolean isStreamingContent() {\n return File.class.equals(this.type) || XmlPullParser.class.equals(this.type) || InputStream.class.equals(this.type) || XmlDom.class.equals(this.type);\n }", "public boolean isContentType()\n {\n return !hasChanges;\n }", "public boolean isSetFileType() {\n return this.fileType != null;\n }", "public boolean getIsFileTransfer() {\n return mIsFileTransfer;\n }", "@Override\n\tpublic boolean CheckStreamingLike(String mail) {\n\t\treturn false;\n\t}", "public boolean isSetFileType()\n {\n synchronized (monitor())\n {\n check_orphaned();\n return get_store().count_elements(FILETYPE$8) != 0;\n }\n }", "protected boolean _isFileTypeOperation(String actionId)\n {\n boolean isLocal = _isLocalOperation(actionId);\n if (isLocal)\n {\n return false;\n }\n \n if (this._actionId.equals(Constants.CHANGEPASSWORD))\n {\n return false;\n }\n else\n return true; //ntt-Jun102013: this was return false\n }", "public static boolean isFileUploadAvailable() {\n return isFileUploadAvailable(false);\n }", "public static boolean isFileUploadAvailable() {\n return isFileUploadAvailable(false);\n }", "public boolean isFileTransferSupported() {\n\t\tLogger.i(TAG, \"isFileTransferSupported value \" + fileTransfer);\n\t\treturn fileTransfer;\n\t}", "String getFileMimeType();", "@Override\r\n\tpublic boolean isValidDataFile(final byte[] data) {\r\n\r\n \tfinal File odfFile;\r\n \ttry {\r\n \t\todfFile = createTempFile(data);\r\n \t\todfFile.deleteOnExit();\r\n \t} catch (final Exception e) {\r\n \t\tLOGGER.warning(\"No se pudo crear una copia del fichero para su analisis, se devolvera false\"); //$NON-NLS-1$\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n // Si el mimetype del fichero no se ajusta a alguno de los MimeTypes\r\n // soportados\r\n // para firma ODF se lanzara una excepcion, en ese caso deducimos que no\r\n // es un\r\n // fichero valido\r\n String mimetype = null;\r\n try {\r\n mimetype = AOODFSigner.getODFMimeType(odfFile);\r\n }\r\n catch (final Exception e) {\r\n return false;\r\n }\r\n\r\n // Sera valido si el mimetype coincide con alguno de los formatos ODF\r\n // soportados\r\n return mimetype != null && SUPPORTED_FORMATS.contains(mimetype);\r\n }", "boolean hasPlainTransferFrom();", "public boolean isTransferringContainer() {\n return this.isContainerFile();\n }", "protected boolean isDiffFile(AbstractObjectWapper<?> srcObject, AbstractObjectWapper<?> destObject)\n\t\t\tthrows FileException {\n\t\treturn srcObject.isDiff(destObject);\n\t}", "public boolean isSetFileBody() {\n return this.fileBody != null;\n }", "public boolean isFileByFile() {\n return fileByFile;\n }", "boolean hasHaveAttachment();", "public boolean hasMimeType() {\n return ((bitField0_ & 0x00000008) == 0x00000008);\n }", "private boolean isDragOk( final PrintStream out, final DropTargetDragEvent evt )\r\n {\r\n boolean ok = false;\r\n\r\n // Get data flavors being dragged\r\n DataFlavor[] flavors = evt.getCurrentDataFlavors();\r\n\r\n if (flavors.length == 0)\r\n {\r\n log(out, \"FileDrop.isDragOk(): no data flavors.\");\r\n }\r\n\r\n for (int i = 0; i < flavors.length; i++)\r\n {\r\n log(out, \"FileDrop.isDragOk(): flaver[\" + i + \"] = \" + flavors[i].toString());\r\n }\r\n // See if any of the flavors are a file list that match\r\n // int i = 0;\r\n // while( !ok && i < flavors.length )\r\n for (int i = 0; !ok && (i < flavors.length); i++)\r\n { // Is the flavor a file list?\r\n\r\n ok = flavors[i].equals(DataFlavor.javaFileListFlavor);\r\n log(out, \"FileDrop.isDragOk(): flaver[\" + i + \"] \" + ((ok == true) ? \"MATHCES\" : \"DOES NOT MATCH\"));\r\n } // end for: through flavors\r\n\r\n return ok;\r\n }", "private boolean wasTheFileReallyTransferred(SubmittedFile file)\n\t{\n\t\treturn Duration.between(file.getTimeStamp(), Instant.now()).toMillis() >= tailerDelayMillis; \n\t}", "public abstract boolean isFileOutput();", "public boolean hasMimeType() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasPlainTransfer();", "boolean isFile(FsPath path);", "public boolean getSendFileAsPostBody() {\n // If there is one file with no parameter name, the file will\n // be sent as post body.\n HTTPFileArg[] files = getHTTPFiles();\n return (files.length == 1)\n && (files[0].getPath().length() > 0)\n && (files[0].getParamName().length() == 0);\n }", "public boolean getSendFileAsPostBody() {\n // If there is one file with no parameter name, the file will\n // be sent as post body.\n HTTPFileArg[] files = getHTTPFiles();\n return (files.length == 1)\n && (files[0].getPath().length() > 0)\n && (files[0].getParamName().length() == 0);\n }", "boolean isFileEnded();", "boolean getFileErr();", "public final boolean isMultipart() {\n return this.getTopLevelType().equals(\"multipart\");\n }", "public boolean hasAttachment() {\n\t\treturn Objects.nonNull(attachment);\n\t}", "private boolean isSupportedFile(Object fileObject) {\n\t\tif (fileObject instanceof IAdaptable)\n\t\t\treturn castToIFile(fileObject).getFileExtension().equals(TestCasePersister.FILE_EXTENSION);\n\t\t\t\n\t\treturn false;\n\t}", "default boolean alwaysFormatEntireFile() {\n return false;\n }", "public boolean isFile(String path);", "@Override\n public boolean hasUploadedFiles(Item item) throws SQLException\n {\n List<Bundle> bundles = getBundles(item, \"ORIGINAL\");\n for (Bundle bundle : bundles) {\n if (CollectionUtils.isNotEmpty(bundle.getBitstreams())) {\n return true;\n }\n }\n return false;\n }", "@Override\n public boolean hasAttachment() {\n return this.getAdvanceTravelPayment().isAttachmentCode();\n }", "private boolean acceptAsExpected()\n {\n return saveExpectedDir_ != null;\n }", "private void isAudio(MultipartFile file) {\n\t\t\n\t}", "public boolean isTransferringExecutableFile() {\n return this.isExecutable();\n }", "public boolean isSetFileData() {\n return this.fileData != null;\n }", "public boolean isRegularFile() {\n\t\treturn isRegularFile;\n\t}", "public boolean hasRetrieveFile() {\n return msgCase_ == 2;\n }", "@NotNull\n String getMimeType();", "java.lang.String getMimeType();", "java.lang.String getMimeType();", "@java.lang.Deprecated boolean hasFile();", "public boolean canAbandonFile(OpenDefinitionsDocument doc) { return true; }", "public boolean canAbandonFile(OpenDefinitionsDocument doc) { return true; }", "private void isImage(MultipartFile file) {\n if(!Arrays.asList(IMAGE_JPEG.getMimeType(), IMAGE_PNG.getMimeType(), IMAGE_GIF.getMimeType(), IMAGE_BMP.getMimeType(), IMAGE_SVG.getMimeType()).contains(file.getContentType()))\n throw new IllegalStateException(\"File must be an image [\"+ file.getContentType()+\"]\\nExpected Types: [\"+IMAGE_JPEG+\" \"+IMAGE_PNG+\" \"+IMAGE_GIF+\" \"+IMAGE_BMP+\" \"+IMAGE_SVG+\"]\");\n }", "@Override\n public boolean getContentBinary() throws WebdavException {\n return false;\n }", "private boolean isAcceptableFile(File f) {\n \tif( f.getName().length() < 7 ) {\n \t\treturn false;\n \t}\n \t\n \tString extension = f.getName().substring( f.getName().length()-7, f.getName().length() );\n \tif ( !extension.equals(\".tessit\") ) {\n \t\treturn false;\n \t}\n \t\n \treturn true;\n }", "private boolean onAntesAbrirArquivo() {\n\t\tAACAntesArquivoEventObject e = new AACAntesArquivoEventObject(this, false);\n\t\tnotifyListeners(\"onAntesAbrirArquivo\", e);\n\t\treturn e.isContinua();\n\t}", "boolean hasFilePath();", "private boolean fileIsInTextFormat(byte[] fileBytesToVerify) {\r\n\r\n\t\tboolean isOk = false;\r\n\t\tTika tka = new Tika();\r\n\t\t\r\n\t\tisOk = tka.detect(fileBytesToVerify).equalsIgnoreCase(\"text/html\");\r\n\r\n\t\tif (this.debug) {\r\n\t\t\tprintln(isOk + \" found in fileIsInTextFormat in TextToAudioFile\");\r\n\t\t\tprintln(\"Contents of text file returned...\");\r\n\t\t\ttry {\r\n\t\t\t\tprintln(new String(fileBytesToVerify, \"UTF-8\"));\r\n\t\t\t} catch (UnsupportedEncodingException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn isOk;\r\n\t}", "public boolean isRemoteFile() {\n\t\tif (this.serverFileInfo == null)\n\t\t\tthis.fetchInfo();\n\t\treturn this.serverFileInfo != null && this.serverFileInfo.exists();\n\t}", "boolean isSetValueAttachment();", "public boolean hasRetrieveFile() {\n return msgCase_ == 2;\n }", "String getMimeType();", "@Override\r\n\tpublic boolean isZip(String remoteFilePath) throws FileSystemUtilException {\r\n\t\tthrow new FileSystemUtilException(\"000000\", null, Level.ERROR, null);\r\n\r\n\t}", "public synchronized boolean checkFileCompletion()\n/* */ {\n/* 49 */ int totalsize = 0;\n/* */ \n/* 51 */ for (FileSubContent subContent : this.downloadManager.getSUB_CONTENTS())\n/* */ {\n/* 53 */ if ((subContent != null) && (subContent.isIsDownloaded()) && (subContent.getContent().length == this.downloadManager.getSUB_SIZE()))\n/* */ {\n/* 55 */ totalsize++;\n/* */ }\n/* */ }\n/* */ \n/* 59 */ if (totalsize == this.downloadManager.getSUB_CONTENTS().size())\n/* */ {\n/* 61 */ System.out.println(\"FileDownloadChecker: got all of the subParts.\");\n/* 62 */ return true;\n/* */ }\n/* */ \n/* */ \n/* 66 */ return false;\n/* */ }", "boolean hasRetrieveFileResponse();", "public boolean getUseFiles();", "public boolean isSetFile() {\n return this.File != null;\n }", "boolean isMultiPart();", "@Override\n\tpublic boolean isFileOpen(String fileName) \n\t{\n\t\treturn false;\n\t}", "boolean hasRetrieveFile();", "@Override\n\tpublic boolean isFileTransferred(String fileName) throws RemoteException, \n\t\tFileSubmittionFailedException {\n\t\tlogger.finer(\"********************* Rmi call for file: \" + fileName);\n\t\t\n\t\t// 10 attempts before a false answer\n\t\tfor(int i = 1; i <= 10; i++) {\n\t\t\t// File has allready been transferred\n\t\t\tif (transferredFilesMap.containsKey(fileName)){\n\t\t\t\tlogger.fine(\"file \" + fileName + \" was transferred. returning\");\n\t\t\t\t// purge map\n\t\t\t\ttransferredFilesMap.remove(fileName);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t\t// File was created but not yet transferred. Wait for a couple of \n\t\t\t// seconds and check again.\n\t\t\tif (createdFilesMap.containsKey(fileName)){\n\t\t\t\tlogger.fine(\"file \" + fileName + \" is waiting for transfer. waiting: \" + i);\n\t\t\t\ttry {\n\t\t\t\t\tTimeUnit.SECONDS.sleep(5);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tlogger.finer(\"interrupted on sleep. ok\");\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// unknown file\n\t\t\t\tlogger.severe(\"file\" + fileName + \" doesn't exist!\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// 10 Attempts were failed.\n\t\treturn false;\n\t}", "private boolean checkEditContent()\n {\n if (etUrl.hasContent() && etFilePath.hasContent())\n {\n return true;\n }\n return false;\n }", "public String getMimeType();", "public boolean hasFileLocation() {\n return msgCase_ == 9;\n }", "@Override\n\tpublic List<File> getEmailAttachments() {\n\t\treturn null;\n\t}", "public static boolean isFileUploadAvailable(final boolean needsCorrectMimeType) {\n if (Build.VERSION.SDK_INT == 19) {\n final String platformVersion = (Build.VERSION.RELEASE == null) ? \"\" : Build.VERSION.RELEASE;\n\n return !needsCorrectMimeType && (platformVersion.startsWith(\"4.4.3\") || platformVersion.startsWith(\"4.4.4\"));\n } else {\n return true;\n }\n }", "boolean isArchiveSuppress();", "public boolean hasFileLocation() {\n return msgCase_ == 9;\n }", "public boolean hasFileName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "boolean hasCompleteFile();", "public static boolean isMime(Path f, byte[] magicNumbers)\n\t{\n\t\ttry\n\t\t{\n\t\t\tbyte[] toTest = Files.readAllBytes(f);\n\t\t\t\n\t\t\t// If smaller file, obviously won't match.\n\t\t\tif(toTest.length < magicNumbers.length) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i = 0; i < magicNumbers.length; i++)\n\t\t\t{\n\t\t\t\tif(toTest[i] != magicNumbers[i])\n\t\t\t\t{\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t} catch (IOException e)\n\t\t{\n\t\t\treturn false;\n\t\t}\n\t}", "public void testGetContentType() throws Exception {\n\t\tString testFileName = \"testGetContentType.pdf\";\n\t\tString absPath = scratchFileUtils.createAndReturnAbsoluteScratchPath(IRODS_TEST_SUBDIR_PATH);\n\t\tString localFileName = FileGenerator.generateFileOfFixedLengthGivenName(absPath, testFileName, 2);\n\n\t\tString targetIrodsFile = testingPropertiesHelper.buildIRODSCollectionAbsolutePathFromTestProperties(\n\t\t\t\ttestingProperties, IRODS_TEST_SUBDIR_PATH + '/' + testFileName);\n\t\tFile localFile = new File(localFileName);\n\n\t\t// now put the file\n\n\t\tIRODSAccount irodsAccount = testingPropertiesHelper.buildIRODSAccountFromTestProperties(testingProperties);\n\t\tDataTransferOperations dto = irodsFileSystem.getIRODSAccessObjectFactory()\n\t\t\t\t.getDataTransferOperations(irodsAccount);\n\t\tIRODSFile destFile = irodsFileSystem.getIRODSFileFactory(irodsAccount).instanceIRODSFile(targetIrodsFile);\n\n\t\tdto.putOperation(localFile, destFile, null, null);\n\n\t\tIrodsSecurityManager manager = Mockito.mock(IrodsSecurityManager.class);\n\n\t\tIrodsFileSystemResourceFactory factory = new IrodsFileSystemResourceFactory(manager);\n\n\t\tLockManager lockManager = Mockito.mock(LockManager.class);\n\t\tfactory.setLockManager(lockManager);\n\n\t\tWebDavConfig config = new WebDavConfig();\n\t\tfactory.setWebDavConfig(config);\n\n\t\tIrodsFileContentService service = Mockito.mock(IrodsFileContentService.class);\n\n\t\tIrodsFileResource resource = new IrodsFileResource(\"host\", factory, destFile, service);\n\n\t\tString actual = resource.getContentType(\"\");\n\t\tAssert.assertNotNull(\"null content type\", actual);\n\t\tAssert.assertEquals(\"did not find pdf\", \"application/pdf\", actual);\n\t}", "public boolean isFilterObject(final Object o) {\n return o instanceof MultipartFile || o instanceof HttpServletRequest || o instanceof HttpServletResponse;\n }", "public boolean hasFileName() {\n return ((bitField0_ & 0x00000004) == 0x00000004);\n }", "public static boolean isFileUploadAvailable(final boolean needsCorrectMimeType) {\n if (Build.VERSION.SDK_INT == 19) {\n final String platformVersion = (Build.VERSION.RELEASE == null) ? \"\"\n : Build.VERSION.RELEASE;\n\n return !needsCorrectMimeType && (platformVersion.startsWith(\"4.4.3\") || platformVersion\n .startsWith(\"4.4.4\"));\n } else {\n return true;\n }\n }", "public boolean transmitFileNameInMimeHeader() {\n return this.transmitFileNameInMimeHeader;\n }", "private void handleFileTransferInvitation(final Context context,\n Intent invitation) {\n String transferId = invitation\n .getStringExtra(FileTransferIntent.EXTRA_TRANSFER_ID);\n String chatSessionId = invitation\n .getStringExtra(CHAT_SESSION_ID);\n boolean isGroup = invitation.getBooleanExtra(ISGROUPTRANSFER,\n false);\n FileTransfer session = getFileTransferSession(transferId);\n if (session == null) {\n Logger.w(TAG,\n \"handleFileTransferInvitation() session is null\");\n return;\n }\n long fileSize = invitation.getLongExtra(Utils.FILE_SIZE, 0);\n long availabeSize = Utils.getFreeStorageSize();\n long maxFileSize = ApiManager.getInstance()\n .getMaxSizeforFileThransfer();\n Logger.d(TAG, \"handleFileTransferInvitation() fileSize: \"\n + fileSize + \" availabeSize: \" + availabeSize\n + \" maxFileSize: \" + maxFileSize);\n if (fileSize > availabeSize) {\n // check if there is enough storage.\n Handler handler = new Handler(Looper.getMainLooper());\n final String toastText;\n if (availabeSize == -1) {\n toastText = context\n .getString(R.string.rcse_no_external_storage_for_file_transfer);\n } else {\n toastText = context\n .getString(R.string.rcse_no_enough_storage_for_file_transfer);\n }\n handler.post(new Runnable() {\n @Override\n public void run() {\n Toast.makeText(context, toastText,\n Toast.LENGTH_LONG).show();\n }\n });\n try {\n session.rejectInvitation();\n } catch (JoynServiceException e) {\n e.printStackTrace();\n }\n } else {\n // check if it exceeds max size.\n if (fileSize >= maxFileSize && maxFileSize != 0) {\n boolean integration = Logger.getIsIntegrationMode();\n Logger.d(TAG,\n \"handleFileTransferInvitation() integration mode: \"\n + integration);\n if (!integration) {\n showLargeFileNofification(context, invitation,\n session);\n }\n } else {\n showFileTransferNotification(context, invitation,\n session);\n }\n }\n }", "private boolean isValidContentType(String sHTTPRequest) {\n String sFileType = getFileExtension(sHTTPRequest);\n return Arrays.asList(SUPPORTED_FILE_TYPES).contains(sFileType);\n }", "private boolean isFileAccessible() {\n\t\ttry {\n\t\t\tif (!new File(fileUpload.getFilePath()).exists())\n\t\t\t\treturn false;\n\t\t\treturn true;\n\t\t} catch (SecurityException e) {\n\t\t\treturn false;\n\t\t}\n\t}", "private boolean onAntesGravarArquivo() {\n\t\tAACAntesArquivoEventObject e = new AACAntesArquivoEventObject(this, false);\n\t\tnotifyListeners(\"onAntesGravarArquivo\", e);\n\t\treturn e.isContinua();\n\t}", "private boolean copy(MimeMessage m)\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t String fromEmail = getPlainFrom(m);\r\n\t PstUserAbstractObject u = null;\r\n\t try {u = (PstUserAbstractObject)uMgr.get(jwu, fromEmail);}\r\n\t catch (PmpException e)\r\n\t {\r\n\t \t// try to use the Email to locate the user\r\n\t \tint [] ids = uMgr.findId(jwu, \"Email='\" + fromEmail + \"'\");\r\n\t \tif (ids.length <= 0) {\r\n\t \t\t// cannot find the user\r\n\t\t \treject(m, \"RoboMail copy command rejected. You are not authorized to perform the action.\");\r\n\t\t \treturn false;\r\n\t \t}\r\n\t \tu = (PstUserAbstractObject) uMgr.get(jwu, ids[0]);\r\n\t }\r\n\t Object msgContent = m.getContent();\r\n\t String xmlMsg = msgContent.toString();\r\n\t xmlMsg = Util3.getXMLValue(xmlMsg, Util3.PRM_OBJECT);\t\t// only look at PRM_OBJECT portion of XML\r\n\t String className = Util3.getXMLValue(xmlMsg, Util3.PRM_CLASS);\r\n\r\n\t boolean isMeeting = false;\r\n\t boolean isQuest = false;\r\n\t PstManager mgr;\r\n\t PstAbstractObject newObj;\r\n\t if (className.equals(mtgMgr.getClass().getName()))\r\n\t {\r\n\t \tmgr = mtgMgr;\r\n\t\t newObj = mtgMgr.create(jwu);\r\n\t \tisMeeting = true;\r\n\t }\r\n\t else if (className.equals(qMgr.getClass().getName()))\r\n\t {\r\n\t \tmgr = qMgr;\r\n\t\t newObj = qMgr.create(jwu);\r\n\t \tisQuest = true;\r\n\t }\r\n\t else\r\n\t {\r\n\t \t// cannot handle this type\r\n\t \tl.error(\"RoboMail copy() cannot handle this type of object (\" + className + \")\");\r\n\t \treturn false;\r\n\t }\r\n\r\n\t String s;\r\n\t String [] tagNameArr = Util3.getXMLTagNames(xmlMsg);\r\n\t String val, attName, idS;\r\n\t int iType = 0, idx;\r\n\t String [] sa;\r\n\t Object valObj;\r\n\t for (int i=0; i<tagNameArr.length; i++)\r\n\t {\r\n\t \tattName = tagNameArr[i];\t\t\t// usually OMM attributes, but also special tag e.g. RemoteUsername\r\n\t \tif (attName.equalsIgnoreCase(Util3.PRM_CLASS))\r\n\t \t\tcontinue;\r\n\r\n\t\t\t\tval = Util3.getXMLValue(xmlMsg, tagNameArr[i]);\r\n\t \tif (val==null || val.length()<=0)\r\n\t \t\tcontinue;\r\n\t \t\r\n\t \tiType = 0;\r\n\r\n\t\t\t\ttry\r\n\t\t\t\t{\r\n\t\t\t\t\tif (isMeeting)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttry {iType = mtgMgr.getAttributeType(attName);}\r\n\t\t\t\t\t\tcatch (PmpException e) {l.warn(\"[\" + attName + \"] is not an OMM attribute\");}\r\n\t\t\t\t\t\t\r\n\t\t\t \tif (Util3.EXCEPT_ATTR_MTG.indexOf(attName) != -1)\r\n\t\t\t \t{\r\n\t\t\t \t\t// handle exception cases\r\n\t\t\t \t\tif (attName.equals(\"Owner\"))\r\n\t\t\t \t\t{\r\n\t\t\t\t \t\t// Owner\r\n\t\t\t\t \t\tidS = Util3.getUidFromEmail(u, val);\r\n\t\t\t\t \t\tif (idS == null)\r\n\t\t\t\t \t\t\tidS = String.valueOf(u.getObjectId());\r\n\t\t\t\t \t\tnewObj.setAttribute(\"Owner\", idS);\r\n\t\t\t \t\t}\r\n\t\t\t \t\telse if (attName.equals(\"Recorder\"))\r\n\t\t\t \t\t{\r\n\t\t\t \t\t\t// Recorder\r\n\t\t\t\t \t\tidS = Util3.getUidFromEmail(u, val);\r\n\t\t\t\t \t\tif (idS == null)\r\n\t\t\t\t \t\t\tidS = String.valueOf(u.getObjectId());\r\n\t\t\t\t \t\tnewObj.setAttribute(\"Recorder\", idS);\r\n\t\t\t \t\t}\r\n\t\t\t \t\telse if (attName.equals(\"Attendee\"))\r\n\t\t\t \t\t{\r\n\t\t\t \t\t\t// Attendee\r\n\t\t\t\t\t\t\t\t// each value looks like [email protected]::MandatoryAcceptLogonPresent\r\n\t\t\t \t\t\tsa = val.split(Util3.TERMINATOR0);\r\n\t\t\t \t\t\tfor (int j=0; j<sa.length; j++)\r\n\t\t\t \t\t\t{\r\n\t\t\t \t\t\t\tval = sa[j];\r\n\t\t\t\t \t\t\tidx = val.indexOf(Util3.TERMINATOR1);\r\n\t\t\t\t\t \t\tidS = Util3.getUidFromEmail(u, val.substring(0, idx));\r\n\t\t\t\t\t \t\tif (idS == null) continue;\t\t\t// no such user, ignored\r\n\t\t\t\t\t \t\tval = idS + val.substring(idx);\r\n\t\t\t\t\t \t\tnewObj.appendAttribute(\"Attendee\", val);\r\n\t\t\t \t\t\t}\r\n\t\t\t \t\t}\r\n\t\t\t \t\telse if (attName.equals(\"AgendaItem\"))\r\n\t\t\t \t\t{\r\n\t\t\t \t\t\t// AgendaItem\r\n\t\t\t\t\t\t\t\t// each value looks like 0::0::0::Review last week's actions::30::[email protected]\r\n\t\t\t \t\t\tsa = val.split(Util3.TERMINATOR0);\r\n\t\t\t \t\t\tfor (int j=0; j<sa.length; j++)\r\n\t\t\t \t\t\t{\r\n\t\t\t \t\t\t\tval = sa[j];\r\n\t\t\t \t\t\t\tidx = val.lastIndexOf(Util3.TERMINATOR1) + 2;\r\n\t\t\t \t\t\t\ts = val.substring(idx);\t\t\t// email or -1 or -2\r\n\t\t\t \t\t\t\tif (s.charAt(0) == '-')\r\n\t\t\t \t\t\t\t{\r\n\t\t\t \t\t\t\t\tnewObj.appendAttribute(\"AgendaItem\", val);\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\tidS = Util3.getUidFromEmail(u, s);\r\n\t\t\t \t\t\t\tif (idS == null)\r\n\t\t\t \t\t\t\t\tidS = \"-1\";\t\t\t\t\t// no one; String.valueOf(u.getObjectId());\r\n\t\t\t \t\t\t\tval = val.substring(0, idx) + idS;\r\n\t\t\t \t\t\t\tnewObj.appendAttribute(\"AgendaItem\", val);\r\n\t\t\t \t\t\t}\r\n\t\t\t \t\t}\r\n\t\t\t \t\telse if (attName.equals(Util3.TAG_REMOTE_UNAME)) {\r\n\t\t\t \t\t\t// use the username to find uid and put as attendee\r\n\t\t\t \t\t\tidS = Util3.getUidFromUsername(u, val);\r\n\t\t\t \t\t\tif (!StringUtil.isNullOrEmptyString(idS))\r\n\t\t\t \t\t\t\tnewObj.appendAttribute(\"Attendee\", idS + \"::Mandatory\");\r\n\t\t\t \t\t}\r\n\r\n\t\t\t \t\tcontinue;\t// ignore others; next attr\r\n\t\t\t \t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if (isQuest)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttry {iType = qMgr.getAttributeType(attName);}\r\n\t\t\t\t\t\tcatch (PmpException e) {l.warn(\"[\" + attName + \"] is not an OMM attribute\");}\r\n\t\t\t\t\t\t\r\n\t\t\t \tif (Util3.EXCEPT_ATTR_QST.indexOf(attName) != -1)\r\n\t\t\t \t{\r\n\t\t\t \t\t// handle exception cases\r\n\t\t\t \t\tif (attName.equals(\"Creator\"))\r\n\t\t\t \t\t{\r\n\t\t\t\t \t\t// Creator\r\n\t\t\t\t \t\t// use the email to find the person. If not found, use the XML email sender\r\n\t\t\t\t \t\tidS = Util3.getUidFromEmail(u, val);\r\n\t\t\t\t \t\tif (idS == null)\r\n\t\t\t\t \t\t\tidS = String.valueOf(u.getObjectId());\r\n\t\t\t\t \t\tnewObj.setAttribute(\"Creator\", idS);\r\n\t\t\t \t\t}\r\n\t\t\t \t\telse if (attName.equals(\"Attendee\"))\r\n\t\t\t \t\t{\r\n\t\t\t\t \t\t// Attendee\r\n\t\t\t\t \t\tsa = val.split(Util3.TERMINATOR0);\r\n\t\t\t\t \t\tfor (int j=0; j<sa.length; j++)\r\n\t\t\t\t \t\t{\r\n\t\t\t\t \t\t\t// 12345\r\n\t\t\t\t \t\t\tidS = Util3.getUidFromEmail(u, sa[j]);\r\n\t\t\t\t \t\t\tif (idS != null)\r\n\t\t\t\t \t\t\t\tnewObj.appendAttribute(\"Attendee\", idS);\r\n\t\t\t\t \t\t}\r\n\t\t\t \t\t}\r\n\t\t\t \t\telse if (attName.equals(Util3.TAG_REMOTE_UNAME)) {\r\n\t\t\t \t\t\t// use the username to find uid and put as attendee\r\n\t\t\t \t\t\tidS = Util3.getUidFromUsername(u, val);\r\n\t\t\t \t\t\tif (!StringUtil.isNullOrEmptyString(idS))\r\n\t\t\t \t\t\t\tnewObj.appendAttribute(\"Attendee\", idS);\r\n\t\t\t \t\t}\r\n\r\n\t\t\t \t\tcontinue;\t\t// ignore the rest, next attr\r\n\t\t\t \t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\t// for non-exceptional type\r\n\t\t\t\t\tif (iType > 0 ) {\r\n\t\t\t\t\t\tsa = val.split(Util3.TERMINATOR0);\r\n\t\t\t\t\t\tfor (int j=0; j<sa.length; j++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tif (sa[j].length() <= 0) continue;\r\n\t\t\t\t\t\t\tswitch (iType)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tcase PstAbstractObject.INT:\r\n\t\t\t\t\t\t\t\t\tvalObj = new Integer(sa[j]);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase PstAbstractObject.FLOAT:\r\n\t\t\t\t\t\t\t\t\tvalObj = new Float(sa[j]);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase PstAbstractObject.STRING:\r\n\t\t\t\t\t\t\t\t\tvalObj = new String(sa[j]);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase PstAbstractObject.DATE:\r\n\t\t\t\t\t\t\t\t\tvalObj = Util3.df0.parse(sa[j]);\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tcase PstAbstractObject.RAW:\r\n\t\t\t\t\t\t\t\t\tvalObj = sa[j].getBytes();\r\n\t\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\t\t\tl.error(\"Unsupported data type.\");\r\n\t\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\tnewObj.appendAttribute(attName, valObj);\r\n\t\t\t\t\t\t}\t// END for each value in the value array\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tcatch (Exception e) {l.error(\"exception in getting attribute value for [\" + attName + \"]\");}\r\n\t }\t// END for each attr in the XML message\r\n\r\n\t mgr.commit(newObj);\r\n\t l.info(\"Created new \" + className + \" object [\" + newObj.getObjectId() + \"]\");\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\treject(m, \"Copy command failed in copy() operation. \" + e.toString());\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "private boolean isDragOk(DropTargetDragEvent e) {\n\t\tif (!isDragFlavorSupported(e)) {\n\t\t\treturn false;\n\t\t}\n\n\t\tint da = e.getDropAction();\n\t\t// we're saying that these actions are necessary\n\t\tif ((da & acceptableActions) == 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\ttry {\n\t\t\tFIBDraggable element = (FIBDraggable) e.getTransferable().getTransferData(ElementDrag.DEFAULT_FLAVOR);\n\t\t\tif (element == null) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tObject source = e.getSource();\n\t\t\tif (source instanceof FIBDropTarget) {\n\t\t\t\treturn element.acceptDragging((FIBDropTarget) source);\n\t\t\t}\n\t\t\treturn false;\n\n\t\t} catch (UnsupportedFlavorException e1) {\n\t\t\tlogger.warning(\"Unexpected: \" + e1);\n\t\t\te1.printStackTrace();\n\t\t\treturn false;\n\t\t} catch (IOException e1) {\n\t\t\tlogger.warning(\"Unexpected: \" + e1);\n\t\t\te1.printStackTrace();\n\t\t\treturn false;\n\t\t} catch (Exception e1) {\n\t\t\tlogger.warning(\"Unexpected: \" + e1);\n\t\t\te1.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t}", "@java.lang.Override\n public boolean hasFilePath() {\n return ((bitField0_ & 0x00000008) != 0);\n }" ]
[ "0.670667", "0.66668504", "0.61936903", "0.61490566", "0.6055442", "0.57452774", "0.5722307", "0.5679017", "0.5605991", "0.55965585", "0.5572307", "0.55598396", "0.5555447", "0.5535373", "0.54992944", "0.5456238", "0.5445876", "0.5406614", "0.5383352", "0.5383352", "0.5383086", "0.5358194", "0.5355372", "0.53497773", "0.5339315", "0.5338027", "0.53370214", "0.5330805", "0.5329571", "0.5327049", "0.53208363", "0.53166455", "0.5315652", "0.53089577", "0.5305267", "0.5262576", "0.52475584", "0.524277", "0.52110523", "0.5190209", "0.5173621", "0.5128781", "0.5126675", "0.5108731", "0.5106619", "0.5088825", "0.5087425", "0.5079282", "0.5062949", "0.5056864", "0.5055538", "0.50517875", "0.5039369", "0.5038003", "0.50323284", "0.50323284", "0.5029818", "0.5027139", "0.5027139", "0.50266886", "0.5023509", "0.5018678", "0.5017235", "0.5011079", "0.5007558", "0.50065905", "0.50044894", "0.49852413", "0.49632078", "0.49612698", "0.4960364", "0.4956862", "0.49484813", "0.49473035", "0.49418157", "0.49404252", "0.49393865", "0.49331644", "0.49315512", "0.49311337", "0.49199846", "0.49164283", "0.4902684", "0.4902257", "0.4899643", "0.48898923", "0.48893178", "0.48870343", "0.4884962", "0.48841345", "0.4880906", "0.48798937", "0.48761037", "0.48721427", "0.48678753", "0.4867672", "0.4867466", "0.48659024", "0.48627624", "0.48625463" ]
0.5129475
41
After approval from canImport,
public boolean importData(JComponent comp, Transferable transfer) { FileList fileList = new FileList(transfer); FileWorker worker = new FileWorker(container, fileList.getList()); worker.execute(); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean getImported();", "public boolean isImported();", "public boolean getImported();", "protected boolean isImport() {\n\t\t// Overrides\n\t\treturn false;\n\t}", "public void setImported(boolean imported);", "protected void executePostImportExtension(AfterCreateOccurrenceContext context)\n\t\tthrows OperationException\n\t{\n\n\t}", "void reportImport() {\n this.hasImports = true;\n }", "public void setI_IsImported (boolean I_IsImported);", "@Override\n public void doTaskWorkPostSave(HttpServletRequest request, HttpServletResponse response, User user, Db db)\n {\n\t updateAppFilesWithAppliesTo(request, response, user, db);\n\t //if(strains.isEmpty())\n\t //{\n\t\t // single strain\n\t updateCustomTables(request, db);\n\t //}\n\t //else\n\t //{\n\t\t // list of strains from bulk import file\n\t\t// updateCustomTablesWithList(db);\n\t //}\n }", "boolean hasImported();", "public boolean isI_IsImported();", "private void handleAccountUpdateOnPre() {\n }", "public void setImported(boolean imported)\n\t{\n\t\tthis.imported = imported;\n\t}", "public void saveBeforeCompile() { }", "public void saveBeforeCompile() { }", "boolean stageAfterResultsImport(Object input) throws ValidationFailedException;", "public void doTaskWorkPreSave(HttpServletRequest request,\n\t\t\tHttpServletResponse response, User user, Db db)\n\t{\n\n\t\t// did user provide a bulk import file?\n\t\tString fileId = getServerItemValue(FileType.STRAIN_IMPORT_FILE);\n\t\tif (!WtUtils.isNullOrBlank(fileId))\n\t\t{\n\t\t\t// yes\n\t\t\tbHaveFile = true;\n\t\t\t// -- work around bug in placeholder handling\n//\t\t\tgetServerItem(ItemType.PROJECT).clearValues();\n//\t\t\tString fileName = importStrainsFromBulkImportFile(fileId, db);\n//\t\t\t// ready for std save() processing\n//\t\t\tsetMessage(\"Successfully imported new strains from bulk import file.\");\n//\t\t\treturn;\n\t\t}\n\n\t\t// else, no file - import an individual strain\n\t\t// mainly housekeeping here\n\t\tString strain = getServerItemValue(ItemType.STRAIN);\n\t\tbNewStrain = false;\n\t\tstrains.clear(); // housekeeping\n\t\tif (WtUtils.isNullOrBlankOrPlaceholder(strain))\n\t\t{\n\t\t\tthrow new LinxUserException(\n\t\t\t\t\t\"Please enter a Strain ID, then try again.\");\n\t\t}\n\t\tif (!dbHelper.isItemExisting(strain, ItemType.STRAIN, db))\n\t\t{\n\t\t\tbNewStrain = true;\n\t\t}\n\t\t//lets make sure we have the correct prefix for the strain\n\t\t//if the strain already exists we should allow updates, \n\t\t//if not then we check for the correct prefix\n\t\tif(bNewStrain)\n\t\t{\n\t\t\tString prefix = this.getStrainPrefix(db).toLowerCase().trim();\n\t\t\tif(!strain.toLowerCase().startsWith(prefix))\n\t\t\t\tthrow new LinxUserException(\"The Strain ID must start with \" + prefix);\n\t\t}\n\t\t\n\t\tString project = getServerItemValue(ItemType.PROJECT);\n\t\tif (WtUtils.isNullOrBlankOrPlaceholder(project))\n\t\t{\n\t\t\t// reset to null, to avoid missing itemId errors\n\t\t\tWtUtils.stripElement(this.getServerItem(ItemType.PROJECT)\n\t\t\t\t\t.getItemElement());\n\t\t}\n\t\tString notebookPg = getServerItemValue(DataType.NOTEBOOK_REF);\n\t\tif(WtUtils.isNullOrBlank(notebookPg))\n\t\t{\n\t\t\tthrow new LinxUserException(\n\t\t\t\"Please enter a notebook page, then try again.\");\n\t\t}\n\t}", "public static void adminAssessmentFlagPrepareImport(EntityManager em, AdminAssessmentFlagImportData data) {\n\n\t\t// Pripremi podatke\n\t\tif(!adminAssessmentFlagImportCommon(em, data)) return;\n\t\t\n\t\t// Gotovi smo\n\t\tdata.setResult(AbstractActionData.RESULT_INPUT);\n\t}", "protected void aktualisieren() {\r\n\r\n\t}", "public void onTeamImported() {\n \tsetResult(RESULT_OK);\n \tupdateTeam();\n }", "@Override\n\tprotected void prepareForSave() throws WorkflowException {\n\n\t}", "@Override\n\tpublic boolean approveIt() {\n\t\treturn false;\n\t}", "private void m43014d() {\n Intent intent = new Intent(\"com.tonyodev.fetch.action_done\");\n intent.putExtra(\"com.tonyodev.fetch.extra_id\", this.f40230a);\n this.f40237h.mo5314a(intent);\n }", "ISSeedModifications createISSeedModifications();", "public boolean isImported()\n\t{\n\t\treturn imported;\n\t}", "public void postPerform() {\n // nothing to do by default\n }", "@Override\r\n\tprotected void doPre() {\n\t\t\r\n\t}", "@Override\n protected boolean preCommit() {\n dashboardDs.getDsContext().getChildren().removeIf(dsContext ->\n !((dsContext.get(\"parametersDs\") != null && dsContext.get(\"parametersDs\").getMetaClass() != null &&\n \"dashboard$Parameter\".equals(dsContext.get(\"parametersDs\").getMetaClass().getName())) ||\n (dsContext.get(\"widgetTemplatesDs\") != null && dsContext.get(\"widgetTemplatesDs\").getMetaClass() != null) &&\n \"dashboard$WidgetTemplate\".equals(dsContext.get(\"widgetTemplatesDs\").getMetaClass().getName())));\n\n FieldGroup.FieldConfig assistantBeanName = fieldGroup2.getField(\"assistantBeanName\");\n LookupField lookupField = (LookupField) assistantBeanName.getComponent();\n String val = lookupField.getValue();\n dashboardDs.getItem().setAssistantBeanName(val);\n\n PersistentDashboard persDash = getItem();\n Dashboard dashboard = getDashboard();\n String jsonModel = converter.dashboardToJson(dashboard);\n persDash.setDashboardModel(jsonModel);\n persDash.setName(dashboard.getTitle());\n persDash.setCode(dashboard.getCode());\n persDash.setIsAvailableForAllUsers(dashboard.getIsAvailableForAllUsers());\n return true;\n }", "public void handleImport(ActionEvent actionEvent) {\n\t}", "@Override\r\n\tpublic void doBeforeJob() {\n\r\n\t}", "@Override\r\n\tpublic void beforeExecuteScript() throws Exception\r\n\t{\n\t}", "protected void beforeJobExecution() {\n\t}", "@Override\n\tpublic boolean allowImportCalendar(String ref) {\n\t\treturn false;\n\t}", "protected void post_commit_hook() { }", "@Override\n public void importItems(){\n if (DialogUtils.askYesNo(\"Confirm\", \"<html>Importing individuals will REPLACE all existing individuals.<br>Are you sure you want to do this?</html>\") == DialogUtils.NO) {\n return;\n }\n\n try {\n File file = DialogUtils.chooseFileForOpen(\"Import File\", new ExtensionsFileFilter(new String[] { \"csv\" }), null);\n if (file != null) {\n //remove current data\n MedSavantClient.PatientManager.clearPatients(LoginController.getSessionID(), ProjectController.getInstance().getCurrentProjectID());\n new ImportProgressDialog(file).showDialog();\n }\n } catch (Exception ex) {\n ClientMiscUtils.reportError(\"Unable to import individuals. Please make sure the file is in CSV format and that Hospital IDs are unique.\", ex);\n }\n }", "public boolean getIsImport() {\n return getAsBoolean(\"isImport\");\n }", "public void doPreSaveActions() {\n\t\tcalculateBlockedPartitions();\n\t}", "void importNewExpenditure(Transaction expenditure, String type) throws BankException {\n logger.warning(\"This account does not support this feature\");\n throw new BankException(\"This account does not support this feature\");\n }", "@Test\n public void doImport_doesNotModifyOriginalCsv() {\n ExternalDataReader externalDataReader = new ExternalDataReaderImpl(null);\n externalDataReader.doImport(formDefToCsvMedia);\n\n assertThat(dbFile.exists(), is(true));\n assertThat(csvFile.exists(), is(true));\n }", "boolean stageBeforeResultsImport(Object input) throws ValidationFailedException;", "protected void afterActiveHandled() {\n\t}", "public void postInstallHook() {\n }", "void importNewDeposit(Transaction deposit, String bankType) throws BankException {\n logger.warning(\"This account does not support this feature\");\n throw new BankException(\"This account does not support this feature\");\n }", "@Override\n\t\t\tprotected void onPreExecute()\n\t\t\t{\n\n\t\t\t}", "private boolean getIsImported(String productName) {\n\t\treturn productName.contains(AppConstants.IMPORTED_TOKEN);\n\t}", "void PostRun() {\n }", "protected void afterJobExecution() {\n\t}", "private void importButtonAction() {\r\n\t\t/**\r\n\t\t * Sync the profile names from the selection table.\r\n\t\t */\r\n\t\tsyncProfileNames();\r\n\t\t/**\r\n\t\t * Sync the profile selection from the selection table.\r\n\t\t */\r\n\t\tsyncProfileSelection();\r\n\t\t/**\r\n\t\t * Check if the length correction is bigger than 2\r\n\t\t */\r\n\t\tint lenCorr = Integer.parseInt(textfieldLenCorrection.getText());\r\n\t\tif (lenCorr < minRequiredDataPoints) {\r\n\t\t\tString message = \"The length correction \\\"\" + lenCorr\r\n\t\t\t\t\t+ \"\\\" has to be \"\r\n\t\t\t\t\t+ \"a positive \\nnumber and larger or equals to \"\r\n\t\t\t\t\t+ minRequiredDataPoints + \".\";\r\n\t\t\tString title = \"Invalid length correction\";\r\n\t\t\tJOptionPane.setDefaultLocale(Locale.ENGLISH);\r\n\t\t\tJOptionPane.showMessageDialog(null, message, title,\r\n\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t/**\r\n\t\t * Check the uniqueness of the profile names.\r\n\t\t */\r\n\t\tif (!checkProfileNameUniqueness(true)) {\r\n\t\t\tthis.setVisible(false);\r\n\t\t\tenableAccessToImpProfile = true;\r\n\t\t} else {\r\n\t\t\tif (!checkProfileNameUniqueness(false)) {\r\n\t\t\t\tthis.setVisible(false);\r\n\t\t\t\tenableAccessToImpProfile = true;\r\n\t\t\t} else {\r\n\t\t\t\tString message = \"There are still profile names that occur\"\r\n\t\t\t\t\t\t+ \" repeatedly.\\nPlease ensure that the profile\"\r\n\t\t\t\t\t\t+ \" names are globally unique.\";\r\n\t\t\t\tString title = \"Duplicate profile names\";\r\n\t\t\t\tJOptionPane.setDefaultLocale(Locale.ENGLISH);\r\n\t\t\t\tJOptionPane.showMessageDialog(null, message, title,\r\n\t\t\t\t\t\tJOptionPane.WARNING_MESSAGE);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "protected void executionSuccess() {\n this.isUndoable = true;\n }", "private void proceedAfterPermission() {\n Toast.makeText(getBaseContext(), \"We got the contacts Permission\", Toast.LENGTH_LONG).show();\n\n }", "void importNewBonds(Bond newBond) throws BankException {\n logger.warning(\"This account does not support this feature\");\n throw new BankException(\"This account does not support this feature\");\n }", "public boolean estaEnModoAvion();", "private void proceedAfterPermission() {\n new SDsync().execute();\n\n }", "@Override\r\n\tpublic void doAfterJob() {\n\r\n\t}", "@Override\r\n\tpublic int insertExportData(ActionContext arg0) throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\n\t\tprotected void onPreExecute() \n\t\t{\n\t\t}", "public boolean requiresPostApproval() {\n return true;\n }", "public void interactWhenApproaching() {\r\n\t\t\r\n\t}", "private void saveBeforeRun() {\n if ( _helper != null && _settings.getSaveBeforeRun() )\n _helper.saveBeforeRun();\n }", "public void prePerform() {\n // nothing to do by default\n }", "@Override\n\tprotected void postRun() {\n\n\t}", "int insertSelective(AccountBankStatementImportJournalCreationEntity record);", "public void accomplishGoal() {\r\n isAccomplished = true;\r\n }", "@Override\n public void afterFinish() {\n \n }", "protected boolean afterMerge() throws DBSIOException{return true;}", "protected void doDSPost(Context context, HttpServletRequest request,\n HttpServletResponse response) throws ServletException, IOException,\n SQLException, AuthorizeException\n {\n // First, see if we have a multipart request (uploading a metadata file)\n String contentType = request.getContentType();\n HttpSession session = request.getSession(true); \n if ((contentType != null) && (contentType.indexOf(\"multipart/form-data\") != -1))\n {\n // Process the file uploaded\n try\n {\n // Get the changes\n log.info(LogManager.getHeader(context, \"metadataimport\", \"loading file\"));\n ArrayList<BulkEditChange> changes = processUpload(context, request);\n log.debug(LogManager.getHeader(context, \"metadataimport\", changes.size() + \" items with changes identifed\")); \n\n // Were there any changes detected?\n if (changes.size() != 0)\n {\n request.setAttribute(\"changes\", changes);\n request.setAttribute(\"changed\", false);\n\n // Is the user allowed to make this many changes?\n if (changes.size() <= limit)\n {\n request.setAttribute(\"allow\", true);\n }\n else\n {\n request.setAttribute(\"allow\", false);\n session.removeAttribute(\"csv\");\n log.info(LogManager.getHeader(context, \"metadataimport\", \"too many changes: \" +\n changes.size() + \" (\" + limit + \" allowed)\"));\n }\n\n JSPManager.showJSP(request, response, \"/dspace-admin/metadataimport-showchanges.jsp\");\n }\n else\n {\n request.setAttribute(\"message\", \"No changes detected\");\n JSPManager.showJSP(request, response, \"/dspace-admin/metadataimport.jsp\");\n }\n }\n catch (Exception e)\n {\n request.setAttribute(\"message\", e.getMessage());\n log.debug(LogManager.getHeader(context, \"metadataimport\", \"Error encountered while looking for changes: \" + e.getMessage())); \n JSPManager.showJSP(request, response, \"/dspace-admin/metadataimport-error.jsp\");\n }\n }\n else if (\"confirm\".equals(request.getParameter(\"type\")))\n {\n // Get the csv lines from the session\n DSpaceCSV csv = (DSpaceCSV)session.getAttribute(\"csv\");\n\n // Make the changes\n try\n {\n MetadataImport mImport = new MetadataImport(context, csv.getCSVLines());\n ArrayList<BulkEditChange> changes = mImport.runImport(true, false, false, false);\n\n // Commit the changes\n context.commit();\n log.debug(LogManager.getHeader(context, \"metadataimport\", changes.size() + \" items changed\"));\n\n // Blank out the session data\n session.removeAttribute(\"csv\");\n\n request.setAttribute(\"changes\", changes);\n request.setAttribute(\"changed\", true);\n request.setAttribute(\"allow\", true);\n JSPManager.showJSP(request, response, \"/dspace-admin/metadataimport-showchanges.jsp\");\n }\n catch (Exception e)\n {\n request.setAttribute(\"message\", e.getMessage());\n log.debug(LogManager.getHeader(context, \"metadataimport\", \"Error encountered while making changes: \" + e.getMessage()));\n JSPManager.showJSP(request, response, \"/dspace-admin/metadataimport-error.jsp\");\n }\n }\n else if (\"cancel\".equals(request.getParameter(\"type\")))\n {\n // Blank out the session data\n session.removeAttribute(\"csv\");\n\n request.setAttribute(\"message\", \"Changes cancelled. No items have been modified.\");\n log.debug(LogManager.getHeader(context, \"metadataimport\", \"Changes cancelled\"));\n JSPManager.showJSP(request, response, \"/dspace-admin/metadataimport.jsp\");\n }\n else\n {\n // Show the upload screen\n JSPManager.showJSP(request, response, \"/dspace-admin/metadataimport.jsp\");\n }\n }", "protected void handleAddImport() {\r\n\t\r\n\t\tSchemaImportDialog dialog = new SchemaImportDialog(getShell(),modelObject);\r\n\t\tif (dialog.open() == Window.CANCEL) {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tObject obj = dialog.getFirstResult();\r\n\t\tif (obj == null) {\r\n\t\t\treturn ;\r\n\t\t}\r\n\t\tif (handleAddImport ( obj )) {\r\n\t\t\tshowImportedTypes();\r\n\t\t\trefresh();\r\n\t\t}\r\n\t\t\r\n\t}", "private boolean fieldQualifiesForImport(ActionImportField actionField) {\n return (actionField.hasRequiredImport() && actionField.getValue() == null) || actionField.isOptionalImportRequest();\n }", "private Permit saveToPermitObject() {\n\n\n\n return null;\n\n }", "protected void retirePreviousAuthorizations() {\n List<Document> relatedDocs = getTravelDocumentService().getDocumentsRelatedTo(this, TravelDocTypes.TRAVEL_AUTHORIZATION_DOCUMENT,\n TravelDocTypes.TRAVEL_AUTHORIZATION_AMEND_DOCUMENT);\n\n //updating the related's document appDocStatus to be retired\n final DocumentAttributeIndexingQueue documentAttributeIndexingQueue = KewApiServiceLocator.getDocumentAttributeIndexingQueue();\n try {\n for (Document document : relatedDocs){\n if (!document.getDocumentNumber().equals(this.getDocumentNumber())) {\n ((TravelAuthorizationDocument) document).updateAndSaveAppDocStatus(TravelAuthorizationStatusCodeKeys.RETIRED_VERSION);\n documentAttributeIndexingQueue.indexDocument(document.getDocumentNumber());\n }\n }\n }\n catch (WorkflowException we) {\n throw new RuntimeException(\"Workflow document exception while updating related documents\", we);\n }\n }", "private void handleSubmitOnPre() {\n }", "public void referToSpecialist(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "void processImports() {\n FamixImport foundImport;\n\t\tArrayList<FamixImport> foundImportsList;\n\t\tArrayList<FamixImport> alreadyIncludedImportsList;\n\t\timportsPerEntity = new HashMap<String, ArrayList<FamixImport>>();\n\t \n\t\ttry{\n\t for (FamixAssociation association : theModel.associations) {\n \tString uniqueNameFrom = association.from;\n\t \tfoundImport = null;\n\t if (association instanceof FamixImport) {\n\t \tfoundImport = (FamixImport) association;\n\t // Fill HashMap importsPerEntity \n\t \talreadyIncludedImportsList = null;\n\t \tif (importsPerEntity.containsKey(uniqueNameFrom)){\n\t \t\talreadyIncludedImportsList = importsPerEntity.get(uniqueNameFrom);\n\t \t\talreadyIncludedImportsList.add(foundImport);\n\t \t\timportsPerEntity.put(uniqueNameFrom, alreadyIncludedImportsList);\n\t \t}\n\t \telse{\n\t\t\t \tfoundImportsList = new ArrayList<FamixImport>();\n\t\t \tfoundImportsList.add(foundImport);\n\t\t \timportsPerEntity.put(uniqueNameFrom, foundImportsList);\n\t \t}\n\t }\n\t }\n\t\t} catch(Exception e) {\n\t this.logger.warn(new Date().toString() + \"Exception may result in incomplete dependency list. Exception: \" + e);\n\t //e.printStackTrace();\n\t\t}\n }", "public void saveRequired() {\n\t\tplugin.getFileManager().saveGroupsIsRequired();\n\t}", "@Override\n\tprotected void prepareChangeSetProcessing() {\n\t\t// change set processing is not supported for the product associations import\n\t}", "@Override\n protected void done() {\n super.done();\n if (!this.isCancelled()) {\n openMergeModifiedFile(); \n }\n }", "private boolean importOrderUpdatesJob() {\n\t\treturn importData(\"/cronJobs/orderUpdateCronJob.impex\") && //\n\t\t\t\timportData(\"/cronJobs/orderUpdateCronJobTrigger.impex\");\n\t}", "protected void onFirstUse() {}", "void offedToPickedUpParcel(final Parcel parcel,final String postManEmail);", "@PostPersist\r\n\tpublic void postPersist() {\n\t\t// SchoolDefaultProcess.getProcess().doProcess(SchoolDefaultProcess.ADD_STUDENT_MODULES,\r\n\t\t// this);\r\n\t}", "protected void doSave() {\n GWT.log(\"Please override\");\n }", "@Override\n\tpublic void doAction() {\n\t\tString filename = ModuleContext.getInstance().getAppContext().getFilesDir()+\"/dexfile.dex\";\n\t\tDexFileInfoCollecter.getInstance().backsmaliDexFile(filename, dexpath);\n\t\tLogger.log(\"the dexfile data save to =\"+filename);\n\t}", "@SystemAPI\n\tboolean needsApproval();", "protected abstract void before();", "@AfterTransaction\n public void verifyPostObfuscationData() {\n runInNewTransaction(new TransactionCallback<Project>() {\n @Override\n public Project doInTransaction(TransactionStatus status) {\n Project project = genericService.find(Project.class, 3805L);\n assertNotObfuscated(project);\n return project;\n }\n\n });\n }", "public void setNewlyImported(boolean newlyImported) {\n ((com.guidewire.commons.entity.Sourceable)__getDelegateManager().getImplementation(\"com.guidewire.commons.entity.Sourceable\")).setNewlyImported(newlyImported);\n }", "public void setNewlyImported(boolean newlyImported) {\n ((com.guidewire.commons.entity.Sourceable)__getDelegateManager().getImplementation(\"com.guidewire.commons.entity.Sourceable\")).setNewlyImported(newlyImported);\n }", "public void setNewlyImported(boolean newlyImported) {\n ((com.guidewire.commons.entity.Sourceable)__getDelegateManager().getImplementation(\"com.guidewire.commons.entity.Sourceable\")).setNewlyImported(newlyImported);\n }", "Import getImport();", "protected void runAfterStep() {}", "public void setNewlyImported(boolean newlyImported) {\n ((com.guidewire.commons.entity.Sourceable)__getDelegateManager().getImplementation(\"com.guidewire.commons.entity.Sourceable\")).setNewlyImported(newlyImported);\n }", "public void setNewlyImported(boolean newlyImported) {\n ((com.guidewire.commons.entity.Sourceable)__getDelegateManager().getImplementation(\"com.guidewire.commons.entity.Sourceable\")).setNewlyImported(newlyImported);\n }", "public void setNewlyImported(boolean newlyImported) {\n ((com.guidewire.commons.entity.Sourceable)__getDelegateManager().getImplementation(\"com.guidewire.commons.entity.Sourceable\")).setNewlyImported(newlyImported);\n }", "@Override\n public void doAfterAllAnalysed(AnalysisContext context) {\n\n }", "@Override\n\tpublic void credite() {\n\t\t\n\t}", "@PostLoad\n private void settingsAfterLoad()\n {\n\n productInfo = pis != null && pis.size() > 0;\n\n /* [2] setup transient : type */\n\n boolean clIsTransfer = cluster.getName().equals(R.CLNAME_TRANSFER);\n boolean catransferIsNone = catransfer.getName().equals(R.CANAME_NONE);\n\n Assert.assertEquals(MSG_PREF + \"pivot iff cluster = \" + R.CLNAME_PIVOT,\n pivot, cluster.getName().equals(R.CLNAME_PIVOT));\n\n Assert.assertTrue(MSG_PREF + \"RULE: cl=\" + R.CLNAME_TRANSFER + \" ==> catransfer!=\" + R.CANAME_NONE\n + \"; GOT: \" + cluster + \", \" + catransfer + \"; clIsTransfer=\" + clIsTransfer\n + \" catransferIsNone=\" + catransferIsNone, !clIsTransfer || !catransferIsNone);\n\n if (pivot) type = TTransactionType.pivot;\n else if (clIsTransfer) type = TTransactionType.transfer;\n else type = TTransactionType.simple;\n // TODO TTransactionType.exchange\n\n }", "public interface Importer {\n /**\n * a new document was imported\n *\n * @param doc\n */\n public void add(PhotonDoc doc);\n\n /**\n * import is finished\n */\n public void finish();\n}", "int insertSelective(AfterServiceSheet record);", "@Override\r\n protected void postAction() {\n\r\n if(mAutoUpdate && hasNewVersion()) {\r\n downloadAndInstallNewVersionApk();\r\n }\r\n\r\n isUpdating = false;\r\n }", "@Override\n\t\t\t\tprotected void onPreExecute()\n\t\t\t\t{\n\t\t\t\t\tsuper.onPreExecute();\n\t\t\t\t}", "protected void doPreEntryActions(RequestControlContext context) throws FlowExecutionException {\r\n\r\n\t}" ]
[ "0.59140825", "0.58879507", "0.5715854", "0.56692505", "0.566519", "0.56420255", "0.56045574", "0.55265695", "0.5518774", "0.5503796", "0.54338646", "0.5402046", "0.5263104", "0.52399147", "0.52399147", "0.5223552", "0.5212178", "0.5179696", "0.5167814", "0.51582724", "0.51351047", "0.51269186", "0.51094556", "0.51063114", "0.5101731", "0.5096424", "0.50824535", "0.5077521", "0.5076257", "0.5061756", "0.5061636", "0.5056945", "0.5050723", "0.5048109", "0.5043373", "0.50404894", "0.5032525", "0.5022088", "0.5021264", "0.50107527", "0.5003066", "0.5001894", "0.4995063", "0.49698663", "0.4965237", "0.49630094", "0.49596596", "0.49586025", "0.49559924", "0.4951203", "0.49461266", "0.49423915", "0.49348804", "0.49345955", "0.4932287", "0.49316418", "0.4930464", "0.4927769", "0.49272847", "0.49224916", "0.49096337", "0.49092564", "0.49066854", "0.4905472", "0.49046052", "0.49039555", "0.48969173", "0.48948076", "0.48933497", "0.4892186", "0.48916996", "0.4891376", "0.48905453", "0.48880467", "0.48874822", "0.48827606", "0.4879138", "0.4877444", "0.4868917", "0.48685262", "0.48629007", "0.4857387", "0.4856798", "0.48542887", "0.4851967", "0.48458853", "0.48458853", "0.48458853", "0.48453978", "0.48426762", "0.48408687", "0.48408687", "0.48408687", "0.48353517", "0.48348", "0.48347205", "0.4834561", "0.48262742", "0.48225328", "0.48167056", "0.48151666" ]
0.0
-1
Constructor method for the PlayerDataReceiver class, message used to select the the PlayedData of a certain player
public PlayerDataReceiver(String playerID) { this.type = ServerMessageType.PLAYER_DATA_RECEIVER; this.playerID = playerID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void processPlayer(Player sender, CDPlayer playerData, String[] args) {\n }", "public PlayerData getPlayerData() {\n return player;\n }", "public ChatRoomDataPacket(M data, IChatUser sender) {\n\t\tsuper(data, sender);\n\t}", "public PlayerFunctionality getPlayerData()\r\n\t{ return data; }", "public FirstPlayerPickCommand(int sender, int target, int playerID) {\n super(sender, target);\n players = null;\n picked = playerID;\n }", "private void setPlayerData(List<String> playerData) {\n this.name = playerData.get(NbaGachaApp.NAME_INDEX);\n this.position = playerData.get(NbaGachaApp.POSITION_INDEX);\n this.stars = Integer.parseInt(playerData.get(NbaGachaApp.STAR_INDEX));\n this.playerID = Integer.parseInt(playerData.get(NbaGachaApp.ID_INDEX));\n this.team = playerData.get(NbaGachaApp.TEAM_INDEX);\n setPlayerStats(playerData);\n }", "@Override\n\tpublic void onPacketData(NetworkManager network, Packet250CustomPayload packet, Player player)\n\t{\n\n\t}", "public Multi_Player()\r\n {\r\n \r\n }", "@Override\n\tpublic void loadPlayerData(InputStream arg0) {\n\n\t}", "Player(String playerName) {\n this.playerName = playerName;\n }", "@Override\n\tpublic void loadPlayerData(InputStream arg0)\n\t{\n\n\t}", "@Override\n public void dataReceived(PlayingInfoModel result) {\n }", "public CommEventReceiver( byte data[] )\n {\n super( data[0] );\n\n int channels = data[1];\n if (channels > 0 && channels <= 4)\n {\n channelData = new ReceiverChannel[channels];\n for ( int i = 0; i < channels; i++ )\n {\n byte segment = data[2 + ( 2 * i )];\n byte value = data[3 + ( 2 * i )];\n\n if (segment < 0 || segment > 4)\n {\n channelData[i] = new ReceiverChannel( false, (byte) 0, (byte) 0 );\n }\n else\n {\n channelData[i] = new ReceiverChannel( true, value, segment );\n }\n }\n }\n }", "public Player(){\r\n\t\tname = \"\";\r\n\t\tchip = 0;\r\n\t\tbet = 0;\r\n\t\tplayerHand = new PlayerHand();\r\n\t\ttable = null;\r\n\t}", "public FirstPlayerPickCommand(int sender, int target, List<Player> connectedPlayers) {\n super(sender, target);\n players = toCompatPlayerArray(connectedPlayers);\n picked = -1;\n }", "public SoundMessage(long chId, long timestamp, Object data) {\n this.chId = chId;\n this.timestamp = timestamp;\n this.data = data;\n }", "public computerPlayer(Player player) {\n\t\tsuper(player);\n\t\t\n\t}", "public Player receivePlayer() {\n try {\n return (Player) dIn.readObject();\n } catch (IOException e) {\n System.out.println(\"Player not received\");\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n System.out.println(\"Class not found\");\n e.printStackTrace();\n }\n return null;\n }", "public UserPlayer(){\n this.playerNum = 0;\n this.isLead = false;\n this.playerHand = new Hand();\n this.suitUserChose = null;\n }", "public Builder setPlayerIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n bitField0_ |= 0x00000002;\n playerId_ = value;\n onChanged();\n return this;\n }", "@Override\n\tpublic void setData(String playerName) {\n\t\tthis.currentPlayerName = playerName;\n\t\t\n\t}", "public PixArtPlayerData(Player p) {\r\n \t\t\tpPlayer = p;\r\n \t\t\tthis.scaleXPercent= PixArtPlugin.pluginsettings.XScale;\r\n \t\t\tthis.scaleXPercent= PixArtPlugin.pluginsettings.YScale;\r\n \t\t\tFlipX=false;\r\n \t\t\tFlipY=false;\r\n \t\t\tthis.canuseURL= PixArtPlugin.hasPermex(pPlayer,\"canuseURL\");\r\n \t\t\tthis.canusePath = PixArtPlugin.hasPermex(pPlayer, \"canusePath\");\r\n \t\t\t\r\n \t\t}", "public void setPlayer(String player) {\r\n this.player = player;\r\n }", "public Command(int Player) {\r\n\t\tmyPlayer = Player;\r\n\t}", "public Player(String playerId) {\n\t\tthis.playerid = playerId;\n\t\tthis.pieceType = null;\n\t}", "private void createPlayer() {\r\n try {\r\n mRadioPlayer = new RadioPlayer(getApplication(), mDeezerConnect,\r\n new WifiAndMobileNetworkStateChecker());\r\n mRadioPlayer.addPlayerListener(this);\r\n setAttachedPlayer(mRadioPlayer);\r\n } catch (DeezerError e) {\r\n handleError(e);\r\n } catch (TooManyPlayersExceptions e) {\r\n handleError(e);\r\n }\r\n }", "public Player (Deck mainDeck) {\n this.mainDeck = mainDeck;\n }", "public DataMessage(final Object data){\n\t\tthis.data=data;\n\t}", "public RemotePlayerServer(Player p) {\n this.localPlayer = p;\n }", "Player loadPlayer(String playerIdentifier) {\n\n Player load = new Player();\n Table t = Constants.processing.loadTable(\"data/player\" + playerIdentifier + \".csv\");\n load.brain.TableToNet(t);\n return load;\n }", "public Player(int i){\r\n playerID=i;\r\n }", "public Player(String username)\n\t{\n\t\tm_username = username;\n\t\tm_requests = new HashMap<String, RequestType>();\n\t}", "public AbstractPlayer() {\r\n }", "public HexComputerPlayer1(String name) {\n // invoke superclass constructor\n super(name); // invoke superclass constructor\n }", "public PlayersSelectedEvent(int clientID, String player, List<String> players) {\n super(clientID, player);\n this.players = players;\n }", "public void sendPlayerData() throws JSONException {\n\t\tJSONObject json = new JSONObject();\n\t\tJSONObject json2 = new JSONObject();\n\t\tjson2.put(\"Name\", playerModel.getPlayerName());\n\n\t\tswitch (playerModel.getPlayerColor()) {\n\n\t\tcase PL_BLUE:\n\t\t\tjson2.put(\"Farbe\", \"Blau\");\n\t\t\tbreak;\n\t\tcase PL_RED:\n\t\t\tjson2.put(\"Farbe\", \"Rot\");\n\t\t\tbreak;\n\t\tcase PL_WHITE:\n\t\t\tjson2.put(\"Farbe\", \"Weiß\");\n\t\t\tbreak;\n\t\tcase PL_YELLOW:\n\t\t\tjson2.put(\"Farbe\", \"Orange\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\n\t\t}\n\t\tjson.put(\"Spieler\", json2);\n\t\tlog.info(playerModel + \" verschickt\");\n\t\tcontroller.getClient().send(json);\n\t}", "public Summoning(Player p) {\n\t\tthis.c = p;\n\t}", "public IncomingPluginMessageContext(Player player, byte[] message) {\n this.player = player;\n this.message = message;\n }", "public Player(String name) {\r\n this.name = name;\r\n// Maxnum = 0;\r\n special = 0;\r\n index = 0;\r\n }", "@Override\r\n\tpublic void SetPlayerInfo(Context _in_context, String _in_data) {\n\t\tTypeSDKLogger.e( \"SetPlayerInfo\");\r\n\t\tSendInfo(_in_context, _in_data);\r\n\t}", "public BotPlayer(int ID) {\n super.setNick(\"Bot#\" + ID);\n playerID = ID;\n bestMove = new Field[2];\n destinationFields = new ArrayList<>();\n }", "@Override\r\n\tpublic void SetPlayerInfo(Context _in_context, String _in_data) {\n\t\tTypeSDKLogger.e(\"SetPlayerInfo\");\r\n\t\tSendInfo(_in_context, _in_data);\r\n\t}", "private Player selectPlayer (int which) {\n System.out.println();\n int choice = readPlayerChoice(which);\n String name = readPlayerName();\n if (choice == TIMID)\n return new TimidPlayer(name);\n else if (choice == GREEDY)\n return new GreedyPlayer(name);\n else if (choice == CLEVER)\n return new CleverPlayer(name);\n else\n return new InteractivePlayer(name);\n }", "Player() {\r\n setPlayerType(\"HUMAN\");\r\n\t}", "@Override\n\tpublic void loadPlayerData(InputStream is) {\n\t}", "public ExtendedPlayer(EntityPlayer player)\n\t{\n\t\t// TODO: Do I need to worry that this constructor might be overwriting stored values?\n\t\tthis.player = player;\n\t\tthis.authyCell = \"\";\n\t\tthis.playerEmail = \"\";\n\t\tthis.authyID = \"\";\t\t\t\t\t\t\n\t\tthis.authySuccessDate = null;\t\t\t// By default user has never successfully completed 2FA phase.\n\t\tthis.playerAwaitingAuthy = false;\t\t// By default player is not enforced to perform 2FA.\n\t\tthis.authyCountryCode = \"1\"; \t\t\t// Default to US for the country of the phone number.\n\t\tthis.authySecuredDoorLocation = new int[] {0};\n\t\tthis.pushRequestUUID = \"\";\n\t\tthis.pushRequestStatus = \"\";\n\t}", "public void setPlayer(Player player) {\r\n this.player = player;\r\n }", "public void setPlayer(Player player) {\n this.player = player;\n }", "public Player() {\t\n\t}", "public ServerMessage(String message, Player player) {\n this.message = message;\n this.player = player;\n }", "@Override\r\n\tpublic void init(String fileAddress) {\n\t\tplayerController = new DataService.PlayerDataService.PlayerController(fileAddress) ;\r\n\t}", "public WaitMessage() {\n super(\"Wait for other player...\\n\");\n }", "private void SetCurrentPlayer() throws IOException\n {\n if( mTeamsComboBox.getSelectedItem() != null )\n {\n String team = mTeamsComboBox.getSelectedItem().toString();\n String position = mPositionComboBox.getSelectedItem().toString();\n String playerData = GetPlayerString(team, position);\n if( playerData != null )\n SetPlayerData(playerData);\n }\n }", "@Override\n\tpublic void setPlayer(Player player) {\n\n\t}", "public Player()\r\n\t{\r\n\t\tscore = 0;\r\n\t\tsetPlayerName();\r\n\t}", "public Player(String type){\n \n this.type = type;\n }", "public Player(Player p)\r\n {\r\n this(p.isCompletingGame, p.averageTime, p.fastestTime, p.gamesCompleted, p.rank, p.title, p.username);\r\n }", "public OctopusCollectedMsg(byte[] data) {\n super(data);\n amTypeSet(AM_TYPE);\n }", "public computerPlayer(int PlayerNumber) {\n\t\tsuper(PlayerNumber);\n\t}", "public ClientPlayer(String username, Integer id, Level level) {\r\n\t\tsuper(username, id, level);\r\n\t}", "public void createPlayerData(OfflinePlayer player, boolean learning_mode,\n\t\t\tboolean muted) {\n\t\tsynchronized (mWaiting) {\n\t\t\tmWaiting.add(new PlayerData(player, learning_mode, muted));\n\t\t}\n\t}", "public Player(Othello othello, char player) {\n\t\tthis.othello=othello;\n\t\tthis.player=player;\n\t\tthis.type = null;\n\t}", "public void setPlayer(Player player) {\n this.player = player;\n }", "public Player()\n\t{\n\t\tsetUserName(\"\");\n\t\tsetFamilyName(\"\");\n\t\tsetGivenName(\"\");\n\t\tsetGamesPlayed(0);\n\t\tsetGamesWon(0);\n\t\tsetGamesDrawn(0);\n\t}", "Player(String name){\n\t\tthis.name = name;\n\t}", "@Override\n\tpublic void loadPlayerData(InputStream is) {\n\n\t}", "public Player() {}", "public Player() {}", "public Player() {}", "public Player() {}", "private void SetPlayerData(String playerLine) throws IOException\n {\n String fName = m_Parser.GetFirstName(playerLine);\n String lName = m_Parser.GetLastName(playerLine);\n int face = m_Parser.GetFace(playerLine);\n int jerseyNumber = m_Parser.GetJerseyNumber(playerLine);\n int[] attrs = m_Parser.GetInts(playerLine);\n int[] simData = m_Parser.GetSimVals(playerLine);\n\n mFirstNameTextBox.setText( fName);\n mLastNameTextBox.setText( lName);\n m_ImageNumber = face;\n if( jerseyNumber > -1 && jerseyNumber < 0x100)\n mJerseyNumberUpDown.setValue( Integer.parseInt(String.format(\"%x\", jerseyNumber)));\n\n if( attrs != null )\n {\n int attrIndex = 0;\n for(int i = 0; i < attrs.length && i < m_Attributes.length; i++)\n {\n attrIndex = AttrIndex(attrs[i]+\"\");\n if( attrIndex > -1 )\n m_Attributes[i].setSelectedIndex(attrIndex);\n }\n }\n if( simData != null)\n {\n for( int i =0; i < simData.length; i++)\n {\n m_SimAttrs[i].setValue( Integer.parseInt(simData[i]+\"\"));\n }\n }\n if( jerseyNumber > -1 && jerseyNumber < 0x100)\n {\n mJerseyNumberUpDown.setValue(Integer.parseInt(String.format(\"%x\", jerseyNumber)));\n ShowCurrentFace();\n }\n }", "Player(String Name){\n\t\tthis.Name=Name;\n\t\tdate=new Date();\n\t\tthis.Score=Score;\n\t\tScore=0;\n\t}", "public Player(){\r\n\r\n }", "public Player(Player p){\n this.dead = p.dead;\n this.hiddenTreasures = p.hiddenTreasures;\n this.level = p.level;\n this.name = p.name;\n this.pendingBadConsequence = p.pendingBadConsequence;\n this.visibleTreasures = p.visibleTreasures;\n }", "private CombatPlayerProto(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public PlayerClass(PlayerData player, RPGClass classData) {\n this.player = player;\n this.classData = classData;\n this.level = 1;\n this.points = SkillAPI.getSettings().getGroupSettings(classData.getGroup()).getStartingPoints();\n this.exp = 0;\n\n for (Skill skill : classData.getSkills()) {\n player.giveSkill(skill, this);\n }\n }", "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 }", "@Override\n public void onDataAvailable(Object data) {\n try {\n\n Utility.gameName = Utility.game.getGameName();\n Log.e(\"show leader board\",\"game name ---> \" + Utility.game.getGameName());\n final List<Player> playersList = new ArrayList<Player>();\n\n\n JSONObject playersObject = new JSONObject(data.toString());\n JSONArray playersArray = playersObject.getJSONArray(\"players\");\n\n SharedPreferences useridpref = getSharedPreferences(\"userid\", MODE_PRIVATE);\n Integer userId = Integer.parseInt(useridpref.getString(\"userid\", \"0\"));\n\n for (int i = 0; i < playersArray.length(); i++) {\n Player player = new Player();\n player.jsonParser((JSONObject) playersArray.get(i));\n\n playersList.add(player);\n\n\n if (userId == (player.getUserId())) {\n\n setGamePoints(player.getGamepoints() + \"\");\n setUserNoOfPlays(player.getNoOfPlays() + \"\");\n //updating user lastgame details\n userObject.setLastGameCreator(Creator.getUserName());\n userObject.setUserRank(player.getWorldRank() + \"\");\n userObject.setLastGameName(Utility.game.getGameName());\n userObject.setLastGamePoints(player.getTotalPoints() + \"\");\n userObject.setLastGamePlays((Utility.game.getLength()) + \"\");\n\n Log.e(\"user game length\",userObject.getLastGamePlays()+\"\");\n Log.e(\"user plays left\",userObject.getTotalNoOfPlays()+\"\");\n Log.e(\"user plays game name\",userObject.getLastGameName()+\"\");\n\n\n// updating current player info\n currentGamePoints = player.getPointsRank();\n\n }\n }\n\n final List<Player> playersListtemp = playersList;\n // playersList;\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n\n //stuff that updates leaderboard\n PlayByPlay playByPlay = new PlayByPlay();\n gameleaderboardList.setAdapter(new GameScreenLeaderBoardList(GameScreenActivity.this, playersListtemp));\n gameleaderboardList.setDividerHeight(1);\n currentPlayerName.setText(Utility.user.getUserName());\n currentPlayerPoints.setText(getGamePoints());\n playerListSize.setText(\"(\" + playersList.size() + \")\");\n gsUserRank.setText(\"#\" + userObject.getUserRank());\n\n noOfPlaysInHeader.setText(getUserNoOfPlays() + \"\");\n noOfPlaysInAddPlays.setText(\"Balance: \" + getUserNoOfPlays() + \" plays\");\n\n }\n });\n\n\n\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n // Toast.makeText(getApplicationContext(),\"error data \" + data.toString(),Toast.LENGTH_LONG).show();\n\n\n e.printStackTrace();\n }\n\n }", "public PlayerMatches(String player1) {\n this.player1 = player1;\n }", "protected VideoData() {}", "public Player(){}", "public Player(){}", "public DataController(int matchId, int assignedPlayer, String hostUrl, boolean connectionActive, int f, boolean unlimitedConnection){\n this.matchId = matchId;\n this.assignedPlayer = assignedPlayer;\n this.hostUrl = hostUrl;\n this.connectionActive = connectionActive;\n this.frequency = f;\n this.unlimitedCollection = unlimitedConnection;\n }", "public RandomPlaySelector() {\n super();\n }", "public Player(String name) {\n this.name = name;\n gameDeck = new Deck(false);\n wonDeck = new Deck(false);\n }", "public Player(int type, int id, Scanner inputScanner){\t\t\n\t\t// Check for legal player type (we will see better ways to do this in the future).\n\t\tif (type != RANDOM && type != HEURISTIC \n\t\t\t\t&& type != SMART && type != HUMAN){\n\t\t\tSystem.out.println(\"Received an unknown player type as a parameter\"\n\t\t\t\t\t+ \" in Player constructor. Terminating.\");\n\t\t\tSystem.exit(-1);\n\t\t}\t\t\n\t\tplayerType = type;\t\n\t\tplayerId = id;\n\t\tscanner = inputScanner;\n\t}", "public Player2(){\n super();\n name=\"110\";\n }", "private ClientPlayerDetails(com.google.protobuf.GeneratedMessage.Builder<?> builder) {\n super(builder);\n this.unknownFields = builder.getUnknownFields();\n }", "public Player(){\n default_init();\n }", "public void connectToServerPVP() {\n\n\t\ttry \n\t\t{\n\t\t\tSocket socket = new Socket(host, 8001);\n\t\t\tfromServer = new DataInputStream(socket.getInputStream());\n\t\t\ttoServer = new DataOutputStream(socket.getOutputStream());\n\n\t\t\ttoServer.writeInt(vsPLAYER);\n\n\t\t} catch (IOException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\tThread thread = new Thread(new clientHandlingPlayer(fromServer, toServer));\n\t\tthread.start();\n\t}", "public Matchdata(Match match, long _matchID, String _summonerName, long _playerID)\n {\n matchID = _matchID;\n summonerName = _summonerName;\n playerID = _playerID;\n\n \n participantID = getIdentityFromSummonerID(match);\n totalGoldEachMinute = goldEachMinute(match, participantID);\n minutes = totalGoldEachMinute.length;\n \n individualGEM = new int[totalGoldEachMinute.length];\n for(int i = totalGoldEachMinute.length-1; i>0; i--)\n {\n individualGEM[i] = totalGoldEachMinute[i]-totalGoldEachMinute[i-1];\n }\n individualGEM[0] = totalGoldEachMinute[0];\n \n \n totalCreepsEachMinute = creepsEachMinute(match, participantID);\n \n individualCEM = new int[totalCreepsEachMinute.length];\n for(int i = totalCreepsEachMinute.length-1; i>0; i--)\n {\n individualCEM[i] = totalCreepsEachMinute[i]-totalCreepsEachMinute[i-1];\n }\n individualCEM[0] = totalCreepsEachMinute[0];\n \n \n \n gpm = totalGoldEachMinute[totalGoldEachMinute.length-1]/totalGoldEachMinute.length;\n cpm = totalCreepsEachMinute[totalCreepsEachMinute.length-1]/totalCreepsEachMinute.length;\n \n //get(participantID-1) might seem weird, but it's how getParticipants is stored.\n victory = match.getParticipants().get(participantID-1).getStats().getWinner();\n champion = match.getParticipants().get(participantID-1).getChampionID();\n time = match.getCreation().getTime();\n \n lane = match.getParticipants().get(participantID-1).getTimeline().getLane();\n role = match.getParticipants().get(participantID-1).getTimeline().getRole();\n \n roleSanity = sanityCheck(match);\n \n map = match.getMap();\n \n }", "public GamePlayer() {}", "public OctopusCollectedMsg(int data_length) {\n super(data_length);\n amTypeSet(AM_TYPE);\n }", "public Player(byte id, short xPos, short yPos, byte hp, String name, ArrayList<Pair<Byte, Short>> weapons, ArrayList<Bullet> bullets, LinkedList<Byte> trakedWeapons, boolean jumpState, boolean fallState, short initial_y, byte currentWeapon,short currWeaponammo, short shootingDirection, boolean sprint, int score, byte roundsWon, boolean ready,int stateOfMovement,byte charId){\n this.id =id;\n this.score = score;\n this.ready = ready;\n this.xPos = xPos;\n this.yPos = yPos;\n this.hp = hp;\n this.weapons = weapons;\n this.name = name;\n character_id = 1;\n this.weaponEntryTracker = trakedWeapons;\n this.isJumping=jumpState;\n this.isFalling=fallState;\n this.bulletsFired = bullets;\n this.currentWeapon = new Pair<>(currentWeapon,currWeaponammo);\n this.initial_y = initial_y;\n this.shootingDirection = shootingDirection;\n this.sprint = sprint;\n this.roundsWon = roundsWon;\n this.stateOfMovement = stateOfMovement;\n this.character_id = charId;\n audioHandler = new AudioHandler();\n }", "public Player()\r\n {\r\n playerItem = new ArrayList();\r\n }", "public Player()\n\t{\n\t\tthis.name = \"\";\n\t\tthis.numPlayed = 0;\n\t\tthis.numCompleted = 0;\n\t\tthis.averageTime = new Time(0);\n\t\tthis.bestTime = new Time(0);\n\t\tthis.accuracy = 0;\n\t}", "static public void set_player_data(String league){\n\t\t\n\t\tEdit_row_window.attrs = new String[]{\"player name:\", \"rating:\", \"birth year:\"};\n\t\tEdit_row_window.attr_vals = new String[]\n\t\t\t\t{Edit_row_window.selected[0].getText(1), Edit_row_window.selected[0].getText(2), \n\t\t\t\tEdit_row_window.selected[0].getText(3)};\n\t\t\n\t\tEdit_row_window.linked_query =\t\" select distinct t.id, t.name, t.links_to_team, t.creation_year \" +\n\t\t\t\t\t\t\t\t\t\t\t\" from curr_\"+league+\"_teams t, \" +\n\t\t\t\t\t\t\t\t\t\t\t\" curr_\"+league+\"_player_team pt\" +\n\t\t\t\t\t\t\t\t\t\t\t\" where pt.team_id=t.id and pt.player_id=\"+Edit_row_window.id+\n\t\t\t\t\t\t\t\t\t\t\t\" order by links_to_team desc \";\n\t\t\n\t\t\n\t\tEdit_row_window.not_linked_query = \" select distinct t.id, t.name, t.links_to_team, t.creation_year \" +\n\t\t\t\t\" from curr_\"+league+\"_teams t \";\n\t\t\n\t\tEdit_row_window.linked_attrs = new String[]{\"id\", \"team name\", \"rating\", \"creation year\"};\n\t\tEdit_row_window.label_min_parameter=\"min. creation year:\";\n\t\tEdit_row_window.linked_category_name = \"TEAMS\";\n\t}", "public void setPlayerUUID(UUID playerUUID) {\n this.playerUUID = playerUUID;\n }", "public void setPlayer(Player p) {\n\t\tplayer = p;\n\t}", "public ClientPlayer(Client client, String username, Integer id, InputHandler input, Level level) {\r\n\t\tthis(0, 0, client, username, id, input, level);\r\n\t}" ]
[ "0.6193456", "0.61049175", "0.60346776", "0.6025187", "0.59408915", "0.58624566", "0.5798126", "0.57779896", "0.5771192", "0.5770687", "0.57638717", "0.57185453", "0.5705349", "0.56633157", "0.5660252", "0.5649958", "0.5612536", "0.56049395", "0.55995786", "0.5555378", "0.5550193", "0.55384886", "0.5524263", "0.55218667", "0.5490062", "0.54899687", "0.5488169", "0.5475544", "0.5461382", "0.5438441", "0.5399244", "0.53856224", "0.535752", "0.53431827", "0.5340561", "0.5330875", "0.5328224", "0.53049725", "0.530434", "0.5300113", "0.5298915", "0.52957004", "0.52953136", "0.5294714", "0.52926147", "0.5287765", "0.5281106", "0.52722263", "0.5267464", "0.52664006", "0.52631104", "0.526306", "0.52599764", "0.52556974", "0.5254065", "0.5251403", "0.52438533", "0.5239885", "0.52307355", "0.5221927", "0.5218932", "0.5215602", "0.5212333", "0.5211777", "0.52054256", "0.5195691", "0.5194131", "0.5194131", "0.5194131", "0.5194131", "0.5191304", "0.5189454", "0.51893824", "0.5189259", "0.51863945", "0.5179478", "0.51770204", "0.5176738", "0.51680416", "0.51667804", "0.5164086", "0.5164086", "0.51618636", "0.51602155", "0.515859", "0.5157959", "0.5154966", "0.51490295", "0.51458836", "0.51446277", "0.5141974", "0.514097", "0.5139991", "0.5136699", "0.51362354", "0.51343054", "0.513419", "0.5132555", "0.51291615", "0.5128341" ]
0.7393707
0
Return a string with playerID
public String getPlayerID() { return playerID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "java.lang.String getPlayerId();", "public java.lang.String getPlayerId() {\n java.lang.Object ref = playerId_;\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 playerId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@java.lang.Override\n public java.lang.String getPlayerId() {\n java.lang.Object ref = playerId_;\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 playerId_ = s;\n return s;\n }\n }", "public String getId() {\n\t\treturn this.playerid;\n\t}", "int getPlayerId();", "int getPlayerId();", "long getPlayerId();", "com.google.protobuf.ByteString\n getPlayerIdBytes();", "public String generatePlayerID() {\n List<Player> players = getAllOrdered();\n int idNum;\n \n if (players == null || players.isEmpty())\n idNum = 0;\n else {\n String idStr = players.get(players.size() - 1).getPlayerID();\n idNum = Integer.parseInt(idStr.substring(2, idStr.length()));\n }\n \n String playerID;\n int newIdNum = idNum + 1;\n if (newIdNum <= 9)\n playerID = \"P_000\" + newIdNum;\n else if (newIdNum <= 99) \n playerID = \"P_00\" + newIdNum;\n else if (newIdNum <= 999)\n playerID = \"P_0\" + newIdNum;\n else \n playerID = \"P_\" + newIdNum;\n \n return playerID;\n }", "public com.google.protobuf.ByteString\n getPlayerIdBytes() {\n java.lang.Object ref = playerId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playerId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@java.lang.Override\n public com.google.protobuf.ByteString\n getPlayerIdBytes() {\n java.lang.Object ref = playerId_;\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 playerId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public int getPlayerId();", "public String toString() {\n\t\treturn \"player \" + player.id + \"\\n\";\n\t}", "public static String getIdentificationForAsString(OfflinePlayer player) {\n return getIdentificationForAsString(player, true);\n }", "String getGameId();", "public String getPlayerId() {\n\t\treturn playerId;\n\t}", "public String getCurrentPlayer() {\r\n return this.playerIds[this.currentPlayer];\r\n }", "UUID getActivePlayerId();", "static String get_playerID(String username)\n {\n return request(\"GET\", \"\", \"get_playerID/\" + username);\n }", "public int getId() {\n return playerId;\n }", "public long getPlayerId() {\n return playerId_;\n }", "public long getPlayerId() {\n return playerId_;\n }", "public int getPlayerID() {\r\n return playerID;\r\n }", "public int getPlayerID() {\n return playerID;\n }", "public String playerString() {\n String outString = \"\";\n outString = (playerName + \",\" + String.valueOf(ID) + \",\" + club + \",\" + position + \",\" +\n String.valueOf(age) + \",\" + String.valueOf(projectedScore)\n + \",\" + String.valueOf(available) + \",\" + String.valueOf(onTeam) + \",\"+String.valueOf(draftPick)+\",\"+String.valueOf(predictedPick));\n\n return outString;\n }", "public int getPlayerID() {\r\n\t\treturn playerID;\r\n\t}", "public int getPlayerID() {\r\n\t\treturn playerID;\r\n\t}", "public int getIdPlayer() {\n\t\treturn idPlayer;\n\t}", "String getPlayer();", "public byte getPlayerId() {\n return playerId;\n }", "public int getPlayerID() {\n\t\treturn playerID;\n\t}", "public PlayerID getID()\r\n\t{\r\n\t\treturn ID;\r\n\t}", "@java.lang.Override\n public java.lang.String getPlayerExternalUaId() {\n java.lang.Object ref = playerExternalUaId_;\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 playerExternalUaId_ = s;\n return s;\n }\n }", "public Integer getPlayerId() {\n return PlayerId;\n }", "public int getPlayerId() {\r\n\t\treturn playerId;\r\n\t}", "public java.lang.String getPlayerExternalUaId() {\n java.lang.Object ref = playerExternalUaId_;\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 playerExternalUaId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public int getPlayerID(){\n\t\treturn 0;\n\t\t/*\n\t\ttry{\n\t\t\tint player_id=-1;\t\t\t//save player_id, start with -1 as unknown\n\t\t\tString request = \"{\\\"jsonrpc\\\": \\\"2.0\\\", \\\"method\\\": \\\"Player.GetActivePlayers\\\", \\\"id\\\": 1}\";\n\t\t\tString url = kodiURL + URLEncoder.encode(request, \"UTF-8\");\n\t\t\t//send request\n\t\t\tJSONObject result = Connectors.httpGET_JSON(url.trim());\n\t\t\tSystem.out.println(\"result: \" + result);\t\t//debug\n\t\t\t//connection error\n\t\t\tif (result.toJSONString().trim().matches(\".*<connection error>.*\")){\n\t\t\t\treturn -2;\n\t\t\t}\n\t\t\tplayer_id = Integer.parseInt(result.get(\"id\").toString());\n\t\t\treturn player_id;\t\t//return ID if found\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn -1;\n\t\t}\n\t\t*/\n\t}", "public static Object getIdentificationFor(String playerName) {\n try {\n return UUIDFetcher.getUUIDOf(playerName);\n } catch (Exception e) {\n e.printStackTrace();\n }\n return playerName;\n }", "java.lang.String getID();", "public String getPlayerName(UUID id) {\n return playerRegistry.get(id);\n }", "String getPlayerName();", "public static Object getIdentificationFor(OfflinePlayer player) {\n return getIdentificationFor(player, true);\n }", "java.lang.String getFriendId();", "java.lang.String getFriendId();", "public String toString() {\n\t\treturn \"Player \" + playerNumber + \": \" + playerName;\n\t}", "public String playerToString(Player player){\r\n StringBuilder toReturn = new StringBuilder(\"\");\r\n String playerName = player.getName();\r\n playerName = playerName.replace(\" \", \"_\");\r\n toReturn.append(playerName + \" \" + player.getIndex());\r\n \r\n return toReturn.toString();\r\n }", "public String getPlayer(int id) {\n if(id == -1 || mdb == null) {\n return null;\n }\n \n Set<String> strings = mdb.getKeys(false);\n for (String key : strings) {\n List<Integer> messageids = mdb.getIntegerList(key + \".messageids\");\n if (messageids != null && messageids.contains(id)) {\n return key;\n }\n }\n return null;\n }", "java.lang.String getLobbyId();", "public int getIdentityFromSummonerName(Match match)\n {\n int playerNum=-1;\n\n for(int i = 0; i<10; i++)\n {\n if(match.getParticipants().get(i).getSummonerName().equals(summonerName))\n playerNum=match.getParticipants().get(i).getParticipantID();\n\n }\n\n return playerNum;\n }", "java.lang.String getUserID();", "java.lang.String getUserID();", "java.lang.String getUserID();", "@java.lang.Override\n public com.google.protobuf.ByteString\n getPlayerExternalUaIdBytes() {\n java.lang.Object ref = playerExternalUaId_;\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 playerExternalUaId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public short getPlayerID() {\n\n return m_playerID;\n }", "public PlayerID getPlayer(){\n\t\treturn this.player;\n\t}", "public int getIdentityFromSummonerID(Match match)\n {\n int playerNum=-1;\n\n for(int i = 0; i<10; i++)\n {\n if(match.getParticipants().get(i).getSummonerID() == playerID)\n playerNum = match.getParticipants().get(i).getParticipantID();\n\n }\n\n return playerNum;\n }", "@java.lang.Override\n public java.lang.String getPlayerExternalOmniId() {\n java.lang.Object ref = playerExternalOmniId_;\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 playerExternalOmniId_ = s;\n return s;\n }\n }", "public String getPlayer() {\r\n return player;\r\n }", "public UUID getPlayerUuid() { return uuid; }", "@Override\n public String toString() {\n String className = getClass().getName();\n return className.substring(className.lastIndexOf('.')+1) + \n \" pid: \" + playerId;\n }", "private String getPlayerName() {\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(this);\n String storedName = preferences.getString(\"playerName\",\"none\");\n return storedName;\n }", "public java.lang.String getGymId() {\n java.lang.Object ref = gymId_;\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 gymId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPlayername(Player player) {\n System.out.println(\"――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――\");\n System.out.println(\"Merci de d'indiquer le nom du joueur \"+player.getColor().toString(false)+\" : \");\n String name = readInput.nextLine();\n return name;\n }", "@java.lang.Override\n public java.lang.String getGymId() {\n java.lang.Object ref = gymId_;\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 gymId_ = s;\n return s;\n }\n }", "public static String getReferral(UUID playerID) {\r\n\t\tFile codesFile = new File(plugin.getDataFolder() + File.separator + \"player-data\", playerID + \".yml\");\r\n\t\tif (!codesFile.exists())\r\n\t\t\tcodesFile.mkdirs();\r\n\t\tYamlConfiguration config = new YamlConfiguration();\r\n\t\ttry {\r\n\t\t\tconfig.load(codesFile);\r\n\t\t} catch (IOException | InvalidConfigurationException e1) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te1.printStackTrace();\r\n\t\t}\r\n\t\tif (config.getString(\"key\") != null)\r\n\t\t\treturn config.getString(\"key\");\r\n\t\tString key = UUID.randomUUID().toString().substring(0, 10);\r\n\t\tconfig.set(\"key\", key);\r\n\t\ttry {\r\n\t\t\tconfig.save(codesFile);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn key;\r\n\t}", "public java.lang.String getPlayerExternalOmniId() {\n java.lang.Object ref = playerExternalOmniId_;\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 playerExternalOmniId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "String getUserID();", "java.lang.String getStringId();", "java.lang.String getStringId();", "public String getPlayer() {\n return p;\n }", "public com.google.protobuf.ByteString\n getPlayerExternalUaIdBytes() {\n java.lang.Object ref = playerExternalUaId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n playerExternalUaId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "@Override\n public String getPlayerName()\n {\n if (currentPlayer == 0)\n {\n return playerOneName;\n }\n else\n {\n return playerTwoName;\n }\n }", "String getID();", "String getID();", "String getID();", "String getID();", "private String getPlayerName(int i) {\n\t\tSystem.out.println(\"\\nEnter Player \"+i+\"'s Name:\");\n\t\treturn GetInput.getInstance().aString();\n\t}", "public String getPlayerName() {\n return nameLabel.getText().substring(0, nameLabel.getText().indexOf('\\''));\n }", "public int getPlayer() {\r\n\t\treturn myPlayer;\r\n\t}", "public String getId()\r\n\t{\n\t\treturn id.substring(2, 5);\r\n\t}", "public static String getPlayerString(float[] playerInfo){\n\t\tif(playerInfo.length!=4)throw new IllegalArgumentException(\"Method only accepts playerinfo of length 4: ID,X,Y,ROT\");\n\t\tplayerInfo[1]*=100.0f;\n\t\tplayerInfo[2]*=100.0f;\n\t\t//P [ID] [X*100] [Y*100] [ROT]\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"P \");\n\t\tfor(int i =0;i<4;i++){\n\t\t\tsb.append((int)playerInfo[i]);\n\t\t\tsb.append(\" \");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String getUniqueId() {\n\t\treturn m_serverName + \" - \" + m_userId + \" - \" + m_timestampMillisecs;\n\t}", "java.lang.String getFortId();", "public java.lang.String getPlayerName() {\n java.lang.Object ref = playerName_;\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 playerName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getPlayerName() {\n \treturn playername;\n }", "public String getCurrentPlayer() {\n return currentPlayer;\n }", "public int getPlayerNumber() {\n\t\tint playerNumber=super.getPlayerNumber();\n\t\treturn playerNumber;\n\t}", "public String getPlayerName(){\n\t\treturn playerName;\n\t}", "public int getPlayer() {\r\n\t\treturn player;\r\n\t}", "String player1GetName(){\n return player1;\n }", "public String getCurrentPlayer() {\n\t\treturn _currentPlayer;\n\t}", "public JTextField getPlayerID() {\n return PlayerID;\n }", "private String getIdentificationString() {\n\t\tif (clientController.client.visitorID.getVal() != null)\n\t\t\treturn clientController.client.visitorID.getVal().intern();\n\t\tif (clientController.client.logedInSubscriber.getVal() != null)\n\t\t\treturn clientController.client.logedInSubscriber.getVal().personalID;\n\t\treturn null;\n\t}", "public String getPeerID() {\n\t\t//return this.localPeer.getPeerID();\n\t\treturn \"\";\n\t}", "public String getFullPlayerName(Player otherPlayer) {\n return this.fullPlayerName;\n }", "public void setPlayerId(String s) {\n\t\tplayerId = s;\n\t}", "private String getPlayerName() {\n Bundle inBundle = getIntent().getExtras();\n String name = inBundle.get(USER_NAME).toString();\n return name;\n }", "java.lang.String getPatientId();", "public java.lang.String getPlayerName() {\n java.lang.Object ref = playerName_;\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 playerName_ = s;\n return s;\n }\n }", "public String toString() {\n String player = new String(penalty + \",\" + secsTillUnpenalise);\n return player;\n }" ]
[ "0.8905255", "0.8164062", "0.80361557", "0.78389764", "0.7824868", "0.7824868", "0.7802843", "0.7573853", "0.75729495", "0.75049984", "0.74983716", "0.7470963", "0.7395487", "0.7380577", "0.728844", "0.7265361", "0.71353817", "0.71305233", "0.71078384", "0.7028816", "0.7019451", "0.69963", "0.69520485", "0.69126856", "0.6909752", "0.68940324", "0.68940324", "0.68784434", "0.6843408", "0.68428457", "0.6808058", "0.68065375", "0.67595243", "0.67444575", "0.67377675", "0.6734386", "0.6711928", "0.6657035", "0.66287625", "0.6586331", "0.655874", "0.6554687", "0.6539436", "0.6539436", "0.6537412", "0.6522755", "0.65045536", "0.64791507", "0.647022", "0.6469105", "0.6469105", "0.6469105", "0.6463748", "0.6417414", "0.63747907", "0.6368691", "0.636607", "0.6365593", "0.6361378", "0.63555527", "0.63285065", "0.6326337", "0.63197947", "0.6317421", "0.6307221", "0.6296725", "0.6293917", "0.62929845", "0.62929845", "0.6263867", "0.6257086", "0.6249071", "0.6245002", "0.6245002", "0.6245002", "0.6245002", "0.62289995", "0.6224887", "0.6199412", "0.61984473", "0.61861485", "0.6178841", "0.61676073", "0.61672205", "0.61621004", "0.615282", "0.6151612", "0.61461794", "0.61401635", "0.613818", "0.6136859", "0.61110824", "0.61108476", "0.61102784", "0.6101052", "0.60973763", "0.6095433", "0.60927445", "0.6084523", "0.6077481" ]
0.75825536
7
Builds a player socket connection
public PlayerSocket(String name, PrintWriter output, BufferedReader input) throws IOException { super(name); this.input= input; this.output= output; validResponse = false; ponged = false; Thread t = new Thread(this::listen); t.start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void connectToServerPVP() {\n\n\t\ttry \n\t\t{\n\t\t\tSocket socket = new Socket(host, 8001);\n\t\t\tfromServer = new DataInputStream(socket.getInputStream());\n\t\t\ttoServer = new DataOutputStream(socket.getOutputStream());\n\n\t\t\ttoServer.writeInt(vsPLAYER);\n\n\t\t} catch (IOException ex)\n\t\t{\n\t\t\tex.printStackTrace();\n\t\t}\n\n\t\tThread thread = new Thread(new clientHandlingPlayer(fromServer, toServer));\n\t\tthread.start();\n\t}", "public RemoteMediaPlayer() throws IOException {\n this.socket = new Socket(\"localhost\", 4444);\n\n this.fromServer = new BufferedReader(\n new InputStreamReader(\n socket.getInputStream()\n )\n );\n\n this.toServer = new PrintWriter(\n socket.getOutputStream()\n );\n }", "OthelloPlayer(Socket socket, String playerColor, OthelloGame othelloGame)\r\n {\r\n this.socket = socket;\r\n this.playerColor = playerColor;\r\n this.game = othelloGame;\r\n\r\n try\r\n {\r\n socketWriter = new PrintWriter(socket.getOutputStream(), true);\r\n socketReader = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n socketWriter.println(\"WELCOME \" + playerColor);\r\n socketWriter.println(\"MESSAGE Waiting for opponent to connect\");\r\n }\r\n catch (IOException e)\r\n {\r\n System.out.println(\"Player died: \" + e);\r\n }\r\n }", "public static WebSocket<JsonNode> join() {\n return new WebSocket<JsonNode>() {\n @Override\n public void onReady(In<JsonNode> in, Out<JsonNode> out) {\n ConnectedPlayer lowerPlayer = new ConnectedPlayer(in, out);\n log.trace(\"Incoming {}.\", lowerPlayer);\n\n // Tell the player that we are trying to find a pair.\n new WaitingForOpponent(lowerPlayer.getId()).write(out);\n\n // Try to pair the incoming player with another player.\n ConnectedPlayer upperPlayer = pendingPlayers.poll();\n if (upperPlayer != null) {\n Game game = new Game(\n upperPlayer, lowerPlayer,\n new Game.ShutdownListener() {\n @Override\n public void onGameShutdown(String gameId) {\n Application.onGameShutdown(gameId);\n }\n });\n game.start();\n games.put(game.getId(), game);\n log.trace(\"Started {} with {} and {}.\", game, upperPlayer, lowerPlayer);\n }\n\n // Else, queue the player into the waiting list.\n else {\n pendingPlayers.add(lowerPlayer);\n log.trace(\"Queued {}.\", lowerPlayer);\n }\n }\n };\n }", "protected abstract ConnectionBase createNewConnection(Socket socket);", "public abstract void createConnection(Socket socket, String userName);", "public void run() throws IOException {\n @SuppressWarnings(\"resource\")\n //Listens for a connection on the port number.\n ServerSocket s0 = new ServerSocket(PORT_NUMBER);\n Socket s = s0.accept();\n\n //Sets up the buffers to read and to write on the socket.\n BufferedReader r = new BufferedReader(new InputStreamReader(\n s.getInputStream(), StandardCharsets.UTF_8));\n BufferedWriter w = new BufferedWriter(new OutputStreamWriter(\n s.getOutputStream(), StandardCharsets.UTF_8));\n \n \n String command;\n\n //Reads the commands wrote on the socket line per line\n while ((command = r.readLine()) != null) {\n String[] msg = split(' ', command);\n\n switch (JassCommand.valueOf(msg[COMMAND_INDEX])) {\n\n case PLRS:\n \n //Creates the players map with the arguments and calls the setPlayers function of the underlyingPlayer.\n Map<PlayerId, String> players = new HashMap<>();\n for (int i = 0; i < PlayerId.COUNT; i++) {\n players.put(PlayerId.ALL.get(i),\n deserializeString(split(',', msg[ARG_2_INDEX])[i]));\n }\n localPlayer.setPlayers(PlayerId.ALL.get(deserializeInt(msg[ARG_1_INDEX])),\n players);\n break;\n\n case CARD:\n \n //Calls the cardToPlay function of the underlying function with the arguments of the message.\n String[] st = split(',', msg[ARG_1_INDEX]);\n TurnState state = TurnState.ofPackedComponents(\n deserializeLong(st[ARG_0_INDEX]), deserializeLong(st[ARG_1_INDEX]),\n deserializeInt(st[ARG_2_INDEX]));\n Card c = localPlayer.cardToPlay(state,\n CardSet.ofPacked(deserializeLong(msg[ARG_2_INDEX])));\n w.write(serializeInt(c.packed()));\n w.newLine();\n w.flush();\n break;\n\n case HAND: \n localPlayer\n .updateHand(CardSet.ofPacked(deserializeLong(msg[ARG_1_INDEX])));\n break;\n\n case TRMP:\n localPlayer.setTrump(Color.ALL.get(deserializeInt(msg[ARG_1_INDEX])));\n break;\n\n case SCOR:\n localPlayer\n .updateScore(Score.ofPacked(deserializeLong(msg[ARG_1_INDEX])));\n break;\n\n case TRCK:\n localPlayer.updateTrick(Trick.ofPacked(deserializeInt(msg[ARG_1_INDEX])));\n break;\n\n case WINR:\n localPlayer\n .setWinningTeam(TeamId.ALL.get(deserializeInt(msg[ARG_1_INDEX])));\n break;\n\n default:\n }\n }\n }", "private void initSocket() {\n try {\n rtpSocket = new DatagramSocket(localRtpPort);\n rtcpSocket = new DatagramSocket(localRtcpPort);\n } catch (Exception e) {\n System.out.println(\"RTPSession failed to obtain port\");\n }\n\n rtpSession = new RTPSession(rtpSocket, rtcpSocket);\n rtpSession.RTPSessionRegister(this, null, null);\n\n rtpSession.payloadType(96);//dydnamic rtp payload type for opus\n\n //adding participant, where to send traffic\n Participant p = new Participant(remoteIpAddress, remoteRtpPort, remoteRtcpPort);\n rtpSession.addParticipant(p);\n }", "@Override\n public void initClient(final String hostName, final String serverAddr, \n final int serverPort) {\n final GameBoard gameBoard = new GameBoard(Controller.DEFAULT_GRID_SIZE);\n gameBoard.setVisible(true);\n gameBoard.toConsole(\"Hello \" + hostName);\n gameBoard.toConsole(\"Connecting to server...\");\n \n SwingWorker socketWorker = new SwingWorker<Socket, Integer>() {\n\n @Override\n protected Socket doInBackground() throws Exception {\n \n Socket socket = null;\n try {\n //attempt to connect to the server\n socket = new Socket(serverAddr, serverPort);\n \n gameBoard.toConsole(\"Connection successful!!\");\n gameBoard.toConsole(\"Waiting for opponent...\");\n \n /* Open an input stream to read messages from the server.\n * If we are the first of two players attempting a connection\n * then we will get two messages from the server - one to \n * let us know the server is waiting for an opponent and \n * another to let us know two clients are connected. There\n * is also the possibility that the \n */\n \n DataInputStream in = new DataInputStream(socket.getInputStream());\n \n int messageCode = in.readInt();\n String controlFlag = Controller.GO_SECOND;\n \n if(messageCode == WAITING_CODE) {\n gameBoard.toConsole(\"Waiting for opponent...\");\n messageCode = in.readInt();\n controlFlag = Controller.GO_FIRST;\n }\n\n if(messageCode == ALL_OPPONENTS_READY) {\n \n new Controller(hostName, controlFlag, socket, gameBoard);\n }\n else if(messageCode == ERROR_CODE){\n //get the error message\n gameBoard.toConsole(in.readUTF());\n }\n \n }\n catch(UnknownHostException e) {\n gameBoard.toConsole(e.toString());\n }\n catch(IOException e) {\n System.out.println(e);\n }\n \n return socket;\n }\n \n };\n \n socketWorker.execute();\n \n }", "protected void startConnect() {\n if (tcp) {\n connection = new TCPConnection(this);\n } else {\n connection = new UDPConnection(this, udpSize);\n }\n connection.connect(remoteAddr, localAddr);\n }", "public HostRouter(int port, int maxPlayers) {\n try {\n this.serverSocket = new ServerSocket(port);\n } catch (IOException e) {\n log.error(\"Error establishing host socket\", e);\n System.exit(-1);\n }\n this.clients = new HashMap<Integer, Client>();\n this.maxPlayers = maxPlayers;\n setLocalPlayerId(0);\n \n registeredMoves = new HashMap<Player, PlayerCommand>();\n pool = Executors.newFixedThreadPool(SevenWonders.MAX_PLAYERS+2);\n \n start();\n }", "private void connect() {\n\t\ttry {\n\t\t\tsocket = new Socket(Server.ADDRESS, Server.PORT_NUMBER);\n\t\t\tthis.oos = new ObjectOutputStream(socket.getOutputStream());\n\t\t\tthis.ois = new ObjectInputStream(socket.getInputStream());\n\t\t\tServerListener serverlistener = new ServerListener();\n\t\t\tserverlistener.start();\n\t\t\tRequest request = new Request(RequestCode.START_DOCUMENT_STREAM);\n\t\t\trequest.setUsername(user.getUsername());\n\t\t\toos.writeObject(request);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public SocketServerConnection(Socket socket, ServerConnectionListener clientController){\n\n this.socket = socket;\n this.clientController = clientController;\n pong = true;\n\n try {\n\n in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n buffer = new NetworkBuffer();\n out = new PrintWriter(socket.getOutputStream());\n\n } catch (IOException e){\n\n e.printStackTrace();\n System.out.println(\"[CLIENT] Error occurred while opening input and output streams.\");\n\n }\n\n }", "public GameSocket() throws SocketException {\r\n\t\tsocket = new DatagramSocket(Main.localAddress);\r\n\t\tbufSize = socket.getReceiveBufferSize();\r\n\t\tMain.logger.info(\"Starting GameSocket at port \" + socket.getLocalPort() + \" ...\");\r\n\t}", "public void connect() {\n try {\n socket = new Socket(serverAddress, serverPort);\n outputStream = new ObjectOutputStream(socket.getOutputStream());\n inputStream = new ObjectInputStream(socket.getInputStream());\n //A thread which will constantly listen for updates from the server and forward them to Client\n new Thread(() -> {\n while (socket.isConnected()) {\n try {\n Renderable message = (Renderable) inputStream.readObject();\n if(message != null) {\n //logger.info(\"Received \" + message.getClass().getSimpleName() + \" from server.\");\n renderablePublisher.submit(message);\n }\n } catch (IOException | ClassNotFoundException e) {\n renderablePublisher.submit(new ServerOfflineUpdate());\n break;\n }\n }\n }).start();\n } catch (IOException e) {\n renderablePublisher.submit(new ServerOfflineUpdate());\n }\n }", "public void configureSocketEvents() {\n socket.on(\"startGame\", new Emitter.Listener() {\n @Override\n public void call(Object... args) {\n JSONObject data = (JSONObject) args[0];\n\n try {\n String start = (String) data.getString(\"room\");\n if (start.equals(roomHost)) {\n startGame = true;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }).on(\"playerNames\", new Emitter.Listener() {\n @Override\n public void call(Object... args) {\n JSONArray data = (JSONArray) args[0];\n try {\n\n for (int i = 0; i < data.length(); i++) {\n playerNames[i] = (String) data.getString(i);\n }\n for (int i = data.length(); i < maxPlayers; i++) {\n playerNames[i] = \"Empty\";\n }\n updateNames();\n } catch (JSONException e) {\n Gdx.app.log(\"multiplayer\", \"unable to update names\");\n }\n }\n }).on(\"maxPlayers\", new Emitter.Listener() {\n @Override\n public void call(Object... args) {\n JSONObject data = (JSONObject) args[0];\n try {\n maxPlayers = (int) data.getInt(\"maxPlayers\");\n } catch (JSONException e) {\n Gdx.app.log(\"multiplayer\", \"unable to get max players\");\n }\n }\n }).on(\"lobbyUpdate\", new Emitter.Listener() {\n @Override\n public void call(Object... args) {\n JSONObject data = (JSONObject) args[0];\n try {\n String room = (String) data.getString(\"id\");\n if (room.equals(roomHost)) {\n updateLobby();\n }\n } catch (JSONException e) {\n Gdx.app.log(\"multiplayer\", \"unable to get max players\");\n }\n }\n }).on(\"roomCanceled\", new Emitter.Listener() {\n @Override\n public void call(Object... args) {\n JSONObject data = (JSONObject) args[0];\n try {\n String room = (String) data.getString(\"roomid\");\n if (room.equals(roomHost)) {\n mainmenu = true;\n }\n } catch (JSONException e) {\n Gdx.app.log(\"multiplayer\", \"unable to get max players\");\n }\n }\n });\n }", "public ServerPlayers() {\n sockets = new ArrayList<Socket>();\n }", "public TCPServerWorker(GENServer server, Socket socket) throws IOException {\n this.server = server;\n this.socket = socket;\n this.player = null;\n state = new WorkerConnectState(this, socket);\n System.out.println(\"New ServerWorker\");\n }", "SocketReader newSocketReader(SocketConnection connection);", "private void startConnection() throws IOException {\n bos = new BufferedOutputStream(socket.getOutputStream(), 65536);\n\n byte[] key = new byte[16];\n Random random = new Random();\n random.nextBytes(key);\n String base64Key = Base64.encodeBase64String(key);\n\n byte[] handshake = createHandshake(base64Key);\n bos.write(handshake);\n bos.flush();\n\n InputStream inputStream = socket.getInputStream();\n verifyServerHandshake(inputStream, base64Key);\n\n writerThread.start();\n\n notifyOnOpen();\n\n bis = new BufferedInputStream(socket.getInputStream(), 65536);\n read();\n }", "public RemotePlayerServer(Player p) {\n this.localPlayer = p;\n }", "@Override\n\tpublic void run() \n\t{\n\t\tcommunicator = com.zeroc.Ice.Util.initialize();\n GameServerPrx clientPrx = GameServerPrx.checkedCast(\n communicator.stringToProxy(\"client:default -h 58.167.142.74 -p 10002\")).ice_twoway().ice_secure(false).ice_collocationOptimized(false).ice_compress(true);\n\n if(clientPrx == null)\n {\n //If connection is failed due to server problems\n System.err.println(\"SB Connect: \" + \"Invalid proxy\");\n return;\n }\n System.out.println(\"SB Connect: \" + \"Connected\");\n Server server = new Server();\n server.address = ServerInfo.ADDRESS;\n server.UUID = ServerInfo.UUID;\n server.port = ServerInfo.PORT;\n server.name = ServerInfo.NAME;\n server.players = (short) players;\n\t\tclientPrx.sendServerDetails(server);\n\t\tSystem.out.println(\"SB Connect: \" + \"Data sent\");\n\t}", "public int createSocket()\n\t{\n\t\t\n\t}", "public ClientHandler(Socket s){\r\n mySocket = s;\r\n }", "private void initializeSocket() {\n\n //creating a socket to connect to the node js server using socket.io.client\n try {\n //check for internet connection\n if(!isOnline()) {\n throw new Exception();\n }\n\n //generating a random number for join id in the server\n Random rand = new Random();\n int id = rand.nextInt(50) + 1;\n\n //using sharedPreferences to read the link to the server: heroku or local\n SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE);\n String url = sharedPref.getString(getString(R.string.link), \"http://192.168.1.119:3001\");\n Log.i(\"INFO\",url);\n\n socket = IO.socket(url); //specifying the url\n socket.connect(); //connecting to the server\n //socket.emit(\"joinAndroid\",Integer.toString(id)); //specifying the join group to the server\n\n //callback functions for socket connected, message received and socket disconnected\n socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() {\n\n @Override\n public void call(Object... args) {\n }\n\n }).on(\"pointData\", new Emitter.Listener() {\n\n @Override\n public void call(Object... args) {\n\n Log.i(\"INFO\", args[0].toString());\n //Toast.makeText(getContext(), args[0].toString(), Toast.LENGTH_SHORT).show();\n\n }\n\n }).on(Socket.EVENT_DISCONNECT, new Emitter.Listener() {\n\n @Override\n public void call(Object... args) {\n }\n\n });\n } catch(URISyntaxException e) {\n Log.i(\"INFO\",\"Uri syntax exception\");\n } catch(Exception e) {\n Log.i(\"INFO\", \"No internet connection\");\n Toast.makeText(getContext(), \"No Internet\", Toast.LENGTH_LONG).show();\n }\n }", "public void establishSocketConnection() {\n\t\ttry {\n\t\t\tsocket = new Socket(serverIP, serverPort);\n\t\t\tlogger.info(\"Connection with JSON-RPC server opened at local endpoint \" + socket.getLocalAddress().getHostAddress() + \":\" + socket.getLocalPort());\n\t\t\t// create a writer to send JSON-RPC requests to the JSON-RPC server\n\t\t\twriter = new OutputStreamWriter(socket.getOutputStream(), \"utf-8\");\n\t\t\t// create a JsonReader object to receive JSON-RPC response\n\t\t\tjsonReader = new JsonReader(new InputStreamReader(socket.getInputStream(), \"utf-8\"));\n\t\t} catch (UnknownHostException e) {\n\t\t\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public Player(Server loginServer, Socket socket) {\n\t\tsuper(\"Player\");\n\t\tserver = loginServer;\n\t\tconnection = socket;\t\n\t\ttry {\n\t\t\tconnection.setSoTimeout(0);\n\t\t\tcomOut = new ObjectOutputStream(connection.getOutputStream());\n\t\t\tcomOut.flush();\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Couldn't getOutputStream\");\n\t\t\ttry {\n\t\t\t\tconnection.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\tSystem.err.println(\"Closing Failed\");\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttry {\n\t\t\tcomIn = new ObjectInputStream(connection.getInputStream());\n\t\t} catch (IOException e) {\n\t\t\ttry {\n\t\t\t\tconnection.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\tSystem.err.println(\"Closing Failed\");\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\tSystem.err.println(\"Couldn't getInputStream\");\n\t\t\te.printStackTrace();\n\t\t}\n\t\tname = null;\n\t}", "protected Channel connect() {\n\t\tint port = 6501;\n\t\t\n\t\tSocket socket1 = null, socket2 = null, socket3 = null;\n\t\tboolean fullyConnected = false;\n\t\t\n\t\t// Make several attempts to connect to the server\\\n\t\tlog.debug(\"Attemping connections with server [\" + hostIP + \"] on ports \" + port + \" through \" + (port + 2) + \".\");\n\t\tfor(int attempts = 0; !fullyConnected && attempts < 3; attempts++) {\n\t\t\ttry {\n\t\t\t\t// Connecting to the server using the IP address and port\n\t\t\t\tif(socket1 == null) socket1 = new Socket(InetAddress.getByName(hostIP), port);\n\t\t\t\tif(socket2 == null) socket2 = new Socket(InetAddress.getByName(hostIP), port + 1);\n\t\t\t\tif(socket3 == null) socket3 = new Socket(InetAddress.getByName(hostIP), port + 2);\n\t\t\t\tif(socket1 != null && socket2 != null && socket3 != null) fullyConnected = true;\n\t\t\t}\n\t\t\tcatch(IOException e) {\n\t\t\t\tlog.debug(\"Attempt \" + (attempts + 1) + \" failed. \" + e);\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\t// Wait a short period before attempting to connect again\n\t\t\t\t\tThread.sleep(50);\n\t\t\t\t} catch (InterruptedException e2) {\n\t\t\t\t\tlog.error(e2.getStackTrace(), e2);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(socket1 == null || socket2 == null || socket3 == null) {\n\t\t\tlog.error(\"Connection timeout. (One or more sockets is null)\");\n\t\t\treturn null;\n\t\t}\n\t\telse {\n\t\t\tlog.debug(\"Fully Connected:\");\n\t\t\tlog.debug(\"ADD socket [Local: \" + socket1.getLocalPort() + \" Remote: \" + socket1.getPort() + \"]\");\n\t\t\tlog.debug(\"RETRIEVE socket [Local: \" + socket2.getLocalPort() + \" Remote: \" + socket2.getPort() + \"]\");\n\t\t\tlog.debug(\"STREAM socket [Local: \" + socket3.getLocalPort() + \" Remote: \" + socket3.getPort() + \"]\");\n\t\t\tlog.debug(\"Creating channel...\");\n\t\t\tChannel channel = new Channel(socket1, socket2, socket3);\n\t\t\tlog.debug(\"Done.\");\n\t\t\treturn channel;\n\t\t}\n\t}", "@Override\n public void run() {\n new Thread(() -> {\n int port = config.getPort();\n try (ServerSocket server = new ServerSocket(port)) {\n List<ClientConnection> clientlist = new ArrayList<>();\n System.out.println(\"Game Server waiting on Port \" + port + \"!\");\n while (true) {\n Socket client = server.accept();\n\n synchronized (clientlist) {\n ClientConnection cc = new ClientConnection(client, playerId);\n int playerNr = (int) (playerId % 2) + 1;\n cc.start();\n\n clientlist.add(cc);\n System.out.println(\"Client \" + playerNr + \" (playerID: \" + playerId + \") accepted!\");\n\n playerId++; // increase playerId;\n if (clientlist.size() == 2) {\n synchronized (games) { // TODO no sync needed?\n Game game = new Game(clientlist);\n game.start();\n games.add(game);\n clientlist.clear(); // wait for two new clients\n }\n }\n }\n }\n\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }).start();\n }", "public void connect() {\n BotConnector newBot = new BotConnector();\n newBot.setEmail(this.email);\n newBot.setAuthenticationKey(key);\n newBot.setBotName(name);\n newBot.setRoom(room);\n //Start Listener Thread\n this.serverListener = new Thread(newBot, \"serverListener\");\n this.serverListener.start();\n }", "public Peer start() throws IOException {\n\t\tboolean isBehindFirewallSet = false;\n\t\tif (behindFirewall == null) {\n\t\t\tbehindFirewall = false;\n\t\t} else {\n\t\t\tisBehindFirewallSet = true;\n\t\t}\n\n\t\tboolean isTcpPortSet = false;\n\t\tif (tcpPort == -1) {\n\t\t\ttcpPort = Ports.DEFAULT_PORT;\n\t\t} else {\n\t\t\tisTcpPortSet = true;\n\t\t}\n\t\t\n\t\tboolean isUdpPortSet = false;\n\t\tif (udpPort == -1) {\n\t\t\tudpPort = Ports.DEFAULT_PORT;\n\t\t} else {\n\t\t\tisUdpPortSet = true;\n\t\t}\n\t\t\n\t\tif (channelServerConfiguration == null) {\n\t\t\tchannelServerConfiguration = createDefaultChannelServerConfiguration();\n\t\t} \n\t\t\n\t\t//post config\n\t\tif(isBehindFirewallSet) {\n\t\t\tchannelServerConfiguration.behindFirewall(behindFirewall);\n\t\t}\n\t\tif(isTcpPortSet || isUdpPortSet) {\n\t\t\tchannelServerConfiguration.ports(new Ports(tcpPort, udpPort));\n\t\t}\n\t\t\n\t\tif(tcpPortForwarding == -1 && udpPortForwarding == -1) {\n\t\t\tchannelServerConfiguration.portsForwarding(new Ports());\n\t\t} else {\n\t\t\tchannelServerConfiguration.portsForwarding(new Ports(tcpPortForwarding, udpPortForwarding));\n\t\t}\n\t\t\n\t\tif (channelClientConfiguration == null) {\n\t\t\tchannelClientConfiguration = createDefaultChannelClientConfiguration();\n\t\t}\n\t\tif (keyPair == null) {\n\t\t\tkeyPair = EMPTY_KEY_PAIR;\n\t\t}\n\t\tif (p2pID == -1) {\n\t\t\tp2pID = 1;\n\t\t}\n\t\t\n\t\t\n\t\tif (bindings == null) {\n\t\t\tbindings = new Bindings();\n\t\t} else {\n\t\t\tchannelServerConfiguration.bindings(bindings);\n\t\t\tchannelClientConfiguration.bindings(bindings);\n\t\t}\n\t\tif (peerMap == null) {\n\t\t\tpeerMap = new PeerMap(new PeerMapConfiguration(peerId));\n\t\t}\n\n\t\tif (masterPeer == null && scheduledExecutorService == null) {\n\t\t\tscheduledExecutorService = Executors.newScheduledThreadPool(1);\n\t\t}\n\n\t\tif(sendBehavior == null) {\n\t\t\tsendBehavior = new DefaultSendBehavior();\n\t\t}\n\t\t\n\t\tfinal PeerCreator peerCreator;\n\t\tif (masterPeer != null) {\n\t\t\tpeerCreator = new PeerCreator(masterPeer.peerCreator(), peerId, keyPair);\n\t\t} else {\n\t\t\tpeerCreator = new PeerCreator(p2pID, peerId, keyPair, channelServerConfiguration,\n\t\t\t channelClientConfiguration, scheduledExecutorService, sendBehavior);\n\t\t}\n\n\t\tfinal Peer peer = new Peer(p2pID, peerId, peerCreator);\n\t\t//add shutdown hook to master peer\n\t\tif (masterPeer != null) {\n\t\t\tmasterPeer.addShutdownListener(new Shutdown() {\n\t\t\t\t@Override\n\t\t\t\tpublic BaseFuture shutdown() {\n\t\t\t\t\treturn peer.shutdown();\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\n\t\tPeerBean peerBean = peerCreator.peerBean();\n\t\t\n\t\tpeerBean.addPeerStatusListener(peerMap);\n\t\t\n\t\tConnectionBean connectionBean = peerCreator.connectionBean();\n\n\t\tpeerBean.peerMap(peerMap);\n\t\tpeerBean.keyPair(keyPair);\n\n\t\tif (bloomfilterFactory == null) {\n\t\t\tpeerBean.bloomfilterFactory(new DefaultBloomfilterFactory());\n\t\t}\n\n\t\tif (broadcastHandler == null) {\n\t\t\tbroadcastHandler = new StructuredBroadcastHandler();\n\t\t}\n\t\tbroadcastHandler.init(peer);\n\t\t\n\t\t// set/enable RPC\n\n\t\tif (isEnableHandShakeRPC()) {\n\t\t\tPingRPC pingRPC = new PingRPC(peerBean, connectionBean);\n\t\t\tpeer.pingRPC(pingRPC);\n\t\t}\n\t\t\n\t\tif (isEnableQuitRPC()) {\n\t\t\tQuitRPC quitRPC = new QuitRPC(peerBean, connectionBean);\n\t\t\tquitRPC.addPeerStatusListener(peerMap);\n\t\t\tpeer.quitRPC(quitRPC);\n\t\t}\n\n\t\tif (isEnableNeighborRPC()) {\n\t\t\tNeighborRPC neighborRPC = new NeighborRPC(peerBean, connectionBean);\n\t\t\tpeer.neighborRPC(neighborRPC);\n\t\t}\n\n\t\tif (isEnableDirectDataRPC()) {\n\t\t\tDirectDataRPC directDataRPC = new DirectDataRPC(peerBean, connectionBean);\n\t\t\tpeer.directDataRPC(directDataRPC);\n\t\t}\n\n\t\tif (isEnableBroadcast()) {\n\t\t\tBroadcastRPC broadcastRPC = new BroadcastRPC(peerBean, connectionBean, broadcastHandler);\n\t\t\tpeer.broadcastRPC(broadcastRPC);\n\t\t}\n\t\t\n\t\tif (isEnableRouting() && isEnableNeighborRPC()) {\n\t\t\tDistributedRouting routing = new DistributedRouting(peerBean, peer.neighborRPC());\n\t\t\tpeer.distributedRouting(routing);\n\t\t}\n\n\t\tif (maintenanceTask == null && isEnableMaintenance()) {\n\t\t\tmaintenanceTask = new MaintenanceTask();\n\t\t}\n\n\t\tif (maintenanceTask != null) {\n\t\t\tmaintenanceTask.init(peer, connectionBean.timer());\n\t\t\tmaintenanceTask.addMaintainable(peerMap);\n\t\t}\n\t\tpeerBean.maintenanceTask(maintenanceTask);\n\n\t\t\t\t\n\t\tfor (PeerInit peerInit : toInitialize) {\n\t\t\tpeerInit.init(peer);\n\t\t}\n\t\t\n\t\treturn peer;\n\t}", "@Override\r\n public Object connect() {\n if(status()){\r\n //creates thread that checks messages in the network\r\n System.out.println(\"notifying network that connection is good\");\r\n notifyObservers(this);\r\n }\r\n return socket;\r\n }", "private JavashipsServer() {\n\t\ttry {\n\t\t\tServerSocket server = new ServerSocket(PORT);\n\n\t\t\tSystem.out.println(new Date().toString() + \" - Now accepting clients.\");\n\n\t\t\t/* Listen for connecting players */\n\t\t\twhile (true) {\n\t\t\t\tSystem.out.println(\"Waiting for 2 players to connect.\");\n\n\t\t\t\t/* Intercept the first player. */\n\t\t\t\tPlayer player1 = new Player(server.accept(), \"Player 1\");\n\t\t\t\tSystem.out.println(new Date().toString() +\n\t\t\t\t\t\t\" - First player has been found: \" +\n\t\t\t\t\t\tplayer1.playerSocket.getInetAddress().getHostAddress() +\n\t\t\t\t\t\t\"/\" +\n\t\t\t\t\t\tplayer1.playerSocket.getPort());\n\n\t\t\t\tplayer1.setFirstAttacker();\n\n\t\t\t\t/* Intercept the second player. */\n\t\t\t\tPlayer player2 = new Player(server.accept(), \"Player 2\");\n\t\t\t\tSystem.out.println(new Date().toString() +\n\t\t\t\t\t\t\" - Second player has been found: \" +\n\t\t\t\t\t\tplayer2.playerSocket.getInetAddress().getHostAddress() +\n\t\t\t\t\t\t\"/\" +\n\t\t\t\t\t\tplayer2.playerSocket.getPort());\n\n\t\t\t\t/* Let the players know who to talk to when talking to their opponent. */\n\t\t\t\tplayer1.setOpponent(player2);\n\t\t\t\tplayer2.setOpponent(player1);\n\n\t\t\t\tplayer1.start();\n\t\t\t\tplayer2.start();\n\t\t\t}\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public ConnectionThread(Socket socket, Gamelogic gamelogic,\r\n Board board, Bag bag, Server server,\r\n PrintWriter out, BufferedReader inputStream, Connection connection) {\r\n this.socket = socket;\r\n this.gamelogic = gamelogic;\r\n this.board = board;\r\n this.bag = bag;\r\n this.server = server;\r\n this.out = out;\r\n this.inputStream = inputStream;\r\n this.connection = connection;\r\n }", "@Override\r\n\tpublic void run() {\r\n\t\t//Tries to initialise a connection\r\n\t\ttry {\r\n\t\t\t//Runs as long as the channel is open\r\n\t\t\twhile(channel.isOpen()) {\r\n\t\t\t\t//Creates a new byte buffer to create the input\r\n\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(PACKET_SIZE);\r\n\t\t\t\t//Stores the result, -1 by default to assume that the channel couldn't be read\r\n\t\t\t\t//Checks which type of supported channel the channel is (DatagramChannel or SocketChannel - UDP vs TCP)\r\n\t\t\t\t//Uses this to determine where to read the result\r\n\t\t\t\t//Creates a string from the buffer and passes the string into the connector's function\r\n\t\t\t\t//Only passes the data if there's info to read (if the result isn't -1)\r\n\t\t\t\tif(channel.isOpen() && channel.read(buffer) != -1) {\r\n\t\t\t\t\t//Creates the packet from the received data and id\r\n\t\t\t\t\tString packet = new String(buffer.array()).trim();\r\n\t\t\t\t\t\r\n\t\t\t\t\t//If the packet is a ping, returns a pong back\r\n\t\t\t\t\tif(packet.contains(\"!ping%EOP%\")) {\r\n\t\t\t\t\t\tsend(\"!pong\");\r\n\t\t\t\t\t} else if(packet.contains(\"!pong%EOP%\")) { //If the packet is a pong, calculates the ping\r\n\t\t\t\t\t\t//Calculates the ping from the current time and the time since the ping was sent\r\n\t\t\t\t\t\tping = System.currentTimeMillis() - timeSincePing;\r\n\t\t\t\t\t\t//System.out.println(\"Pong!\\nPING: \" + ping + \"ms\");\r\n\t\t\t\t\t} else if(!packet.trim().isEmpty()) { //Checks if the packet's data isn't just a blank string or whitespace\r\n\t\t\t\t\t\t//Sends the packet to the listener\r\n\t\t\t\t\t\t//Finds all the packets received by the listener by looping through as long as the packet contains an end-of-packet footer\r\n\t\t\t\t\t\twhile(packet.contains(\"%EOP%\")) {\r\n\t\t\t\t\t\t\t//Passes in the portion before the end-of-packet footer\r\n\t\t\t\t\t\t\tlistener.onReceive(new Packet(id, packet.substring(0, packet.indexOf(\"%EOP%\"))));\r\n\t\t\t\t\t\t\t//Removes that portion from the packet string\r\n\t\t\t\t\t\t\tpacket = packet.substring(packet.indexOf(\"%EOP%\") + \"%EOP%\".length());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t//Closes the connection\r\n\t\t\tclose();\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"Error receiving data over TCP!\");\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "SocketWriter newSocketWriter(SocketConnection connection);", "void open(String nameNport) {\n\tString[] token=nameNport.split(\":\");\n\tString host=token[0];\n\tint port=Integer.parseInt(token[1]);\n\tint proceedFlag=1;\n\tIterator<Socket> iterator=Connection.connections.iterator();\n\tif(host.equalsIgnoreCase(\"localhost\") || host.equals(\"127.0.0.1\"))\n\t\thost=simpella.infoSocket.getLocalAddress().getHostAddress();\n\tif((host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getHostAddress())||host.equalsIgnoreCase(simpella.infoSocket.getLocalAddress().getCanonicalHostName()))&&(simpella.serverPortNo==port || simpella.downloadPortNo==port)){\n\t\tproceedFlag=0;\n\t\tSystem.out.println(\"Client: Self Connect not allowed\");\n\t\t}\n\twhile(iterator.hasNext() && proceedFlag==1)\n\t{\n\t\tSocket sock=(Socket)iterator.next();\n\t\t\n\t\tif((host.equalsIgnoreCase(sock.getInetAddress().getHostAddress()) || host.equalsIgnoreCase(sock.getInetAddress().getCanonicalHostName())) && port==sock.getPort()){\n\t\t\tproceedFlag=0; \n\t\t\tSystem.out.println(\"Client: Duplicate connection to same IP/port not allowed\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}\n\tif(proceedFlag==1)\n\t\t{\n\t\n\t\n\tbyte type=04;\n\tMessage msg=new Message(type);\n\ttry {\n\t\tConnection.outgoingConnPackRecv[noOfConn]=0;\n\t\tConnection.outgoingConnPackSent[noOfConn]=0;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]=0;\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]=0;\n\t\t\n\t\tclientSideSocket[noOfConn]=new Socket(host,port);\n\t\tSystem.out.println(\"Client:TCP Connection established...Begin handshake\");\n\t\toutToServer[noOfConn]=new ObjectOutputStream(clientSideSocket[noOfConn].getOutputStream());\n\t\tinFromServer[noOfConn]=new ObjectInputStream(clientSideSocket[noOfConn].getInputStream());\n\t\tString strToServer=\"SIMPELLA CONNECT/0.6\\r\\n\";\n\t\tbyte[] byteArray= strToServer.getBytes(\"UTF-16LE\");\n\t\tmsg.setPayload(byteArray);\n \t\n\t\tSystem.out.println(\"Client:\"+new String(byteArray));\n\t\t//outToServer.writeUTF(\"SIMPELLA CONNECT/0.6\\r\\n\");\n\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray.length+23;\n\t\toutToServer[noOfConn].writeObject((Object)msg);\n\t\tConnection.outgoingConnPackRecv[noOfConn]++;\n\t\t\n\t\tMessage msg1=(Message) inFromServer[noOfConn].readObject();\n\t\tbyte[] fromServer=msg1.getPayload();\n\t\tConnection.outgoingConnPackRecvSize[noOfConn]+=fromServer.length+23;\n\t\tString strFromServer=new String(fromServer);\n\t\tSystem.out.println(\"Server:\"+strFromServer);\n\t\tif(msg1.getMessage_type()==05)\n\t\t\t{\n\t\t\tstrToServer=\"SIMPELLA/0.6 200 thank you for accepting me\\r\\n\";\n\t\t\tbyte[] byteArray1= strToServer.getBytes(\"UTF-16LE\");\n\t\t\tMessage m=new Message((byte)05);\n\t\t\tm.setPayload(byteArray1);\n\t\t\tConnection.outgoingConnPackSent[noOfConn]++;\n\t\t\tConnection.outgoingConnPackSentSize[noOfConn]+=byteArray1.length+23;\n\t\t\toutToServer[noOfConn].writeObject((Object)m);\n\t\t\t\n\t\t\tConnection.connections.add(clientSideSocket[client.noOfConn]);\n\t\t\tConnection.outgoingConnection[client.noOfConn]=clientSideSocket[client.noOfConn];\n\t\t\tConnection.clientOutStream[client.noOfConn]=outToServer[client.noOfConn];\n\t\t\tnew clientSocketListen(clientSideSocket[noOfConn],outToServer[noOfConn],inFromServer[noOfConn]);\n\t\t\tupdate();\n\t\t\tnoOfConn++;\n\t\t\t//System.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"<open>:Cannot open connection to \"+host+\" at this time\");\n\t\t\t\tclientSideSocket[noOfConn].close();\n\t\t\t\tinFromServer[noOfConn].close();\n\t\t\t\toutToServer[noOfConn].close();\n//\t\t\t\tSystem.out.println(\"Client:num of conn=\"+noOfConn);\n\t\t\t}\n\t\t\n\t\t\n\t} catch (UnknownHostException e) {\n\t\tSystem.out.println(\"Unknown Host: Destination host unreachable\");\n\t\t//e.printStackTrace();\n\t} catch (Exception e) {\n\t\tSystem.out.println(\"Connection Refused/Destination host unreachable\");\n\t}\n\t\t}\n\t}", "public Socket createSocket()\n/* */ {\n/* 82 */ return new Socket();\n/* */ }", "public SocketParams() {\n init();\n }", "@Override\r\n public synchronized void connect(SelectionKey clientKey)\r\n { \r\n // Local Variable Declaration \r\n Map<String, String> headers = new HashMap<>(); \r\n String headerString = \"\", rqsMethod = \"\", socKey = \"\";\r\n float rqsVersion = 0;\r\n \r\n // Read headers from socket client\r\n headerString = receiveHeaders(clientKey);\r\n \r\n // Parse and validate the headers if the headerString could be read\r\n if(!headerString.equals(null))\r\n {\r\n headers = parseAndValidateHeaders(headerString);\r\n \r\n // Extract the HTTP method and version used in this connection request\r\n rqsMethod = headers.get(RQS_METHOD);\r\n rqsVersion = Float.parseFloat(headers.get(RQS_VERSION));\r\n socKey = headers.get(\"Sec-WebSocket-Key\");\r\n }\r\n \r\n /* Make sure the header contained the GET method has a version higher \r\n * 1.1 and that the socket key exists */ \r\n if (!headerString.equals(null) && rqsMethod.equals(new String(\"GET\")) && \r\n rqsVersion >= 1.1 && socKey != null)\r\n {\r\n // Complete handshake, by sending response header confirming connection terms\r\n finishConnection(headers, clientKey);\r\n \r\n // Add the socket to the map of sockets by the name passed \r\n this.sockets.put(clientKey, new WebSocketData()); \r\n }\r\n else\r\n {\r\n // Send a Bad Request HTTP response \r\n SocketChannel sc = (SocketChannel) clientKey.channel();\r\n \r\n try \r\n {\r\n // Build a response header for the error \r\n byte rsp[] = (this.BAD_RQST_HDR \r\n + \"Malformed request. The connection request must \"\r\n + \"use a 'GET' method, must have a version greater \"\r\n + \"than 1.1 and have 'Sec-WebSocket-Key'. Please\"\r\n + \"check your headers\"\r\n + \"\\\\r\\\\n\").getBytes(\"UTF-8\");\r\n \r\n // Send the response error header to the client\r\n sc.write(ByteBuffer.wrap(rsp));\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(RecptionRoom.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }", "private void init() throws IOException {\n m_sock = new Socket(InetAddress.getByAddress(m_address), VIDEO_TO_PC_PORT);\n m_sock.setSoTimeout(READ_TIMEOUT_MS);\n m_sockistream = m_sock.getInputStream();\n m_daistream = new DataInputStream(m_sockistream);\n m_initialized = true;\n }", "public ControlWorker(Socket socket) {\n \n }", "private void openConnection() throws IOException, CorruptedPacketException {\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n Future futureResult = executorService.submit(new InitPacketReceiver(this));\n int timesSent = 0;\n while (!socket.isClosed() && connectionId == null && timesSent < 20) {\n this.sendInitPacket(socket, address, port);\n ++timesSent;\n try {\n futureResult.get(100, TimeUnit.MILLISECONDS);\n } catch (CancellationException e) {\n } catch (InterruptedException e) {\n } catch (ExecutionException e) {\n } catch (TimeoutException e) {\n if (connectionId == null) {\n System.err.println(\"Opening packet has been lost, sending a new one.\");\n }\n }\n }\n\n if (timesSent >= 20) {\n socket.close();\n System.out.printf(\"Could not connect to Karel on %s:%d\\n\", address.getHostAddress(), port);\n }\n futureResult.cancel(true);\n executorService.shutdown();\n\n }", "private static Socket getSocket() \n{\n return socket; \n }", "private void joinGame(String server, int port, String playername) throws UnknownHostException, IOException, ClassNotFoundException, UnableToStartGameException\n\t{\n\t\tsocket = new Socket(server, port);\n\t\tobjectInputStream = new ObjectInputStream(socket.getInputStream());\n\t\tObject object = objectInputStream.readObject();\n\t\t//Spielerid empfangen\n\t\tif (object instanceof ClientId)\n\t\t{\n\t\t\tClientId clientId = (ClientId) object;\n\t\t\tplayerId = clientId.getClientId();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthrow new UnableToStartGameException(\"Konnte die Spielerid nicht empfangen.\");\n\t\t}\n\t\t\n\t\t//Dem Server unseren Namen mitteilen\n\t\tthis.objectOutputStream = new ObjectOutputStream(socket.getOutputStream());\n\t\tobjectOutputStream.writeObject(new PlayerName(playername, playerId));\n\t\t\n\t}", "public void run() {\n\t\t//if this is the server side, create a server socket\n\t\tif( parent.whichPlayer.equals(\"server\") ){\n\t\t\t//create serverSocket on port 1234\n\t\t\ttry {\n\t\t\t\tss = new ServerSocket(1234);\n\t\t\t\tsock = ss.accept();\n\t\t\t\tsc = new Scanner(sock.getInputStream());\n\t\t\t\tpw = new PrintWriter(sock.getOutputStream());\n\t\t\t}catch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.out.println(\"Server Socket not able to be established on port 1234\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println(\"Input stream created, waiting for input from foreign socket\");\n\t\t}\n\n\t\t//if this is the client side, create a normal socket\n\t\telse{\n\t\t\t//try to create a socket on 1234\n\t\t\ttry {\n\t\t\t\tsock = new Socket(parent.hostnameField.getText(),1234);//create a socket on the IP specified by the player in the hostname box\n\t\t\t\tsc = new Scanner( sock.getInputStream() );\n\t\t\t\tpw = new PrintWriter(sock.getOutputStream());\n\t\t\t}catch(Exception e) {\n\t\t\t\tSystem.out.println(\"Could not create connection on localhost\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\t\n\t\t\n\t\t//send a single line with name to other side\n\t\tpw.println(\"N \" + parent.myName);\n\t\tpw.flush();\n\t\t\n\t\t//read single line for name`\n\t\t//wait for input from client side\n\t\tString input = sc.nextLine();\n\t\tprocessInput(input);\n\t\tparent.displayInstruction.setText(\"Connection Established, It is \" + parent.playerOneTextField.getText() + \"'s turn\");\n\t\tparent.beginGame = true;\n\t\t\n\t\t//loop and continue to read from the other side\n\t\twhile( sc.hasNextLine() ) {\n\t\t\tinput = sc.nextLine();\n\t\t\tSystem.out.println(\"Read \" + input + \" from the client side\");\n\t\t\tprocessInput(input);\n\t\t}\n\t\t\n\t\t//close all of the scanners and sockets\n\t\t//This should already be handled by the quit button, but in case the player just exits the window\n\t\ttry {\n\t\t\tsock.close();\n\t\t\tpw.close();\n\t\t\tss.close();\n\t\t\tsc.close();\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(\"Could not close the sockets/scanner\");\n\t\t}\n\t\t\n\t\tSystem.out.println(\"All sockets and scanners successfully closed\");\n\t\tparent.displayInstruction.setText(\"Connect Lost, Ending Gamplay\");\n\t\tparent.beginGame = false;\n\t\t\n\t}", "public void makeConnection() {\n\t\ttry {\n\t\t\tif(sock != null) {\n\t\t\t\ttable.printMsg(\"Cannot join a server twice! You've already connected.\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tsock = new Socket(serverIP, serverPort);\n\t\t\toos = new ObjectOutputStream(sock.getOutputStream());\n\t\t\tois = new ObjectInputStream(sock.getInputStream());\n\t\t\tThread thread = new Thread(new ServerHandler());\n\t\t\tthread.start();\n\t\t} catch(Exception e) {\n\t\t\ttable.printMsg(\"Cannot Join Server.\");\n\t\t\tsock = null;\n\t\t\ttable.repaint();\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void connect() {\n\t\ttry {\n\t\t\tconnection = new Socket(ip, serverPort); // 128.39.83.87 // 127.0.0.1\n\t\t\t\n\t\t\toutput = new BufferedWriter(new OutputStreamWriter(\n connection.getOutputStream()));\n\t\t\tinput = new BufferedReader(new InputStreamReader(\n connection.getInputStream()));\n\t\t\t\n\t\t\tif (hostName.equals(Constants.IDGK + Main.userName))\n\t\t\t\tsendText(\"1\" + Main.userName);\n\t\t\telse\n\t\t\t\tsendText(\"2\" + Main.userName);\n\t\t\t\n\t\t} catch (UnknownHostException e) {\n\t\t\tMain.LOGGER.log(Level.SEVERE, \"Error connecting server\", e);\n\t\t} catch (IOException e) {\n\t\t\tMain.LOGGER.log(Level.WARNING, \"Error making output/input\", e);\n\t\t}\n\t}", "public void connect() {\n synchronized (globalLock) {\n if (isRunning) {\n throw new IllegalStateException(\"WebSocketClient is not reusable\");\n }\n\n this.isRunning = true;\n createAndStartConnectionThread();\n }\n }", "public synchronized void open(){\n if(connected){ //Already connected but needs to get streams\n try{\n streamIn = new DataInputStream(socket.getInputStream());\n streamOut = new DataOutputStream(socket.getOutputStream());\n System.out.println(clientID+\": open: socket\");\n }catch(IOException e){\n System.out.println(clientID+\": open: socket: failed: IOException: \"+e);\n }\n }else if(!isHost) { //ConnectingClient\n try{\n socket = new Socket(ip, port);\n streamIn = new DataInputStream(socket.getInputStream());\n streamOut = new DataOutputStream(socket.getOutputStream());\n connected = true;\n System.out.println(clientID+\": open: socket: IP:\"+ip+\" Port:\"+port);\n }catch(IOException ex){\n connected = false;\n System.out.println(clientID+\": open: socket: failed: IOException: \"+ex);\n }\n }else if(isHost){ //HostClient\n try{\n hostSocket = new ServerSocket(0);\n port = hostSocket.getLocalPort();\n ip = InetAddress.getLocalHost().getHostAddress();\n System.out.println(clientID+\": open: hostSocket: IP:\"+ip+\" Port:\"+port);\n }catch(IOException e){\n System.out.println(clientID+\": open: hostSocket: failed: IOException: \"+e);\n }\n }\n }", "public GameHandler(Socket cs) {\r\n try {\r\n ous = new ObjectOutputStream(cs.getOutputStream());\r\n ois = new ObjectInputStream(cs.getInputStream());\r\n try {\r\n Request request = (Request) ois.readObject();\r\n if (request.getType() == Setting.REG || request.getType() == Setting.LOGIN || request.getType() == Setting.FBLOG) {\r\n user = (User) request.getObject();\r\n if (request.getType() == Setting.LOGIN) {\r\n user = UserController.login(user);\r\n\r\n } else if (request.getType() == Setting.REG) {\r\n user = UserController.register(user);\r\n\r\n } else if (request.getType() == Setting.FBLOG) {\r\n user = UserController.fbLogin(user);\r\n System.out.println(\"\" + user.getImg());\r\n Image image = new Image(user.getImg());\r\n saveToFile(image, \"\" + image.toString(), user);\r\n }\r\n\r\n if (user.getId() != 0 && !checkAlreadyLogin(user)) {\r\n\r\n clientsVector.add(this);\r\n // if register or login is ok send list off available players to client \r\n this.ous.flush();\r\n this.ous.reset();\r\n user.setStatus(Setting.AVAILABLE);\r\n //////////// Update server list ////////////////\r\n if (request.getType() == Setting.REG) {\r\n Platform.runLater(() -> {\r\n try {\r\n ServerTicTacServer.items.add(user);\r\n } catch (Exception e) {\r\n System.out.println(\"servertictacserver items \");\r\n e.printStackTrace();\r\n }\r\n });\r\n }\r\n if (request.getType() == Setting.LOGIN) {\r\n ServerTicTacServer.updateServerList(user);\r\n }\r\n ServerTicTacServer.usersList.refresh();\r\n ////////////////////////////////////////////////\r\n request.setType(Setting.REG_OK);\r\n\r\n List availablePlayerList = new ArrayList<User>();\r\n for (GameHandler gameHandler : clientsVector) {\r\n if (gameHandler.user != null && gameHandler.user.getId() != user.getId()) {\r\n availablePlayerList.add(gameHandler.user);\r\n }\r\n }\r\n Object[] objects = {availablePlayerList, user};\r\n request.setObject(objects);\r\n System.out.println(\"ssssssssssssss :\" + user.getName());\r\n this.ous.writeObject(request);\r\n this.ous.flush();\r\n this.ous.reset();\r\n request.setType(Setting.ADD_PLAYER_TO_AVAILABLE_LIST);\r\n request.setObject(user);\r\n brodCast(request);\r\n start();\r\n } else {\r\n\r\n // error in registration or login >> send to client error message\r\n if (request.getType() == Setting.REG) {\r\n\r\n request.setType(Setting.REG_NO);\r\n request.setObject(\"email already exist\");\r\n } else if (checkAlreadyLogin(user)) {\r\n request.setType(Setting.LOGIN_NO);\r\n request.setObject(\"That account is already login\");\r\n } else if (request.getType() == Setting.LOGIN) {\r\n request.setType(Setting.LOGIN_NO);\r\n request.setObject(\"incorrect username or passsword\");\r\n\r\n }\r\n\r\n this.ous.writeObject(request);\r\n this.ous.flush();\r\n this.ous.reset();\r\n ous.close();\r\n ois.close();\r\n cs.close();\r\n }\r\n }\r\n } catch (ClassNotFoundException ex) {\r\n System.out.println(\"construct gamehandler exception\");\r\n //Logger.getLogger(GameHandler.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "public GameClient(WritableByteChannel w) {\r\n super(new Client(Config.WRITE_BUFFER_SIZE, Config.OBJECT_BUFFER_SIZE), w, null);\r\n }", "public Servidor(Socket s) {\r\n\t\tconexao = s;\r\n\t}", "private void establishConnection() throws UnknownHostException, \n \t\t\t\t\t\t\t\t\t\t IOException {\n \t socket = new Socket(serverIP, serverPort);\n }", "public PeerToPeerConnection(GameController controller){\n this.controller = controller;\n clientID = \"HostClient\";\n isHost = true;\n isHost = true;\n System.out.println(\"PeerToPeerConnection: Constructor: HostClient\");\n }", "GameService(Game game, Socket socket, boolean botMode){\n this.game = game;\n player = null;\n login = false;\n playerList = game.getPlayerList();\n round = 0;\n this.botMode = botMode;\n\n System.out.println(\"thread created\");\n\n try{\n in = new Scanner(socket.getInputStream());\n out = new PrintWriter(socket.getOutputStream(), true);\n }catch (IOException e){\n e.printStackTrace();\n }\n }", "public void openConnection() {\n System.out.println(\"Opening connection...\");\n\n try {\n String HOST = \"192.168.4.1\";\n int PORT = 2323;\n connectionSocket = new Socket(HOST, PORT);\n connectionSocket.setTcpNoDelay(true);\n\n writer = new BufferedWriter(new OutputStreamWriter(new BufferedOutputStream(connectionSocket.getOutputStream())));\n reader = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\n\n System.out.println(\"openConnection(): Success\");\n return;\n } catch (UnknownHostException e) {\n System.out.println(\"UnknownHostException at openConnection()\");\n } catch (IOException e) {\n System.out.println(\"IOException at openConnection()\");\n } catch (Exception e) {\n System.out.println(\"Exception at openConnection()\");\n System.out.println(e.toString());\n }\n\n System.out.println(\"Failed to connect\");\n }", "@Override\n\tpublic boolean init()\n\t{\n\t\tentityMap = new EntityIDMap();\n\t\t\n\t\tServerBootstrap bootstrap = new ServerBootstrap();\n\t\tbootstrap.group(bossGroup, workerGroup)\n\t\t\t\t.channel(NioServerSocketChannel.class) // Channel type\n\t\t\t\t.childHandler(new ChannelInitializer<SocketChannel>() // Setup ChannelInitializer\n\t\t\t\t{\n\t\t\t\t\t@Override\n\t\t\t\t\tprotected void initChannel(SocketChannel ch)\n\t\t\t\t\t{\n\t\t\t\t\t\t// On client connect:\n\t\t\t\t\t\t// Send back client-id\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Client side:\n\t\t\t\t\t\t// Send back position of player\n\t\t\t\t\t\t// client id | pos x | pos y | pos z\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Server side:\n\t\t\t\t\t\t// Broadcast all player positions\n\t\t\t\t\t\tch.pipeline().addLast(new LengthFieldPrepender(2));\n\t\t\t\t\t\tch.pipeline().addLast(new LengthFieldBasedFrameDecoder(0xFFFF, 0, 2));\n\t\t\t\t\t\tch.pipeline().addLast(new PacketCodec());\n\t\t\t\t\t\tch.pipeline().addLast(new ServerChannelHandler(instance));\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.option(ChannelOption.SO_BACKLOG, 128)\n\t\t\t\t.childOption(ChannelOption.SO_KEEPALIVE, true);\n\t\t\n\t\t// Bind & start accepting connections\n\t\ttry\n\t\t{\n\t\t\tChannelFuture f = bootstrap.bind(this.hostPort).sync();\n\t\t\tserverChannel = f.channel();\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\tSystem.err.println(\"Unable to bind to the requested port\");\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "public ClientWorker(Socket connectionSocket){\r\n\t\tthis.connectionSocketConected = connectionSocket;\r\n\t}", "public ClientThread(Socket socket){\n this.socket = socket;\n }", "ClientConnection connection();", "private void startClientConnection() {\r\n\t\t\t\r\n\t//\tStringBuilder sbreq = new StringBuilder();\r\n\t\t\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t/*making connection request*/\r\n\t\t\tclientsoc = new Socket(ip,port);\r\n\t\t\t\r\n\t\t\t/*Input and output streams for data sending and receiving through client and server sockets.*/\r\n\t\t\tdis = new DataInputStream(clientsoc.getInputStream());\t\r\n\t\t\tdos = new DataOutputStream(clientsoc.getOutputStream());\r\n\t\t\t\r\n\t\t\tStringBuilder sbconnreq = new StringBuilder();\r\n\r\n\t\t\t/*Building the Http Connection Request and passing Client name as body. Thus the Http Header\r\n\t\t\tare encoded around the client name data.*/\r\n\t\t\tsbconnreq.append(\"POST /\").append(\"{\"+clientname+\"}\").append(\"/ HTTP/1.1\\r\\n\").append(host).append(\"\\r\\n\").\r\n\t\t\tappend(userAgent).append(\"\\r\\n\").append(contentType).append(\"\\r\\n\").append(contentlength).append(clientname.length()).append(\"\\r\\n\").\r\n\t\t\tappend(date).append(new Date()).append(\"\\r\\n\");\r\n\t\t\t\r\n\t\t\tdos.writeUTF(sbconnreq.toString());\r\n\r\n\t\t\totherusers = new ArrayList<>(10);\r\n\t\t\tusertimestamp = new HashMap<>(10);\r\n\t\t\tJOptionPane.showMessageDialog(null, \"You have logged in. You can start Chatting: \" + clientname);\r\n\t\t\tconnected = true;\r\n\t\t\t\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t}", "public void makeConnection() {\n\t\t// make a socket, output stream, and try connecting to the server\n\t\twhile (!connection) {\n\t\t\ttry {\n\t\t\t\tsocket = new Socket(address, port);\n\t\t\t\toutStream = new ObjectOutputStream(socket.getOutputStream());\n\t\t\t\tconnection = true;\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public ConnectionHandler(Socket controlSocket, Socket dataSocket) {\n\t\tnetwork = new NetworkHandler(controlSocket, dataSocket);\n\t}", "public void connect() throws Exception\n {\n if(connected)\n return;\n connectionSocket = new Socket(address, CommonRegister.DEFAULT_PORT);\n localPeerID = ++localPeerIDCount;\n initListener();\n reader = new BufferedReader(new InputStreamReader(connectionSocket.getInputStream()));\n writer = new PrintWriter(connectionSocket.getOutputStream(),true);\n connected = true;\n }", "public Socket connect() {\r\n\t\ts = null;\r\n\t\ttry {\r\n\t\t\ts = new Socket(hostName, port);\r\n\t\t\tdos = Utils.deflatedDataOut(s.getOutputStream(), 8);\r\n\t\t} catch (UnknownHostException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn s;\r\n\t\t// TODO Auto-generated method stub\r\n\r\n\t}", "@Override\n public void run() {\n String id = (identifier != \"\") ? identifier : socket.getInetAddress().toString();\n\n LOGGER.info(\"Got connection from \" + id + \".\");\n peerInput = new PeerInput(socket);\n peerInput.start();\n peerOutput = new PeerOutput(socket);\n initialized = true;\n LOGGER.info(\"Initialized connection \" + id);\n peerOutput.run();\n }", "private Socket connectToBackEnd() throws IOException {\n Socket socket = new Socket(serverAddress, serverPort);\n reader = new BufferedReader\n (new InputStreamReader(socket.getInputStream()));\n dataWriter = new DataOutputStream\n (new BufferedOutputStream(socket.getOutputStream()));\n return socket;\n }", "protected Channel connect() {\n\t\t\tif (channel == null) {\n\t\t\t\tinit();\n\t\t\t}\n\t\t\tSystem.out.println(\"channel === \"+channel);\n\t\t\tif (channel.isDone() && channel.isSuccess())\n\t\t\t\treturn channel.channel();\n\t\t\telse\n\t\t\t\tthrow new RuntimeException(\"Not able to establish connection to server\");\n\t\t}", "WebSocketConnection getWebSocketConnection();", "public PeerToPeerConnection(GameController controller, String ip, int port){\n this.controller = controller;\n this.ip = ip;\n this.port = port;\n clientID = \"ConnectingClient\";\n isHost = false;\n System.out.println(\"PeerToPeerConnection: Constructor: ConnectingClient\");\n }", "public PeerConnect(Socket socket)throws IOException{\n\t\tthis.clientSocket = socket;\n\t}", "@Override\n public void run() {\n Thread.currentThread().setName(\"Game logic thread\");\n\n // Wait until all players are connected\n List<Player> players = new ArrayList<Player>(playerCount);\n try (ServerSocket server = new ServerSocket(port)) {\n System.out.println(\"Wizard Server running and waiting for connections...\");\n while (players.size() != playerCount) {\n Socket client = server.accept();\n synchronized(players) {\n ClientConnectionHandler con = new ClientConnectionHandler(client);\n new Thread(con).start();\n\n Player player = new Player(playerNames[players.size()], con);\n players.add(player);\n\n System.out.printf(\"New player connected: %s\\n\", player);\n }\n }\n } catch (IOException e) {\n System.err.println(\"IOException - Error when waiting for clients to connect!\");\n e.printStackTrace();\n return;\n }\n\n // All players are connected - starting the game\n\n Game game = new Game(players);\n game.play();\n System.out.println(\"Game Over!\");\n }", "public ChatWithCC(SSLSocket socket){\n CC_IP = \"localhost\";\n port = 5555;\n this.socket = socket;\n }", "private void setUpNetworking() throws Exception {\r\n @SuppressWarnings(\"resource\")\r\n Socket socket = new Socket(host, 4242);\r\n System.out.println(\"Connecting to ... \" + socket);\r\n fromServer = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n toServer = new PrintWriter(socket.getOutputStream());\r\n\r\n Thread readerThread = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n String input;\r\n try {\r\n while ((input = fromServer.readLine()) != null) {\r\n System.out.println(\"From server: \" + input);\r\n processRequest(input);\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n });\r\n\r\n \r\n \r\n \r\n Thread writerThread = new Thread(new Runnable() {\r\n @Override\r\n public void run() {\r\n while (true) {\r\n //String input = consoleInput.nextLine();\r\n //String[] variables = input.split(\",\");\r\n \r\n \r\n //Message request = new Message(variables[0], variables[1], Integer.valueOf(variables[2]));\r\n \r\n GsonBuilder builder = new GsonBuilder();\r\n Gson gson = builder.create();\r\n //sendToServer(gson.toJson(request));\r\n }\r\n }\r\n });\r\n\r\n readerThread.start();\r\n writerThread.start();\r\n }", "public ServerConnection()\n {\n //Initializing of the variables used in the constructor\n this.hostAddress = \"http://localhost\";\n this.port = 8882;\n }", "public RequestThread(Socket soc){\r\n this.soc = soc; \r\n }", "public void start() {\n // set player number\n playerNumber = clientTUI.getInt(\"set player number (2-4):\");\n while (true) {\n try {\n game = new Game();\n game.setPlayerNumber(playerNumber - 1);\n host = this.clientTUI.getString(\"server IP address:\");\n port = this.clientTUI.getInt(\"server port number:\");\n clientName = this.clientTUI.getString(\"your name:\");\n player = clientTUI.getBoolean(\"are you human (or AI): (true/false)\") ?\n new HumanPlayer(clientName) : new ComputerPlayer(clientName);\n game.join(player);\n // initialize the game\n game.init();\n while (clientName.indexOf(' ') >= 0) {\n clientName = this.clientTUI.getString(\"re-input your name without space:\");\n }\n this.createConnection();\n this.sendJoin(clientName);\n this.handleJoin();\n if (handshake) {\n run();\n } else {\n if (!this.clientTUI.getBoolean(\"Do you want to open a new connection?\")) {\n shutdown();\n break;\n }\n }\n } catch (ServerUnavailableException e) {\n clientTUI.showMessage(\"A ServerUnavailableException error occurred: \" + e.getMessage());\n if (!clientTUI.getBoolean(\"Do you want to open a new connection?\")) {\n shutdown();\n break;\n }\n }\n }\n clientTUI.showMessage(\"Exiting...\");\n }", "Socket getSocket()\n {\n return socket;\n }", "public void connect()\n {\n System.out.println(\"CLIENT partito in esecuzione\");\n try\n {\n //Initialize socket variables and json formatter\n socket = new Socket(serverIP, serverPort);\n outputStream = new DataOutputStream(socket.getOutputStream());\n inputStream = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n gson = new Gson();\n \n receiverThread = new ClientReceiver(this);\n } \n catch (UnknownHostException e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"Host sconosciuto\");\n System.exit(1);\n }\n catch (ConnectException e)\n {\n System.out.println(e.getMessage());\n System.out.println(\"Non c'è posto per te, mi spiace\");\n System.exit(1);\n }\n catch (Exception e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "public game(Socket socket) throws IOException\r\n\t{\r\n\t\tplayerNum++;\r\n\t\tgameboard = new board();\r\n\t\tthis.socket = socket;\r\n\t\tthis.input = new Scanner(socket.getInputStream());\r\n\t\tthis.output = new PrintWriter(socket.getOutputStream(),true);\r\n\t\t\r\n\t}", "private Socket(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n\t\t\t\tsuper(builder);\n\t\t\t}", "public interface SocketControl {\n\n /**\n * 获取服务的IP和端口\n * @return 格式:ip:port,如127.0.0.1:8080\n */\n String getIpPort();\n\n /**\n * 获取服务的ServiceId\n * @return 服务的ServiceId\n */\n String getServiceId();\n\n /**\n * 获取服务的InstanceId\n * @return 服务的InstanceId\n */\n String getInstanceId();\n\n\n /**\n * 获取模块名称,也可以直接调用getIpPort()\n * @return 模块名称\n */\n String getModelName();\n\n\n /**\n * 模块下连接的标示\n * @param channel 管道对象\n * @return uk\n */\n String getUniqueKey(Channel channel);\n\n\n /**\n * 模块下连接的标示\n * @param ctx 管道对象\n * @return uk\n */\n String getUniqueKey(ChannelHandlerContext ctx);\n\n\n /**\n * 绑定key\n * @param ctx 当前连接对象\n * @param key key\n */\n void bindKey(ChannelHandlerContext ctx,String key);\n\n /**\n * 绑定key\n * @param ctx 当前连接对象\n * @param key key\n */\n void bindKey(Channel ctx,String key);\n\n /**\n * 获取key\n * @param ctx 当前链接对象\n * @return key\n */\n String getKey(Channel ctx);\n\n /**\n * 获取key\n * @param ctx 当前链接对象\n * @return key\n */\n String getKey(ChannelHandlerContext ctx);\n\n\n /**\n * 重置心跳时间\n * @param ctx 当前连接对象\n * @param heartTime 心跳时间(秒)\n */\n void resetHeartTime(Channel ctx,int heartTime);\n\n\n\n}", "@Override\r\n\tpublic void start(Socket socket){}", "public Client() {\n // Naming the client window Player\n super(\"Player\");\n\n // Setting up the textField. Must press enter to start the game.\n textField = new JTextField(\"Please press enter to start...\");\n\n // Adding the ActionListener\n textField.addActionListener(\n event -> {\n try // create and send packet\n {\n // get message from textfield\n String message = event.getActionCommand();\n\n // convert to bytes\n byte[] data = message.getBytes();\n\n // create sendPacket\n DatagramPacket sendPacket = new DatagramPacket(data,\n data.length, InetAddress.getLocalHost(), 5000);\n\n // sending packet to Server\n socket.send(sendPacket);\n\n // Displaying the message in \"Player: Message\" Format\n displayArea.setCaretPosition(\n displayArea.getText().length());\n } catch (IOException ioException) {\n displayMessage(ioException + \"\\n\");\n ioException.printStackTrace();\n }\n }\n );\n add(textField, BorderLayout.NORTH);\n\n // Creating and Adding the Display Area text box.\n displayArea = new JTextArea();\n add(new JScrollPane(displayArea), BorderLayout.CENTER);\n\n // Making the Window for Client\n setSize(400, 300); // set window size\n setVisible(true); // show window\n\n try // create DatagramSocket for sending and receiving packets\n {\n socket = new DatagramSocket();\n } catch (SocketException socketException) {\n socketException.printStackTrace();\n System.exit(1);\n }\n }", "@Override\n public void run() {\n try {\n //create a socket using sever name or IP and port\n socket = new Socket(serverName, serverPort);\n // set up stream\n start();\n //if everything is good, enable controls on GUI\n send.setEnabled(true); // setup buttons\n tf.setEnabled(true);\n connect.setEnabled(false);\n //catch execeptions if any\n } catch (UnknownHostException uhe) {\n display(\"Host unknown: \" + uhe.getMessage()); // Alert not the right host/ IP\n } catch (IOException ioe) {\n display(\"Unexpected exception: \" + ioe.getMessage());\n }\n //keep listening to incoming messages\n while (true) { // the infinite loop\n try {\n while (!bufferInput.ready()) { // when steam ready to read\n }\n String output = bufferInput.readLine(); // Received the data from socket\n while (output != null) \n {append(output + \"\\n\");\n output = bufferInput.readLine();} } \n catch (IOException ioe) {ioe.getMessage();}\t\n \t\t\t}\t\t }", "@Nonnull WebSocket initialize(WebSocket socket);", "public void setUpNetworking() throws Exception {\n this.serverSock = new ServerSocket(4242);\n\n groupChats = new HashMap<String, ArrayList<String>>();\n groupMessages = new HashMap<String, ArrayList<String>>();\n groupMessages.put(\"Global\", new ArrayList<String>());\n\n int socketOn = 0;\n\n while (true) {\n\n Socket clientSocket = serverSock.accept();\n System.out.println(\"Received connection \" + clientSocket);\n\n ClientObserver writer = new ClientObserver(clientSocket.getOutputStream());\n\n Thread t = new Thread(new ClientHandler(clientSocket, writer));\n t.start();\n System.out.println(\"Connection Established\");\n socketOn = 1;\n }\n }", "private WebSocketConnection() {\n this.pendingMessages = false;\n this.isClosed = false;\n this.outBuffer = new LinkedList<Payload>();\n this.internalLock = new Object();\n\n this.writerThread = new Thread(new Runnable() {\n @Override\n public void run() {\n synchronized (internalLock) {\n while (true) {\n if (!pendingMessages) {\n try {\n internalLock.wait();\n } catch (InterruptedException e) {\n // This should never happen\n }\n }\n\n pendingMessages = false;\n\n if (socket.isClosed()) {\n return;\n } else {\n while (outBuffer.size() > 0) {\n Payload payload = outBuffer.removeFirst();\n int opcode = payload.getOpcode();\n byte[] data = payload.getData();\n\n try {\n send(opcode, data);\n } catch (IOException e) {\n // Reader thread will notify this\n // exception\n // This thread just need to stop\n return;\n }\n }\n }\n }\n }\n }\n });\n }", "public void onOpen(WebSocket conn);", "public WebWorker(Socket s) {\n socket = s;\n}", "public void go(){\n\n Socket client = null;\n try{\n serverSock = new ServerSocket(this.port);\n serverSock.setSoTimeout(0);\n while(Server.running){\n if((this.scp == null) || (this.town == null)){\n client = serverSock.accept();\n System.out.println(\"Client\");\n \n //both scp and town null, meaning first player to connect\n if((this.scp == null) && (this.town == null)){\n //assign at random\n double rand = Math.random(); \n if(rand > 0.5){\n this.scp = new ClientHandler(client);\n this.scpThread = new Thread(this.scp);\n this.scpThread.start();\n this.scp.sendMessage(\"<w>\");\n System.out.println(\"SCP\");\n }else{\n this.town = new ClientHandler(client);\n this.townThread = new Thread(this.town);\n this.townThread.start();\n this.town.sendMessage(\"<w>\");\n System.out.println(\"Town\");\n }\n //if scp is not taken\n }else if(this.scp == null){\n //assigns scp\n this.scp = new ClientHandler(client);\n this.scpThread = new Thread(this.scp);\n this.scpThread.start();\n this.scp.sendMessage(\"<w>\");\n System.out.println(\"SCP\");\n startGame();\n //if town is not taken\n }else if(this.town == null){\n //assigns town\n this.town = new ClientHandler(client);\n this.townThread = new Thread(this.town);\n this.townThread.start();\n this.town.sendMessage(\"<w>\");\n System.out.println(\"Town\");\n startGame();\n }\n }\n System.out.println(\"Server is running\");\n }\n System.out.println(\"Game finished\");\n }catch(Exception e){ \n System.out.println(\"Error accepting connection\");\n e.printStackTrace();\n }\n try{\n client.close();\n }catch (Exception e){ \n System.out.println(\"Failed to close socket\");\n }\n System.exit(-1);\n }", "public static void connect(@NonNull Player player, @NonNull String serverName) {\n\t\tfinal ByteArrayOutputStream byteArray = new ByteArrayOutputStream();\n\t\tfinal DataOutputStream out = new DataOutputStream(byteArray);\n\n\t\ttry {\n\t\t\tout.writeUTF(\"Connect\");\n\t\t\tout.writeUTF(serverName);\n\n\t\t} catch (final Throwable t) {\n\t\t\tCommon.error(t,\n\t\t\t\t\t\"Unable to connect \" + player.getName() + \" to server \" + serverName,\n\t\t\t\t\t\"Error: %error\");\n\t\t}\n\n\t\tplayer.sendPluginMessage(SimplePlugin.getInstance(), \"BungeeCord\", byteArray.toByteArray());\n\t}", "public static void connect(@NonNull Player player, @NonNull String serverName) {\n\t\tfinal ByteArrayOutputStream byteArray = new ByteArrayOutputStream();\n\t\tfinal DataOutputStream out = new DataOutputStream(byteArray);\n\n\t\ttry {\n\t\t\tout.writeUTF(\"Connect\");\n\t\t\tout.writeUTF(serverName);\n\n\t\t} catch (final Throwable t) {\n\t\t\tCommon.error(t,\n\t\t\t\t\t\"Unable to connect \" + player.getName() + \" to server \" + serverName,\n\t\t\t\t\t\"Error: %error\");\n\t\t}\n\n\t\tplayer.sendPluginMessage(SimplePlugin.getInstance(), \"BungeeCord\", byteArray.toByteArray());\n\t}", "public static void main(String[] args) {\n \n try {\n boolean useGUI = false;\n int i = -1;\n\n // Parse options. Add additional options here if you have to. Do not\n // forget to mention their usage in the help-string!\n while(args[++i].startsWith(\"-\")) {\n if(args[i].toLowerCase().equals(\"-help\")) {\n System.out.println(USAGE + String.format(\"%n%nwhere options include:\", args));\n System.out.println(\" -help Show this text.\");\n System.out.println(\" -gui Show a graphical user interface.\");\n System.exit(0);\n }\n else if(args[i].toLowerCase().equals(\"-gui\")) {\n useGUI = true;\n }\n }\n \n String mode = args[i++];\n String connectionType = args[i++];\n\n if(mode.toLowerCase().equals(\"server\"))\n {\n int port = Integer.parseInt(args[i++]);\n \n // Start server\n if(connectionType.toLowerCase().equals(\"tcp\"))\n {\n try\n {\n Player player = new Player();\n Server server = new ConnectionServerTCP(port, player);\n \n Thread cs = new Thread(server);\n cs.start();\n Log.log(\"Main: Starting Thread ConnectionServer (\"+cs.getName()+\")\");\n \n cs.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n } else if(connectionType.toLowerCase().equals(\"udp\"))\n {\n try\n {\n Player player = new Player();\n Server server = new ConnectionServerTCP(port, player);\n \n Thread cs = new Thread(server);\n cs.start();\n Log.log(\"Main: Starting Thread ConnectionServer (\"+cs.getName()+\")\");\n \n cs.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n } else if(connectionType.toLowerCase().equals(\"mc\"))\n {\n try\n {\n Player player = new Player();\n Server server = new ConnectionServerMC(port, player);\n \n Thread cs = new Thread(server);\n cs.start();\n Log.log(\"Main: Starting Thread ConnectionServer (\"+cs.getName()+\")\");\n \n cs.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n }\n else if(mode.toLowerCase().equals(\"client\"))\n {\n String host = args[i++];\n int port = Integer.parseInt(args[i++]);\n String username = args[i++];\n \n // Start client\n if(connectionType.toLowerCase().equals(\"tcp\"))\n {\n try\n {\n ClientGUI gui = new ClientGUI();\n RadioClientTCP client = new RadioClientTCP(gui);\n gui.setContext(client);\n \n Thread rc = new Thread(client);\n new Thread(gui).start();\n rc.start();\n Log.log(\"Main: Starting Thread RadioClient (\"+rc.getName()+\")\");\n \n //client.connect(new InetSocketAddress(host, port));\n \n rc.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n } else if(connectionType.toLowerCase().equals(\"udp\"))\n {\n try\n {\n ClientGUI gui = new ClientGUI();\n RadioClientUDP client = new RadioClientUDP(gui);\n gui.setContext(client);\n \n Thread rc = new Thread(client);\n new Thread(gui).start();\n rc.start();\n Log.log(\"Main: Starting Thread RadioClient (\"+rc.getName()+\")\");\n \n //client.connect(new InetSocketAddress(host, port));\n \n rc.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n } else if(connectionType.toLowerCase().equals(\"mc\"))\n {\n try\n {\n ClientGUI gui = new ClientGUI();\n RadioClientMC client = new RadioClientMC(gui);\n gui.setContext(client);\n \n Thread rc = new Thread(client);\n new Thread(gui).start();\n rc.start();\n Log.log(\"Main: Starting Thread RadioClient (\"+rc.getName()+\")\");\n \n //client.connect(new InetSocketAddress(host, port));\n \n rc.join();\n \n Log.notice(\"Main: shuting down\");\n }\n catch(Exception e)\n {\n e.printStackTrace();\n }\n }\n \n else\n throw new IllegalArgumentException(\"Illegal connection method\");\n }\n else\n throw new IllegalArgumentException(\"Illegal program mode\");\n }\n catch(ArrayIndexOutOfBoundsException e) {\n System.err.println(USAGE);\n }\n catch(NumberFormatException e) {\n System.err.println(USAGE);\n }\n catch(IllegalArgumentException e) {\n System.err.println(USAGE);\n }\n }", "synchronized SocketIoSocket add(SocketIoClient client, Object data) {\n final SocketIoSocket socket = new SocketIoSocket(this, client, data);\n if (client.getConnection().getReadyState() == ReadyState.OPEN) {\n mSockets.put(socket.getId(), socket);\n socket.onConnect();\n\n emit(\"connect\", socket);\n emit(\"connection\", socket);\n }\n\n return socket;\n }", "@OnOpen\n public void onOpen(Session session) throws IOException, EncodeException {\n numOfClients++;\n logger.info(\"Connected ... \" + session.getId());\n logger.info(\"Connection to \" + numOfClients + \" client\");\n\n model = new CheckerModel();\n currentBoard = new CurrentBoard();\n\n session.getBasicRemote().sendObject(board());\n //is client player one or two\n// switch (numOfClients){\n// case 1:\n// currentBoard.setCurrentPlayer(1);\n// break;\n// case 2:\n// currentBoard.setCurrentPlayer(2);\n// break;\n// default:\n// currentBoard.setCurrentPlayer(0);\n// }\n\n }", "public void initializeBuffers(){\r\n\t\ttry {\r\n\t\t\tif(_socket == null) {\r\n\t\t\t\t_connectedSocket = false;\r\n\t\t\t\tthrow(new IOException(\"Cannot initialize connections before socket has been initialized.\"));\r\n\t\t\t}\r\n\t\t\t// Obter printer e reader para o socket\r\n\t\t\t_out = new PrintWriter(_socket.getOutputStream(), true);\r\n\t\t\t_in = new BufferedReader(new InputStreamReader(_socket.getInputStream()));\r\n\t\t\t_outputStream = _socket.getOutputStream();\r\n\t\t\t_connected = true;\r\n\t\t} catch (IOException e) {\r\n\t\t\tSystem.err.println(\"Nao se conseguiram inicializar os buffers para ler da conexao: \" + e.toString());\r\n\t\t\t_connected = false;\r\n\t\t\t//System.exit(1);\r\n\t\t}\r\n\t\r\n\r\n\t}", "int openSocket(SocketRpcController socketController) {\r\n if (socket != null && in != null && out != null) {\r\n return 0;\r\n }\r\n // Open socket\r\n try {\r\n socket = socketFactory.createSocket(host, port);\r\n out = socket.getOutputStream(); //new BufferedOutputStream(socket.getOutputStream());\r\n in = socket.getInputStream(); //new BufferedInputStream(socket.getInputStream());\r\n } catch (UnknownHostException e) {\r\n handleError(socketController, ErrorReason.UnknownHost,\r\n \"Could not find host: \" + host, e);\r\n return -1;\r\n } catch (IOException e) {\r\n handleError(socketController, ErrorReason.IOError, String.format(\r\n \"Could not open I/O for %s:%s\", host, port), e);\r\n close();\r\n return -1;\r\n }\r\n return 1;\r\n }", "public SocketChannelTarantoolConnection() {\n\t\tthis(\"localhost\", 33013);\n\t}" ]
[ "0.65580994", "0.6469405", "0.641417", "0.6193299", "0.61163294", "0.5936171", "0.58993846", "0.5889687", "0.5888557", "0.58721256", "0.57897055", "0.5769428", "0.5764941", "0.57625794", "0.57561415", "0.57277554", "0.5705244", "0.5705185", "0.5693366", "0.569186", "0.5685202", "0.5665222", "0.5656067", "0.56346333", "0.5620753", "0.56185085", "0.56152105", "0.5612911", "0.5607041", "0.5573828", "0.5573075", "0.5555809", "0.5540456", "0.5539348", "0.5536902", "0.5536887", "0.55315286", "0.5524842", "0.5485683", "0.54679346", "0.5466231", "0.5461913", "0.54583454", "0.5439272", "0.54391843", "0.54387534", "0.5422195", "0.5419285", "0.54081786", "0.54024184", "0.5389415", "0.53757995", "0.53729904", "0.5367127", "0.5363033", "0.5359923", "0.53558034", "0.53555626", "0.5355014", "0.53505254", "0.5350083", "0.53441167", "0.5338537", "0.5336608", "0.5336074", "0.5327702", "0.53236055", "0.53211796", "0.5317938", "0.53177416", "0.5316997", "0.53153795", "0.53043205", "0.5296117", "0.5294504", "0.5288474", "0.5287276", "0.52831256", "0.52777755", "0.527652", "0.52668595", "0.5266606", "0.52647245", "0.5264052", "0.5261969", "0.52603024", "0.5259329", "0.5259071", "0.5257439", "0.5251535", "0.52515244", "0.5247078", "0.52458423", "0.52458423", "0.5244951", "0.52419937", "0.5239128", "0.52332526", "0.5229858", "0.52296335" ]
0.5728318
15
listens for communications from client. Intercepts disconnection requests.
private void listen() { String message; while(true){ try { message = input.readLine(); if (message == null) continue; if(message.equals("disconnect")){ Thread t = new Thread(this::disconnect); t.start(); return; } else if(message.contains("PUSH")) { parseMessage(message); } else if (message.equals("pong")){ ponged = true; } else if(!validResponse) { synchronized (this) { response = message; validResponse = true; notifyAll(); } } } catch (IOException e) { Thread t = new Thread(this::disconnect); t.start(); try { t.join(); } catch (InterruptedException e1) { e1.printStackTrace(); } synchronized (this) { response = null; validResponse = true; notifyAll(); } return; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void notifyDisconnection(String username){\r\n for(SocketClientHandlerObserver obs:observers){\r\n obs.onDisconnection(username);\r\n }\r\n }", "@Override\n\tpublic void run() {\n try {\n while (true) {\n Socket socket = listener.accept();\n try {\n \t\n\t\t\t\t\tDataInputStream in = new DataInputStream(\n\t\t\t\t\t\t\tsocket.getInputStream());\n\t\t\t\t\tBufferedReader d = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(in));\n\n\t\t\t\t\tString msg = d.readLine();\n\t\t\t\t\t\n third.notifyAllClients(msg);\n \n d.close();\n in.close();\n } finally {\n socket.close();\n }\n }\n } catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n finally {\n try {\n\t\t\t\tlistener.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n }\n\t}", "abstract protected void onDisconnection();", "public void listen() {\n\t\tthread(\"NetworkClientInput\", () -> {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tString str = in.readLine();\n\t\t\t\t\t\n\t\t\t\t\tif (str == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"[CLIENT] Received: \" + str);\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandle(str);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.err.println(\"[Client] Error handling input\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"[Client] Disconnected.\");\n\t\t\t\t\tconnected = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tconnected = false;\n\t\t\texecutor.shutdown();\n\t\t\tsocket.close();\n\t\t});\n\t}", "@Override\n\tpublic void channelInactive(ChannelHandlerContext ctx) throws Exception {\n\t\tsuper.channelInactive(ctx);\n\t\tif(connectListener != null) {\n\t\t\tconnectListener.onDisconnect(ctx.channel());\n\t\t}\n\t}", "@Override\n\tprotected void processConnection() {\n\t\t\n\t\twhile(true) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tint receiverID = (Integer) input.readObject();\n\t\t\t\tString message = (String) input.readObject();\n\t\t\t\t\n\t\t\t\tClientHandler recieverHandler = Server.clientConnections.get(receiverID);\n\t\t\t\tif(recieverHandler == null) {\n\t\t\t\t\tsendData(ERROR_CODE);\n\t\t\t\t\tsendData(\"Not available\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\trecieverHandler.sendData(clientID);\n\t\t\t\t\trecieverHandler.sendData(message);\n\t\t\t\t}\n\t\t\t}\n\t\t\tcatch(ClassNotFoundException classNotFoundException) {\n\t\t\t\tserver.serverGUI.showMessage(\"Unknown object type recieved.\");\n\t\t\t}\n\t\t\tcatch(IOException ioException) {\n\t\t\t\tserver.serverGUI.showMessage(\"Client terminated connection.\\n\");\n\t\t\t\tcloseConnection();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "protected void processDisconnection(){}", "@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\n\t\t\t\t}", "@Override\n public void run() {\n try {\n boolean autoFlush = true;\n fromClient = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n toClient = new PrintWriter(clientSocket.getOutputStream(), autoFlush);\n } catch (IOException ioe) {\n throw new UncheckedIOException(ioe);\n }\n for (String entry : communicationWhenStarting) {\n sendMsg(entry);\n }\n while (connected) {\n try {\n Message msg = new Message(fromClient.readLine());\n updateClientAction(msg);\n } catch (IOException ioe) {\n disconnectClient();\n throw new MessageException(ioe);\n }\n }\n }", "public interface ClientConnectionListener\n{\n /**\n * Event for when a Client connects to a server\n * @param client the client which connected\n */\n void clientConnected(Client client);\n\n /**\n * Event for when a Client Disconnects from a server\n * @param client the client which disconnected\n * @param info information about the disconnection\n */\n void clientDisconnected(Client client, DisconnectInfo info);\n}", "public void onClientDisconnected(Channel channel);", "public interface ClientListener {\n\t/**\n\t * Fired when client list should be updated\n\t * \n\t * @param clients Array of clients\n\t */\n void onClientsUpdated(String[] clients);\n \n /**\n * Fired when a message has been received\n * \n * @param message Message that was received\n */\n void onMessageReceived(Message message);\n \n /**\n * Fired when client has been disconnected from server\n */\n void onDisconnected();\n}", "@Override\n\tpublic void channelInactive(ChannelHandlerContext ctx) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"channelInactive\");\n\t\tsuper.channelInactive(ctx);\n\t}", "@Override\r\n\tpublic void run() {\r\n\t\twhile (closer) {\r\n\t\t\ttry {\r\n\t\t\t\tObjectInputStream ois = new ObjectInputStream(client.getInputStream());\r\n\t\t\t\tObject object = ois.readObject();\r\n\t\t\t\tArrayList<String> input = (ArrayList<String>) object;\r\n\t\t\t\tInteger election = inputTransformer(input);\r\n\t\t\t\tif (election == 1) {\r\n\t\t\t\t\tsl.getLogger().info(\"IncomingMessage on Client Type 1 - For Chat\");\r\n\t\t\t\t}\r\n\t\t\t\tif (election == 2) {\r\n\t\t\t\t\tsl.getLogger().info(\"IncomingMessage on Client Type 2 - For Points\");\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\n\t\t\t\t\tSystem.out.println(\"CLIENT DISCONNECTED FROM SERVER.\");\r\n\t\t\t\t}", "private void manageClients() {\n manage = new Thread(\"Manage\") {\n public void run() {\n //noinspection StatementWithEmptyBody\n while (running) {\n sendToAll(\"/p/server ping/e/\".getBytes());\n try {\n Thread.sleep(1500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n //noinspection ForLoopReplaceableByForEach\n for (int i = 0; i < clients.size(); i++) {\n ServerClient tempClient = clients.get(i);\n if (!clientResponse.contains(tempClient.getID())) {\n if (tempClient.getAttempt() >= MAX_ATTEMPTS)\n disconnect(tempClient.getID(), false);\n else\n tempClient.setAttempt(tempClient.getAttempt() + 1);\n } else {\n clientResponse.remove(new Integer(tempClient.getID()));\n tempClient.setAttempt(0);\n }\n }\n }\n }\n };\n manage.start();\n }", "public synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }", "@Override\n public void channelInactive(ChannelHandlerContext ctx) throws Exception {\n logger.debug(\"client {} inactive\", Connection.this);\n if (!isInitialized || isClosed()) {\n errorOutAllHandler(new TransportException(address, \"Channel has been closed\"));\n // we still want to force so that the future completes\n Connection.this.closeAsync().force();\n } else {\n defunct(new TransportException(address, \"Channel has been closed\"));\n }\n }", "@Override\n public void onDisconnect(BinaryLogClient client) {\n }", "@Override\n\tpublic void run() {\n\t\twhile(!Server.killServer){\n\t\t\ttry {\n\t\t\t\tThread.sleep(Constants.BROADCAST_BATTLEFIELD_PERIOD_TO_CLIENTS);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t//send to EACH client\n\t\t\tfor(Node client : Server.getClientList().keySet()){\n\t\t\t\t//get client's RMI instance\n\t\t\t\tClientServer clientComm = null;\n\t\t\t\tclientComm = Server.getClientReg(client); \n\t\t\t\t//create Message\n\t\t\t\tClientServerMessage sendBattlefieldMessage = new ClientServerMessage(\n\t\t\t\t\t\t\tMessageType.GetBattlefield,\n\t\t\t\t\t\t\tthis.serverOwner.getName(),\n\t\t\t\t\t\t\tthis.serverOwner.getIP(),\n\t\t\t\t\t\t\tclient.getName(),\n\t\t\t\t\t\t\tclient.getIP());\n\t\t\t\tsendBattlefieldMessage.setBattlefield(Server.getBattlefield());\n\t\t\t\t\n\t\t\t\tif(clientComm==null){\n\t\t\t\t\tSystem.out.println(\"clientComm is null\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//System.out.println(\"Server: Battlefield sent\");\n\n\t\t\t\ttry {\n\t\t\t\t\tclientComm.onMessageReceived(sendBattlefieldMessage);\n\t\t\t\t} catch (RemoteException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t} catch (NotBoundException e) {\n\t\t\t\t\t//e.printStackTrace();\n\t\t\t\t}\n\n\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "@Override\n public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {\n ctx.getChannel().getRemoteAddress();\n System.out.println(ctx.getChannel().getRemoteAddress()+\" Disconnected..\");\n Client user = ServerTools.getClientByChannel(ctx.getChannel());\n if(Server.live_clients.contains(user)){\n Server.live_clients.remove(user);\n System.out.println(\"User removed\");\n }\n }", "public void run() {\n sendMessageToClient(\"Connexion au serveur réussie\");\n\n while (isActive) {\n try {\n String input = retrieveCommandFromClient();\n handleCommand(input);\n } catch (ServerException e) {\n System.out.println(e.getMessage());\n sendMessageToClient(e.getMessage());\n } catch (ClientOfflineException e) {\n System.out.println(\"Client # \" + clientId + \" deconnecte de facon innattendue\");\n deactivate();\n }\n }\n\n close();\n }", "@Override\n\tpublic void run()\n\t{\n\t\tSocket clientSocket;\n\t\tMemoryIO serverIO;\n\t\t// Detect whether the listener is shutdown. If not, it must be running all the time to wait for potential connections from clients. 11/27/2014, Bing Li\n\t\twhile (!super.isShutdown())\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\t// Wait and accept a connecting from a possible client residing on the coordinator. 11/27/2014, Bing Li\n\t\t\t\tclientSocket = super.accept();\n\t\t\t\t// Check whether the connected server IOs exceed the upper limit. 11/27/2014, Bing Li\n\t\t\t\tif (MemoryIORegistry.REGISTRY().getIOCount() >= ServerConfig.MAX_SERVER_IO_COUNT)\n\t\t\t\t{\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\t// If the upper limit is reached, the listener has to wait until an existing server IO is disposed. 11/27/2014, Bing Li\n\t\t\t\t\t\tsuper.holdOn();\n\t\t\t\t\t}\n\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t{\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// If the upper limit of IOs is not reached, a server IO is initialized. A common Collaborator and the socket are the initial parameters. The shared common collaborator guarantees all of the server IOs from a certain client could notify with each other with the same lock. Then, the upper limit of server IOs is under the control. 11/27/2014, Bing Li\n//\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator(), ServerConfig.COORDINATOR_PORT_FOR_MEMORY);\n\t\t\t\tserverIO = new MemoryIO(clientSocket, super.getCollaborator());\n\t\t\t\t// Add the new created server IO into the registry for further management. 11/27/2014, Bing Li\n\t\t\t\tMemoryIORegistry.REGISTRY().addIO(serverIO);\n\t\t\t\t// Execute the new created server IO concurrently to respond the client requests in an asynchronous manner. 11/27/2014, Bing Li\n\t\t\t\tsuper.execute(serverIO);\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (!client.isClosed()) {\n\t\t\t\t\tSystem.out.println(\"is socket connected\" + client.isConnected());\n\t\t\t\t\tInputStreamReader reader;\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\treader = new InputStreamReader(client.getInputStream());\n\t\t\t\t\t\tBufferedReader buf = new BufferedReader(reader);\n\t\t\t\t\t\tString msg = buf.readLine();\n\t\t\t\t\t\tif (msg != null) {\n\t\t\t\t\t\t\tSystem.out.println(\"server:\" + msg.toString());\n\t\t\t\t\t\t\tString ContextMsg = \"来自被连接的回复:\" + client.getInetAddress() + \"\\n\" + msg.toString();\n\t\t\t\t\t\t\ttextList.add(ContextMsg);\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}", "private void handleWhiteboardCleared() {\n for (SocketConnection tobeNotified : SocketManager.getInstance()\n .getNotManagerConnectionList()) {\n tobeNotified.send(this.message);\n }\n }", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, WsClientMessage msg) throws Exception {\n\t}", "public void handleDisconnect(){\r\n consoleAppend(this.getName() + \" disconnected.\");\r\n clientThreads.remove(getIndex(this.getName()));\r\n sendToAll(this.getName() + \" disconnected.\");\r\n sendCTToAll(new ControlToken(ControlToken.REMOVECODE, this.getName()));\r\n }", "public void dispatchDisconnection(String clientId)\n {\n for (GpsUpdateListener listsner : registeredListeners)\n {\n listsner.onClientDisconnected(clientId);\n }\n }", "protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}", "protected void processMessagesOnConnection() {\n try {\n logger.info(\"Connected to \" + getConnectionName());\n state.set(StreamState.CONNECTED);\n notifyConnection();\n inputBuffer.flip();\n\n while (!Thread.currentThread().isInterrupted() && isConnected()) {\n try {\n // Find the start of message\n byte byStart = 0;\n while(byStart != START_OF_MSG && !Thread.currentThread().isInterrupted() && isConnected()) {\n byStart = nextByte(inputBuffer);\n }\n\n // and then make sure there are enough bytes and read the protocol\n readCompleteMessage(inputBuffer);\n if(inputBuffer.get() != protocol.getKeyIdentifier()) throw new TcProtocolException(\"Bad protocol\");\n\n logByteBuffer(\"Line read from stream\", inputBuffer);\n\n // now we take a shallow buffer copy and process the message\n MenuCommand mc = protocol.fromChannel(inputBuffer);\n logger.info(\"Command received: \" + mc);\n notifyListeners(mc);\n }\n catch(TcProtocolException ex) {\n // a protocol problem shouldn't drop the connection\n logger.warn(\"Probable Bad message reason='{}' Remote={} \", ex.getMessage(), getConnectionName());\n }\n }\n logger.info(\"Disconnected from \" + getConnectionName());\n } catch (Exception e) {\n logger.error(\"Problem with connectivity on \" + getConnectionName(), e);\n }\n finally {\n close();\n }\n }", "public void run() \n { \n String message; // String for incoming messages\n \n // listen for messages until stopped\n while ( keepListening ) \n { \n try \n { \n message = input.readLine(); // read message from client\n } // end try\n catch ( SocketTimeoutException socketTimeoutException ) \n {\n continue; // continue to next iteration to keep listening\n } // end catch\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n break;\n } // end catch\n\n // ensure non-null message\n if ( message != null ) \n {\n // tokenize message to retrieve user name and message body\n StringTokenizer tokenizer = new StringTokenizer( \n message, MESSAGE_SEPARATOR );\n\n // ignore messages that do not contain a user\n // name and message body\n if ( tokenizer.countTokens() == 2 ) \n {\n // send message to MessageListener\n messageListener.messageReceived( \n tokenizer.nextToken(), // user name\n tokenizer.nextToken() ); // message body\n } // end if\n else\n {\n // if disconnect message received, stop listening\n if ( message.equalsIgnoreCase(\n MESSAGE_SEPARATOR + DISCONNECT_STRING ) ) \n stopListening();\n } // end else\n } // end if\n } // end while \n \n try\n { \n input.close(); // close BufferedReader (also closes Socket)\n } // end try\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n } // end catch \n }", "@Override\n\tpublic void run(){\n\t\ttry{\n\t\t\tin = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\twhile(true){\n\t\t\t\ttry{\t\t\t\t\t\n\t\t\t\t\tmethReception(in);\n\t\t\t\t\texeBdd();\n\t\t\t\t\tmethEnvoie();\n\t\t\t\t}catch(IllegalArgumentException | ExecutionException | InterruptedException a){\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(a.getMessage());\t\t\t\t\n\t\t \tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Fin des comunucations avec :\" + socket.getPort());\n\t\t\tAuthentification.CLIENTS.remove(this);\n\t\t\tsocket.close();\t\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"problème BufferedReader du ChatServeur\");\n\t\t\t//e.printStackTrace();\n\t\t}\n\t}", "@Override\n public void run() {\n\n startPingTimer();\n String read = \"\";\n\n try {\n while ((read = in.readLine()) != null){\n\n //System.out.println(\"[CLIENT] Received: \" + read);\n messageHandler(read);\n\n }\n closeConnection();\n\n }catch (IOException e){\n\n System.out.println(\"[CLIENT] \" + e.getMessage());\n System.out.println(\"[CLIENT] Connection closed.\");\n\n }\n\n }", "public interface ConnectionEventListener {\n /** \n * Called on all listeners when a connection is made or broken. \n */\n void connectionActivity(ConnectionEvent ce);\n}", "public void notifyListener() {\n\t\tbuffer.putInt(1);\n\t\tbuffer.flip();\n\t\tsocketLock.lock();\n\t\ttry {\n\t\t\tnotifyChannel.write(buffer);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"[Turing Server] Non è stato possibile notificare il client.\");\n\t\t}\n\t\tsocketLock.unlock();\n\t\tbuffer.clear();\n\t}", "@Override\n\tpublic void listenerInterrupted(ConnectionListenerEvent evt) {\n\t\t\n\t}", "public abstract void OnDisconnect(int sock);", "@Override\n public void run() {\n try{\n System.out.println(\"A new client is trying to connect\");\n inputFromClient = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n outputFromServer = new PrintWriter(socket.getOutputStream(),true);\n retrievingClientInformation(); // Identifies clients\n sendPreviousMessagesToClient(); // Sends last 15 messages to new comers\n while (clientConnected) // It will execute until client sends a signal to disconnect\n {\n readMessagesFromClients(); // Reads a client inputs then sends them to other clients\n }\n }catch (IOException ioException)\n {\n \tSystem.out.println(username + \" has left the chat.\"); // Announce client's disconnection on server\n }finally {\n try\n {\n socket.close();\n }catch (IOException ioException)\n {\n \tSystem.out.println(username + \" has left the chat.\"); // Announce client's disconnection on server\n }\n }\n }", "@Override\n public void run()\n {\n System.out.println(\"[\" + getCurrentDateTimeStamp() + \"]\" + \" Received connection from: \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.INFO.toString(), \"Received connection from: \" + clientSocket);\n try (PrintWriter pw = new PrintWriter(clientSocket.getOutputStream());\n BufferedReader br = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()))) {\n String line = \"\";\n\n while ((line != null) && (!line.trim().toUpperCase().equals(\"CLOSE\")) && (!stop)) {\n if (!stop && !clientSocket.isClosed()) {\n synchronized (this) {\n line = br.readLine();\n }\n }\n\n if ((line != null) && (!line.trim().isEmpty()) && (!stop)) {\n if(\"getRegisterTopics\".equalsIgnoreCase(line))\n {\n sendRegisterTopics(pw);\n }\n else\n {\n line = processMessage(clientSocket, pw, line);\n }\n }\n }\n } catch (SocketException e1)\n {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"the connection was interrupted by the client - \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e1));\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] the connection was interrupted by the client - \" + clientSocket);\n } catch (IOException e)\n {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"Error while try to read from client \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e));\n System.out.println(\"Error while try to read from client \" + clientSocket);\n } finally {\n //remove from topic table\n synchronized (Server.class) {\n if (clientTopicsTable.containsKey(clientSocket)) {\n clientTopicsTable.remove(clientSocket);\n }\n //remove from threads table\n if (Server.handleClients.contains(this)) {\n Server.handleClients.remove(this);\n }\n }\n try {\n clientSocket.close();\n } catch (IOException e) {\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), \"Error while try to close socket clientSocket: \" + clientSocket);\n writeToLog(Server.LOG_LEVEL.FATAL.toString(), getStackTraceAsString(e));\n System.out.println(\"Error while try to close socket clientSocket: \" + clientSocket);\n }\n }\n }", "public abstract void onClientConnect(ClientWrapper client);", "@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\n\t\t\t\t\tSystem.out.println(\"CONNECTION HAS BEEN LOST.\");\r\n\t\t\t\t}", "private void runProgram() {\n\n try {\n ServerSocket ss = new ServerSocket(8088);\n Dispatcher dispatcher = new Dispatcher(allmsg,allNamedPrintwriters,clientsToBeRemoved);\n Cleanup cleanup = new Cleanup(clientsToBeRemoved,allClients);\n cleanup.start();\n dispatcher.start();\n logger.initializeLogger();\n\n while (true) {\n Socket client = ss.accept();\n InputStreamReader ir = new InputStreamReader(client.getInputStream());\n PrintWriter printWriter = new PrintWriter(client.getOutputStream(),true);\n BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String input = br.readLine();\n System.out.println(input);\n String name = input.substring(8);\n logger.logEventInfo(name + \" has connected to the chatserver!\");\n allClients.put(name,client);\n allNamedPrintwriters.put(name,printWriter);\n ClientHandler cl = new ClientHandler(name,br, printWriter, allmsg);\n Thread t = new Thread(cl);\n t.start();\n allmsg.add(\"ONLINE#\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void messageReceived(ChannelHandlerContext ctx, MessageEvent e) {\n Channel ch = ctx.getChannel();\n //Player player = (Player) ch.getAttachment();\n Client client = (Client) ch.getAttachment();\n \n if (ch.isConnected()) { // && !client.getPlayer().destroyed() \n RSCPacket packet = (RSCPacket) e.getMessage();\n //player.addPacket(p); // Used to log packets for macro detection\n //engine.addPacket(p); // This one actually results in the packet being processed!\n client.pushToMessageQueue(packet);\n }\n }", "@Override\r\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tRecieveSocketOfClient(SocketForClient);\r\n\t\t\t\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\t\t\t\t// TODO: handle exception\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}", "@Override\n public void run() {\n while (connected) {\n Message message = getMessage();\n if (!connected)\n break;\n Executors.newCachedThreadPool().execute(() -> {\n try {\n message.handle(messageHandler);\n } catch (IOException e) {\n e.printStackTrace();\n }\n });\n }\n }", "void clientDisconnected(Client client, DisconnectInfo info);", "@SubscribeEvent\n public void onFMLNetworkClientDisconnectionFromServer(ClientDisconnectionFromServerEvent event) {\n hypixel = false;\n bedwars = false;\n }", "@Override\n\tpublic void onClientDisconnection(ClientThread client) {\n\n\t\ttry{\n\t\t\tlockClients.writeLock().lock();\n\t\t\tthis.clients.remove(client);\n\t\t} finally {\n\t\t\tlockClients.writeLock().unlock();\n\t\t}\n\n\t\ttry {\n\t\t\tlockClients.readLock().lock();\n\t\t\tLocalDateTime now = LocalDateTime.now();\n\t\t\tString toSend = \"[\"+dtf.format(now)+\"] \"+client.getClientName()+\" has disconnected the chat\";\n\t\t\tfor(ClientThread c : clients) {\n\t\t\t\tc.sendMessage(toSend);\n\t\t\t}\n\t\t\taddToHistory(toSend);\n\t\t} finally {\n\t\t\tlockClients.readLock().unlock();\n\t\t}\n\t}", "@Override\n\tpublic void run(){\n\t\tInetAddress IPAddress = serverTcpSocket.getInetAddress();\n\t\tfor (ClientObj c: clients)\n\t\t\tif (c.getId() == client.getId()){\n\t\t\t\tSystem.out.print(IPAddress + \" Client already connected!\");\n\t\t\t\treturn;\n\t\t\t}\n\t\ttry{\n\t\t\t// Check handshake received for correctness\n\t\t\t//(connect c->s) [herader | \"JUSTIN\\0\" | connection port] (udp)\n\t\t\t//(connect response s->c) [header | client id | port] (udp)\n\t \n\t // open the connection\n\t\t clientSocket = null;\n\t\t Socket clientListener = null;\n\t\t // wait for client connection on tcp port\n\t\t //serverTcpSocket.setSoTimeout(5000);\n\t \tSystem.out.println (\" Waiting for tcp connection.....\");\n\t \tclientSocket = serverTcpSocket.accept();\n\t \tclientListener = serverTcpSocket.accept();\n\t \tclient.setListenerSocket(clientListener);\n\t\t\tIPAddress = clientSocket.getInetAddress();\n\t\t\tint recv_port = clientSocket.getPort();\n\t\t\tSystem.out.println(IPAddress + \": Client connected @ port \" + recv_port);\n\n\t\t // handle tcp connection\n\t\t\tclientSocket.setSoTimeout(Constants.ACK_TIMEOUT);\n\t\t out = new BufferedOutputStream(clientSocket.getOutputStream());\n\t\t\tin = new BufferedInputStream(clientSocket.getInputStream());\n\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\tclient.setPort(clientSocket.getPort());\n\t\t clients.add(client);\n\t\t\t\n\t\t // handle requests\n\t\t\twhile (!shutdown_normally) {\n\t\t\t\t// read just the header, then handle the req based on the info in the header\n\t\t\t\tif ((buf = Utility.readIn(in, Constants.HEADER_LEN)) == null)\n\t\t\t\t\tbreak;\n\t\t\t\tint flag = buf.getInt(0);\n\t\t\t\tint len2 = buf.getInt(4);\n\t\t\t\tint id = buf.getInt(8);\n\t\t\t\t\n\t\t\t\t// check for correctness of header\n\t\t\t\t\n\t\t\t\tif (flag < Constants.OPEN_CONNECTION || \n\t\t\t\t\t\tflag > Constants.NUM_FLAGS || \n\t\t\t\t\t\tid != client.getId() || \n\t\t\t\t\t\tlen2 < 0){\n\t\t\t\t\tout.close(); \n\t\t\t\t\tin.close(); \n\t\t\t\t\tclientSocket.close(); \n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t\t\tclients.remove(client);\n\t\t\t\t\tthrow new RuntimeException(\n\t\t\t\t\t\t\t\"Connection - FAILURE! (malformed header)\");\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// read payload\n\t\t\t\tif ((buf = Utility.readIn(in, Utility.getPaddedLength(len2))) == null)\n\t\t\t\t\tthrow new IOException(\"read failed.\");\n\t\t\t\t// update address (necessary?)\n\t\t\t\tclients.get(clients.indexOf(client)).setAddress(clientSocket.getInetAddress());\n\t\t\t\tclient.setAddress(clientSocket.getInetAddress());\n\t\t\t\tswitch (flag){\n\t\t\t\t\tcase Constants.ACK:\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.VIEW_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing view request...\");\n\t\t\t\t\t\tViewFiles(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download request...\");\n\t\t\t\t\t\tDownload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.UPLOAD_REQ:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing upload request...\");\n\t\t\t\t\t\tUpload(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.DOWNLOAD_ACK:\n\t\t\t\t\t\tSystem.out.println(client.getAddress() + \n\t\t\t\t\t\t\t\t\": Processing download acknowledgment...\");\n\t\t\t\t\t\tDownloadCompleted(buf);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Constants.CLOSE_CONNECTION:\n\t\t\t\t\t\tshutdown_normally = true;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// close all open sockets\n\t\t out.close(); \n\t\t in.close(); \n\t\t clientSocket.close(); \n\t\t serverTcpSocket.close();\n\t\t} catch (SocketTimeoutException e) {\n\t\t\tSystem.err.println(IPAddress + \": Timeout waiting for response.\");\n\t\t} catch (UnknownHostException e) {\n\t\t\t// IPAdress unknown\n\t\t\tSystem.err.println(\"Don't know about host \" + IPAddress);\n\t\t} catch (IOException e) {\n\t\t\t// Error in communication\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to \" +\n\t\t\t\t\tIPAddress);\n\t\t} catch (RuntimeException e){\n\t\t\t// Malformed Header or payload most likely\n\t\t\tSystem.err.println(IPAddress + \": Connection - FAILURE! (\" + e.getMessage() + \")\");\n\t\t} finally {\n\t\t\t// remove this client from active lists, close all (possibly) open sockets\n\t\t\tSystem.out.println(IPAddress + \": Connection - Closing!\");\n\t\t\tclients.remove(client);\n\t\t\ttry {\n\t\t\t\tSocket clientConnection = client.getListenerSocket();\n\t\t\t\tOutputStream out_c = new BufferedOutputStream(clientConnection.getOutputStream());\n\t\t\t\tbuf = Utility.addHeader(Constants.CLOSE_CONNECTION, 0, client.getId());\n\t\t\t\tout_c.write(buf.array());\n\t\t\t\tout_c.flush();\n\t\t\t\tout_c.close();\n\t\t\t\tclientConnection.close();\n\n\t\t\t\tif (out != null)\n\t\t\t\t\tout.close();\n\t\t\t\tif (in != null)\n\t\t\t\t\tin.close();\n\t\t\t\tif (!clientSocket.isClosed())\n\t\t\t\t\tclientSocket.close();\n\t\t\t\tif (!serverTcpSocket.isClosed())\n\t\t\t\t\tserverTcpSocket.close();\n\t\t\t} catch (IOException e){\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n }", "private void readMessagesFromClients() throws IOException {\n String message = inputFromClient.readLine(); // Reads data from client\n if (message != null ) {\n if (!message.equals(\"EXIT\")){ // If client still don't want to disconnect\n writeMessageInDataFile(message); // write his message in the txt database\n for (ServerThread client : activeClients) { // then send his message to all active clients\n if (!client.username.equals(this.username)){\n client.outputFromServer.println(toString() + message);\n }\n }\n System.out.println(this + message); // Displays client message in server console\n }else{\n for (ServerThread client : activeClients) { // Send a message to all other clients to announce the client's disconnection\n if (!client.username.equals(this.username)){\n client.outputFromServer.println( \"\\n\" + username + \" has left the chat.\");\n }\n }\n System.out.println(username + \" has left the chat.\"); // Announce client's disconnection on server\n }\n\n }\n }", "public void run(){\n\t\ttry{\n\t\t\t// Get client socket.\n\t\t\tSocket client = server.getClientSocket();\n\t\t\t// Get the inputstream from the socket\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\tString line;\n\t\t\twhile(true){\n\t\t\t\tif(client.isClosed()){\n\t\t\t\t\tSystem.out.println(\"The client is offline. Chat finished.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tline= reader.readLine();\n\t\t\t\t\tif(line.equals(\"bye\")){\n\t\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t\t\tSystem.out.println(\"Chat finished.\");\n\t\t\t\t\t\tclient.close();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Client: \");\n\t\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\treader.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void interrupt() {\n\t\tshutdown_normally = true;\n\t\ttry {\n\t\t\tfor (ServerFwding f : peer_threads){\n\t\t\t\tif (f.isAlive())\n\t\t\t\t\tf.interrupt();\n\t\t\t}\n\t\t\t\n\t\t\tif (clients.contains(client)){\n\t\t\t\tSocket clientConnection = client.getListenerSocket();\n\t\t\t\tOutputStream out_c = new BufferedOutputStream(clientConnection.getOutputStream());\n\t\t\t\tbuf = Utility.addHeader(Constants.CLOSE_CONNECTION, 0, client.getId());\n\t\t\t\tout_c.write(buf.array());\n\t\t\t\tout_c.flush();\n\t\t\t\tout_c.close();\n\t\t\t\tclientConnection.close();\n\t\t\t\tclients.remove(client);\n\t\t\t}\n\t\t\tclientSocket.close();\n\t\t\tserverTcpSocket.close();\n\t\t} catch (IOException e) {\n\t\t\t// Error in communication\n\t\t\tSystem.err.println(client.getAddress() + \": Experienced trouble closing. (Warning)\");\n\t\t}\n\t}", "public void run() {\n String nextLine;\n try {\n while ((nextLine = in.readLine()) != null && !stopped) {\n game.HandleIncommingMesg(this, nextLine);\n }\n System.out.println(\"Connection with: \" + playername + \" is lost!\");\n shutdown();\n } catch (IOException e) {\n shutdown();\n }\n }", "@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\n\t\t\t\t}", "@Override\n public void run() {\n // When we read from the input stream, broadcast it to all client observers to relay to the clients via the respective socket.\n try {\n Object dataFromClient = inputFromClient.readObject();\n while (dataFromClient != null) {\n setChanged();\n if(dataFromClient instanceof Integer){\n Integer clientID = (Integer) dataFromClient;\n // This client sent its client id to be added to or removed from registered users. So, send the updated list to all observers to push to ALL clients.\n if(registeredUsers.contains(clientID)){\n removeClient(clientID);\n clientData.remove(clientID);\n }else {\n registeredUsers.add((Integer)dataFromClient); // Add the new client's future ID to the list of registered users. ID sent\n }\n System.out.println(\"Server sending \" + registeredUsers);\n notifyObservers(registeredUsers);\n }else if (dataFromClient instanceof Group){\n System.out.println(\"Server received \" + dataFromClient);\n Group group = (Group)dataFromClient;\n if(group.getGroupID() == -1){ // Indicates group is asking for proper id.\n group.setGroupID(currentGroupNumber);\n System.out.println(\"Here ya go, number \" + currentGroupNumber);\n currentGroupNumber++;\n }\n notifyObservers(group);\n }else{\n notifyObservers(dataFromClient);\n }\n System.out.println(\"Server sent \" + dataFromClient);\n dataFromClient = inputFromClient.readObject();\n }\n } catch (IOException | ClassNotFoundException e) {\n System.out.println(\"Could not read data from client\");\n }\n }", "void handleConnectionClosed();", "void onConnectionRemoved(SocketConnection connection);", "public interface CommunicationEventListener extends EventListener {\n // Ajoute un handler\n boolean handleServerResponse(String response);\n}", "@Override\r\n \tpublic void clientDisconnectedCallback(RoMClient client) {\r\n \t\tthis.disconnectClient(client);\r\n \t}", "@Override\n\t\t\t\tpublic void process(WatchedEvent event) {\n\t\t\t\t\tif (event.getState() == KeeperState.SyncConnected) {\n\t\t\t\t\t\tconnectedSignal.countDown(); // 倒数-1\n\t\t\t\t\t}else if (event.getState() == KeeperState.Expired) {\n\t\t\t\t\t\tlog.error(\"zookeeper session expired! now reconnectiing\");\n\t\t\t try {\n\t\t\t\t\t\t\tclose();\n\t\t\t\t\t\t\tgetConnection(serverList);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\tlog.error(\"zookeeper connect error!\",e);\n\t\t\t\t\t\t}\n\t\t\t }\n\t\t\t\t}", "public void handleMessageFromClient(Object msg) {\n\n }", "@Override\n protected void initChannel(SocketChannel ch) throws Exception {\n //4. Add ChannelHandler to intercept events and allow to react on them\n ch.pipeline().addLast(new ChannelHandlerAdapter() {\n @Override\n public void channelActive(ChannelHandlerContext ctx) throws Exception {\n //5. Write message to client and add ChannelFutureListener to close connection once message written\n ctx.write(buf.duplicate()).addListener(ChannelFutureListener.CLOSE);\n }\n });\n }", "void requestReceived( C conn ) ;", "private void listenForConnection() throws IOException {\n\twhile(true) {\n System.out.println(\"Waiting for connection...\");\n // Wait for client to connect\n Socket cli = server.accept();\n if(connlist.size() < MAX_CONN) {\n\t\t// if numCli is less then 100\n initConnection(cli);\n }\n\t}\n }", "public void start() {\n try {\n Socket socket = new Socket(conf.getServerIp(), conf.getServerPort());\n\n java.io.InputStream is = socket.getInputStream();\n BufferedReader reader = new BufferedReader(new java.io.InputStreamReader(is));\n\n readerThread = new MessageReader(reader);\n new Thread(readerThread).start();\n\n java.io.OutputStream os = socket.getOutputStream();\n PrintWriter writer = new PrintWriter(os);\n writerThread = new MessageWriter(writer);\n new Thread(writerThread).start();\n\n while (serverMessages.empty()) {\n //Do nothing\n }\n\n ServerMessage serverMessage = serverMessages.pop();\n if (!serverMessage.getMessageType().equals(ServerMessage.MessageType.HELO)) {\n System.out.println(\"Expecting a HELO message but received: \" + serverMessage.toString());\n } else {\n System.out.println(\"Please fill in your username: \");\n Scanner scanner = new Scanner(System.in);\n String username = scanner.nextLine();\n\n\n ClientMessage heloMessage = new ClientMessage(ClientMessage.MessageType.HELO, username);\n clientMessages.push(heloMessage);\n\n while (serverMessages.empty()) {\n }\n\n\n isConnected = validateServerMessage(heloMessage, serverMessages.pop());\n if (!isConnected) {\n System.out.println(\"Error logging into server\");\n } else {\n System.out.println(\"Successfully connected to server.\");\n System.out.println(\"(Type '/quit' to close connection and stop application.)\");\n System.out.println(\"Type a broadcast message: \");\n nonblockReader = new NonblockingBufferedReader(new BufferedReader(new java.io.InputStreamReader(System.in)));\n\n\n while (isConnected) {\n String line = nonblockReader.readLine();\n if (line != null) {\n ClientMessage clientMessage;\n if (line.equals(\"/quit\")) {\n clientMessage = new ClientMessage(ClientMessage.MessageType.QUIT, username + \" left the server\");\n isConnected = false;\n\n Thread.sleep(500L);\n } else if (line.startsWith(\"/msg\") && line.split(\" \").length > 1) {\n //Split the message first\n String[] splittedline = line.split(\" \");\n String senderUsername = splittedline[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n line = line.replace(\"/msg \" + splittedline[1] + \" \", \"\");\n\n //Check if we have an encryptionsession with the user or not\n if (encryptionSessionHashMap.containsKey(senderUsername)) {\n //We have an encryptionsession, so we can just send the message\n String encryptedLine = encryptionSessionHashMap.get(senderUsername).encryptMessage(line);\n clientMessage = new ClientMessage(ClientMessage.MessageType.ENCR, senderUsername + \" \" + encryptedLine);\n System.out.println(\"(You -> \" + senderUsername + \"): \" + line);\n } else {\n //We don't have an encryptionsession yet, so we create one\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(senderUsername, encryptionSession);\n clientMessage = new ClientMessage(ClientMessage.MessageType.KEYS, senderUsername + \" \" + encryptionSession.getPublicKey());\n savedMessage.put(senderUsername, line);\n }\n } else {\n System.out.println(\"You cannot send a message to yourself\");\n clientMessage = null;\n }\n } else if (line.startsWith(\"/file\") && line.split(\" \").length == 3) {\n //Split the message first\n String[] splitLine = line.split(\" \");\n String senderUsername = splitLine[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n String fileBase64String = new FileTransfer(splitLine[2], senderUsername).sendFile();\n clientMessage = new ClientMessage(ClientMessage.MessageType.FILE, fileBase64String);\n System.out.println(\"You have send \" + splitLine[2] + \" to \" + senderUsername);\n } else {\n System.out.println(\"You cannot send a file to yourself\");\n clientMessage = null;\n }\n\n } else {\n clientMessage = new ClientMessage(ClientMessage.MessageType.BCST, line);\n System.out.println(line);\n }\n\n if (clientMessage != null) {\n clientMessages.push(clientMessage);\n }\n }\n if (!serverMessages.empty()) {\n ServerMessage received = serverMessages.pop();\n\n\n if (received.getMessageType().equals(ServerMessage.MessageType.BCST)) {\n System.out.println(received.getPayload());\n }\n\n //Check if we received an encrypted message\n else if (received.getMessageType().equals(ServerMessage.MessageType.ENCR)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedMessage = splitMessage[1];\n\n //If we have a session with this user, we can decrypt the message\n if (encryptionSessionHashMap.containsKey(sender)) {\n System.out.println(\"(\" + sender + \" -> You): \" + encryptionSessionHashMap.get(sender).decryptMessage(encryptedMessage));\n }\n }\n\n //If this is the first time, we have to share keys\n else if (received.getMessageType().equals(ServerMessage.MessageType.KEYS)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedKey = splitMessage[1];\n\n //Check if we send the first message or not\n if (encryptionSessionHashMap.containsKey(sender)) {\n encryptionSessionHashMap.get(sender).decryptKey(encryptedKey);\n\n //After saving the aes key, we have to resend our first message\n String msg = savedMessage.get(sender);\n if (msg != null) {\n String encryptedLine = encryptionSessionHashMap.get(sender).encryptMessage(msg);\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.ENCR, sender + \" \" + encryptedLine);\n clientMessages.push(responseMessage);\n System.out.println(\"(You -> \" + sender + \"): \" + msg);\n savedMessage.remove(sender);\n }\n }\n\n //We send our aes key when we didn't send the message first\n else {\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(sender, encryptionSession);\n String aesKey = encryptionSession.encryptKey(encryptedKey);\n\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.KEYS, sender + \" \" + aesKey);\n clientMessages.push(responseMessage);\n }\n }\n\n //Check if the message is a file\n else if (received.getMessageType().equals(ServerMessage.MessageType.FILE)) {\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String base64String = splitMessage[2];\n\n new FileTransfer(base64String, splitMessage[0], true).readFile();\n System.out.println(\"You have received \" + splitMessage[1] + \" from \" + sender);\n }\n }\n }\n }\n\n disconnect();\n System.out.println(\"Client disconnected!\");\n }\n } catch (IOException e) {\n System.out.println(\"Ouch! Could not connect to server!\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private void receiveAndDispatchMessage() {\n String response = null;\n try {\n while((response = bufferedReader.readLine()) != null) {\n System.out.println(\"received message from server: \" + response);\n String messageKind = \"\";\n if(response.contains(\":\")) {\n messageKind = response.substring(0, response.indexOf(\":\"));\n } else {\n messageKind = response;\n }\n Bundle bundle = new Bundle();\n bundle.putString(\"response\", response);\n switch (messageKind) {\n case ClientMessageKind.SIGNUPDENIED:\n case ClientMessageKind.SIGNUPOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNUPACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNUPACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.SIGNINDENIED:\n case ClientMessageKind.SIGNINOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNINACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNINACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMDRIVER:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMPASSENGER:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERDEST:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.STARTRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n } else if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.ENDRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERENDSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERENDSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEPASSENGERPROFILEDENIED:\n case ClientMessageKind.UPDATEPASSENGERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEDRIVERPROFILEDENIED:\n case ClientMessageKind.UPDATEDRIVERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n default:\n break;\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public boolean listenForClientResponse(){\n\t\t\n\t\ttry {\n\t\t\t//wait for answer from client\n\t\t\tanswer = inFromClient.readLine(); //blocking read\n\t\t\tif(answer == null){\n\t\t\t\treturn false; //the client has been disconnected. Kill this thread \n\t\t\t}\n\t\t\treturn true;\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn false; \t\t\n\t}", "public void run() {\n try {\n //Create the input object stream and output object stream for this client\n toClient = new ObjectOutputStream(client.getOutputStream());\n fromClient = new ObjectInputStream(client.getInputStream());\n login = false;\n\n while (!login) {/*Wait for a client to login*/\n try {\n receviedProtocol = (Protocol) fromClient.readObject();\n if (receviedProtocol.getMethod().equals(\"HELP\"))\n sendHelpMenu();\n else if (receviedProtocol.getMethod().equals(\"LOGIN\")) {\n authorize(receviedProtocol);\n login = true;\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n logout = false;\n while (!logout) {/*Keep conncetion between client and server until the client logout*/\n try{\n receviedProtocol = (Protocol)fromClient.readObject(); //Wait for client input\n startIndex = 0;//This will be used to track the starting point of next n groups to be send\n if(receviedProtocol.getMethod().equals(\"AG\"))\n allGroupHandler(receviedProtocol);\n else if(receviedProtocol.getMethod().equals(\"LOGOUT\")){\n logout();\n logout = true;\n }\n }catch (Exception e){\n e.printStackTrace();\n }\n\n }\n\n } catch (IOException e) {\n System.out.println(e);\n\n } finally {\n try {\n client.close();\n } catch (IOException e) {\n System.out.println(e);\n }\n }\n }", "public void waitForClients() {\n\n\t\twhile (!Thread.interrupted()) {\n\t\t\tacceptClient();\n\t\t}\n\n\t}", "public void startListeningForConnection() {\n startInsecureListeningThread();\n }", "private void onReceiveChatMessages() {\n\n//\t\tL.debug(\"onReceiveChatMessages\");\n//\n//\t\t// called from NetworkChangeReceiver whenever the user is logged in\n//\t\t// will always be called whenever there is a change in network state,\n//\t\t// will always check if the app is connected to server,\n//\t\tXMPPConnection connection = XMPPLogic.getInstance().getConnection();\n//\n//\t\tif (connection == null || !connection.isConnected()) {\n//\t\t\tSQLiteHandler db = new SQLiteHandler(getApplicationContext());\n//\t\t\tdb.openToWrite();\n//\n//\t\t\t// db.updateBroadcasting(0);\n//\t\t\t// db.updateBroadcastTicker(0);\n//\n//\t\t\tAccount ac = new Account();\n//\t\t\tac.LogInChatAccount(db.getUsername(), db.getEncryptedPassword(), db.getEmail(), new OnXMPPConnectedListener() {\n//\n//\t\t\t\t@Override\n//\t\t\t\tpublic void onXMPPConnected(XMPPConnection con) {\n//\t\t\t\t\t\n//\t\t\t\t\t//addPacketListener(con);\n//\t\t\t\t}\n//\n//\t\t\t});\n//\n//\t\t\tdb.close();\n//\t\t} else {\n//\n//\t\t\t//addPacketListener(connection);\n//\n//\t\t}\n\t}", "public void doDisconnect() {\n Debug.logInfo(\"MQTT Disconnecting clientId[\" + client.getClientId() + \"] of [\" + client.getServerURI() + \"] ... \", MODULE);\n\n IMqttActionListener discListener = new IMqttActionListener() {\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Disconnect Completed\", MODULE);\n state = DISCONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"Disconnect failed\" + exception, MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n client.disconnect(null, null);\n } catch (MqttException e) {\n state = ERROR;\n donext = true;\n ex = e;\n }\n }", "public void process(WatchedEvent event) {\n if(event.getState() == Event.KeeperState.SyncConnected) {\n connectedSignal.countDown();\n }\n }", "void disconnect(String reason);", "void onIceConnectionChange(boolean connected);", "public void readFromClient() {\n Thread t = new Thread(() -> {\n while (connected) {\n try {\n Message fromClient;\n synchronized (C2SMessages){\n if (C2SMessages.size() > 0){\n fromClient = (Message) C2SMessages.get(0);\n C2SMessages.remove(0);\n if( !(fromClient instanceof PingMessage) ) {\n if (myTurn) {\n answer = fromClient;\n answerReady = true;\n synchronized (lock){\n lock.notifyAll();\n }\n } else {\n send(new WrongTurnMessage());\n }\n }\n }\n if (C2SMessages.isEmpty())\n C2SMessages.wait();\n }\n } catch (NullPointerException | IllegalArgumentException | InterruptedException e) {\n System.out.println(\"[LOCAL-HANDLER] \"+userNickname+\"-local connection closed\");\n closeConnection();\n notifyDisconnection(this);\n break;\n }\n }\n });\n t.start();\n }", "@Override\n protected void channelRead0(ChannelHandlerContext ctx, Message msg)\n {\n mDispatcher.dispatch(mPeer, msg);\n }", "private void handleInterruption() {\n Runtime.getRuntime().addShutdownHook(new Thread() {\n @Override\n public void run() {\n Publishers.this.output.shutdown();\n\n// final CountDownLatch clientClosed = new CountDownLatch(clients.size());\n// for (ClientPublishTask client : clients) {\n// client.interrupt(new Callback<Void>() {\n// @Override\n// public void onSuccess(Void value) {\n// clientClosed.countDown();\n// CommandLindInterface.debug(Publishers.this.configuration, \"Connection to broker successfully closed\");\n// }\n//\n// @Override\n// public void onFailure(Throwable value) {\n// clientClosed.countDown();\n// CommandLindInterface.stderr(\"Connection close to broker failure!\");\n// }\n// });\n// }\n//\n// try {\n// clientClosed.await(5000, TimeUnit.MILLISECONDS);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n\n result.endTimeNanosec = System.nanoTime();\n output.display(configuration, result);\n }\n });\n }", "protected void onDisconnect() {}", "void onDisconnect(DisconnectReason reason, String errorMessage);", "@Override\n public void react(@NotNull ClientConnection client) throws IOException {\n String[] params = message.getHeader().split(\" \");\n if( params.length != getMessagesSize || client.getClientID() == null )\n return ;\n int roomID = Integer.parseInt(params[1]);\n List<String> messages = UserRequests.getMessagesFromRoom(roomID, nMessage);\n if (messages == null) return;\n assert client.getStreamMessage() != null;\n client.getStreamMessage().write(\n new Message(getMessagesType + \" \" + roomID, messages));\n }", "@Override\n public void run() {\n while(true){\n BufferedReader in = null;\n try {\n in = new BufferedReader(new InputStreamReader(\n clientSocket.getInputStream()));\n\n String message=in.readLine();\n if(message!=null){\n logger.info(\"Received message from \"+clientSocket.getInetAddress());\n }\n else{\n logger.error(\"Null message received from \"+clientSocket.getInetAddress()+\". Stopping connection\");\n return;\n }\n\n\n PrintWriter out =\n new PrintWriter(clientSocket.getOutputStream(), true);\n out.println(message);\n\n } catch (IOException e) {\n logger.error(\"[IOException] \"+e.getMessage());\n e.printStackTrace();\n return;\n }\n try {\n Thread.sleep(responseInterval);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n\n }", "protected abstract void disconnect(UUID[] players, String reason, IntConsumer response);", "protected CommunicationsHandler(){}", "@Override\n\tpublic void onClientMessage(ClientThread client, String msg) {\n\t\ttry {\n\t\t\tlockClients.readLock().lock();\n\t\t\tLocalDateTime now = LocalDateTime.now();\n\t\t\tString toSend = \"[\"+dtf.format(now)+\"] \"+client.getClientName()+\" : \"+msg;\n\t\t\tfor (ClientThread ct : this.clients) {\n\t\t\t\tct.sendMessage(toSend);\n\t\t\t}\n\t\t\taddToHistory(toSend);\n\t\t} finally {\n\t\t\tlockClients.readLock().unlock();\n\t\t}\n\t}", "public void communicate() throws IOException{\n\t\tdo{\n\t\t\t//Messages recieved by the client\n\t\t\t\n\t\t\t\n\t\t\t//Messages being sent by the client\t\n\t\t\t//Chat client is reading in data from its own user and from the chat client thread\n//\t\t\t line = console.readLine(); //client msg is read from console environment\n\t\t\t\n\t\t\t//nope \n//\t\t\tScanner scanner = new Scanner(System.in);\n//\t String line = scanner.nextLine();\n//\t System.out.println(line);\n//\t\t\tscanner.close();\n\t\t\t\n\t\t\t//nope\n//\t line = strIn.readUTF();\n//\t\t\tSystem.out.println(\"User said: \"+ line);\n\t\t\t\n\n//\t\t\tnope needs to be a constant stream cant just get client message from client gui\n//\t\t\tline = gui.getLatestMsg();\n\t\t\t\n//\t\t\tnope initial stream is null. read from gui stream\n//\t\t\tByteArrayInputStream bInput = new ByteArrayInputStream(gui.b);\n//\t\t\tline = bInput.toString();\n//\t\t\t\n\t\t\tstrOut.writeUTF(line); // Writes a string to the underlying output stream using modified UTF-8 encoding\n\t\t\tstrOut.flush(); //Forces any buffered output bytes to be written out to the stream.\n\t\t\t\n\t\t}while(!line.equalsIgnoreCase(\"bye\")); //not working. Still listens\n\t}", "private void terminateAllClientConnections() {\n log.info(\"Terminate command received; Closing sockets..\");\n log.info(\"Attempting closing client sockets..\");\n this.socketList.forEach(socket -> {\n try {\n socket.close();\n } catch (Exception e) {\n log.error(\"Error closing client socket address\", socket.getRemoteSocketAddress().toString());\n }\n });\n log.info(\"Attempting closing server listening socket\");\n try {\n this.serverSocket.close();\n this.running.set(false);\n } catch (Exception e) {\n log.error(\"Error closing server socket port\", port);\n }\n }", "@Override\n\tpublic void run() {\n\n\t\treceiveClients();\n\n\t\tbeginLogging();\n\t}", "interface OnProxyConnectedCallback {\n void onConnected(ChannelHandlerContext ctx);\n //void onError(ChannelHandlerContext ctx, Throwable reason);\n }", "public abstract void handleClient(Client conn);", "private void handleClient() {\n\t\t//Socket link = null;\n\t\tRequestRecord reqRec = new RequestRecord();\n\t\tResponder respondR = new Responder();\n\t\t\n\t\ttry {\n\t\t\t// STEP 1 : accepting client request in client socket\n\t\t\t//link = servSock.accept(); //-----> already done in *ThreadExecutor*\n\t\t\t\n\t\t\t// STEP 2 : creating i/o stream for socket\n\t\t\tScanner input = new Scanner(link.getInputStream());\n\t\t\tdo{\n\t\t\t\t//PrintWriter output = new PrintWriter(link.getOutputStream(),true);\n\t\t\t\t//DataOutputStream ds = new DataOutputStream(link.getOutputStream());\n\t\t\t\tint numMsg = 0;\n\t\t\t\tString msg = input.nextLine();\n\t\t\t\t\n\t\t\t\t//to write all requests to a File\n\t\t\t\tFileOutputStream reqFile = new FileOutputStream(\"reqFile.txt\");\n\t\t\t\tDataOutputStream dat = new DataOutputStream(reqFile);\n\t\t\t\t\n\t\t\t\t// STEP 4 : listening iteratively till close string send\n\t\t\t\twhile(msg.length()>0){\n\t\t\t\t\tnumMsg++;\n\t\t\t\t\tdat.writeChars(msg + \"\\n\");\n\t\t\t\t\tSystem.out.println(\"\\nNew Message Received\");\n\t\t\t\t\tif(reqRec.setRecord(msg)==false)\n\t\t\t\t\t\tSystem.out.println(\"\\n-----\\nMsg#\"+numMsg+\": \"+msg+\":Error with Request Header Parsing\\n-----\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Msg#\" + numMsg + \": \" + msg);\n\t\t\t\t\tmsg = input.nextLine();\n\t\t\t\t};\n\t\t\t\tdat.writeChars(\"\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n\\n\");\n\t\t\t\tdat.close();\n\t\t\t\treqFile.close();\n\t\t\t\tSystem.out.println(\"---newEST : \" + reqRec.getResource());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\n==========Send HTTP Response for Get Request of\\n\"+reqRec.getResource()+\"\\n***********\\n\");\n\t\t\t\tif(respondR.sendHTTPResponseGET(reqRec.getResource(), link)==true)//RES, ds)==true)\n\t\t\t\t\tSystem.out.println(\"-----------Resource Read\");\n\t\t\t\tSystem.out.println(\"Total Messages Transferred: \" + numMsg);\n\t\t\t\t//link.close();\n\t\t\t\tif(reqRec.getConnection().equalsIgnoreCase(\"Keep-Alive\")==true && respondR.isResourceExisting(reqRec.getResource())==true)\n\t\t\t\t\tlink.setKeepAlive(true);\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}while(true);\n\t\t\tSystem.out.print(\"Request Link Over as Connection: \" + reqRec.getConnection());\n\t\t} catch (IOException e) {\n\t\t\tif(link.isClosed())\n\t\t\t\tSystem.out.print(\"\\n\\nCritical(report it to developer):: link closed at exception\\n\\n\");\n\t\t\tSystem.out.println(\"Error in listening.\\n {Error may be here or with RespondR}\\nTraceString: \");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// STEP 5 : closing the connection\n\t\t\tSystem.out.println(\"\\nClosing Connection\\n\");\n\t\t\ttry {\t\t\t\t\n\t\t\t\tlink.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Unable to disconnect.\\nTraceString: \");\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}/*ends :: try...catch...finally*/\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treMsg = withClient.getInputStream();\r\n\t\t\t\t\t\tbyte[] reBuffer = new byte[500];\r\n\t\t\t\t\t\treMsg.read(reBuffer);\r\n\t\t\t\t\t\tString msg = new String(reBuffer);\r\n\t\t\t\t\t\tmsg = msg.trim();\r\n\t\t\t\t\t\tif (msg.indexOf(\"/bye\") == 0) {\r\n\t\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tAnalysis.ckMsg(mySin, msg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}", "protected void notifyConnection() {\n connectionListeners.forEach(listener-> listener.connectionChange(this, isConnected()));\n }", "public void run() {\n\t\ttry {\n\t\t\tfor (;;) {\n\t\t\t\t/**\n\t\t\t\t * Sends notifications at timeout intervals every timeout\n\t\t\t\t */\n\t\t\t\tThread.sleep(NOTIFICATION_TIMEOUT);\n\n\t\t\t\t/** Do nothing if the session map is not initialized */\n\t\t\t\tif (EventWebSocketAdapter_R.sessions == null) {\n\t\t\t\t\tlogger.info(\"The sessions map is 'null ... do nothing.\\n\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tlogger.info(\"The sessions map length is '%d'\\n\", EventWebSocketAdapter_R.sessions.size());\n\n\t\t\t\t/** Do nothing if there is no connection */\n\t\t\t\tif (EventWebSocketAdapter_R.sessions.size() == 0) {\n\t\t\t\t\tlogger.info(\"The sessions map length is '%d' ... do nothing.\\n\",\n\t\t\t\t\t\t\tEventWebSocketAdapter_R.sessions.size());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\t/** Sends notifications to all connected clients */\n\t\t\t\tfor (Map.Entry<Integer, Session> entry : EventWebSocketAdapter_R.sessions.entrySet()) {\n\t\t\t\t\tentry.getValue().getRemote().sendString(String.format(\"'%tT' from server '%s'\",\n\t\t\t\t\t\t\tCalendar.getInstance().getTime(), entry.getValue().getLocalAddress()));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Throwable T) {\n\t\t\t/** Trace error */\n\t\t\tlogger.catching(T);\n\t\t} finally {\n\t\t\t/** Trace info */\n\t\t\tlogger.info(String.format(\"Thread '%s' shutdown ... \\n\", Thread.currentThread().getName()));\n\t\t}\n\t}", "public void dispatchConnection(String clientId)\n {\n for (GpsUpdateListener listsner : registeredListeners)\n {\n listsner.onClientConnected(clientId);\n }\n }", "public void run() {\n\t\ttry {\n\t\t\tout = new PrintWriter(client.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\ts.getMessage(this, inputLine);\n\t\t\t\tSystem.out.println(inputLine);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to host\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public void run() {\n // Initial connect request comes in\n Request request = getRequest();\n\n if (request == null) {\n closeConnection();\n return;\n }\n\n if (request.getConnectRequest() == null) {\n closeConnection();\n System.err.println(\"Received invalid initial request from Remote Client.\");\n return;\n }\n\n ObjectFactory objectFactory = new ObjectFactory();\n Response responseWrapper = objectFactory.createResponse();\n responseWrapper.setId(request.getId());\n responseWrapper.setSuccess(true);\n responseWrapper.setConnectResponse(objectFactory.createConnectResponse());\n responseWrapper.getConnectResponse().setId(id);\n\n // Return connect response with our (statistically) unique ID.\n if (!sendMessage(responseWrapper)) {\n closeConnection();\n System.err.println(\"Unable to respond to connect Request from remote Client.\");\n return;\n }\n\n // register our thread with the server\n Server.register(id, this);\n\n // have handler manage the protocol until it decides it is done.\n while ((request = getRequest()) != null) {\n\n Response response = handler.process(this, request);\n\n if (response == null) {\n continue;\n }\n\n if (!sendMessage(response)) {\n break;\n }\n }\n\n // client is done so thread can be de-registered\n if (handler instanceof IShutdownHandler) {\n ((IShutdownHandler) handler).logout(Server.getState(id));\n }\n Server.unregister(id);\n\n // close communication to client.\n closeConnection();\n }", "public void onIceDisconnected();", "@Override\r\n \tpublic void clientConnectedCallback(RoMClient newClient) {\r\n \t\t// Add new client and start listening to this one\r\n \t\tthis.clients.addClient(newClient);\r\n \r\n \t\t// Create the ReceiveClientCommandThread for this client\r\n \t\tReceiveClientCommandThread receiveCommandThread = new ReceiveClientCommandThread(newClient, this, this);\r\n \t\treceiveCommandThread.start();\r\n \r\n \t\t// Create the CommandQueue Thread for this client\r\n \t\tClientCommandQueueThread commandQueueThread = new ClientCommandQueueThread(newClient);\r\n \t\tcommandQueueThread.start();\r\n \t}", "public void run() {\n while (true) {\n try {\n /* Get string from client */\n String fromClient = this.in.readLine();\n \n /* If null, connection is closed, so just finish */\n if (fromClient == null) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this == clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + this.id + \" disconnected\"); }\n }\n this.in.close();\n this.out.close();\n this.socket.close();\n return;\n }\n \n /* If the client said \"bye\", close the connection */\n if (fromClient.equals(\"bye\")) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this != clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + this.id + \" said bye, disconnecting\"); }\n }\n this.in.close();\n this.out.close();\n this.socket.close();\n return;\n }\n\n if(fromClient.startsWith(\"/id \")) {\n String oldID=this.id;\n String msg = this.changeID(fromClient.substring(4));\n if (msg.equals(\"\")) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this != clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + oldID + \" changed his/her name to \" + this.id); }\n }\n }\n else {\n this.out.println(msg);\n }\n }\n else if(fromClient.startsWith(\"/whisper \")){\n String msg = this.whisper(fromClient.substring(9, StringUtils.ordinalIndexOf(fromClient, \" \", 2)));\n String user = fromClient.substring(9, StringUtils.ordinalIndexOf(fromClient, \" \", 2));\n for (int x=0; x<clientlist.size(); x++) {\n if (user.equalsIgnoreCase(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(this.id + \" whispered : \" + (fromClient.substring(StringUtils.ordinalIndexOf(fromClient, \" \", 2)+1)).toUpperCase() );\n }\n }\n if(!msg.equalsIgnoreCase(\"\")){ this.out.println(msg); }\n }\n else if(fromClient.startsWith(\"/room \")){\n String msg = this.roomChange(fromClient.substring(6));\n String roomName = fromClient.substring(6);\n for (int x=0; x<rooms.size(); x++) {\n if (rooms.get(x).title.equalsIgnoreCase(roomName)) {\n for (int y = 0; y < clientlist.size(); y++) {\n if (rooms.get(x).hasClient(clientlist.get(y).id) && !clientlist.get(y).id.equalsIgnoreCase(this.id)) {\n clientlist.get(y).out.println(this.id + \" has joined room \" + roomName);\n }\n }\n }\n }\n this.out.println(msg);\n\n room aRoom = new room(\"x\");\n for(room theRoom : rooms){\n ArrayList<String> members = theRoom.getMembers();\n for(String member : members) {\n if (member.equalsIgnoreCase(this.id)) {\n aRoom = theRoom;\n }\n }\n }\n\n this.out.print(\"The admins in the group are: \");\n for(String admin: aRoom.getAdmins()){\n this.out.print(admin + \" \");\n }\n this.out.println(\"\");\n this.out.println(\"The topic of the room is \" + aRoom.topic);\n }\n else if(fromClient.startsWith(\"/+admin \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String roomName=\"\";\n room aRoom = new room(\"x\");\n String user = fromClient.substring(8);\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n this.addAdmin(user, roomName);\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(user + \" was made an admin of \" + roomName);\n }\n }\n }\n else if(fromClient.startsWith(\"/-admin \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String roomName=\"\";\n room aRoom = new room(\"x\");\n String user = fromClient.substring(8);\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n this.removeAdmin(user);\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(clientlist.get(x).id + \" was removed from the admin position in \" + roomName);\n }\n }\n }\n else if(fromClient.startsWith(\"/kick \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String user = fromClient.substring(6);\n String roomName=\"\";\n room aRoom = new room(\"x\");\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id) && !clientlist.get(x).id.equalsIgnoreCase(user)){\n clientlist.get(x).out.println(user + \" was kicked from \" + roomName);\n }\n else if (aRoom.getAdmins().contains(user) && clientlist.get(x).id.equalsIgnoreCase(this.id) ){\n this.out.println(\"You cannot kick an admin of the group\");\n }\n else if (aRoom.getMembers().contains(clientlist.get(x).id) && clientlist.get(x).id.equalsIgnoreCase(user)) {\n clientlist.get(x).out.println(\"You are being kicked from \" + roomName + \" by \" + this.id + \", and being placed in Lobby.\");\n this.kick(user);\n }\n }\n }\n else if(fromClient.startsWith(\"/topic \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String topic = fromClient.substring(7);\n String roomName=\"\";\n\n for(room theRoom : rooms){\n ArrayList<String> members = theRoom.getMembers();\n for(String member : members) {\n if (member.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n }\n }\n }\n\n this.addTopic(topic);\n for (int x=0; x<rooms.size(); x++) {\n if (rooms.get(x).title.equalsIgnoreCase(roomName)) {\n for (int y = 0; y < clientlist.size(); y++) {\n if (rooms.get(x).hasClient(clientlist.get(y).id) && !clientlist.get(y).id.equalsIgnoreCase(this.id) && rooms.get(x).getAdmins().contains(this.id)) {\n clientlist.get(y).out.println(this.id + \" changed the topic of the room to \" + topic);\n }\n }\n }\n }\n }\n \n /* Otherwise send the text to the server*/\n\n else {\n for (int y=0; y < rooms.size(); y++) {\n for (int x = 0; x < clientlist.size(); x++) {\n if (this != clientlist.get(x)) {\n if(rooms.get(y).hasClient(this.id) && rooms.get(y).hasClient(clientlist.get(x).id)) {\n clientlist.get(x).out.println(\"Client \" + this.id + \" said: \" + fromClient);\n }\n }\n }\n }\n }\n \n } catch (IOException e) {\n /* On exception, stop the thread */\n System.out.println(\"IOException: \" + e);\n return;\n }\n }\n }" ]
[ "0.6161293", "0.6153697", "0.60808855", "0.6077009", "0.60558635", "0.60499793", "0.6010629", "0.5947787", "0.59453785", "0.59421253", "0.5924541", "0.58959055", "0.58942354", "0.58914983", "0.5876856", "0.5870005", "0.5821221", "0.5808788", "0.58022076", "0.5786974", "0.57813317", "0.5768954", "0.5765605", "0.57597697", "0.57545173", "0.5747029", "0.5745572", "0.5744212", "0.57084507", "0.5690517", "0.5687082", "0.5686851", "0.56847775", "0.56835324", "0.56829524", "0.5680354", "0.56792796", "0.5673764", "0.5653261", "0.5652132", "0.56424636", "0.56359553", "0.56283337", "0.56243145", "0.5620368", "0.56161916", "0.5600022", "0.55989057", "0.55850196", "0.5581955", "0.5580021", "0.5562082", "0.55347043", "0.55320615", "0.55314654", "0.5531253", "0.55301476", "0.5529818", "0.55259705", "0.5524172", "0.5509832", "0.5508177", "0.55059713", "0.55023587", "0.5490101", "0.5489823", "0.548801", "0.54779834", "0.5476938", "0.5472848", "0.5467597", "0.5461534", "0.5458412", "0.5455395", "0.5452313", "0.54512185", "0.5447302", "0.5447035", "0.54450864", "0.5444696", "0.5443143", "0.5439915", "0.5422017", "0.54187256", "0.5414856", "0.5404495", "0.54035914", "0.53980637", "0.5396226", "0.5395509", "0.53948194", "0.53937703", "0.5391865", "0.53909427", "0.53906316", "0.5388075", "0.53864366", "0.53861576", "0.5385498", "0.5384513" ]
0.6358754
0
parses message in case it's a push message from client
private void parseMessage(String message) { JSONObject msg = (JSONObject) JSONValue.parse(message); switch(msg.get("type").toString()){ case "join_match": int id = Integer.parseInt(msg.get("match_id").toString()); try { getServerLobby().joinMatch(this, id); } catch (TooManyPlayersException e) { this.alert("Cannot join match: match is full"); } catch (MatchAlreadyStartedException e) { this.alert("Cannot join match: match already started"); } catch (PlayerAlreadyExistsException e) { e.printStackTrace(); } catch (PlayerNotExistsException e) { e.printStackTrace(); } break; case "create_match": int maxPlayers = Integer.parseInt(msg.get("max_players").toString()); int maxDeaths = Integer.parseInt(msg.get("max_deaths").toString()); int turnDuration = Integer.parseInt(msg.get("turn_duration").toString()); int mapID = Integer.parseInt(msg.get("map_id").toString()); try { getServerLobby().hostMatch(this,maxPlayers,maxDeaths,turnDuration,mapID); } catch (TooManyMatchesException e) { this.alert("Cannot create match: server is full"); } catch (PlayerNotExistsException e) { e.printStackTrace(); } catch (MatchAlreadyStartedException e) { e.printStackTrace(); } catch (PlayerAlreadyExistsException e) { e.printStackTrace(); } catch (TooManyPlayersException e) { e.printStackTrace(); } break; case "ready": getCurrentMatch().setPlayerReady(this, true); break; case "not_ready": getCurrentMatch().setPlayerReady(this, false); break; case "update_lobby": if(getServerLobby()!=null) { this.updateLobby(getServerLobby().lobby); } else { output.print("NOT_IN_LOBBY"); } break; case "back_to_lobby": try { this.backToLobby(); } catch (MatchAlreadyStartedException | PlayerNotExistsException e) { alert("Error leaving waiting room"); } break; default: } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMessage(String channel, String message) {\n if (redisHandler.isAuth()) redisHandler.getJedisPool().getResource().auth(redisHandler.getPassword());\n if (!channel.equalsIgnoreCase(redisHandler.getChannel())) return;\n\n executor.execute(() -> {\n String[] strings = message.split(\"///\");\n\n System.out.println(strings[1]);\n System.out.println(strings[0]);\n\n Object jsonObject = null;\n try {\n jsonObject = redisHandler.getGson().fromJson(strings[0], Class.forName(strings[1]));\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n RedisPacket redisPacket = (RedisPacket) jsonObject;\n\n if (redisPacket == null) {\n System.out.println(\"The redis packet received seems to be null!\");\n return;\n }\n\n redisPacket.onReceived();\n });\n }", "@Override\n public void onMessageReceived(String receivedMessage) {\n try {\n JSONObject jsonFromString = new JSONObject(receivedMessage);\n\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "private MessageType processMessage(MessageType message) {\n\t\tJSONObject messageJSON = (JSONObject) message;\n\t\tJSONObject timestamp = messageJSON.getJSONObject(\"timestamp\");\n\t\t\n\t\t//complete timestamp\n\t\tint globalState = messagequeue.size();\n\t\tDate nowDate = new Date();\n\t\tString globalClock = String.valueOf(nowDate.getTime());\n\t\ttimestamp.element(\"srn\", globalState);\n\t\ttimestamp.element(\"globalClock\", globalClock);\n\t\t\n\t\tmessageJSON.element(\"timestamp\", timestamp);\n\t\treturn (MessageType) messageJSON;\n\t}", "private Message onMessageReceived(String message, DecentSocket origin) {\n\t\tGson gson = new Gson();\n\t\tJsonObject messageObj = JsonParser.parseString(message).getAsJsonObject();\n\t\t//Timestamp member required for all messages\n\t\tif(messageObj.has(\"timestamp\")) {\n\t\t\tString type = messageObj.get(\"type\").getAsString();\n\t\t\tswitch(type) {\n\t\t\t\tcase \"chat\":\n\t\t\t\t\tchatMessageCallback.apply(gson.fromJson(message, ChatMessage.class), origin);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"peerAsk\":\n\t\t\t\t\treturn onPeerAskMessageReceived(gson.fromJson(message, PeerAskMessage.class), origin);\n\t\t\t\tcase \"peers\":\n\t\t\t\t\treturn onPeersMessageReceived(gson.fromJson(message, PeersMessage.class), origin);\n\t\t\t\tcase \"ping\":\n\t\t\t\t\treturn onPingMessageReceived(gson.fromJson(message, PingMessage.class), origin);\n\t\t\t\tcase \"pong\":\n\t\t\t\t\treturn onPongMessageReceived(gson.fromJson(message, PongMessage.class), origin);\n\t\t\t\tcase \"historyAsk\":\n\t\t\t\t\treturn onHistoryAskMessageReceived(gson.fromJson(message, HistoryAskMessage.class), origin);\n\t\t\t\tcase \"history\":\n\t\t\t\t\treturn onHistoryMessageReceived(gson.fromJson(message, HistoryMessage.class), origin);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic void processMessage(byte[] message) {\n\t}", "private void decode_message(String receivedMessage) {\n String[] messageComponents = receivedMessage.split(\"##\");\n String actionName = messageComponents[0];\n int actionType = caseMaps.get(actionName);\n\n switch (actionType) {\n case 1:\n String nodeToConnect = messageComponents[1];\n break;\n case 2:\n String receivedPrevNode = messageComponents[1].split(\"&&\")[0];\n String receivedNextNode = messageComponents[1].split(\"&&\")[1];\n break;\n case 3:\n String key = messageComponents[1].split(\"&&\")[0];\n String value = messageComponents[1].split(\"&&\")[1];\n insertIntoDB(key,value);\n break;\n case 4:\n String portRequested = messageComponents[1].split(\"&&\")[0];\n String AllMessages = messageComponents[1].split(\"&&\")[1];\n break;\n case 5:\n String portRequestedSelect = messageComponents[1].split(\"&&\")[0];\n String selection = messageComponents[1].split(\"&&\")[1];\n break;\n case 6:\n String selectionDelete = messageComponents[1];\n DeleteKeys(selectionDelete);\n break;\n default:\n }\n\n }", "public static void parseMessage(String jsonString) {\n\t\n\t\tJSONRPC2Message msg;\n\t\t\n\t\ttry {\n\t\t\tmsg = JSONRPC2Message.parse(jsonString);\n\t\t\t\n\t\t} catch (JSONRPC2ParseException e) {\n\t\t\tSystem.err.println(e);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tif (msg instanceof JSONRPC2Request) {\n\t\t\tSystem.out.println(\"The message is a Request\");\n\t\t}\n\t\telse if (msg instanceof JSONRPC2Notification) {\n\t\t\tSystem.out.println(\"The message is a Notification\");\n\t\t}\n\t\telse if (msg instanceof JSONRPC2Response) {\n\t\t\tSystem.out.println(\"The message is a Response\");\n\t\t}\n\t}", "Message readMessage(byte[] data, CodedInputStreamMicro is) throws IOException {\n int b1 = is.readRawByte();\n if (b1 == 0) {\n // grpc style framing - 0 4B-length\n } else if (b1 == '{') {\n // \\n delimited json\n //String line = is.\n\n }\n\n int len = is.readRawLittleEndian32();\n if (len < 0) {\n Log.d(TAG, \"Invalid length\");\n return null;\n }\n data = is.readRawBytes(len);\n\n String body = new String(data, 0, len);\n String[] lines = body.split(\"\\n\");\n String l = lines[0];\n\n Message msg = Message.obtain();\n msg.getData().putString(\":uri\", l);\n\n for (int i = 1; i < lines.length; i++) {\n String s1 = lines[i];\n if (s1.contains(\":\")) {\n String[] s1P = s1.split(\":\", 2);\n if (s1P.length == 2) {\n msg.getData().putString(s1P[0], s1P[1]);\n }\n }\n }\n\n return msg;\n }", "String getRawMessage();", "@Override\n public void onRecivMessage(Channel channel, NettyMessage message,\n String tag, JsonParser parser)\n {\n if (!messageFilter(message))\n {\n Log.e(\"\", \"SDK 已拦截掉指令 \" + message.getHeader());\n return;\n }\n try {\n dosomething(channel, message, parser);\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void onMessage(String data) {\n\n log.e(\"ipcChannel received message: [\" + data + \"]\");\n\n try {\n JSONObject json = new JSONObject(data);\n\n onIpcMessage(json);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void parseMessages() {\n\n // Find the first delimiter in the buffer\n int inx = rx_buffer.indexOf(DELIMITER);\n\n // If there is none, exit\n if (inx == -1)\n return;\n\n // Get the complete message\n String s = rx_buffer.substring(0, inx);\n\n // Remove the message from the buffer\n rx_buffer = rx_buffer.substring(inx + 1);\n\n // Send to read handler\n sendToReadHandler(s);\n\n // Look for more complete messages\n parseMessages();\n }", "@Override\n public void onMessageReceived(MessageReceivedEvent event) {\n if (event.getAuthor().isBot()) {\n return ;\n }\n\n Parser.parse(event.getMessage().getContentRaw(), event);\n }", "protected Object extractMessage(Message message) {\n\t\tif (serializer != null) {\n\t\t\treturn serializer.deserialize(message.getBody());\n\t\t}\n\t\treturn message.getBody();\n\t}", "private String getValueFromMessage(TextMessage message, String key){\n Map data = new Gson().fromJson(message.getPayload(),Map.class);\n return (String) data.get(key);\n }", "private void messageHandler(String read){\n\n try {\n buffer.append(read);\n }catch (MalformedMessageException e){\n System.out.println(\"[CLIENT] The message received is not in XML format.\");\n }\n\n while(!buffer.isEmpty()) {\n if (buffer.getPong()) pong = true;\n else if (buffer.getPing()) send(\"<pong/>\");\n else {\n try {\n clientController.onReceivedMessage(buffer.get());\n } catch (EmptyBufferException e) {\n System.out.println(\"[CLIENT] The buffer is empty!\");\n }\n }\n }\n\n }", "@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}", "@Override\n\tpublic void readMessage(Message message) {\n\t\t\n\t}", "public List<Message> parse(String message) {\n msg = new JSONObject(message);\n data = msg.getJSONArray(\"data\");\n List<Message> msgArray = new ArrayList<Message>();\n for (int i=0; i<data.length(); i++){\n Message tmpmsg = new Message();\n JSONObject tmpObj = data.getJSONObject(i);\n tmpmsg.setKey(tmpObj.getString(\"deviceId\"));\n tmpmsg.setEventTimestamp(Instant.parse(tmpObj.getString(\"time\")));\n tmpmsg.setResponseBody(tmpObj.toString());\n msgArray.add(tmpmsg);\n }\n return msgArray;\n }", "void processMessage(JSONObject msg, InetAddress addr, int port);", "public void processMessage(byte[] message) {\n try {\n Object receivedMessage = Serializer.deserialize(message);\n processMessage(receivedMessage);\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "public static String parseResponse(String message){\n\t\tchar[] b = message.toCharArray();\n\t\tStringBuffer sb = new StringBuffer();\n\t\t//单行回复\n\t\tif('+'==b[0]){\n\t\t\tsb.append(message.substring(1));\n\t\t}else{\n\t\t\tSystem.out.println(\"格式错误\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "public String parseStringMsg(String msg){\n String parsedMsg = msg;\n //Make second mthd w/o second param\n //replacements is like Variable:Replacement i.e. PLAYERTRADESENTTO:playerReceiver.getName()\n return parsedMsg;\n }", "void push(String message);", "public void parseMessage(JSONObject message, Session session, WebSocketEndpoint wsep) {\n\t\tConnection conn = null;\n\t\tStatement st = null;\n\t\tResultSet rs = null;\n\t response = new JSONObject();\n//\t transNotif = new JSONObject();\n\t try {\n\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\tconn = DriverManager.getConnection(\"jdbc:mysql://localhost/Sanity?user=root&password=root&useSSL=false\");\n\t\t\tst = conn.createStatement();\n\t\t\tJSONObject r = new JSONObject();\n\t\t\tif (!message.get(\"message\").equals(\"signup\") && !message.get(\"message\").equals(\"login\") && !message.get(\"message\").equals(\"changePassword\")) {\n\t\t\t\tr = notifyPeriod(message, session, conn);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tr = null;\n\t\t\t}\n\t\t\tif (r!=null) {\n\t\t\t\twsep.sendToSession(session, toBinary(r));\n\t\t\t}\n\t\t\tresponse = new JSONObject();\n//\t\t\tSystem.out.println(message.toString());\n\t if (message.get(\"message\").equals(\"signup\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(signUp(message, conn)));\n\t\t\t}\n\t else if (message.get(\"message\").equals(\"getHistory\")) {\n\t \twsep.sendToSession(session, toBinary(getHistory(message, session, conn)));\n\t }\n\t else if (message.get(\"message\").equals(\"editBigBudgetAttributes\")) {\n\t \twsep.sendToSession(session, toBinary(editBigBudgetAttributes(message, session, conn)));\n\t }\n\t else if (message.get(\"message\").equals(\"refreshdata\")) {\n\t \twsep.sendToSession(session, toBinary(refreshData(message, session, conn)));\n\t }\n\t else if (message.get(\"message\").equals(\"refreshdatacategory\")) {\n\t \twsep.sendToSession(session, toBinary(refreshDataCategory(message, session, conn)));\n\t }\n\t else if (message.get(\"message\").equals(\"refreshdatatransaction\")) {\n\t \twsep.sendToSession(session, toBinary(refreshDataTransaction(message, session, conn)));\n\t }\n\t else if (message.get(\"message\").equals(\"refreshdatahistory\")) {\n\t \twsep.sendToSession(session, toBinary(refreshDataHistory(message, session, conn)));\n\t }\n\t\t\telse if (message.get(\"message\").equals(\"login\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(signIn(message, session, conn)));\n//\t\t\t\tif (r!=null) {\n//\t\t\t\t\twsep.sendToSession(session, toBinary(r));\n//\t\t\t\t}\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"createBigBudget\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(createBigBudget(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"createBudget\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(createBudget(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"editBigBudget\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(editBigBudget(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"editCategory\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(editBudget(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"deleteBigBudget\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(deleteBigBudget(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"deleteCategory\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(deleteBudget(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"editUser\")) {\n//\t\t\t\twsep.sendToSession(session, toBinary(refreshData(message, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"changePassword\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(editProfile(message, session, conn)));\n//\t\t\t\twsep.sendToSession(session, toBinary(editProfile(message, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"addTransaction\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(addTransaction(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"editTransactionDescription\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(renameTransaction(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"deleteTransaction\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(deleteTransaction(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"deleteAllTransactions\")) {\n\t\t\t\twsep.sendToSession(session, toBinary(deleteAllTransactions(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"getAnalytics\")) {\n\t\t\t\t\n\t\t\t}\n\t \n\t //clear database in each test function before running it\n\t \n\t\t\telse if (message.get(\"message\").equals(\"logintest\")) {\n\t\t\t\t\n\t\t\t\twsep.sendToSession(session, toBinary(signInTest(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"signuptest\")) { //return signupsuccesstest, signupfailtest\n//\t\t\t\tdeleteAll(conn);\n\t\t\t\tcreateUser(conn, session);\n\t\t\t\twsep.sendToSession(session, toBinary(signUpTest(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"changePasswordTest\")) { //return passwordSuccessTest, passwordFailTest\n//\t\t\t\tdeleteAll(conn);\n\t\t\t\tcreateUser(conn, session);\n\t\t\t\twsep.sendToSession(session, toBinary(changePasswordTest(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"addToBudgetTest\")) { //return addToBudgetSuccessTest/fail\n\t\t\t\t//creates budget, category and adds transaction\n//\t\t\t\tdeleteAll(conn);\n\t\t\t\tcreateUser(conn, session);\n\t\t\t\twsep.sendToSession(session, toBinary(addToBudgetTest(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"subtractFromBudgetTest\")) { //return subtractFromBudgetSuccessTest, success when category/budget amount has decreased\n\t\t\t\t//same as addToBudgetTest, sends -100 in amountToAdd\n//\t\t\t\tdeleteAll(conn);\n\t\t\t\tcreateUser(conn, session);\n\t\t\t\twsep.sendToSession(session, toBinary(subtractFromBudgetTest(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"transactionHistoryTest\")) { //return transactionHistorySuccessTest if pull from transaction table is not 0\n\t\t\t\t//create budget, create category, add transaction, check that it is not empty\n//\t\t\t\tdeleteAll(conn);\n\t\t\t\tcreateUser(conn, session);\n\t\t\t\twsep.sendToSession(session, toBinary(transactionHistoryTest(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"locationTest\")) { //return locationSuccessTest if pull from transaction table is not 0\n\t\t\t\t//create budget, create category, add transaction with location markerLatitude, markerLongitude\n//\t\t\t\tdeleteAll(conn);\n\t\t\t\tcreateUser(conn, session);\n\t\t\t\twsep.sendToSession(session, toBinary(locationTest(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"limitNotificationTest\")) { //return limitNotificationSuccessTest if pull from transaction table is not 0\n\t\t\t\t//create budget, category, and transaction (if under 20% left, send successs notification message)\n\t\t\t\t//\n//\t\t\t\tdeleteAll(conn);\n\t\t\t\tcreateUser(conn, session);\n\t\t\t\twsep.sendToSession(session, toBinary(limitNotificationTest(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"createBigBudgetTest\")) { //return createBigBudgetSuccessTest, passwordFailTest\n\t\t\t\t//return success if budget amount is negative, is over 1000000 and not created in database\n\t\t\t\t//success if exception caught\n//\t\t\t\tdeleteAll(conn);\n\t\t\t\tcreateUser(conn, session);\n\t\t\t\twsep.sendToSession(session, toBinary(createBigBudgetTest(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"createBudgetTest\")) { //return createBudgetSuccessTest, passwordFailTest\n//\t\t\t\tdeleteAll(conn);\n\t\t\t\tcreateUser(conn, session);\n\t\t\t\twsep.sendToSession(session, toBinary(createBudgetTest(message, session, conn)));\n\t\t\t}\n\t\t\telse if (message.get(\"message\").equals(\"deleteBigBudgetTest\")) { //return deleteBigBudgetSuccessTest, passwordFailTest\n//\t\t\t\tdeleteAll(conn);\n\t\t\t\tcreateUser(conn, session);\n\t\t\t\twsep.sendToSession(session, toBinary(deleteBigBudgetTest(message, session, conn)));\n\t\t\t}\n\t \n\t \n\t \n\t \n\t \n\t //budget: bigBudgetName, bigBudgetAmount, userID, totalAmountSpent, totalAmountAdded, resetFrequency, resetStartDate\n\t //category: budgetName, budgetAmount, bigBudgetID\n\t //transaction: amountToAdd, budgetID, markerLatitude, markerLongitude\n\t\t} catch (ClassNotFoundException | SQLException | JSONException e) {\n\t\t\t//JSONObject response = new JSONObject();\n\t\t\ttry {\n\t\t\t\tresponse.put(\"SQLFail\", \"SQL connection could not be made.\");\n\t\t\t} catch (JSONException e1) {\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\te.printStackTrace();\n\t\t\twsep.sendToSession(session, toBinary(response));\n\t\t} finally {\n\t \ttry {\n\t \t\tif (rs != null) {\n\t \t\t\trs.close();\n\t \t\t}\n\t \t\tif (st != null) {\n\t \t\t\tst.close();\n\t \t\t}\n\t \t\tif (conn != null) {\n\t \t\t\tconn.close();\n\t \t\t}\n\t \t} catch (SQLException sqle) {\n\t \t\tSystem.out.println(sqle.getMessage());\n\t \t}\n\t\t}\n\t}", "public static final void parseMessage(String message) {\r\n if (message == null) return;\r\n String[] msg = message.split(\" \");\r\n user = getUser(msg[0]);\r\n \r\n if (msg[1].equals(\"PRIVMSG\")) {\r\n addUserToViewerList(user);\r\n msg[3] = msg[3].substring(1);\r\n \r\n /**\r\n * Write the input to console.\r\n */\r\n String s = \"\";\r\n for (int i = 3; i < msg.length - 1; i++) {\r\n s += msg[i] + \" \";\r\n }\r\n s += msg[msg.length - 1];\r\n Console.writeLine(user + \": \" + s);\r\n \r\n if (msg[3].equals(\"\") || msg[3].charAt(0) != cmd.getFlag()) {\r\n //Do some moderator functions if possible\r\n if (db.getUserLevel(user).getLevel() <= UserLevel.SUBSCRIBER.getLevel() && (canMod || db.getUserLevel(nick).getLevel() == UserLevel.OWNER.getLevel())) {\r\n String[] split = s.split(\" \");\r\n if (capsFilter && TwitchFilters.capsFilter(s, capsMinLength, capsTolerance) ) {\r\n purge(user, user + \", http://i.imgur.com/QApFb.jpg\");\r\n }\r\n else if (linksFilter && TwitchFilters.urlFilter(split)) {\r\n purge(user, user + \", links are disabled in this chat.\");\r\n }\r\n else if (bannedWordsFilter && TwitchFilters.bannedWordsFilter(split, TEST_WORDS)) {\r\n purge(user, user + \", HEEEEEEEY YOU SAID THE SECRET WORD!\");\r\n }\r\n else if (!emotes.isEmpty() && TwitchFilters.emotesFilter(split, emotes, emoteTolerance)) {\r\n purge(user, user + \", I have nothing witty to say here.\");\r\n }\r\n else if (symbolFilter && TwitchFilters.symbolFilter(s, symbolTolerance)) {\r\n purge(user, user + \" the spam is real.\");\r\n }\r\n }\r\n else if (user.equals(\"Jtv\") && message.contains(\"moderators of this room\")) {\r\n String mods = \"\";\r\n for (int i = 9; i < msg.length; i++) {\r\n mods += capName(msg[i]).replace(\",\", \"\") + \" \";\r\n }\r\n db.initMod(mods.trim().split(\" \"));\r\n canMod = db.getUserLevel(capName(nick)).getLevel() >= UserLevel.MODERATOR.getLevel();\r\n }\r\n return;\r\n }\r\n \r\n msg[3] = msg[3].substring(1);\r\n if (msg[3].equals(Commands.ADD_COMMAND)) {\r\n if (db.getUserLevel(user).getLevel() < UserLevel.MODERATOR.getLevel()) {\r\n sendMessage(user + \" does not have permission to add commands.\");\r\n return;\r\n }\r\n String com = \"\";\r\n try {\r\n if (msg.length >= 5 && msg[4].charAt(0) == cmd.getFlag()) {\r\n\t\t\tint i;\r\n\t\t\tfor (i = 5; i < msg.length; i++) {\r\n com += msg[i] + \" \";\r\n\t\t\t}\r\n sendMessage(cmd.addCommand(msg[4].replace(\"\" + cmd.getFlag(), \"\"), com.trim()));\r\n }\r\n else {\r\n sendMessage(\"Invalid parameters for !addcommand. Syntax is !addcommand ![Command Name] [Message]\");\r\n }\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n sendMessage(\"Invalid parameters for !addcommand. Syntax is !addcommand ![Command Name] [Message]\");\r\n }\r\n }\r\n else if (msg[3].equals(Commands.ADD_TIMER)) {\r\n if (db.getUserLevel(user).getLevel() < UserLevel.MODERATOR.getLevel()) {\r\n sendMessage(user + \" does not have permission to add timers.\");\r\n return;\r\n }\r\n try {\r\n String name = msg[4];\r\n int delay = Integer.parseInt(msg[5]);\r\n String output = \"\";\r\n for (int i = 6; i < msg.length; i++) {\r\n output += msg[i] + \" \";\r\n }\r\n sendMessage(tc.addCommand(name, output, delay));\r\n }\r\n catch (ArrayIndexOutOfBoundsException | NumberFormatException e) {\r\n sendMessage(\"Invalid parameters for !addtimer. Syntax is !addtimer [Name of timer] [Delay in minutes] [Message]\");\r\n }\r\n }\r\n else if (msg[3].equals(Commands.EDIT_COMMAND)) {\r\n\r\n }\r\n else if (msg[3].equals(Commands.EDIT_TIMER)) {\r\n\r\n }\r\n else if (msg[3].equals(Commands.REMOVE_COMMAND)) {\r\n try {\r\n s = cmd.removeCommand(msg[4], db.getUserLevel(user)).replace(Commands.USER_FLAG, user);\r\n sendMessage(s);\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n sendMessage(\"Invalid parameters for !removecommand. Syntax is !rmcmd ![Command Name]\");\r\n }\r\n }\r\n else if (msg[3].equals(Commands.REMOVE_TIMER)) {\r\n try {\r\n sendMessage(tc.removeCommand(msg[4]));\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n sendMessage(\"Invalid parameters for !removetimer. Syntax is !rmcmd [Name of timer]\");\r\n }\r\n }\r\n else if (msg[3].equals(Commands.DISABLE_TIMERS)) {\r\n tc.stopCommands();\r\n sendMessage(\"Timers have been disabled\");\r\n }\r\n else if (msg[3].equals(Commands.START_TIMERS)) {\r\n if (tc.isRunning()) {\r\n sendMessage(\"Timers are already running.\");\r\n }\r\n else {\r\n tc.startCommands();\r\n sendMessage(\"Timers have been started.\");\r\n }\t\r\n }\r\n else if (msg[3].equals(Commands.GREETING)) {\r\n try {\r\n switch (msg[4]) {\r\n case \"on\":\r\n case \"true\":\r\n case \"enable\":\r\n case \"enabled\":\r\n greetingOn = true;\r\n sendMessage(String.format(\"Greeting is set to %b\", greetingOn));\r\n break;\r\n case \"off\":\r\n case \"false\":\r\n case \"disable\":\r\n case \"disabled\":\r\n greetingOn = false;\r\n sendMessage(String.format(\"Greeting is set to %b\", greetingOn));\r\n break;\r\n case \"status\":\r\n sendMessage(String.format(\"Greeting is set to %b\", greetingOn));\r\n break;\r\n case \"message\":\r\n sendMessage(greeting);\r\n break;\r\n case \"test\":\r\n sendMessage(String.format(greeting, user));\r\n break;\r\n }\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n sendMessage(\"Invalid parameters for !greeting. Syntax is !greeting [on,true,enabled,off,false,disabled,status,message]\");\r\n }\r\n }\r\n else if (msg[3].equals(Commands.LINKS)) {\r\n if (db.getUserLevel(user).getLevel() < UserLevel.MODERATOR.getLevel()) return;\r\n try {\r\n switch(msg[4]) {\r\n case \"on\":\r\n case \"true\":\r\n case \"enable\":\r\n case \"enabled\":\r\n sendMessage(\"Links are enabled in this channel.\");\r\n linksFilter = false;\r\n break;\r\n case \"off\":\r\n case \"false\":\r\n case \"disable\":\r\n case \"disabled\":\r\n sendMessage(\"Links are disabled in this channel.\");\r\n linksFilter = true;\r\n break;\r\n case \"status\":\r\n sendMessage(String.format(\"Links are set to %b\", linksFilter));\r\n break;\r\n default:\r\n sendMessage(\"Invalid parameters for !links.\");\r\n break;\r\n }\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n sendMessage(\"Invalid parameters for !links.\");\r\n }\r\n }\r\n /* Figure out how to implement this cleaner */\r\n else if (msg[3].equals(\"lookup\")) {\r\n String lookup = capName(msg[5]);\r\n sendMessage(String.format(\"User: %s %s: %d User Level: %s Is a regular: %b\",\r\n lookup, currency, db.getPoints(lookup), db.getUserLevel(lookup).toString().toLowerCase(), db.isRegular(lookup)));\r\n }\r\n else if (msg[3].equals(\"set\")) {\r\n if (db.getUserLevel(user).getLevel() <= UserLevel.MODERATOR.getLevel() && !user.equals(\"Genodragon_sc\")) return;\r\n try {\r\n switch (msg[4]) {\r\n case \"level\":\r\n db.setUserLevel(capName(msg[6]), UserLevel.valueOf(msg[7].toUpperCase()));\r\n ObjectIO.writeObjectToFile(dbPath, db);\r\n break;\r\n case \"points\":\r\n db.changePoints(capName(msg[6]), Integer.parseInt(msg[7]));\r\n break;\r\n case \"regular\":\r\n db.setRegular(msg[6], Boolean.parseBoolean(capName(msg[7]))); //Boolean parse doesn't work\r\n break;\r\n default:\r\n throw new Exception(\"WHOS THAT POKEMON\");\r\n }\r\n }\r\n catch (Exception e) {\r\n sendMessage(\"Invalid parameters for set.\");\r\n }\r\n }\r\n else if (msg[3].equals(\"die\")) {\r\n sendMessage(\"T_T Goodbye.\");\r\n disconnect();\r\n }\r\n else if (msg[3].equals(Commands.IS_FOLLOWER)) {\r\n if (db.getUserLevel(user).getLevel() < UserLevel.ADMIN.getLevel()) return;\r\n try {\r\n if (TwitchAPI.isFollower(msg[4], admin)) {\r\n sendMessage(capName(msg[4]) + \" is a follower of \" + admin + \".\");\r\n }\r\n else {\r\n sendMessage(capName(msg[4]) + \" is not a follower of \" + admin + \".\");\r\n }\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n sendMessage(\"You goofed didn't you?\");\r\n }\r\n }\r\n else if (msg[3].equals(Commands.IS_SUBSCRIBER)) {\r\n if (db.getUserLevel(user).getLevel() < UserLevel.ADMIN.getLevel()) return;\r\n try {\r\n if (TwitchAPI.isSubscriber(msg[4], admin)) {\r\n sendMessage(capName(msg[4]) + \" is a subscriber of \" + admin + \".\");\r\n }\r\n else {\r\n sendMessage(capName(msg[4]) + \" is not a subscriber of \" + admin + \".\");\r\n }\r\n }\r\n catch (ArrayIndexOutOfBoundsException e) {\r\n sendMessage(\"You goofed didn't you?\");\r\n }\r\n }\r\n else if (msg[3].equals(\"sudo\")) {\r\n if (db.getUserLevel(user).getLevel() <= UserLevel.MODERATOR.getLevel() || !user.equals(\"Genodragon_sc\")) return;\r\n String com = \"\";\r\n for (int i = 4; i < msg.length; i++) {\r\n com += msg[i] + \" \";\r\n }\r\n sendMessage(com.trim());\r\n }\r\n else if (cmd.contains(msg[3])) {\r\n String output = cmd.getCommand(msg[3]);\r\n output = output.replace(Commands.USER_FLAG, user);\r\n sendMessage(output);\t\r\n }\r\n }\r\n else if (msg[1].equals(\"JOIN\")) {\r\n addUserToViewerList(user);\r\n if (greetingOn) {\r\n String greet = greeting.replace(Commands.USER_FLAG, user);\r\n sendMessage(greet);\r\n }\r\n Console.writeLine(msg[1] + \" \" + user);\r\n }\r\n else if (msg[1].equals(\"PART\")) {\r\n removeUserFromViewerList(user);\r\n Console.writeLine(msg[1] + \" \" + user);\r\n }\r\n else if (msg[0].equals(\"PING\")) {\r\n sendRaw(\"PONG \" + msg[1]);\r\n }\r\n }", "public void OnMessageReceived(String msg);", "private synchronized String processMessage(Socket clientSocket, PrintWriter printWriter, String rawMessage)\n {\n Hashtable<Server.TokenType,String> parsedMessage = Server.parseRawMessage(rawMessage);\n String result = \"OK\";\n\n switch (parsedMessage.get(Server.TokenType.ACTION).toUpperCase())\n {\n case \"REGISTER\":\n String rTopic = parsedMessage.get(Server.TokenType.TOPIC);\n if(clientTopicsTable.get(clientSocket).add(rTopic))\n {\n sendToClient(printWriter, \"OK\");\n //print on server\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] Client \" + clientSocket + \" REGISTER \" + rTopic);\n //write to log\n writeToLog(Server.LOG_LEVEL.INFO.toString(), \"Client \" + clientSocket + \" REGISTER \" + rTopic);\n }\n else\n {\n sendToClient(printWriter, \"ERROR\");\n //print on server\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] ERROR - Client \" + clientSocket + \" REGISTER to existing topic - \" + rTopic);\n //write to log\n writeToLog(Server.LOG_LEVEL.ERROR.toString(), \"Client \" + clientSocket + \" REGISTER to existing topic - \" + rTopic);\n }\n break;\n case \"LEAVE\":\n String lTopic = parsedMessage.get(Server.TokenType.TOPIC);\n if(clientTopicsTable.get(clientSocket).remove(lTopic))\n {\n sendToClient(printWriter, \"OK\");\n //print on server\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] Client \" + clientSocket + \" LEAVE \" + lTopic);\n //write to log\n writeToLog(Server.LOG_LEVEL.INFO.toString(), \"Client \" + clientSocket + \" LEAVE \" + lTopic);\n }\n else\n {\n sendToClient(printWriter, \"ERROR\");\n\n //print on server\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] ERROR - Client \" + clientSocket + \" LEAVE an unregistered topic - \" + lTopic);\n //write to log\n writeToLog(Server.LOG_LEVEL.ERROR.toString(), \"Client \" + clientSocket + \" LEAVE an unregistered topic - \" + lTopic);\n }\n break;\n case \"SEND\":\n String topic = parsedMessage.get(Server.TokenType.TOPIC);\n String content = parsedMessage.get(Server.TokenType.CONTENT);\n\n //print on server\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] Client \" + clientSocket + \" sent \" + content + \" on topic \" + topic);\n //write to log\n writeToLog(Server.LOG_LEVEL.INFO.toString(), \"Client \" + clientSocket + \" sent \" + content + \" on topic \" + topic);\n String ipPort = clientSocket.getInetAddress() + \":\" + clientSocket.getPort();\n //Send the message to the subscribers\n clientTopicsTable.forEach((client, topics) ->\n {\n if (topics.contains(topic)) {\n try {\n PrintWriter pw = new PrintWriter(client.getOutputStream());\n String output = \"( \" + topic + \" ) \" + ipPort + \" \" + Server.getCurrentTimeStamp() + \" - \" + content;\n\n //send to client\n sendToClient(pw, output);\n\n //print on server\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] FORWARD ( \" + topic + \" ) \" + ipPort + \" \" + Server.getCurrentTimeStamp() + \" - \" + content + \" to client - \" + client);\n //write to log\n writeToLog(Server.LOG_LEVEL.INFO.toString(), \"FORWARD ( \" + topic + \" ) \" + ipPort + \" \" + Server.getCurrentTimeStamp() + \" - \" + content + \" to client - \" + client);\n } catch (IOException e) {\n System.out.println(\"Error occurred while sending message to client \" + client);\n }\n }\n });\n break;\n case \"CLOSE\":\n System.out.println(\"[\" + Server.getCurrentDateTimeStamp() + \"] CLOSE connection with \" + clientSocket);\n //write to log\n writeToLog(Server.LOG_LEVEL.INFO.toString(), \"CLOSE connection with \" + clientSocket);\n this.stop = true;\n result = \"CLOSE\";\n break;\n }\n return result;\n }", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "public void push(String message) throws IOException;", "@Override\n public void onMessageReceived(String from, Bundle data) {\n\n Log.d(TAG, data.toString());\n Log.d(TAG, from);\n int typePush = -1;\n try {\n typePush = Integer.parseInt(data.getString(FIELD_PUSH_TYPE));\n } catch (NumberFormatException ex) {\n Log.e(TAG, ex.getMessage());\n }\n if (typePush == PUSH_TYPE_CHAT) {\n processChatNotification(data);\n } else {\n showNotificationCourse(data);\n }\n\n }", "private void handleMessageFromServer(String theMessage) {\n //Some contants that will come from the server in the message itself:\n final String DIRECTION_JSON_KEY = \"DIRECTION\";\n final String FINAL_PRICE_JSON_KEY = \"FINAL_PRICE\";\n final String THE_FOLLOW_JSON_KEY = \"THEFOLLOW\";\n //and those are the possible values for the 'direction' key\n final String UP_VALUE = \"UP\";\n final String DOWN_VALUE = \"DOWN\";\n\n if(!isJson(theMessage)){\n handleSimpleMessageFromServer(theMessage);\n }\n\n\n //Let's start by parsing the message\n try {\n JSONObject theMessageInJson = new JSONObject(theMessage);\n String direction = theMessageInJson.getString(DIRECTION_JSON_KEY);\n double finalPrice = theMessageInJson.getDouble(FINAL_PRICE_JSON_KEY);\n String theFollowString = theMessageInJson.getString(THE_FOLLOW_JSON_KEY);\n Gson gson = new GsonBuilder().registerTypeAdapter(Date.class, new gsonUTCdateAdapter()).create();\n Follow theFollow = gson.fromJson(theFollowString, Follow.class);\n double [] followParams=theFollow.getFollowParams();\n double lowValue=followParams[0];\n double highValue=followParams[1];\n\n\n NotificationManager mNotificationManager =\n (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);\n\n Intent launchSecurityShow=new Intent(this, SecurityPresent.class);\n launchSecurityShow.putExtra(SecurityPresent.THE_SECURITY,theFollow.getTheSecurity());\n launchSecurityShow.putExtra(SecurityPresent.MODE,SecurityPresent.NOTIFIED);\n //launchSecurityShow.putExtra(SecurityPresent.THE_FOLLOW_AND_STATUS,theFollow);\n PendingIntent contentIntent =\n PendingIntent.getActivity(this, 0, launchSecurityShow, PendingIntent.FLAG_ONE_SHOT);\n FollowAndStatus theFollowWhichWasReceived=new FollowAndStatus();\n theFollowWhichWasReceived.setFollow(theFollow);\n ContentValues valuesToUpdate=new ContentValues();\n valuesToUpdate.put(FollowEntry.COLUMN_FINAL_PRICE,finalPrice);\n Timestamp now=new Timestamp(System.currentTimeMillis());\n valuesToUpdate.put(FollowEntry.COLUMN_DATE_EXPIRY,now.toString());\n valuesToUpdate.put(FollowEntry.COLUMN_STATUS,FollowAndStatus.STATUS_NOTIFIED);\n //TODO: take the following off the main thread\n UtilityForDatabase.updateFollowInDatabase(this,theFollowWhichWasReceived,valuesToUpdate);\n\n int drawableArrow= direction.equals(UP_VALUE)?R.drawable.uparrow:R.drawable.downarrow;\n int iconArrow=direction.equals(UP_VALUE)?R.drawable.ic_stat_uparrow:R.drawable.ic_stat_downarrow;\n int notificationColor=direction.equals(UP_VALUE)?Color.GREEN:Color.RED;\n\n\n String title=theFollow.getTheSecurity().getName()+\" IS \"+direction+\"!\";\n String content=title+\" at \"+finalPrice+\". You wanted me to notify you at (\"+lowValue+','+highValue+\")\";\n\n // Notifications using both a large and a small icon (which yours should!) need the large\n // icon as a bitmap. So we need to create that here from the resource ID, and pass the\n // object along in our notification builder. Generally, you want to use the app icon as the\n // small icon, so that users understand what app is triggering this notification.\n Bitmap largeIcon = BitmapFactory.decodeResource(getResources(), drawableArrow);\n NotificationCompat.Builder mBuilder =\n new NotificationCompat.Builder(this)\n .setSmallIcon(iconArrow)\n .setLargeIcon(largeIcon)\n .setContentTitle(title)\n .setStyle(new NotificationCompat.BigTextStyle().bigText(content))\n .setContentText(content)\n .setLights(notificationColor, 1000, 1000)\n .setPriority(NotificationCompat.PRIORITY_HIGH);\n mBuilder.setContentIntent(contentIntent);\n mNotificationManager.notify(FOLLOW_NOTIFICATION_ID, mBuilder.build());\n } catch(JSONException e){}\n }", "public void testParsing() throws Exception {\n Message message = new Message(\"8=FIX.4.2\\0019=40\\00135=A\\001\"\n + \"98=0\\001384=2\\001372=D\\001385=R\\001372=8\\001385=S\\00110=96\\001\",\n DataDictionaryTest.getDictionary());\n \n assertHeaderField(message, \"FIX.4.2\", BeginString.FIELD);\n assertHeaderField(message, \"40\", BodyLength.FIELD);\n assertEquals(\"wrong field value\", 40, message.getHeader().getInt(BodyLength.FIELD));\n assertHeaderField(message, \"A\", MsgType.FIELD);\n assertBodyField(message, \"0\", EncryptMethod.FIELD);\n assertTrailerField(message, \"96\", CheckSum.FIELD);\n NoMsgTypes valueMessageType = new Logon.NoMsgTypes();\n message.getGroup(1, valueMessageType);\n assertEquals(\"wrong value\", \"D\", valueMessageType.getString(RefMsgType.FIELD));\n assertEquals(\"wrong value\", \"R\", valueMessageType.getString(MsgDirection.FIELD));\n message.getGroup(2, valueMessageType);\n assertEquals(\"wrong value\", \"8\", valueMessageType.getString(RefMsgType.FIELD));\n assertEquals(\"wrong value\", \"S\", valueMessageType.getString(MsgDirection.FIELD));\n }", "@Override\n\tpublic void onMessage( String message ) {\n\t\tlog.info(\"received: \" + message);\n\t}", "java.lang.String getUserMessage();", "@Override\n public void handle(Message<JsonObject> message) {\n logger.info(\"Handling event conjoiner.simplevertical\");\n\n // Start by deserializing the message back into a Object\n try {\n TransponderMessage msg = new TransponderMessage().messageToObject(message);\n logger.info(\"Decoded message: \" + msg.toJsonString());\n\n } catch (DataFormatException e) {\n e.printStackTrace();\n logger.warning(\"Unable to deserialize this\");\n }\n\n }", "@Override\n public void handleMessage(Message message) {}", "public void handleStringMessage(String message) {\n\n }", "public static void parseMessage(String json, Handler handler) throws InvalidProtocolBufferException {\n CommerceProtos.Message.Builder builder = CommerceProtos.Message.newBuilder();\n JsonFormat.parser().merge(json, builder);\n handleMessage(builder.build(), handler);\n }", "public static Map<String, String> messageToMap(Message msg) {\n Map<String, String> map = new HashMap<>();\n if (msg == null) return map;\n\n if (msg.fixedHeader().messageType() == MqttMessageType.PUBLISH) {\n MqttPublishVariableHeader variableHeader = (MqttPublishVariableHeader) msg.variableHeader();\n MqttPublishPayload payload = (MqttPublishPayload) msg.payload();\n map.put(\"type\", String.valueOf(MqttMessageType.PUBLISH.value()));\n map.put(\"retain\", BooleanUtils.toString(msg.fixedHeader().retain(), \"1\", \"0\"));\n map.put(\"qos\", String.valueOf(msg.fixedHeader().qos().value()));\n map.put(\"dup\", BooleanUtils.toString(msg.fixedHeader().dup(), \"1\", \"0\"));\n map.put(\"version\", msg.additionalHeader().version().toString());\n if (!msg.fixedHeader().retain()) map.put(\"clientId\", msg.additionalHeader().clientId());\n map.put(\"userName\", msg.additionalHeader().userName());\n map.put(\"topicName\", variableHeader.topicName());\n if (!msg.fixedHeader().retain()) map.put(\"packetId\", String.valueOf(variableHeader.packetId()));\n if (payload != null && payload.bytes() != null && payload.bytes().length > 0) try {\n map.put(\"payload\", new String(payload.bytes(), \"ISO-8859-1\"));\n } catch (UnsupportedEncodingException ignore) {\n }\n return map;\n } else if (msg.fixedHeader().messageType() == MqttMessageType.PUBREL) {\n MqttPacketIdVariableHeader variableHeader = (MqttPacketIdVariableHeader) msg.variableHeader();\n map.put(\"type\", String.valueOf(MqttMessageType.PUBREL.value()));\n map.put(\"version\", msg.additionalHeader().version().toString());\n map.put(\"clientId\", msg.additionalHeader().clientId());\n map.put(\"userName\", msg.additionalHeader().userName());\n map.put(\"packetId\", String.valueOf(variableHeader.packetId()));\n return map;\n } else {\n throw new IllegalArgumentException(\"Invalid in-flight MQTT message type: \" + msg.fixedHeader().messageType());\n }\n }", "public void processMessage(String message);", "public static Message parse(String messageData)\n {\n // Split by new line\n String[] messageParts = messageData.split(\"\\n\");\n\n // Assume first line is the action\n int action = Integer.parseInt(messageParts[0]);\n\n // And second line is the client\n int clientID = Integer.parseInt(messageParts[1]);\n\n // Set default for recipient\n int recipient = -1;\n\n // If the 3rd line is not a new line\n if(messageParts[2] != \"\\n\") {\n // We assume it's the recipient ID\n recipient = Integer.parseInt(messageParts[2]);\n }\n\n // The last part is always the message body\n String body = messageParts[messageParts.length - 1];\n return new Message(action, clientID, recipient, body);\n }", "@Override\r\n public void handleMessage(Message msg) {\n Log.d(\"Guardado en el servidor\",\"\"+msg.obj.toString());\r\n if(msg.obj.toString().length() > 1){\r\n\r\n Log.d(\"VALOR DEL SERVER\",\"\"+(String)msg.obj);\r\n\r\n }else{\r\n\r\n }\r\n\r\n }", "public synchronized boolean process(Connection con, String msg) {\n\t\tJsonObject receivedMSG;\n\n\t\ttry {\n\t\t\treceivedMSG = parser.parse(msg).getAsJsonObject();\n\t\t\t// System.out.println(\"string to json \" + receivedMSG);\n\t\t} catch (JsonSyntaxException e) {\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\t// Check the integrity of the message\n\t\t\tif (!checkMsgIntegrity(con, receivedMSG)) {\n\t\t\t\tcon.closeCon();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString message = receivedMSG.get(\"command\").getAsString();\n\t\t\tswitch (message) {\n\t\t\tcase REGISTER:\n\t\t\t\treturn !register(con, receivedMSG);\n\t\t\tcase LOGIN:\n\t\t\t\treturn !login(con, receivedMSG);\n\t\t\tcase AUTHENTICATE:\n\t\t\t\treturn !auth(con, receivedMSG);\n\t\t\tcase INVALID_MESSAGE:\n\t\t\t\tcon.closeCon();\n\t\t\t\treturn false;\n\t\t\tcase SERVER_ANNOUNCE:\n\t\t\t\treturn !announce(con, receivedMSG);\n\t\t\tcase LOGOUT:\n\t\t\t\tcon.closeCon();\n\t\t\t\treturn false;\n\t\t\tcase LOCK_REQUEST:\n\t\t\t\treturn !lockRequest(con, receivedMSG);\n\t\t\tcase LOCK_DENIED:\n\t\t\t\treturn !lockProcess(con, receivedMSG);\n\t\t\tcase LOCK_ALLOWED:\n\t\t\t\treturn !lockProcess(con, receivedMSG);\n\t\t\tcase ACTIVITY_BROADCAST:\n\t\t\t\treturn !broadcast(con, receivedMSG);\n\t\t\tcase ACTIVITY_MESSAGE:\n\t\t\t\treturn !broadcast(con, receivedMSG);\n\t\t\tcase AUTHENTICATION_FAIL:\n\t\t\t\tcon.closeCon();\n\t\t\t\treturn false;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t\tInvalidMessage invalid = new InvalidMessage();\n\t\t\tinvalid.setInfo(\"Not enough info in message,\" + \" possibly no authenticated user in ACTIVITY_BROADCAST ?\");\n\t\t\tcon.writeMsg(invalid.toJsonString());\n\t\t}\n\t\treturn false;\n\t}", "public void decodeMessage() {\n StringBuilder decoded = new StringBuilder();\n\n for (int i = 0; i < message.length(); i += 3) {\n if (message.charAt(i) == message.charAt(i + 1)) {\n decoded.append(message.charAt(i));\n } else if (message.charAt(i) == message.charAt(i + 2)) {\n decoded.append(message.charAt(i));\n } else {\n decoded.append(message.charAt(i + 1));\n }\n }\n\n message = decoded;\n }", "Message pull();", "private void processCustomMessage(Context context, Bundle bundle) {\n//\t\tif (MainActivity.isForeground) {\n\t\t\tString message = bundle.getString(JPushInterface.EXTRA_MESSAGE);\n\t\t\tString extras = bundle.getString(JPushInterface.EXTRA_EXTRA);\n//\t\t\tIntent msgIntent = new Intent(MainActivity.MESSAGE_RECEIVED_ACTION);\n//\t\t\tmsgIntent.putExtra(MainActivity.KEY_MESSAGE, message);\n//\t\t\tif (!ExampleUtil.isEmpty(extras)) {\n\t\t\t\ttry {\n\t\t\t\t\tJSONObject extraJson = new JSONObject(extras);\n//\t\t\t\t\tif (extraJson.length() > 0) {\n//\t\t\t\t\t\tmsgIntent.putExtra(MainActivity.KEY_EXTRAS, extras);\n//\t\t\t\t\t}\n\t\t\t\t} catch (JSONException e) {\n\n\t\t\t\t}\n\n//\t\t\t}\n//\t\t\tLocalBroadcastManager.getInstance(context).sendBroadcast(msgIntent);\n//\t\t}\n\t}", "@Override\n public void channelRead0(ChannelHandlerContext ctx, String request) throws Exception {\n final JsonObject json = (JsonObject) parser.parse(request);\n if(json.has(\"operation\") && ((json.get(\"operation\").getAsString()).equals(\"data\"))) {\n final DataToProcess obj = GSON.fromJson(json, DataToProcess.class);\n QueuerManager.getInstance().pushPacket(ctx.channel().id().asShortText(), obj);\n// System.out.println(\"REC Data Received \" + ctx.channel().id().asShortText());\n }\n else {\n// System.out.println(\"REC hello packet\");\n }\n }", "void consumeMessage(String message);", "public void handleMessageFromClient(Object msg) {\n\n }", "@Override\n\tpublic void handleMsg(String in) {\n\n\t}", "@OnMessage\n public void onMessage(Session session, String jsonStr) throws IOException, EncodeException {\n //TODO: add send message.\n // See how to parse JSON strings into Java objects: https://www.baeldung.com/fastjson\n Message newMessage = JSON.parseObject(jsonStr, Message.class);\n\n System.out.println(\"WebSocketChatServer - Message \" + jsonStr + \" received from client with username \" + newMessage.getUsername() + \", message \" + newMessage.getMsg() + \", type \" + newMessage.getType() + \", onlineCount \" + newMessage.getOnlineCount() + \" and session \" + session);\n\n sendMessageToAll(newMessage);\n }", "@Override\r\n public void handleMessage(Message msg) {\n }", "private void handlemsg(String[] tokens) throws IOException {\n String sendto = tokens[1];\n String body = tokens[2];\n boolean istopic = (sendto.charAt(0) == '#'); //if hash then mssg is being sent to group\n List<ServerHelper> helperList = server.getList();\n for (ServerHelper helper : helperList) {\n if (istopic) { //if group mssg\n if (helper.isMember(sendto)) {\n helper.notify(\"msg \"+login + \" in \" + sendto + \":\" + body + \"\\n\");\n\n }\n } else { //if individual msg\n if (sendto.equalsIgnoreCase(helper.login)) {\n helper.notify(\"msg \"+login + \" : \" + body + \"\\n\");\n }\n }\n }\n }", "@OnMessage\n\tpublic void handleMessage(String message, Session session) {\n\t\tSystem.out.println(\"Received: \" + message);\n\n\t\ttry{\n\t\t\t// We always expect a single json object - all our commands are routed in via this mechanism, with each command having a different root json object name\n\t\t\tJsonReader jsonReader = Json.createReader(new StringReader(message));\n\t\t\tJsonObject o = jsonReader.readObject();\n\t\t\t\n\t\t\t// Every command should have an auth value on it...\n\t\t\tString auth = o.getString(\"auth\");\n\t\t\t//System.out.println(\"Auth is \" + auth);\n\t\t\tif (!sessionHandler.validAccounts.contains(auth))\n\t\t\t{\n\t\t\t\tsession.getBasicRemote().sendText(\"{\\\"noauth\\\":true}\");\n\t\t\t\tthrow new Exception(\"Invalid auth\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t// See what command the client has sent me - the name of the object denotes the command\n\t\t\tJsonObject console = o.getJsonObject(\"console\");\n\t\t\tif (null != console)\n\t\t\t{\n\t\t\t\tConsoleInfo ci = new ConsoleInfo();\n\t\t\t\tci.name = console.getString(\"name\");\n\t\t\t\tsessionHandler.addConsoleInfo(session, ci);\n\t\t\t}\t\t\t\n\t\t\tJsonObject reset = o.getJsonObject(\"reset\");\n\t\t\tif (null != reset)\n\t\t\t{\n\t\t\t\tif (reset.getString(\"type\").equals(\"full\"))\n\t\t\t\t{\n\t\t\t\t\t// Clear out the registered devices\n\t\t\t\t\tDevices.d.removeAll();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tDevices.d.remove(reset.getString(\"number\"));\n\t\t\t\t}\n\t\t\t}\n\t\t\tJsonObject deleteaudio = o.getJsonObject(\"deleteaudio\");\n\t\t\tif (null != deleteaudio)\n\t\t\t{\n\t\t\t\t// remove this audio\n\t\t\t\tAudios.a.remove(deleteaudio.getString(\"name\"));\n\t\t\t}\n\t\t\tJsonObject addaudiofolder = o.getJsonObject(\"addfolder\");\n\t\t\tif (null != addaudiofolder)\n\t\t\t{\n\t\t\t\t// Create a folder on disk\n\t\t String folder = addaudiofolder.getString(\"folder\");\n\t\t String newName = addaudiofolder.getString(\"name\");\n\t\t File uploads = new File(Settings.s.uploadDiskPath + \"/\" + (folder.length()==0?\"\" : folder + \"/\") + newName);\n\t\t // Prevent traversals\n\t\t if (!uploads.getParentFile().toPath().startsWith(new File(Settings.s.uploadDiskPath).toPath()))\n\t\t {\n\t\t \t// Naughty!\n\t\t \tthrow new ServletException(\"Cannot save to \" + uploads.getParentFile().toPath()); \t\n\t\t }\n\t\t // Create the folder if necessary\n\t\t if (!uploads.exists())\n\t\t {\n\t\t \tuploads.mkdirs();\n\t\t }\n\t\t // And tell everyone about it...\n\t\t\t\tAudios.a.add(uploads.toString(), newName, folder, true);\n\t\t\t}\n\t\t\tJsonObject playaudio = o.getJsonObject(\"playaudio\");\n\t\t\tif (null != playaudio)\n\t\t\t{\n\t\t\t\t// Play this audio to the listed devices\n\t\t\t\tString audio = playaudio.getString(\"audio\");\n\t\t\t\tJsonArray devices = playaudio.getJsonArray(\"devices\");\n\t\t\t\tAudio a = Audios.a.get(audio);\n\t\t\t\tif (null != a)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// TODO - pass the array to Plivo instead of looping here, as I think the play API can take an array...\n\t\t\t\t\tfor (JsonValue device : devices)\n\t\t\t\t\t{\n\t\t\t\t\t\tDevice d = Devices.d.get(device.toString());\n\t\t\t\t\t\t// Is this a folder? If so, pick a random child audio, preferring one that this device has not had\n\t\t\t\t\t\tif (a.isFolder)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ta = Audios.a.getRandomChild(a, d);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// We should be able to handle ringing calls here\n\t\t\t\t\t\tif (null != d)\n\t\t\t\t\t\t\td.MakeCall(a);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tJsonObject patch = o.getJsonObject(\"patch\");\n\t\t\tif (null != patch)\n\t\t\t{\n\t\t\t\t// Connect this active device to an idle device, or connect 2 idle devices together\n\t\t\t\tJsonArray devices = patch.getJsonArray(\"devices\");\n\t\t\t\tDevices.patch(devices.get(0).toString(), devices.get(1).toString());\n\t\t\t}\n\t\t\t\n\t\t\tJsonObject playtext = o.getJsonObject(\"playtext\");\n\t\t\tif (null != playtext)\n\t\t\t{\n\t\t\t\t// As playAudio, but for sms - and the text can be edited in the console and not saved...\n\t\t\t\tString text = playtext.getString(\"text\");\n\t\t\t\tString activetext = playtext.getString(\"activetext\");\n\t\t\t\tText atext = Texts.t.get(activetext);\n\t\t\t\tJsonArray devices = playtext.getJsonArray(\"devices\");\n\t\t\t\tif (!text.isEmpty())\n\t\t\t\t{\n\t\t\t\t\tfor (JsonValue device : devices)\n\t\t\t\t\t{\n\t\t\t\t\t\tDevice d = Devices.d.get(device.toString());\n\t\t\t\t\t\tif (null != d)\n\t\t\t\t\t\t\td.Sms(text, atext);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tJsonObject ignore = o.getJsonObject(\"ignore\");\n\t\t\tif (null != ignore)\n\t\t\t{\n\t\t\t\tJsonArray devices = ignore.getJsonArray(\"devices\");\n\t\t\t\tfor (JsonValue device : devices)\n\t\t\t\t{\n\t\t\t\t\tDevices.hangup(device.toString(),\"failed\",\"Request from console\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tJsonObject deletetext = o.getJsonObject(\"deletetext\");\n\t\t\tif (null != deletetext)\n\t\t\t{\n\t\t\t\tTexts.t.remove(deletetext.getString(\"name\"));\n\t\t\t}\n\t\t\t\n\t\t\tJsonObject savetext = o.getJsonObject(\"savetext\");\n\t\t\tif (null != savetext)\n\t\t\t{\n\t\t\t\tTexts.t.add(savetext.getString(\"label\"),savetext.getString(\"name\"));\n\t\t\t}\n\t\t\t\n\t\t\tJsonObject updatestatus = o.getJsonObject(\"updatestatus\");\n\t\t\tif (null != updatestatus)\n\t\t\t{\n\t\t\t\tDevices.updateStatus();\n\t\t\t}\n\t\t\tJsonObject savedevice = o.getJsonObject(\"savedevice\");\n\t\t\tif (null != savedevice)\n\t\t\t{\n\t\t\t\tDevices.updateName(savedevice.getString(\"number\"), savedevice.getString(\"name\"));\n\t\t\t}\n\t\t\tJsonObject saveprogress = o.getJsonObject(\"saveprogress\");\n\t\t\tif (null != saveprogress)\n\t\t\t{\n\t\t\t\tDevices.updateProgress(saveprogress.getString(\"number\"), saveprogress.getString(\"progress\"));\n\t\t\t}\n\n\t\t\t\n\t\t\tJsonObject setmessagesread = o.getJsonObject(\"setmessagesread\");\n\t\t\tif (null != setmessagesread)\n\t\t\t{\n\t\t\t\tDevices.setMessagesRead(setmessagesread.getString(\"number\"));\n\t\t\t}\n\t\t\tJsonObject savegoal = o.getJsonObject(\"savegoal\");\n\t\t\tif (null != savegoal)\n\t\t\t{\n\t\t\t\tGoals.add(savegoal);\n\t\t\t}\n\t\t\tJsonObject deletegoal = o.getJsonObject(\"deletegoal\");\n\t\t\tif (null != deletegoal)\n\t\t\t{\n\t\t\t\tGoals.remove(deletegoal.getString(\"name\"));\n\t\t\t}\n\t\t\tJsonObject uncue = o.getJsonObject(\"uncue\");\n\t\t\tif (null != uncue)\n\t\t\t{\n\t\t\t\tDevices.uncue(uncue.getString(\"number\"));\n\t\t\t}\n\t\t\tJsonObject register = o.getJsonObject(\"register\");\n\t\t\tif (null != register)\n\t\t\t{\n\t\t\t\tDevices.d.add(register.getString(\"number\"),\"console\");\n\t\t\t}\n\t\t\t\n\t\t\t// IVR commands from the console\t\t\t\n\t\t\tJsonObject saveivrstep = o.getJsonObject(\"saveivrstep\");\n\t\t\tif (null != saveivrstep)\n\t\t\t{\n\t\t\t\tIvrSteps.i.add(saveivrstep).saveToDisk();\n\t\t\t}\n\t\t\tJsonObject deleteivrstep = o.getJsonObject(\"deleteivrstep\");\n\t\t\tif (null != deleteivrstep)\n\t\t\t{\n\t\t\t\tIvrSteps.i.remove(deleteivrstep.getString(\"name\"));\n\t\t\t}\n\t\t\t// System-wide settings\n\t\t\tJsonObject setting = o.getJsonObject(\"setting\");\n\t\t\tif (null != setting)\n\t\t\t{\n\t\t\t\tSwitchboard.s.parseJson(setting);\n\t\t\t\tSwitchboard.s.persist();\n\t\t\t\t\n\t\t\t\t// Tell everyone about this...\n\t\t\t\tsessionHandler.Broadcast(o);\n\t\t\t\t\n\t\t\t\t// And do any heartbeat changes that I need\n\t\t\t\tSwitchboard.s.setupHeartbeat(true);\n\t\t\t}\n\t\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Failed to parse \" + message + \" with error \" + e.getMessage());\n\t\t}\n\t}", "void interpretMessage(final Message message);", "private static String getUser(String message) { return message.split(\"!\")[0].substring(1); }", "abstract void onMessage(byte[] message);", "static private void readMessage(){\r\n\t\t index = 0;\r\n\t\t code = 0;\r\n\t\t firstParam = \"\";\r\n\t\t secondParam = \"\";\r\n\t\t thirdParam = \"\";\r\n\t\t StringTokenizer st = new StringTokenizer(message, \"_\");\r\n\t\t String c = st.nextToken();\r\n\t\t index = Integer.parseInt(c);\r\n\t\t c = st.nextToken();\r\n\t\t code = Integer.parseInt(c);\r\n\t\t \t\tSystem.out.println(\"ClientMessageReader: il codice del messaggio ricevuto è \"+code);\r\n\t\t \t//\t||(code == Parameters.START_PLAYBACK) \r\n\t\t if((code == Parameters.START_OFF)|| (code == Parameters.FILES_RESPONSE))\r\n\t\t {\r\n\t\t\t firstParam = st.nextToken();\r\n\t\t }\r\n\t\t if(code == Parameters.CONFIRM_REQUEST)\r\n\t\t {\r\n\t\t\t firstParam = st.nextToken();\r\n\t\t\t \t\t\tSystem.out.println(\"CONFIRM_REQUEST firstParam: \"+firstParam);\r\n\t\t }\r\n\t }", "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n }", "public void handleMessage(Message message);", "@Override\n public void processMessage(int type, String receivedMsg) {\n }", "public void onMessage(String message) {\n\t\t\t\t\tCometMessage msg = deserializeMessage(message);\n\t\t\t\t\tif(msg != null)\n\t\t\t\t\t\tlistener.onMessage(msg);\n\t\t\t\t}", "protected void handleMessage(Message msg) {}", "private common.messages.KVMessage receiveMessage() throws IOException {\r\n\t\t\r\n\t\tint index = 0;\r\n\t\tbyte[] msgBytes = null, tmp = null;\r\n\t\tbyte[] bufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\r\n\t\t/* read first char from stream */\r\n\t\tbyte read = (byte) input.read();\t\r\n\t\tboolean reading = true;\r\n\t\t\r\n//\t\tlogger.info(\"First Char: \" + read);\r\n//\t\tCheck if stream is closed (read returns -1)\r\n//\t\tif (read == -1){\r\n//\t\t\tTextMessage msg = new TextMessage(\"\");\r\n//\t\t\treturn msg;\r\n//\t\t}\r\n\r\n\t\twhile(/*read != 13 && */ read != 10 && read !=-1 && reading) {/* CR, LF, error */\r\n\t\t\t/* if buffer filled, copy to msg array */\r\n\t\t\tif(index == BUFFER_SIZE) {\r\n\t\t\t\tif(msgBytes == null){\r\n\t\t\t\t\ttmp = new byte[BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, BUFFER_SIZE);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttmp = new byte[msgBytes.length + BUFFER_SIZE];\r\n\t\t\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length,\r\n\t\t\t\t\t\t\tBUFFER_SIZE);\r\n\t\t\t\t}\r\n\r\n\t\t\t\tmsgBytes = tmp;\r\n\t\t\t\tbufferBytes = new byte[BUFFER_SIZE];\r\n\t\t\t\tindex = 0;\r\n\t\t\t} \r\n\t\t\t\r\n\t\t\t/* only read valid characters, i.e. letters and constants */\r\n\t\t\tbufferBytes[index] = read;\r\n\t\t\tindex++;\r\n\t\t\t\r\n\t\t\t/* stop reading is DROP_SIZE is reached */\r\n\t\t\tif(msgBytes != null && msgBytes.length + index >= DROP_SIZE) {\r\n\t\t\t\treading = false;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t/* read next char from stream */\r\n\t\t\tread = (byte) input.read();\r\n\t\t}\r\n\t\t\r\n\t\tif(msgBytes == null){\r\n\t\t\ttmp = new byte[index];\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, 0, index);\r\n\t\t} else {\r\n\t\t\ttmp = new byte[msgBytes.length + index];\r\n\t\t\tSystem.arraycopy(msgBytes, 0, tmp, 0, msgBytes.length);\r\n\t\t\tSystem.arraycopy(bufferBytes, 0, tmp, msgBytes.length, index);\r\n\t\t}\r\n\t\t\r\n\t\tmsgBytes = tmp;\r\n\t\t\r\n\t\t/* build final String */\r\n\t\tcommon.messages.KVMessage msg = new common.messages.KVAdminMessage(msgBytes);\r\n\t\tlogger.debug(\"RECEIVE \\t<\" \r\n\t\t\t\t+ clientSocket.getInetAddress().getHostAddress() + \":\" \r\n\t\t\t\t+ clientSocket.getPort() + \">: '\" \r\n\t\t\t\t+ msg.getMsg().trim() + \"'\");\r\n\t\treturn msg;\r\n }", "@Override\n public void handleTextMessage(WebSocketSession session, TextMessage message) throws IOException{\n Map data = new Gson().fromJson(message.getPayload(),Map.class);\n\n // see what type of message\n final String type = getValueFromMessage(message,\"type\");\n\n switch (type){\n case \"name\":\n // payload from frontend\n String username = getValueFromMessage(message,\"payload\");\n\n log.info(\"receive name: \"+ username);\n\n // build message to json\n TextMessage retJson = setJson(\"name\", \"Hi, \"+username);\n\n session.sendMessage(retJson);\n }\n }", "private PeerProtocolMessage readNormalMessage() throws IOException{\r\n\t\tbyte[]length=new byte[4];\r\n\t\tthis.inputStream.read(length);\r\n\t\tint lengthInt=ToolKit.bigEndianBytesToInt(length, 0);\r\n\t\tbyte[]message= new byte[lengthInt];\r\n\t\tthis.inputStream.read(message);\r\n\t\tbyte[]result=new byte[length.length+message.length];\r\n\t\tSystem.arraycopy(length, 0, result, 0, length.length);\r\n\t\tSystem.arraycopy(message, 0, result, length.length, message.length);\r\n\t\treturn PeerProtocolMessage.parseMessage(result);\r\n\t}", "private void processMessage(Message message, JsonObject payload) {\n switch(message.getEvent()) {\n case \"registerCustomer\":\n registerCustomer(message, payload);\n break;\n case \"removeCustomer\":\n removeCustomer(message, payload);\n break;\n case \"requestTokensResponse\":\n requestTokensResponse(message, payload);\n break;\n case \"getCustomerByID\":\n getCustomerById(message, payload);\n break;\n case \"receiveReport\":\n receiveReport(message, payload);\n break;\n case \"requestRefundResponse\":\n requestRefundResponse(message, payload);\n break;\n default:\n System.out.println(\"Event not handled: \" + message.getEvent());\n }\n\n }", "void handleMessage(byte messageType, Object message);", "private static int parseMessage(String input) throws IOException {\n\t\tchar command = input.charAt(0);\n\t\tif (command == '@' || command == '?') {\n\t\t\tint delim = input.indexOf(\" \");\n\t\t\tString param = input.substring(1, delim > 0 ? delim : input.length());\n\t\t\tString addressee = param;\n\t\t\tString messageText = delim > 0 ? input.substring(delim + 1) : null;\n\n\t\t\tswitch (command) {\n\t\t\t\tcase '?': {\n\t\t\t\t\treturn checkStatus(param);\n\t\t\t\t}\n\t\t\t\tcase '@': {\n\t\t\t\t\tint n = param.indexOf('+');\n\t\t\t\t\tif (n != -1) {\n\t\t\t\t\t\taddressee = param.substring(0, n);\n\t\t\t\t\t\tUtils.printGroupErrorCodes(Utils.sendPostRequest(\"/group\", \"login\", login,\n\t\t\t\t\t\t\t\t\"password\", password, \"group_name\",\n\t\t\t\t\t\t\t\tparam.substring(0, n), \"param\", param.substring(n + 1)));\n\t\t\t\t\t}\n\t\t\t\t\treturn sendMessage(messageText, addressee);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sendMessage(input, null);\n\t}", "public synchronized StompFrame nextMessage() {\n String message = null;\n int messageEnd = this._stringBuf.indexOf(this._messageSeparator);\n if (messageEnd > -1) {\n message = this._stringBuf.substring(0, messageEnd + this._messageSeparator.length());\n this._stringBuf.delete(0, messageEnd+this._messageSeparator.length());\n }\n System.out.println(\"Server recieved the following message: \" + message);\n return constructMessage(message);\n }", "void onNewMessage(String message);", "@Override\n public void onMessageReceived(String from, Bundle data)\n {\n //FCM Handling start\n// Bundle bundle = data.getParcelable(\"notification\");\n// String message = bundle.getString(\"body\");\n //FCM Handling end\n\n String message = data.getString(\"message\");\n\n Log.d(TAG, \"From: \" + from);\n Log.d(TAG, \"Message: \" + message);\n\n try\n {\n GcmMessage gcmMessage = new Gson().fromJson(message, GcmMessage.class);\n\n ArrayList<String> eventTypes = gcmMessage.getEventTypes();\n\n for(String eventType : eventTypes)\n {\n GcmEventFactory.getEventCommand(eventType).run();\n }\n }\n catch(Exception e)\n {\n Log.d(TAG, \"Failed to process GCM message: \" + e.getMessage());\n }\n }", "@Override\n public void handleTextMessage(WebSocketSession client, TextMessage message) throws IOException {\n System.out.println(\"connecting\");\n String [] parseMessage = message.getPayload().split(\" \",2);\n boolean found = false;\n System.out.println(parseMessage[0]);\n System.out.println(parseMessage[0].equals(\"join\"));\n if (parseMessage[0].equals(\"join\")) {\n System.out.println(\"joinning\");\n for (Room room: rooms) {\n System.out.println(room.name);\n if (room.name.equals(parseMessage[1])) {\n System.out.println(\"room found\");\n room.addClient(client);\n\n found = true;\n }\n }\n if (found == false) {\n System.out.println(\"making new room\");\n Room newRoom = new Room(parseMessage[1], client);\n rooms.add(newRoom);\n }\n TextMessage newMessage;\n String json = \"{\\\"user\\\" : \\\"\" + parseMessage[0] + \"\\\", \\\"message\\\": \\\"\"\n + parseMessage[1] + \"\\\"}\";\n newMessage = new TextMessage(json);\n client.sendMessage(newMessage);\n\n }else{\n for (Room room: rooms) {\n if(room.clientInRoom(client))\n System.out.println(\"send message\");\n room.forwardMessage(message);\n }\n\n\n }\n }", "protected Object readMessage(InputStream inputStream) throws IOException{\n PushbackInputStream pin = (PushbackInputStream)inputStream;\n StringBuffer buf = new StringBuffer();\n \n boolean lineStartsWithPrompt = false;\n while (true){\n int b = pin.read();\n \n if (b < 0){\n if (buf.length() == 0) // Clean disconnection\n return null;\n break;\n }\n \n // End of line\n if (b == '\\n'){\n // FICS uses \\n\\r for an end-of-line marker!?\n // Eat the following '\\r', if there is one\n b = pin.read();\n if ((b > 0) && (b != '\\r'))\n pin.unread(b);\n \n // Ignore all-prompt lines\n if (lineStartsWithPrompt && (buf.length() == 0)){\n lineStartsWithPrompt = false;\n continue;\n }\n else\n break;\n }\n \n buf.append((char)b);\n \n // Filter out the prompt\n if (buf.toString().equals(\"fics% \")){\n buf.setLength(0);\n lineStartsWithPrompt = true;\n }\n }\n \n return buf.toString();\n }", "void onMessageReceived(Message message);", "@Override\n\tpublic void onMessage(Message message) {\n\t\tSystem.out.println(message.getBody());\n\t}", "public void onTextMessage(WebSocket websocket, String message) {\n if(message.contains(\"ticker\")) {\n List<Object> decodeMessage = GSON.fromJson(message, new TypeToken<List<Object>>() {}.getType());\n if (decodeMessage.size() == 4) {\n val ticker = decodeMessage.get(2);\n if (ticker instanceof String && ((String) ticker).equalsIgnoreCase(\"ticker\")) {\n Map<String, List<Object>> ticks = (Map<String, List<Object>>) decodeMessage.get(1);\n val ask = Double.parseDouble((String) ticks.get(\"a\").get(0));\n val bid = Double.parseDouble((String) ticks.get(\"b\").get(0));\n val krakenCurrencyPair = (String)decodeMessage.get(3);\n val currencyPair = CurrencyPair.of(krakenCurrencyPair.substring(0,3), krakenCurrencyPair.substring(4,7));\n outBoundBus.post(PriceUpdateEvent.of(BidAsk.of(bid,ask),currencyPair, Exchange.KRAKEN));\n }\n }\n\n }\n }", "private void onReceiveNewMessage(String topic, DataTransfer message) {\n Message msg = null;\n\n NotiAudio notiAudio = new NotiAudio();\n notiAudio.start();\n\n Object content = message.data;\n if (content instanceof String) {\n TextMessage textMessage = new TextMessage();\n textMessage.setContent(content.toString());\n msg = textMessage;\n } else if (content instanceof FileInfo) {\n FileMessage fileMessage = new FileMessage();\n fileMessage.setContent((FileInfo) content);\n msg = fileMessage;\n } else if (content instanceof Emoji) {\n EmojiMessage emojiMessage = new EmojiMessage();\n emojiMessage.setContent((Emoji) content);\n msg = emojiMessage;\n }\n\n if (msg != null) {\n msg.setFrom(message.name);\n msg.setTime(message.datetime);\n\n Messages messages = MessageManager.getInstance().append(topic, msg);\n boolean isGroup = messages.isGroup();\n\n boolean isCurrentChat = false;\n ChatBox chatBox = getCurrentChat();\n if (chatBox != null) {\n String current = chatBox.getTarget();\n if ((!isGroup && message.name.equals(current))\n || (isGroup && topic.equals(String.format(\"group/%s\", current)))) {\n isCurrentChat = true;\n }\n }\n\n ChatItem chatItem = getChatItemByMessages(messages);\n if (chatItem != null) {\n chatItem.setSeen(isCurrentChat);\n }\n\n if (isCurrentChat) {\n chatBox.addItem(msg);\n }\n\n updateChatItems(messages);\n }\n }", "protected Object extractMessage(Message message) {\n\t\tMessageConverter converter = getMessageConverter();\n\t\tif (converter != null) {\n\t\t\treturn converter.fromMessage(message);\n\t\t}\n\t\treturn message;\n\t}", "void mo80456b(Message message);", "private MqttPayload getPayload(String message) {\n MqttPayload payload = null;\n\n if (message.contains(\";\")) {\n try {\n String[] separatedMessage = message.split(\";\");\n\n if (separatedMessage.length >= 2) {\n payload = new MqttPayload(formatter.parse(separatedMessage[0]), separatedMessage[1]);\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n } else {\n payload = new MqttPayload(Calendar.getInstance().getTime(), message);\n }\n\n return payload;\n }", "void handleMessage(String message){\n\t\tString[] parts = message.split(\" \");\n\t\tboolean prevFor = false;\n//\t\tSystem.out.println(\"parts0 = \" + parts[0]);\n\t\tswitch(parts[0]){\n\t\t\tcase \"#quit\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#quit\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + \" \");\n\t\t\t\tbreak;\n\t\t\tcase \"#stop\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#stop\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + \" \");\n\t\t\t\tbreak;\n\t\t\tcase \"#close\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#close\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + \" \");\n\t\t\t\tbreak;\n\t\t\tcase \"#setport\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#setport\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + parts[1]);\n\t\t\t\tbreak;\n\t\t\tcase \"#getport\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#getport\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + \" \");\n\t\t\t\tbreak;\n\t\t\tcase \"#start\":\n\t\t\t\tclient.handleMessageFromClientUI(\"#start\" + \"---\" + client.getUID() + \"---\" + \" \" + \"---\" + \" \");\n\t\t\t\tbreak;\n\t\t\tcase \"#block\":\n\t\t\t\tif(parts.length>1){\n\t\t\t\t\tclient.handleMessageFromClientUI(\"#block\" + \"---\" + client.getUID() + \"---\" + parts[1] + \"---\" + \" \");\t//this sends the info to the server to check if it's a valid user_id\n\t\t\t\t}\n\t\t\t\telse System.out.println(\"You haven't specified a user to block!\");\n\t\t\t\tbreak;\n\t\t\tcase \"#unblock\":\n\t\t\t\tif(parts.length>0){\n\t\t\t\t\tclient.handleMessageFromClientUI(\"#unblock\" + \"---\" + client.getUID() + \"---\" + parts[1] + \"---\" + \" \");\t//this sends the info to the server to check if it's a valid user_id\n\t\t\t\t\t\t\t//this also needs to be sent to server to send to all consoles to update block lists\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"#whoiblock\":\t\t//simply prints out the arraylist of users that i block\n\t\t\t\tif(blockedList.size()>0){\n\t\t\t\t\tSystem.out.print(\"The list of people you block is: \");\n\t\t\t\t\tfor(int i=0;i<blockedList.size();i++){\n\t\t\t\t\t\tSystem.out.print(blockedList.get(i)+\", \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\telse System.out.println(\"You are not blocking any users\");\n\t\t\t\tbreak;\n\t\t\tcase \"#whoblocksme\":\t//simply prints out the arraylist of users that block me\n\t\t\t\tif(whoBlocksMe.size()>0){\n\t\t\t\t\tSystem.out.print(\"The list of people who block me is: \");\n\t\t\t\t\tfor(int i=0;i<whoBlocksMe.size();i++){\n\t\t\t\t\t\tSystem.out.print(whoBlocksMe.get(i)+\", \");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\telse System.out.println(\"There are no users that are blocking you\");\n\t\t\t\tbreak;\n\t\t\tcase \"#startforwarding\":\n\t\t\t\tprevFor = false;\n\t\t\t\ttry {\n\t\t\t\t\tif(whoIForward.size()>0) {\n\t\t\t\t\t\tfor(int i=0; i<whoIForward.size(); i++){\n\t\t\t\t\t\t\tif(parts[1].equals(whoIForward.get(i))) prevFor = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(!prevFor) {\n\t\t\t\t\t\t\twhoIForward.add(parts[1]);\n\t\t\t\t\t\t\tSystem.out.println(\"You are now forwarding to user: \"+parts[1]);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse System.out.println(\"You are already forwarding to that user!\");\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\twhoIForward.add(parts[1]);\n\t\t\t\t\t\tSystem.out.println(\"You are now forwarding all messages to user: \"+parts[1]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch(ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tSystem.out.println(\"You need to specify a user to forward to!\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"cancelforwarding\":\n\t\t\t\tprevFor = false;\n\t\t\t\ttry {\n\t\t\t\t\tif(whoIForward.size()>0){\n\t\t\t\t\t\tfor(int i=0; i<whoIForward.size(); i++){\n\t\t\t\t\t\t\tif(parts[1].equals(whoIForward.get(i))){\n\t\t\t\t\t\t\t\tprevFor = true;\n\t\t\t\t\t\t\t\twhoIForward.remove(i);\n\t\t\t\t\t\t\t\tSystem.out.println(\"You are no longer forwarding to user: \"+parts[1]);\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\tif(!prevFor){\n\t\t\t\t\t\t\tSystem.out.println(\"You were not forwarding to that user!\");\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\telse System.out.println(\"You are not currently forwarding to anyone and connot stop forwarding to this user\");\n\t\t\t\t}\n\t\t\t\tcatch(ArrayIndexOutOfBoundsException e){\n\t\t\t\t\tSystem.out.println(\"You need to specify a user to stop forwarding to!\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tcase \"#private\":\n\t\t\t\tString[] messageArray = Arrays.copyOfRange(parts, 2, parts.length);\n\t\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\t\tfor (String value : messageArray) {\n\t\t\t\t builder.append(value + \" \");\n\t\t\t\t}\n\t\t\t\tString messageToSend = builder.toString();\n\t\t\t\tclient.handleMessageFromClientUI(\"#private\" + \"---\" + client.getUID() + \"---\" + parts[1] + \"---\" + messageToSend);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\tdefault: client.handleMessageFromClientUI(\" \" + \"---\" + client.getUID() + \"---\" + \"*\" + \"---\" + message);\n\t\t}\n\t}", "public static String parseRequest(String message){\n\t\tchar[] b = message.toCharArray();\n\t\tStringBuffer sb = new StringBuffer();\n\t\tif('*'==b[0]){\n\t\t\tString[] list = message.split(\"<br>\");\n\t\t\t//int len = Integer.valueOf(String.valueOf(b[1]));//numbers of arguments\n\t\t\t//String[] args = new String[len];\n\t\t\tfor(int i=2;i<list.length;){\n\t\t\t\tsb.append(list[i]).append(\" \");\n\t\t\t\ti = i+2;\n\t\t\t}\n\t\t}else{\n\t\t\tSystem.out.println(\"格式错误\");\n\t\t}\n\t\treturn sb.toString();\n\t}", "@Override\r\n public void onMessageReceived(RemoteMessage remoteMessage) {\n Log.d(TAG, \"From: \" + remoteMessage.getFrom());\r\n\r\n // Check if message contains a data payload.\r\n if (remoteMessage.getData().size() > 0) {\r\n Log.d(TAG, \"Message data payload: \" + remoteMessage.getData());\r\n\r\n }\r\n\r\n // Check if message contains a notification payload.\r\n if (remoteMessage.getNotification() != null) {\r\n //Log.d(TAG, \"Message Notification Body: \" + remoteMessage.getNotification().getBody());\r\n\r\n final String msg = remoteMessage.getNotification().getBody();\r\n\r\n Handler handler = new Handler(Looper.getMainLooper());\r\n handler.post(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n Toast.makeText(MyService.this.getApplicationContext(), msg,Toast.LENGTH_SHORT).show();\r\n }\r\n });\r\n }\r\n\r\n }", "public String readMessage() {\r\n return new String(readMessageAsByte());\r\n }", "Payload getMsg();", "public NotificationBo parseNotificationRequestMessage(InputStream stream) throws IOException, XmlException;", "static byte[] readMessage() {\n byte[] msg = new byte[0];\n try {\n msg = Hex.decodeHex(\n \"000600000003000000017d010000\" +\n \"bb931fd17f85fb26e8209eb7af5747258163df29a7dd8f87fa7617963fcfa1aa\" +\n \"b0a8d493285c2df73290dfb7e61f870f17b41801197a149ca93654499ea3dafe0400\"\n );\n } catch (DecoderException e) {\n e.printStackTrace();\n }\n return msg;\n }", "@Override\n protected Message receiveMessage() throws IOException {\n String encoded = this.din.readUTF();\n this.lastMessage = new Date();\n String decodedXml = new String(\n DatatypeConverter.parseBase64Binary(encoded));\n\n return Message.msgFromXML(decodedXml);\n }", "@Override\n public void receiveMessage(String message) {\n }", "public MessageFromServerCommand(String message) {\n this.message=message;\n }", "void mo80453a(Message message);", "public NotificationBo parseNotificationRequestMessage(String notificationMessageAsXml) throws IOException, XmlException;", "private Message readMessage() throws IOException, ClassNotFoundException {\n Message message = (Message) objectInputStream.readObject();\n Message.Command temp = message.getCommand();\n if (temp != Message.Command.GET_RESERVED && temp !=\n Message.Command.GET_AVAILABLE) {\n if (connectionType == Message.Command.REGISTER_CLIENT) {\n connectionLoggerService.add(\"Client - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n\n } else if (connectionType == Message.Command.REGISTER_AH) {\n connectionLoggerService.add(\"Auction House - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n } else {\n connectionLoggerService.add(\"Unknown - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n }\n }\n return message;\n }", "void onMessage(String pattern, String channel, String message);", "@Override\r\n\tpublic JT808ProtocalPack receive(String message) throws Exception {\n\t\treturn null;\r\n\t}", "void onAnything(String unformatedMessage);", "void onMessageRead(byte[] data);", "public void pipeMsgEvent ( PipeMsgEvent event ){\r\n\t// Get the message object from the event object\r\n\tMessage msg=null;\r\n\ttry {\r\n\t msg = event.getMessage();\r\n\t if (msg == null)\r\n\t\treturn;\r\n\t} \r\n\tcatch (Exception e) {\r\n\t e.printStackTrace();\r\n\t return;\r\n\t}\r\n\t\r\n\t// Get the String message element by specifying the element tag\r\n\tMessageElement newMessage = msg.getMessageElement(TAG);\r\n\tif (newMessage == null)\t\t\t\r\n\t System.out.println(\"null msg received\");\r\n\telse\r\n\t System.out.println(\"Received message: \" + newMessage);\r\n }" ]
[ "0.6931123", "0.65564847", "0.6436311", "0.6301544", "0.62054855", "0.6201609", "0.6187409", "0.6156175", "0.6060565", "0.6060377", "0.6017687", "0.6007637", "0.5971908", "0.59717363", "0.5957208", "0.59504014", "0.59465194", "0.59288675", "0.59265685", "0.5913435", "0.5909543", "0.5907407", "0.59033644", "0.59024745", "0.58832073", "0.5835511", "0.58347887", "0.5830307", "0.5813425", "0.58005595", "0.5786505", "0.5785431", "0.5785032", "0.577571", "0.576987", "0.5762326", "0.5761495", "0.57612157", "0.5758775", "0.5753969", "0.5752473", "0.57501", "0.5744562", "0.5744133", "0.5735943", "0.5723344", "0.5721973", "0.5713671", "0.57072777", "0.5704583", "0.57001865", "0.5685679", "0.5684772", "0.5682191", "0.56792843", "0.5656685", "0.5648594", "0.56444424", "0.5638182", "0.56286657", "0.56184167", "0.56160206", "0.56149364", "0.5612059", "0.5611467", "0.56107616", "0.56106573", "0.56086606", "0.56063515", "0.5605584", "0.5602683", "0.5598448", "0.55927664", "0.5591484", "0.557955", "0.5568926", "0.55674136", "0.5564714", "0.5563854", "0.55587465", "0.5556968", "0.555651", "0.55556047", "0.5552982", "0.5549284", "0.55478644", "0.55470467", "0.5541519", "0.5541337", "0.5540418", "0.5537442", "0.5537436", "0.55287886", "0.55248064", "0.5518633", "0.55181456", "0.5502537", "0.5501694", "0.5501024", "0.54975456" ]
0.61671305
7
Gets last message sent from client or waits for it until it comes.
private String getResponse(){ String msg; synchronized (this){ while(!validResponse) { try { wait(); } catch (InterruptedException e) { e.printStackTrace(); return null; } } msg = response; validResponse = false; notifyAll(); } return msg; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized ClientMessage readClientMessage(){\n while ( !currClient.isUpdatingClientMessage() ) {\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n currClient.setUpdateClientMessage(false);\n return currClient.getClientMessage();\n }", "public Message receiveMessage() {\r\n\t\treturn messages.poll();\r\n\t}", "public String getLatestMessage() {\n return mLastMessage;\n }", "public String getNextMessage(){\r\n String msg = this.receivedMessages.get(0);\r\n this.receivedMessages.remove(0);\r\n return msg;\r\n }", "protected String readMessage() {\n synchronized (messageQ) {\n while (messageQ.isEmpty()) {\n try {\n messageQ.wait();\n } catch (InterruptedException e) {\n if (isGUI)\n return null;\n }\n }\n return messageQ.poll();\n }\n }", "private String receiveMsgFromClient() {\n try {\n return inputStream.readUTF();\n } catch (IOException e) {\n System.err.println(\"Client is gone.\");\n System.err.println(e.getMessage());\n running = false;\n return \"\";\n }\n }", "public long getLastMsgTick() {\n return lastMessageSentAt;\n }", "public String getLastMessage() {\n return lastMessage;\n }", "@Override\n public Message getNextMessage() {\n return commReceiver.getNextMessage();\n }", "public synchronized String[] readChallengerMessage() {\n while ( client1.getChallengerChoice() == null ){\n try {\n wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n return client1.getChallengerChoice();\n }", "public String getLastMsg() {\n String s = msgs.peekTail();\n return s == null ? \"\" : s;\n }", "public MessageChannel getLastMessageChannel() {\n\t\treturn this.lastMessageChannel;\n\t}", "Message getNextMessage();", "public String recvMsg() {\n System.out.print(\"Recieving message: \");\n try {\n StringBuilder sb = new StringBuilder();\n String input = reader.readLine();\n \n sb.append(input);\n if(sb != null)\n \tSystem.out.println(sb.toString());\n return sb.toString();\n } catch (IOException e) {\n System.out.println(\"IOException at recvMsg()\");\n } catch (NullPointerException e) {\n System.out.println(\"NullPointerException at recvMsg()\");\n } catch (Exception e) {\n System.out.println(\"Exception at recvMsg(): \" + e.toString());\n }\n\n return null;\n }", "public Message getLastMessage(Context ctx) {\n return DBHandler.getInstance(ctx).getLastMessageFromMatch(getId());\n }", "public Message getMessageMinerChannel() {\n\t\tMessage msg2=null;\n\t\ttry{\n\t\t\tmsg2=chann2.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg2;\n\t}", "private void sendPreviousMessagesToClient() throws IOException {\n String previousMessages = messagesManager.toString(); // Gets the contents of the queue containing the last 15 messages\n outputFromServer.println(previousMessages); // Sends a message to client\n }", "public jakarta.mail.Message GetLatestMail()\n {\n try {\n Folder inbox = store.getFolder(\"Inbox\");\n inbox.open(Folder.READ_WRITE);\n\n Message[] mails = inbox.getMessages();\n ArrayUtils.reverse(mails);\n\n logEmail(mails[0]);\n\n return mails[0];\n } catch (Exception e) {\n e.printStackTrace();\n\n failStep(e.getMessage());\n }\n\n return null;\n }", "protected byte[] getNextMessage(){\n if (messages.size() > 0) {\n byte message[] = messages.get(0).clone();\n messages.remove(0);\n return message;\n } else {\n return null;\n }\n \n }", "Message getCurrentMessage();", "public DatagramPacket receive() {\n\t\treturn messageQueue.poll();\n\t}", "public synchronized StompFrame nextMessage() {\n String message = null;\n int messageEnd = this._stringBuf.indexOf(this._messageSeparator);\n if (messageEnd > -1) {\n message = this._stringBuf.substring(0, messageEnd + this._messageSeparator.length());\n this._stringBuf.delete(0, messageEnd+this._messageSeparator.length());\n }\n System.out.println(\"Server recieved the following message: \" + message);\n return constructMessage(message);\n }", "synchronized void \n receivedLast() \n {\n closedByWriter = true;\n notifyAll();\n }", "public byte[] pull() {\n \n return router.getNextMessage();\n }", "private static PluginMessageRecipient getThroughWhomSendMessage() {\n\t\treturn Remain.getOnlinePlayers().isEmpty() ? Bukkit.getServer() : Remain.getOnlinePlayers().iterator().next();\n\t}", "public Message getNextMessage() {\n return nextMessage;\n }", "public synchronized Message receive() \r\n\tthrows IOException, SocketTimeoutException {\r\n\t\tbyte[] buffer = new byte[576];\r\n\t\tMessage msg = null;\r\n\t\twhile (msg == null) {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.setSoTimeout(TIMEOUT);\r\n\t\t\t\tDatagramPacket response = new DatagramPacket(buffer,\r\n\t\t\t\t\t\tbuffer.length, this.socket.getInetAddress(),\r\n\t\t\t\t\t\tthis.socket.getLocalPort());\r\n\t\t\t\tsocket.receive(response);\r\n\t\t\t\tmsg = new Message(response.getData());\r\n\t\t\t\tmsg.setSender(response.getPort(), response.getAddress());\r\n\t\t\t} catch (MessageCorruptException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tthis.sendConfirmation(msg.getSenderPort(), msg.getSenderHost());\r\n\r\n\t\tif (msg.getType().equals(\"%%start-fragments%%\"))\r\n\t\t\tmsg = receiveFragments();\r\n\r\n\t\treturn msg;\r\n\t}", "public synchronized String read() {\n\t\tString message = \"\";\n\n\t\tif(content.size() > 0 )\n\t\t\tmessage = content.get(0);\n\t\tnotify();\n\n\t\treturn message;\n }", "public Message read() {\n synchronized (lock){\n while (!answerReady) {\n try {\n lock.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }\n answerReady = false;\n return answer;\n }", "private void getMessage() throws Exception {\n\t\tGetTimestamp(\"Getting Message: \");\n\t\tString msg = \"\";\n\t\tString decmsg = \"\";\n\t\tbyte[] result;\n\t\ttry {\n\t\t\tmsg = br.readLine();\n\t\t\tJSONObject RESPONSE = new JSONObject();\n\t\t\tRESPONSE.put(\"payload\", msg);\n\t\t\tSystem.out.println(RESPONSE);\n\t\t\tdecmsg = decrypt(serversharedkey, msg);\n\t\t\tSystem.out.println(\"Decrypted Message from client is \" + decmsg);\n\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\tif (decmsg.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"Client has signed out!\");\n\t\t\tcloseConnection();\n\n\t\t} else {\n\t\t\tsendMessage();\n\t\t}\n\n\t}", "public Message getMessageMinerChannel() {\n\t\t\n\t\tMessage temp = null;\t\n\t\ttry {\n\t\t\t//se ia mesajul din buffer\n\t\t\ttemp = bufferMinerChannel.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t}", "public String getMlatestMessage() {\n return mLatestMessage;\n }", "private String getMessage(MessageChannel channel) {\n try {\n return channel.readNextString();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return null;\n }", "private void receive() {\n\t\tMQGetMessageOptions gmo = new MQGetMessageOptions();\n\t\tif (keepMessages) {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t| MQConstants.MQGMO_BROWSE_FIRST;\n\t\t} else {\n\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2;\n\t\t\tif (syncPoint) {\n\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t}\n\t\t}\n\t\tgmo.matchOptions = MQConstants.MQMO_NONE;\n\t\tgmo.waitInterval = this.waitInterval;\n\n\t\ttry {\n\t\t\tint lastSeqNo = 0;\n\t\t\tlong lastTs = 0;\n\t\t\tint messagecounter = 0;\n\t\t\twhile (true) {\n\t\t\t\tif (!(qmgr.isConnected())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\tif (!(queue.isOpen())) {\n\t\t\t\t\treconnectMq();\n\t\t\t\t}\n\t\t\t\thaltFileExists();\n\t\t\t\tif (haltStatus) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t} else {\n\t\t\t\t\treadQueue = true;\n\t\t\t\t}\n\t\t\t\tint queueNotInhibited = queue.getInhibitGet();\n\t\t\t\tif (queueNotInhibited == MQConstants.MQQA_GET_INHIBITED) {\n\t\t\t\t\treadQueue = false;\n\t\t\t\t}\n\t\t\t\tproduceCounts();\n\t\t\t\tif (readQueue) {\n\t\t\t\t\tqueueDepth = queue.getCurrentDepth();\n\t\t\t\t\tif (queueDepth != 0) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\trcvMessage = new MQMessage();\n\t\t\t\t\t\t\tif (mqccsid != 0) {\n\t\t\t\t\t\t\t\trcvMessage.characterSet = mqccsid;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tqueue.get(rcvMessage, gmo);\n\t\t\t\t\t\t\trecordCountsRcvd++;\n\t\t\t\t\t\t\tstrLen = rcvMessage.getMessageLength();\n\t\t\t\t\t\t\tstrData = new byte[strLen];\n\t\t\t\t\t\t\trcvMessage.readFully(strData);\n\t\t\t\t\t\t\tmessagePutMs = rcvMessage.putDateTime.getTimeInMillis();\n\t\t\t\t\t\t\tseqNo = rcvMessage.messageSequenceNumber;\n\t\t\t\t\t\t\tif (lastTs == messagePutMs && seqNo == 1) {\n\t\t\t\t\t\t\t\tseqNo = lastSeqNo + seqNo;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tmsgText = new String(strData);\n\t\t\t\t\t\t\tjsonOut = new JSONArray();\n\t\t\t\t\t\t\tjsonKey = new JSONObject();\n\t\t\t\t\t\t\tjsonValue = new JSONObject();\n\t\t\t\t\t\t\tjsonKey.put(\"key\", Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tjsonValue.put(\"value\", msgText);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgKey: \" + Long.toString(messagePutMs) + \"_\" + seqNo);\n\t\t\t\t\t\t\tLOG.debug(\"MQ MsgValue: \" + msgText);\n\t\t\t\t\t\t\tjsonOut.put(jsonKey);\n\t\t\t\t\t\t\tjsonOut.put(jsonValue);\n\t\t\t\t\t\t\tmsgList.add(jsonOut.toString());\n\t\t\t\t\t\t\tlastTs = messagePutMs;\n\t\t\t\t\t\t\tlastSeqNo = seqNo;\n\t\t\t\t\t\t\tmessagecounter++;\n\t\t\t\t\t\t\t// move cursor to next message\n\t\t\t\t\t\t\tif (msgList.size() > maxUMsg / 2) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (msgList.size() > queueDepth) {\n\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tif (keepMessages) {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT | MQConstants.MQGMO_BROWSE_NEXT;\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tgmo.options = MQConstants.MQGMO_CONVERT | MQConstants.MQGMO_PROPERTIES_FORCE_MQRFH2\n\t\t\t\t\t\t\t\t\t\t| MQConstants.MQGMO_WAIT;\n\t\t\t\t\t\t\t\tif (syncPoint) {\n\t\t\t\t\t\t\t\t\tgmo.options = gmo.options | MQConstants.MQGMO_SYNCPOINT;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (MQException e) {\n\t\t\t\t\t\t\tif (e.reasonCode == MQConstants.MQRC_NO_MSG_AVAILABLE) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else if (e.reasonCode == MQConstants.MQRC_SYNCPOINT_LIMIT_REACHED) {\n\t\t\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tnoMessagesCounter++;\n\t\t\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\t\t\t\tCalendar.getInstance().getTime() + \" - MQ Reason Code: \" + e.reasonCode);\n\t\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (IOException ioe) {\n\t\t\t\t\t\t\tSystem.out.println(Calendar.getInstance().getTime() + \" - Error: \" + ioe.getMessage());\n\t\t\t\t\t\t\treconnectMq();\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tthreadWait();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (msgList.size() > 0) {\n\t\t\t\t\t\tcommitMessages();\n\t\t\t\t\t}\n\t\t\t\t\tthreadWait();\n\t\t\t\t}\n\t\t\t}\n\n\t\t} catch (Throwable t) {\n\t\t\t// restart if there is any other error\n\t\t\trestart(Calendar.getInstance().getTime() + \" - Error receiving data from Queue or QMGR\", t);\n\t\t}\n\n\t}", "@Test\n public void getLastMessages() {\n IUser userOne = new MockUser(\"UserOne\", \"password\");\n IUser userTwo = new User(\"UserTwo\", \"password\");\n\n IMessage messageOne = new Message(userOne,new MessageContent(\"Hello my friends!\",MessageType.TEXT));\n IMessage messageTwo = new Message(userTwo,new MessageContent(\"Hi how are you?\",MessageType.TEXT));\n\n channel.join(userOne);\n channel.join(userTwo);\n channel.sendMessage(messageOne);\n channel.sendMessage(messageTwo);\n\n assertEquals(1,channel.getLastMessages(1).size());\n\n assertEquals(null,channel.getLastMessages(-1));\n\n\n }", "@Override\n\tpublic Optional<Message> findLastestMessage(String username) {\n\t\treturn null;\n\t}", "private Message getMessage() {\n try {\n return (Message) socketInput.readObject();\n } catch (IOException e) {\n connected = false;\n if (!connectionIn)\n messageHandler.nodeDisconnected();\n this.close();\n } catch (ClassNotFoundException e) {\n throw new UnexpectedBehaviourException();\n }\n return null;\n }", "private static Player getThroughWhomSendMessage() {\n\t\treturn Remain.getOnlinePlayers().isEmpty() ? null : Remain.getOnlinePlayers().iterator().next();\n\t}", "Message getPreviousMessage();", "public int lastReceivedMsgSeqNum()\n {\n return lastReceivedMsgSeqNum;\n }", "public int lastSentMsgSeqNum()\n {\n return lastSentMsgSeqNum;\n }", "public process get_last() {\n\t\treturn queue.getLast();\n\t}", "public FermatMessage readNextMessage() {\n if(!pendingIncomingMessages.isEmpty()) {\n\n /*\n * Return the next message\n */\n return pendingIncomingMessages.iterator().next();\n\n }else {\n\n //TODO: CREATE A APPROPRIATE EXCEPTION\n throw new RuntimeException();\n }\n\n }", "public synchronized Message getResponse(Socket s) {\n BufferedReader in = null;\n Message msg = null;\n\n try {\n in = new BufferedReader(new InputStreamReader(s.getInputStream()));\n msg = new Message(in.readLine());\n } catch (IOException ex) {\n System.err.println(\"Error in receiving response: \" + ex);\n } catch (Exception e) {\n System.err.println(\"Error reading message from socket: \" + e);\n } finally {\n try {\n in.close();\n } catch (IOException ex) {\n System.err.println(\"Error closing input stream in response: \" +\n ex);\n }\n }\n\n return msg;\n }", "public final String recvString() {\n try {\n // Receive a byte buffer\n final byte[] buffer = recvBytes(4096);\n // Check the buffer content\n if (buffer != null) {\n // Construct a message\n final String message = new String(buffer, 0, buffer.length,\n \"UTF-8\");\n // Print some information\n System.out.println(\"Message received: \" + message);\n // And return message\n return message;\n }\n } catch (final UnsupportedEncodingException exc) {\n // Print some information\n System.out.println(\"Message not received\");\n }\n return null;\n }", "static int get_message(DataOutputStream os, String[] motd, int active_motd, int motd_count, Socket clientSocket) {\n int userQuery = -1;\n try {\n for(int i = 0; i < num_clients; i++) {\n if (sockets[i] == clientSocket) {\n userQuery = i;\n break;\n }\n } \n os = new DataOutputStream(clientSocket.getOutputStream());\n os.writeUTF(\"200 OK\");\n os.writeUTF(motd[active_motd]);\n active_motd++;//get the next motd ready\n if( active_motd == motd_count) //if at end of array\n active_motd = 0; //loop back to beginning\n } catch (IOException ex) {\n Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, ex);\n }\n return active_motd;\n }", "public String readMessage() throws IOException {\n\t\treturn reader.readLine();\n\t}", "public String getFirstMessage() {\n return mFirstMessage;\n }", "synchronized public ClientMessage poll() {\n if (!initialized) {\n init();\n }\n if (head == size) {\n return null;\n }\n ClientMessage tmp = reqs[order[head++]];\n reqs[order[head - 1]] = null;\n if (head == order.length) {\n head = 0;\n }\n //System.out.println(\"pulled from rc queue\");\n bSize -= tmp.getTotalSize();\n entries--;\n return tmp;\n }", "private void receiveClientMessage() throws IOException {\n mRemoteClientMessage = lengthValueRead(in, ClientMessage.class);\n \n if (mRemoteClientMessage == null) {\n setExchangeStatus(Status.ERROR);\n setErrorMessage(\"Remote client message was not received.\");\n throw new IOException(\"Remote client message not received.\");\n }\n\n if (mRemoteClientMessage.messages == null) {\n setExchangeStatus(Status.ERROR);\n setErrorMessage(\"Remote client messages field was null\");\n throw new IOException(\"Remote client messages field was null\");\n }\n\n mMessagesReceived = mRemoteClientMessage.messages;\n }", "public Socket awaitMessages(){\n Socket s = null;\n try { \n s = serverSocket.accept();\n\t } catch (IOException e) {\n System.out.println(\"Could not listen on port \" + portNumber);\n }\n return s;\n }", "@Override\n\tpublic Message awaitMessage(Subscriber m) throws InterruptedException {\n\t\tif (!subscribersMessages.containsKey(m))\n\t\t\tthrow new IllegalStateException(\"the sub doesnt exist\");\n\t\t\telse {\n\t\t\tsynchronized (this) {\n\t\t\t\ttry {\n\n\t\t\t\t\twhile (subscribersMessages.get(m).isEmpty()) {\n\t\t\t\t\t\twait();\n\t\t\t\t\t}\n\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tThread.currentThread().interrupt();\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\treturn subscribersMessages.get(m).remove();\n\t\t\t}\n\t\t}\n\t}", "public synchronized String read() {\n\n /* RULE: empty, eligible for WRITE only; !empty, eligible for READ only :\n for read process to proceed, need message tray to be full, so while empty,\n make this thread sleep (the READER thread) so the other thread will run\n and write/fill in the message tray */\n\n while(empty) { // loop til we got a msg to read (cant read without msg)\n // DEADLOCK FIX\n try {\n wait(); // an Object method, not Thread's\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n\n empty = true; // i read the msg, will be sending this to Reader afterwards so message tray is now empty\n notifyAll(); // executed only after we have updated 'empty'\n return message;\n }", "public Collection<Message> findNextForSending();", "private synchronized Message popMessage() throws InterruptedException {\n log.trace(\"MessageListenerImpl.popMessage() start ...\");\n notify();\n while (!messagesAvail()) {\n log.info(\"MessageListenerImpl.popMessage() messages not available. Wait...\");\n wait();\n }\n log.trace(\"MessageListenerImpl.popMessage() continuing ...\");\n Message message;\n synchronized(messages) {\n message = (Message) messages.get(0);\n log.debug(\"MessageListenerImpl.popMessage() retrieved \" + message.getDestinationState().name + \" state.\");\n log.trace(\"MessageListenerImpl.popMessage() Before size=\" + messages.size() + \".\");\n messages.remove(0);\n }\n\n log.trace(\"MessageListenerImpl.popMessage() After size=\" + messages.size() + \".\");\n log.trace(\"MessageListenerImpl.popMessage() ... end\");\n return message;\n }", "public void readFromClient() {\n Thread t = new Thread(() -> {\n while (connected) {\n try {\n Message fromClient;\n synchronized (C2SMessages){\n if (C2SMessages.size() > 0){\n fromClient = (Message) C2SMessages.get(0);\n C2SMessages.remove(0);\n if( !(fromClient instanceof PingMessage) ) {\n if (myTurn) {\n answer = fromClient;\n answerReady = true;\n synchronized (lock){\n lock.notifyAll();\n }\n } else {\n send(new WrongTurnMessage());\n }\n }\n }\n if (C2SMessages.isEmpty())\n C2SMessages.wait();\n }\n } catch (NullPointerException | IllegalArgumentException | InterruptedException e) {\n System.out.println(\"[LOCAL-HANDLER] \"+userNickname+\"-local connection closed\");\n closeConnection();\n notifyDisconnection(this);\n break;\n }\n }\n });\n t.start();\n }", "Message sendAndWait();", "public void receiveMessage() throws IOException {\n String inputLine;\n while (true) {\n inputLine = inputStream.readLine();\n if (inputLine != null && !inputLine.equals(\"\")){\n if (!inputLine.equals(\"Host: closing\")) {\n network.appendMessage(inputLine);\n } else {\n network.appendMessage(\"Server has been closed! Restart the \"\n + \"server!\");\n waitForServer();\n }\n }\n }\n }", "public Message getMessageWizardChannel() {\n\t\tMessage msg1=null;\n\t\ttry{\n\t\t\tmsg1=chann1.take();\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn msg1;\n\t}", "public Message receive(long delay) throws MessageServiceException {\n Date startTime = new Date();\n Date currentTime = null;\n while((startTime.getTime() + delay) > \n (currentTime = new Date()).getTime()) {\n try {\n NamedQueue namedQueue = getNamedQueue();\n Message result = null;\n if ((delay == 0) || (delay > MAX_TIMEOUT)) {\n result = namedQueue.receive(MAX_TIMEOUT);\n } else {\n result = namedQueue.receive(delay);\n }\n if (result != null) {\n return result;\n }\n } catch (java.rmi.RemoteException ex) {\n log.error(\"Failed to retrieve the queue entry : \" + \n ex.getMessage(),ex);\n this.namedQueue = null;\n } catch (MessageServiceException ex) {\n throw ex;\n } catch (Exception ex) {\n throw new MessageServiceException(\n \"Failed to retrieve a message : \" + ex.getMessage(),ex);\n }\n }\n return null;\n }", "public Message receive() {\n\t\t\n\t\tsynchronized(recvQueue) {\n\t\t\tif(!recvQueue.isEmpty()) {\n\t\t\t\tMessage popMsg = recvQueue.remove();\n\t\t\t\t/* add ClockService */\n\t\t\t\tTimeStampedMessage msg = (TimeStampedMessage)popMsg;\n//System.out.println(\"new Debug sentence\");\n//msg.dumpMsg();\n\t\t\t\tthis.clockSer.updateTS(msg.getMsgTS());\n\t\t\t\tthis.clockSer.addTS(this.localName);\n\t\t\t\t/* */\n\n\t\t\t\treturn popMsg;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public Message receive() throws IOException, BadPacketException {\n // On the Macintosh, sockets *appear* to return the same ping reply\n // repeatedly if the connection has been closed remotely. This prevents\n // connections from dying. The following works around the problem. Note\n // that Message.read may still throw IOException below.\n // See note on _closed for more information.\n if (!isOpen())\n throw CONNECTION_CLOSED;\n\n Message m = null;\n while (m == null) {\n m = readAndUpdateStatistics();\n }\n return m;\n }", "private String readVoidMessage() {\n JSONTokener tokener = new JSONTokener(this.inputStream);\n if(tokener.more()) {\n return TokenerHandler.getNextJSONStringNonContinuous(tokener);\n } else {\n throw new LostConnectionException();\n }\n }", "public String receiveMessage(){\n try{\n response = inFromServer.readLine();\n }catch(IOException e){\n System.err.println(\"Caught IOException in inFromServer.readLine(): \" + e.getMessage());\n }\n if(response.equals(\"\\\\quit\")){\n System.out.println(\"Server quit command received.\"); \n return \"SERVERQUIT\";\n }\n System.out.println(response);\n return \"SENT\";\n }", "Message pull();", "public <T> T readOutbound() {\n/* 303 */ T message = (T)poll(this.outboundMessages);\n/* 304 */ if (message != null) {\n/* 305 */ ReferenceCountUtil.touch(message, \"Caller of readOutbound() will handle the message from this point.\");\n/* */ }\n/* 307 */ return message;\n/* */ }", "@SuppressWarnings(\"unchecked\")\n \tpublic synchronized MessageReference getLatestMessage() throws NoSuchMessageException {\n \t// TODO: We can probably cache the latest message date in this SubscribedBoard object.\n \t\n final Query q = mDB.query();\n q.constrain(MessageReference.class);\n q.descend(\"mBoard\").constrain(this);\n q.descend(\"mMessageDate\").orderDescending();\n ObjectSet<MessageReference> allMessages = q.execute();\n \n // Do not use a constrain() because the case where the latest message has no message object should not happen very often.\n for(MessageReference ref : allMessages) {\n \ttry {\n \t\tref.initializeTransient(mFreetalk);\n \t\tref.getMessage(); // Check whether the message was downloaded\n \t\treturn ref;\n \t}\n \tcatch(MessageNotFetchedException e) {\n \t\t// Continue to next MessageReference\n \t}\n }\n \n throw new NoSuchMessageException();\n }", "private LdapMessage waitResponse(Integer messageID, Object lock)\n throws IOException {\n Element element = requests.get(messageID);\n\n /*\n * test if dispatcher has not received response message from server,\n * wait response\n */\n if (element.response.getMessageId() != messageID.intValue()) {\n\n synchronized (lock) {\n try {\n lock.wait(MAX_WAIT_TIME);\n } catch (InterruptedException e) {\n // ignore\n }\n }\n }\n\n element = requests.get(messageID);\n\n // wait time out\n if (element.response.getMessageId() != messageID.intValue()) {\n // ldap.31=Read LDAP response message time out\n throw new IOException(Messages.getString(\"ldap.31\")); //$NON-NLS-1$\n }\n\n // error occurs when read response\n if (element.ex != null) {\n // socket is not connected\n if (!socket.isConnected()) {\n close();\n }\n // element.ex must be one of IOException or RuntimeException\n if (element.ex instanceof IOException) {\n throw (IOException) element.ex;\n }\n\n throw (RuntimeException) element.ex;\n }\n\n return element.response;\n\n }", "public CommResponse getHumanMessage(Action suggestedHumanAction) {\n \ttry{\n\t\t\tresendTimeLeft = NUM_SECS_RESEND;\n\t\t\ttimer.start();\n\t\t\twhile(HumanClientHandler.message == null){\n\t\t\t\tif(resendTimeLeft == 0){\n\t\t\t\t\ttimer.stop();\n\t\t\t\t\tsendMessage(lastMessageSent, Constants.HUMAN);\n\t\t\t\t\tresendTimeLeft = NUM_SECS_RESEND;\n\t\t\t\t\ttimer.start();\n\t\t\t\t}\n\t\t\t\tif(LearningAlgorithm.timeLeft == 0){\n\t\t\t\t\tSystem.out.println(\"time over\");\n \t\t\t\treturn new CommResponse(CommType.NONE, Action.WAIT, Action.WAIT);\t\n \t\t\t}\n\t\t\t\tSystem.out.print(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"before parse input message \"+HumanClientHandler.message);\n\t\t\tString temp = HumanClientHandler.message;\n\t\t\tHumanClientHandler.message = null;\n\t\t\treturn parseHumanInput(temp, suggestedHumanAction);\n } catch(Exception e){\n \te.printStackTrace();\n }\n \treturn new CommResponse(CommType.NONE, Action.WAIT, Action.WAIT);\t\n }", "public synchronized IMCMessage recv(String abbrev, long timeoutMillis) {\n\t\tmessage = null;\n\t\tlong targetMillis = System.currentTimeMillis() + timeoutMillis;\n\n\t\tMessageListener<MessageInfo, IMCMessage> listener = new MessageListener<MessageInfo, IMCMessage>() {\n\n\t\t\t@Override\n\t\t\tpublic synchronized void onMessage(MessageInfo info,\n\t\t\t\t\tIMCMessage msg) {\n\t\t\t\ttry {\n\t\t\t\t\tmessage = msg;\n\t\t\t\t\ttrans.removeMessageListener(this);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\ttrans.addListener(listener, Arrays.asList(abbrev));\n\n\t\twhile (message == null && System.currentTimeMillis() < targetMillis) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(10);\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn message;\n\t}", "public String recvRaw() throws IOException\n\t{\n\t\ttry\n\t\t{\n\t\t\treturn _reader.readLine();\n\t\t} catch (IOException e)\n\t\t{\n\t\t\tthrow new IOException(\"We have been killed: \" + e.getMessage(), e);\n\t\t}\n\t}", "public String getCurrentMessage() { return currentMessage; }", "public synchronized Socket dequeue() {\n\n\t\tSocket clientSocket = null;\n\n\t\twhile (queue.isEmpty()) {\n\t\t\ttry {\n\t\t\t\twait();\n\t\t\t} catch (InterruptedException e1) {\n\t\t\t\treturn clientSocket;\n\t\t\t}\n\t\t}\n\n\t\tclientSocket = queue.remove();\n\n\t\treturn clientSocket;\n\t}", "public void readFromClient() {\n Thread t = new Thread(() -> {\n while (connected) {\n try {\n socket.setSoTimeout(5000);\n String fromClient = socketIn.readLine();\n if (!fromClient.equals(\"\")) {\n if (myTurn) {\n answer = fromClient;\n answerReady = true;\n synchronized (this) {\n notifyAll();\n }\n } else {\n send(wrongTurnMessage);\n System.out.println(\"[SERVER] Wrong turn message\");\n }\n }\n } catch (IOException | NullPointerException | IllegalArgumentException e) {\n System.out.println(\"[SERVER] Client unreachable\");\n //e.printStackTrace();\n notifyDisconnection(this);\n break;\n }\n }\n });\n t.start();\n }", "public Message get(_Consommateur arg0) throws Exception,\n\tInterruptedException {\n\t\tMessage m ;\n\t\tnotEmpty.p();\n\t\tmutex.p();\n\n\t\tm = buffer[out];\n\t\tout = (out+1)%size;\n\t\tnbmsg--;\n\n\t\tif(TestProdCons.prodActif == 0 && noMessage())\n\t\t\tTestProdCons.end = true;\n\n\t\tmutex.signal();\n\t\tnotFull.signal();\n\t\treturn m;\n\t}", "public StringBuilder sendMessage(String msg) throws IOException {\n out.println(msg);\n String resp = \"\";\n StringBuilder stringBuilder = new StringBuilder();\n if(msg.length() >3 && msg.substring(0,3).equals(\"GET\")) {\n while (true) {\n String newLine;\n newLine = in.readLine();\n\n if (newLine.equals(\"~~~END~~~\")) {\n return stringBuilder;\n }\n else{stringBuilder.append(newLine);\n stringBuilder.append(System.getProperty(\"line.separator\"));\n }\n }\n }\n else {\n stringBuilder.append(in.readLine());\n\n\n }\n return stringBuilder;\n\n }", "public CompletableFuture<Object> future() {\n return messageFuture;\n }", "public Message getMessageWizardChannel() {\n\t\tMessage temp = null;\n\t\t\n\t\ttry {\n\t\t\t//se ia mesajul din buffer\n\t\t\ttemp = bufferWizardChannel.take();\t\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn temp;\n\t\t\n\t}", "public void getServerResponse() {\n\t\twhile (true) {\n\t\t\ttheMessage = readObject.readMessage();\n\t\t\tif (theMessage != null) {\n\t\t\t\tSystem.out.println(\"Server response is: \" + theMessage.getChoice());\n\t\t\t\tswitchBoard(theMessage.getChoice(), theMessage);\n\t\t\t}\n\t\t}\n\t}", "public void run() {\n\t\twhile (!isFinished) {\n\t\t\tString msg;\n\t\t\ttry {\n\t\t\t\tmsg = messages.take();\n\t\t\t\tSystem.out.println(serverId + \" says: \" + msg);\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public MessageToProcess retrieveMessage() {\n MessageToProcess returnMessage = this.queueMessagingTemplate.receiveAndConvert(MessageToProcess.class);\n\n return Optional.ofNullable(returnMessage).orElse(null);\n }", "private Message readMessage() throws IOException, ClassNotFoundException {\n Message message = (Message) objectInputStream.readObject();\n Message.Command temp = message.getCommand();\n if (temp != Message.Command.GET_RESERVED && temp !=\n Message.Command.GET_AVAILABLE) {\n if (connectionType == Message.Command.REGISTER_CLIENT) {\n connectionLoggerService.add(\"Client - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n\n } else if (connectionType == Message.Command.REGISTER_AH) {\n connectionLoggerService.add(\"Auction House - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n } else {\n connectionLoggerService.add(\"Unknown - \"\n + socket.getInetAddress().getHostAddress()\n + \" : \"\n + message.toString());\n }\n }\n return message;\n }", "public static ClientResponse sendAndReceive(KafkaClient client, ClientRequest request, Time time) throws IOException {\n try {\n client.send(request, time.milliseconds());\n while (client.active()) {\n List<ClientResponse> responses = client.poll(Long.MAX_VALUE, time.milliseconds());\n for (ClientResponse response : responses) {\n if (response.requestHeader().correlationId() == request.correlationId()) {\n if (response.wasDisconnected()) {\n throw new IOException(\"Connection to \" + response.destination() + \" was disconnected before the response was read\");\n }\n if (response.versionMismatch() != null) {\n throw response.versionMismatch();\n }\n return response;\n }\n }\n }\n throw new IOException(\"Client was shutdown before response was read\");\n } catch (DisconnectException e) {\n if (client.active())\n throw e;\n else\n throw new IOException(\"Client was shutdown before response was read\");\n\n }\n }", "public Message<Object> receive() {\n\t\treturn null;\n\t}", "public NotifyMessage pollNotifyMessage() throws InterruptedException {\n return messageQueue.take();\n }", "private Message sendMSG(Message message){\n Message reply = null;\n try {\n reply = coms.sendMessage(message);\n } catch (IOException e) {\n e.printStackTrace();\n }\n return reply;\n }", "public <T> T readInbound() {\n/* 291 */ T message = (T)poll(this.inboundMessages);\n/* 292 */ if (message != null) {\n/* 293 */ ReferenceCountUtil.touch(message, \"Caller of readInbound() will handle the message from this point\");\n/* */ }\n/* 295 */ return message;\n/* */ }", "private void getLatestMessageFromSocialService(String[] decrList) {\n Request request = new Request(Request.RequestCode.MESSAGES);\n prototype.sendRequest(serviceName,request,getNewResponseListener(decrList));\n }", "public String getMlatestMessageId() {\n return mLatestMessageId;\n }", "public String getMlatestMessageId() {\n return mLatestMessageId;\n }", "public String recvSensorData(){\n\t\tSystem.out.println(\"Waiting for sensor data!\");\n\t\ttry{\n\t\t\t// timer.scheduleAtFixedRate(new TimerTask() {\n\t\t\t// \t@Override\n\t\t\t// \tpublic void run() {\n\t\t\t// \t\tSystem.out.println(\"No response for sensor data\");\n\t\t\t// \t\tsendMsg(\"S\",\"PC2AR\");\n\t\t\t// \t}\n\t\t\t// }, 10*1000, 10*1000);\n\t\t\tString input = br.readLine();\n\t\t\tif (input != null && input.length() > 0){\n\t\t\t\tSystem.out.println(input);\n\t\t\t\t// timer.cancel();\n\t\t\t\treturn input;\n\t\t\t}\n\t\t} catch (IOException e){\n\t\t\tSystem.out.println(\"receive message --> IO Exception\");\n\t\t} catch (Exception e){\n\t\t\tSystem.out.println(\"receive message --> Exception\");\n\t\t}\n\n\t\treturn null;\n\t}", "public synchronized Message receive() throws IOException {\n\n\t/* Check if we have permission to recieve. */\n\tcheckReceivePermission();\n\n\t/* Make sure the connection is still open. */\n\tensureOpen();\n\n\tif (((m_mode & Connector.READ) == 0) || (host != null)) {\n\n\t throw new IOException(\"Invalid connection mode\");\n\t}\n\n\tMessage message = null;\n\tint length = 0;\n\ttry {\n\n\t SMSPacket smsPacket = new SMSPacket();\n\n /*\n * Packet has been received and deleted from inbox.\n * Time to wake up receive thread.\n */\n // Pick up the SMS message from the message pool.\n length = receive0(m_iport, midletSuite.getID(),\n connHandle, smsPacket);\n\n\t if (length >= 0) {\n\t \tString type;\n\t \tboolean isTextMessage = true;\n\t \tif (smsPacket.messageType == GSM_BINARY) {\n\t\t\t\ttype = MessageConnection.BINARY_MESSAGE;\n\t\t\t\tisTextMessage = false;\n\t } else {\n\t\t\t\ttype = MessageConnection.TEXT_MESSAGE;\n\t\t\t\tisTextMessage = true;\n\t }\n\t message = newMessage(type,\n\t \tnew String(ADDRESS_PREFIX\n + new String(smsPacket.address)\n + \":\" + smsPacket.port));\n\t String messg = null;\n\t if (isTextMessage) {\n\t if (length > 0) {\n\t \tif (smsPacket.messageType == GSM_TEXT) {\n\t messg = new String(TextEncoder.toString(\n TextEncoder.decode(smsPacket.message)));\n\t \t} else {\n\t messg = new String(TextEncoder.toString(\n smsPacket.message));\n\n\t \t}\n\t } else {\n\t messg = new String(\"\");\n }\n\t ((TextObject)message).setPayloadText(messg);\n\t } else {\n if (length > 0) {\n\t ((BinaryObject)message).setPayloadData(\n smsPacket.message);\n } else {\n\t ((BinaryObject)message).setPayloadData(new byte[0]);\n }\n\t }\n\t ((MessageObject)message).setTimeStamp(smsPacket.sentAt);\n }\n\t} catch (InterruptedIOException ex) {\n length = 0;\n throw new InterruptedIOException(\"MessageConnection is closed\");\n } catch (IOException ex) {\n io2InterruptedIOExc(ex, \"receiving\");\n\t} finally {\n\t if (length < 0) {\n\t\tthrow new InterruptedIOException(\"Connection closed error\");\n\t }\n\t}\n\n\n\treturn message;\n }", "@Override\n public void react(@NotNull ClientConnection client) throws IOException {\n String[] params = message.getHeader().split(\" \");\n if( params.length != getMessagesSize || client.getClientID() == null )\n return ;\n int roomID = Integer.parseInt(params[1]);\n List<String> messages = UserRequests.getMessagesFromRoom(roomID, nMessage);\n if (messages == null) return;\n assert client.getStreamMessage() != null;\n client.getStreamMessage().write(\n new Message(getMessagesType + \" \" + roomID, messages));\n }", "private OTSMsg waitForMessageFromSender(Channel channel) throws IOException, ClassNotFoundException {\n\t\tSerializable message = null;\n\t\ttry {\n\t\t\tmessage = channel.receive();\n\t\t} catch (IOException e) {\n\t\t\tthrow new IOException(\"failed to receive message. The thrown message is: \" + e.getMessage());\n\t\t}\n\t\tif (!(message instanceof OTSMsg)){\n\t\t\tthrow new IllegalArgumentException(\"the given message should be an instance of OTSMessage\");\n\t\t}\n\t\treturn (OTSMsg) message;\n\t}", "synchronized String remove() throws InterruptedException {\n\t\ttry {\n\t\t\twhile (messages.size() == 0) wait();\n\n\t\t\treturn (messages.remove(0));\n\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n\t\t}\n\t}", "public byte[] receiveMessage() throws IllegalStateException {\r\n\t\t\tif ( currHostPort == null ) {\r\n\t\t\t\tthrow new IllegalStateException(\"No iterator element.\");\r\n\t\t\t}\r\n\t\t\tbyte[] pDat = null;\r\n\t\t\tbyte[] recvdata = new byte[512];\r\n\t\t\tdgpacket = new DatagramPacket(recvdata, 512);\r\n\t\t\ttry {\r\n\t\t\t\tsocket.receive(dgpacket);\r\n\t\t\t\tpLen = dgpacket.getLength();\r\n\t\t\t\tif ( pLen > 0) {\r\n\t\t\t\t\trecvdata = dgpacket.getData();\r\n\t\t\t\t\tpDat = new byte[pLen];\r\n\t\t\t\t\tSystem.arraycopy(recvdata, 0, pDat, 0, pLen);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) {\t\t\t\t\t// SocketException / InterruptedIOException / IOException\r\n\t\t\t\tpDat = null;\r\n\t\t\t}\r\n\t\t\treturn pDat;\r\n\t\t}", "public MessageElem getNextMessage() {\n if (!currElem.getTagName().equals(\"message\")) {\n throw new IllegalStateException(\"current element is no message\");\n }\n // return curr message\n MessageElem message = new MessageElem();\n message.setText(currElem.getTextContent().trim());\n if (currElem.hasAttribute(\"from\")) {\n message.setSender(currElem.getAttribute(\"from\"));\n lastFrom = currElem.getAttribute(\"from\").trim();\n } else {\n message.setSender(lastFrom);\n }\n // if there is a recipient, use it and save for later use...\n if (currElem.hasAttribute(\"to\") && !currElem.getAttribute(\"to\").equals(\"\")) {\n message.setRecipient(currElem.getAttribute(\"to\").trim());\n lastTo = currElem.getAttribute(\"to\").trim();\n // ...otherwise use last author\n } else {\n if (lastFrom.equals(currElem.getAttribute(\"from\").trim())) {\n lastTo = \"you\";\n }\n message.setRecipient(lastTo);\n }\n if (currElem.hasAttribute(\"id\")) {\n message.setId(currElem.getAttribute(\"id\"));\n }\n\n // increase counter\n getNext();\n\n return message;\n }", "private boolean sendAndWait(Message m){\r\n\t\tif (!sendMessage(m))\r\n\t\t\treturn false;\r\n\t\t// Wait for the reply\r\n\t\twhile(!messageList.containsKey(m.get(\"id\"))) {\r\n\t\t\ttry {\r\n\t\t\t\tThread.sleep(50);\r\n\t\t\t} catch (InterruptedException e) {\r\n\t\t\t}\r\n\r\n\t\t\t// Quit if the game window has closed\r\n\t\t\tif (!GameState.getRunningState()){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public PingMessage receivePing()\n {\n Date date = new Date();\n String dateString = String.format(\"%tc\", date);\n byte recvBuf[] = new byte[PACKET_SIZE];\n DatagramPacket recvPacket = \n\t new DatagramPacket(recvBuf, PACKET_SIZE);\n PingMessage reply = null;\n try\n {\n socket.receive(recvPacket);\n System.out.println(\"Received packet from \" + recvPacket.getAddress()\n + \" \" + recvPacket.getPort() + \" \" + dateString);\n String recvMsg = new String(recvPacket.getData());\n\t reply = new PingMessage(recvPacket.getAddress(),\n recvPacket.getPort(), recvMsg);\n }\n catch (Exception ex)\n {\n System.out.println(\"receivePing...java.net.SocketTimeoutException: \" +\n \"Receive timed out\");\n }\n return reply;\n }", "private String readFromClient() throws IOException {\n final String request = inFromClient.readLine();\n return request;\n }" ]
[ "0.7150894", "0.66024387", "0.6532133", "0.65185404", "0.6448422", "0.64318174", "0.6259546", "0.6243527", "0.61754674", "0.6130718", "0.60750365", "0.60474676", "0.6009561", "0.59900457", "0.59565294", "0.5926258", "0.59183496", "0.58735096", "0.587339", "0.58655816", "0.58594084", "0.5846292", "0.5829061", "0.581574", "0.5805302", "0.578148", "0.5775331", "0.5772955", "0.576451", "0.575334", "0.57449", "0.5732765", "0.57155526", "0.57150155", "0.5714061", "0.5698879", "0.5690835", "0.5679757", "0.56787795", "0.5668759", "0.56492347", "0.56445724", "0.5623423", "0.56040984", "0.55840915", "0.55790347", "0.5565316", "0.55456305", "0.5533968", "0.5517213", "0.5507354", "0.5505369", "0.55046433", "0.54892087", "0.54834676", "0.547615", "0.54646116", "0.545778", "0.5442064", "0.5420114", "0.54180855", "0.5409098", "0.5407614", "0.5404555", "0.539886", "0.53801155", "0.53699344", "0.53482175", "0.5341169", "0.53339314", "0.53327984", "0.53302366", "0.5322961", "0.53223366", "0.53223014", "0.5313072", "0.5304628", "0.53011066", "0.529957", "0.529636", "0.52773666", "0.52686137", "0.52662754", "0.5264594", "0.525355", "0.5246271", "0.5244841", "0.52289647", "0.521543", "0.521543", "0.52053744", "0.5203553", "0.52012825", "0.51923746", "0.51793665", "0.5178089", "0.51775855", "0.51701105", "0.51654655", "0.5164575" ]
0.58235234
23
select a player in a given list
@Override public Player selectPlayer(List<Player> selectable) { JSONObject message = new JSONObject(); message.put("function", "select"); message.put("type", "player"); JSONArray jArray = new JSONArray(); selectable.forEach(s->jArray.add(s.getNickname())); message.put("list", jArray); this.sendInstruction(message); String selected = this.getResponse(); if (selected == null || selected.isEmpty()) return null; return selectable.stream().filter(p->p.getNickname().equals(selected)) .collect(Collectors.toList()).get(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Player getSelectedPlayer();", "void selectPlayerFrom(List<Player> players, String title, Consumer<Player> callback);", "private void selectRandomPlayer() {\n Random rand = new Random();\n // Restrict random number range to available indexes in the players list.\n // - 1 to offset zero-based index numbering.\n int random = rand.nextInt(players.size());\n activePlayer = players.get(random);\n }", "public Player getPlayerFromList(String name){\n for (Player player : players){\n if (player.getName().equals(name)){\n return player;\n }\n }\n return null; //This will never happen. Will always be found. Only called from the takeoverTerritory method\n }", "public void selectAttackerPlayer(Player[] players){\n int x,xTemp;\n Player playerSelected;\n if( team == 0){\n xTemp = 0;\n for(Player p : players ){\n x = (int) p.getPosition().getX();\n if( x > xTemp ){\n xTemp = x;\n playerSelected = p;\n }\n }\n playerOne = playerSelected;\n }else{\n xTemp = 14;\n for(Player p : players ){\n x = (int) p.getPosition().getX();\n if( x < xTemp ){\n xTemp = x;\n playerSelected = p;\n }\n }\n playerOne = playerSelected;\n }\n }", "public void selectProtectPlayer(Player[] players){\n int x,xTemp;\n Player playerSelected;\n if( team == 0){\n xTemp = 0;\n for(Player p : players ){\n x = (int) p.getPosition().getX();\n if( x > xTemp && p != playerOne ){\n xTemp = x;\n playerSelected = p;\n }\n }\n playerOne = playerSelected;\n }else{\n xTemp = 14;\n for(Player p : players ){\n x = (int) p.getPosition().getX();\n if( x < xTemp && p != playerOne ){\n xTemp = x;\n playerSelected = p;\n }\n }\n playerOne = playerSelected;\n }\n }", "public Character pickPlayer()\n {\n System.out.println(\"\\tChoose your fighter!\\n\");\n for(int i = 0; i < characterList.size(); i++)\n {\n Character chara = characterList.get(i);\n System.out.println(\"\\t\" + (i + 1) + \") \" + chara.getFullName());\n }\n System.out.print(\"\\n>>> \");\n player = characterList.get(keyboard.nextInt() - 1);\n characterList.remove(player);\n return player;\n }", "public Player getPlayerFromList(String name){\n for (BrPlayer p : playerList){\n if (p.getBukkitPlayer().getDisplayName().equalsIgnoreCase(name)){\n return p.getBukkitPlayer();\n }\n }\n return null;\n }", "public void selectResponse(String response , Player player);", "private Player selectPlayer (int which) {\n System.out.println();\n int choice = readPlayerChoice(which);\n String name = readPlayerName();\n if (choice == TIMID)\n return new TimidPlayer(name);\n else if (choice == GREEDY)\n return new GreedyPlayer(name);\n else if (choice == CLEVER)\n return new CleverPlayer(name);\n else\n return new InteractivePlayer(name);\n }", "public Player getPlayer(String userName,ArrayList<Player> list) {\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(userName)){\r\n\t\t\t\tif(in.getID().equals(\"AI\"))\r\n\t\t\t\t\treturn (NimAIPlayer)in;\r\n\t\t\t\telse\r\n\t\t\t\t\treturn (NimPlayer)in;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn null;\r\n\t\t}", "void showWaitingPlayerList(List<String> waitingPlayerUsernames);", "private Player randomlySelectFirstPlayer(Player[] players) {\n Random rand = new Random();\n Player firstPlayer = players[rand.nextInt(players.length)];\n return firstPlayer;\n }", "@Override\n\tpublic Powerup choosePowerup(List<Powerup> selectable) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"powerup\");\n\t\tJSONArray jArray = new JSONArray();\n\t\tselectable.forEach(s->jArray.add(s.toJSON()));\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\n\t\tString selected = this.getResponse();\n\n\t\tif (selected == null || selectable.isEmpty()) return null;\n\t\tList<Powerup> matching = selectable.stream().filter(p->p.toJSON().toString().equals(selected))\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn matching.isEmpty() ? null : matching.get(0);\n\t}", "public Player chooseToPunish(ArrayList<Player> players){\n Scanner scanner = new Scanner(System.in);\n ArrayList<Player> allPlayersButThis = new ArrayList<>();\n for(Player player : players){\n if(player != this){\n allPlayersButThis.add(player);\n }\n }\n int chosenPlayerIndex;\n System.out.println(\"choose a player to punish : \");\n for(int i = 0; i < allPlayersButThis.size(); i++){\n System.out.println((i+1) + \"- \" + allPlayersButThis.get(i).name);\n }\n chosenPlayerIndex = scanner.nextInt();\n// scanner.nextLine();\n if(chosenPlayerIndex <=0 || chosenPlayerIndex > allPlayersButThis.size()){\n System.out.println(\"Not valid input!\");\n System.out.println(\"please try again :\");\n return chooseToPunish(players);\n }\n return allPlayersButThis.get(chosenPlayerIndex - 1);\n }", "public static Player Target(ArrayList<Player> knightlist, ArrayList<Player> playerlist)\n\t{\n\t\t\n\t\tRandom dice = new Random();\n\t\t\n\t\tif(knightlist != null)\n\t\t{\n\t\t\tCollections.shuffle(knightlist);\n\t\t\tfor(Player x:knightlist)\n\t\t\t{\n\t\t\t\tint roll = dice.nextInt(100)+1;\n\t\t\t\tif(roll <= 70)\n\t\t\t\t\treturn x;\n\t\t\t}\n\t\t}\n\t\t\n\t\tCollections.shuffle(playerlist);\n\t\treturn playerlist.get(0);\n\t\t\t\t\n\t\t\n\n\t\t\n\t\t\n\t}", "public PlayersSelectedEvent(int clientID, String player, List<String> players) {\n super(clientID, player);\n this.players = players;\n }", "void selectPlayers(){\n\t\tframe.repaintAll();\n\t\tint numPlayers = inputNumPlayers();\n\t\t\n\t\t// let each player choose a character\n\t\tfor(int i=0; i<numPlayers; i++){\n\t\t\tJPanel panel = new JPanel(new GridLayout(0, 1));\n\t\t\t\n\t\t\t// determine which characters are available\n\t\t\tList<String> playerNames = new ArrayList<String>();\n\t\t\tfor(Player p : game.getPlayers()){\n\t\t\t\tplayerNames.add(p.getCharacter());\n\t\t\t}\n\t\t\t\n\t\t\t// create buttons\n\t ButtonGroup bg = new ButtonGroup();\n\t\t\tJRadioButton greenBtn = new JRadioButton(GameOfCluedo.GREEN);\n\t\t\tJRadioButton mustardBtn = new JRadioButton(GameOfCluedo.MUSTARD);\n\t\t\tJRadioButton peacockBtn = new JRadioButton(GameOfCluedo.PEACOCK); \n\t\t\tJRadioButton plumBtn = new JRadioButton(GameOfCluedo.PLUM); \n\t\t\tJRadioButton scarlettBtn = new JRadioButton(GameOfCluedo.SCARLETT); \n\t JRadioButton whiteBtn = new JRadioButton(GameOfCluedo.WHITE); \n\t \n\t String playerName = getPlayerName();\n\t \n\t panel.add(new JLabel(\"Who will \"+playerName+\" play as?\"));\n\t addAvailableCharacterOptions(panel, playerNames, bg, greenBtn,\n\t\t\t\t\tmustardBtn, peacockBtn, plumBtn, scarlettBtn, whiteBtn);\n\t\t\tJOptionPane.showMessageDialog(frame, panel, \"Character select\", JOptionPane.QUESTION_MESSAGE);\n\t\t\tgeneratePlayerFromInput(panel, playerName, greenBtn, mustardBtn, peacockBtn,\n\t\t\t\t\tplumBtn, scarlettBtn, whiteBtn);\n\t\t\t\n\t frame.repaintAll();\n\t\t}\n\t}", "private void findFirstPlayer() { \n if(isFirstTurn) {\n for(PlayerId p: PlayerId.ALL) {\n if(handsOfCards.get(p).contains(Card.of(Color.DIAMOND, Rank.SEVEN))) {\n firstPlayer = p;\n }\n }\n }\n else {\n firstPlayer = PlayerId.ALL.get((firstPlayer.ordinal()+1)%PlayerId.COUNT);\n }\n }", "List<GpPubgPlayer> selectByExample(GpPubgPlayerExample example);", "public void nextPlayer() {\n\t\tif (currentPlayer.equals(vServerThread.get(0))){\n\t\t\tcurrentPlayer=vServerThread.get(1);\n\t\t} else if (currentPlayer.equals(vServerThread.get(1))){\n\t\t\tcurrentPlayer=vServerThread.get(0);\n\t\t}\n\t}", "public void multiplayerSelected()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyDiscoveryState()\n clientController.searchForGames();\n\n //populate the GameSelectScreen's text box with the lobbies from the\n //state\n gameSelectScreen.clearGames();\n\n //set state to GAMESELECT\n state = CurrentWindow.GAMESELECT;\n\n //hide the intro screen and show the game select screen\n introScreen.setVisible(false);\n gameSelectScreen.setVisible(true);\n }", "public PlayerCuboidSelection getPlayerSelection(Player player) {\n\t\tLocation[] locs = ownlocations.getLocations(player);\n\t\tif (locs != null) {\n\t\t\treturn new PlayerCuboidSelection(locs[0], locs[1]);\n\t\t}\n\t\t// now check worldedit selection\n\t\tif (weintegration != null) {\n\t\t\tlocs = weintegration.getLocations(player);\n\t\t\tif (locs != null) {\n\t\t\t\treturn new PlayerCuboidSelection(locs[0], locs[1]);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private void selectAndPickARow(Card card, Player player) {\n\n int selectedRow = 1;\n\n pickARow(card, firstRow, player);\n }", "SoccerPlayer find(Integer number);", "private void startMultiPlayerGame() {\n Intent intent = Games.RealTimeMultiplayer.getSelectOpponentsIntent(getApiClient(), 1, 1);\n startActivityForResult(intent, RC_SELECT_PLAYERS);\n }", "public void switchPlayer(){\n // Menukar giliran player dalam bermain\n Player temp = this.currentPlayer;\n this.currentPlayer = this.oppositePlayer;\n this.oppositePlayer = temp;\n }", "List<Player> listPlayers();", "public boolean activeFor(String player);", "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 singlePlayerSelected()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyState()\n clientController.startSinglePlayerGame();\n }", "public List<Player> selectByNationality(String nationality) throws Exception;", "private void setPlayer(BoardSquaresState player){\n\t\tif(player == BoardSquaresState.CROSS){\n\t\t\tselectedPlayer = BoardSquaresState.CROSS;\n\t\t\tplayerSelectionButton.setText(R.id.button_title, \"Cross\");\n\t\t\tplayerSelectionButton.setText(R.id.button_subtitle, \"You go first!\");\n\t\t\tplayerSelectionButton.setImageResource(R.id.selector_button_image, R.drawable.cross_1);\n\t\t\tplayerSelectionButton.setImageResource(R.id.item_set_image, R.drawable.btn_check_on_focused_holo_light);\n\t\t}\n\t\telse{\n\t\t\tselectedPlayer = BoardSquaresState.NOUGHT;\n\t\t\tplayerSelectionButton.setText(R.id.button_title, \"Nought\");\n\t\t\tplayerSelectionButton.setText(R.id.button_subtitle, \"Computer goes first!\");\n\t\t\tplayerSelectionButton.setImageResource(R.id.selector_button_image, R.drawable.nought_1);\n\t\t\tplayerSelectionButton.setImageResource(R.id.item_set_image, R.drawable.btn_check_on_focused_holo_light);\n\t\t}\n\n\t}", "public int chooseCard(){\n if(playable.size() == 1)//checks the size\n return searchCard(0);//returns the only playable card\n else{\n int temp = (int) Math.random()*playable.size();//chooses a random one\n return searchCard(temp);//returns that cards position\n }\n }", "public void editPlayer(Nimsys nimSys,ArrayList<Player> list,Scanner keyboard) {\r\n\t\tboolean flag=false;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(nimSys.commands[0])){\r\n\t\t\t\tin.setSurName(nimSys.commands[1]);\r\n\t\t\t\tin.setGivenName(nimSys.commands[2]);\r\n\t\t\t\tflag = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(flag == false)\r\n\t\t\tSystem.out.println(\"The player does not exist.\");\r\n\t\t\r\n\t}", "public List<PlayerItem> getSpecific(int playerItemId);", "private void assignButtonClick() {\n\n selectedPlayers.clear();\n final CharSequence[] p = new CharSequence[players.size()];\n final boolean[] pChecked = new boolean[p.length]; // array of booleans to record which saved players are ticked for randomisation\n for (int i = 0; i < players.size(); i++) {\n p[i] = players.get(i).toString();\n }\n\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n\n if (players.size() > 0) {\n builder.setTitle(\"Select the players present...\");\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) { // When the used pressed \"OK\"\n\n for (int i = 0; i < p.length; i++) {\n if (pChecked[i]) { // if a player's name has been ticked\n\n selectedPlayers.add(p[i]); // add that name to the selected players list\n pChecked[i] = false; // untick that name\n }\n }\n if (selectedPlayers.size() > 0) { // save the selection in case of repeated use\n editor.putString(\"previousSelection\", selectedPlayers.toString().trim());\n editor.commit();\n showResults();\n\n }\n }\n })\n\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n }\n });\n\n builder.setNeutralButton(\"As before\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) { // Button that lets the user randomise the most recently randomised list of players\n String s = prefs.getString(\"previousSelection\", \"\").trim(); // retrieve the string of player names from the phone\n if (s.length() > 0) {\n s = s.replaceAll(\"\\\\[\", \"\").replaceAll(\"\\\\]\", \"\"); // replace the commas with spaces\n selectedPlayers = new ArrayList<String>(Arrays.asList(s.split(\", \"))); // split the string at each space and add each name to selected players list\n\n showResults();\n } else {\n builder.setTitle(\"No previous selection \\nSelect the players present...\");\n builder.show();\n }\n }\n });\n\n builder.setMultiChoiceItems(p, new boolean[p.length], new DialogInterface.OnMultiChoiceClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which, boolean isChecked) { // adds the saved players' names to the dialog, with boxes the user can select them with\n pChecked[which] = isChecked;\n }\n });\n } else {\n builder.setTitle(\"First add players.\"); // if the user tries to randomise a non-existant list of players\n builder.setPositiveButton(\"Sorry\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n }\n builder.show();\n }", "private ActorProfile selectRandomActorProfile(List<ActorProfile> list,\n ActorProfile actorSender)\n throws CannotSelectARandomActorException {\n if(randomSelectorIndex>=MAX_LOOPS_ON_RANDOM_ACTORS){\n throw new CannotSelectARandomActorException(\"The number of tries, \"+randomSelectorIndex+\" is upper than the limit\");\n }\n int randomIndex = (int) (((double)list.size())*Math.random());\n ActorProfile actorSelected = list.get(randomIndex);\n if(actorSelected.getIdentityPublicKey().equals(actorSender.getIdentityPublicKey())){\n randomSelectorIndex++;\n actorSelected = selectRandomActorProfile(list, actorSender);\n }\n /*if(actorSelected.getNsIdentityPublicKey().equals(actorSender.getNsIdentityPublicKey())){\n randomSelectorIndex++;\n actorSelected = selectRandomActorProfile(list, actorSender);\n }*/\n return actorSelected;\n }", "public FirstPlayerPickCommand(int sender, int target, List<Player> connectedPlayers) {\n super(sender, target);\n players = toCompatPlayerArray(connectedPlayers);\n picked = -1;\n }", "public Player getPlayerByName(String name){\n for (Player player : players){\n if (name.equals(player.getName())){\n return player;\n }\n }\n return null;\n }", "public void setSelector(final Player selector) {\n this.selector = selector;\n }", "public User getPlayer(String name) {\n\t\tUser ret = null;\n\t\tList<User> searchResult = this.players.stream().filter(x->x.name.equals(name)).collect(Collectors.toList());\n\t\tif (!searchResult.isEmpty()) {\n\t\t\tret = searchResult.get(0);\n\t\t}\n\t\treturn ret;\n\t}", "void chooseStarterPlayer() {\n\t\tSystem.out.println(\"\\nWer beginnt?\");\n\t\tSystem.out.println(\"1 - Computer\");\n\t\tSystem.out.println(\"2 - Human\");\n\t}", "public static void ChooseNextPlayer () {\n do {\r\n\r\n // MOVE TO THE NEXT PLAYER\r\n next_player++;\r\n\r\n // IF WE MOVED TOO FAR, WRAP AROUND TO ZERO\r\n if (next_player >= player_count)\r\n next_player = 0;\r\n\r\n } while (player[next_player].lost);\r\n\r\n }", "public void displayPlayer(Nimsys nimSys, Scanner keyboard,ArrayList<Player> list)throws EventException {\r\n\t\tboolean flag = false;\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\tCollections.sort(list, new Comparator<Player>(){ //using collection sort to sort the ArrayList by Username\r\n\t\t\tpublic int compare(Player a1, Player a2) {\r\n\t\t\t\treturn a1.getUserName().compareTo(a2.getUserName());\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tif(nimSys.commands.length==1){\r\n\t\t\twhile(aa.hasNext()){\r\n\t\t\t\tPlayer in = aa.next();\r\n\t\t\t\tString information=in.showPlayer();\r\n\t\t\t\tSystem.out.println(information);\r\n\t\t\t}\r\n\t\t}\r\n\t\telse{\r\n\t\t\twhile (aa.hasNext()) {\r\n\t\t\t\tPlayer in = aa.next();\r\n\t\t\t\tif(in.getUserName().equals(nimSys.commands[1])){\r\n\t\t\t\t\tSystem.out.println(in.showPlayer());\r\n\t\t\t\t\tflag = true;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tif(flag=false)\r\n\t\t\t\tSystem.out.println(\"This player don't exist\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic WeaponSelection chooseWeapon(List<Weapon> selectable) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"weapon\");\n\t\tJSONArray jArray = new JSONArray();\n\t\tselectable.forEach(s->jArray.add(s.getName()));\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\t\tJSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n\t\treturn parseWeaponSelection(selected);\n\t}", "void selectClass(final IArenaPlayer player, final Sign sign, final String className);", "private void play(Player p){\r\n\t\tSystem.out.println(\"What pet would you like to play with?\");\r\n\t\tint c = 1;\r\n\t\tArrayList<Toy> toys = p.getToys();\r\n\r\n\t\tfor(Pet pet : p.getPets()){\r\n\t\t\tSystem.out.println(c + \". \" + pet.getPetname());\r\n\t\t\tc++;\r\n\t\t}\r\n\t\tint selectedpetindex = getNumber(1, p.getPets().size());\r\n\t\tPet selectedpet = p.getPets().get(selectedpetindex - 1);\r\n\t\tSystem.out.println(\"What toy do you want to use to play with \" + selectedpet.getPetname());\r\n\r\n\t\tc = 1;\r\n\t\tfor(Toy t : toys){\r\n\t\t\tSystem.out.println(c + \". \" + t.getName());\r\n\t\t\tc++;\r\n\t\t}\r\n\t\tint toyindex = getNumber(1, toys.size());\r\n\t\tToy selectedtoy = toys.get(toyindex);\r\n\r\n\t\tselectedpet.play(selectedtoy);\r\n\t\tselectedtoy.setDurability(selectedtoy.getDurability() - selectedpet.getRoughness());\r\n\r\n\t\tif(selectedtoy.getDurability() < 1){\r\n\t\t\ttoys.remove(toyindex);\r\n\t\t}else{\r\n\t\t\ttoys.set(toyindex, selectedtoy);\r\n\t\t}\r\n\r\n\t\tp.setToys(toys);\r\n\t\tp.setActions(p.getActions() - 1);\r\n\t}", "public void multiPlayerChosen(){\n IP = view.ipTF.getText();\n ConnectingViewController connecting = new ConnectingViewController(this, IP);\n connecting.showView();\n this.hideView();\n }", "public boolean select(int selectedShip){\n for(int i = 0; i < 5; i++) {\n playerShips[i].selected = false;\n }\n playerShips[selectedShip].selected = true;\n return true;\n }", "private JComboBox playerComboBox(final List<Player> players) {\n String[] playerNumbers = new String[players.size()];\n for (int i = 0; i < players.size(); i++) {\n playerNumbers[i] = \"Player: \" + players.get(i).getNumber();\n }\n final JComboBox playersComboBox = new JComboBox(playerNumbers);\n playersComboBox.setSelectedIndex(0);\n playersComboBox.setAction(new AbstractAction(\"Player changed\") {\n {\n putValue(Action.ACTION_COMMAND_KEY, getValue(Action.NAME));\n } \n @Override\n public void actionPerformed(ActionEvent e) {\n String selectedItem = (String)playersComboBox.getSelectedItem();\n String selectedPlayerNumber = selectedItem.substring(selectedItem.length() - 1, selectedItem.length());\n int playerSelected = Integer.parseInt(selectedPlayerNumber);\n Player playerChosen = null;\n for (Player p : players) {\n if (p.getNumber() == playerSelected) {\n playerChosen = p;\n }\n }\n playerComboBoxChanged(playerChosen);\n }\n });\n return playersComboBox;\n }", "private Player aiRequestTarget(Player ai){\n // generates a random player index\n int index = (int) (Math.random() * GoFish.Players.length);\n\n // prevents the logic from outputting and index that is equal\n // to the player object\n while (GoFish.Players[index]==ai){\n index = (int) (Math.random() * GoFish.Players.length);\n }// end while\n\n return GoFish.Players[index];\n }", "public Player choosePlayer( int id, Color c )\n {\n Player p=null;\n \n while( p==null)\n {\n String answer = \n JOptionPane.showInputDialog(\"human or computer plays\"+c+\"?(h,c): \");\n if ( answer.equals(\"h\") ) { p = new Human(id, c); }\n else if ( answer.equals(\"c\") ) { p = new Computer(id, c); }\n else { JOptionPane.showMessageDialog( null, \"oops\"); }\n }\n \n return p;\n }", "private void selectCard() {\n\t\tDeck from = isInMainDeck() ? mainDeck : c.getDeck();\n\t\tDeck to = isInMainDeck() ? c.getDeck() : mainDeck;\n\t\t\n\t\tselectedCard = from.getCurrent();\n\t\tif (selectedCard == null) {\n\t\t\treturn;\n\t\t}\n\t\tif (!to.isFull(animators.size())) {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_CHOOSE_CARD);\n\t\t\tVector3f p = from.getPosFor(selectedCard);\n\t\t\tfrom.removeCurrent();\n\t\t\tanimators.add(new Animator(selectedCard, p, isInMainDeck(), to, to.getLastPos()));\n\t\t} else {\n\t\t\tselectedCard = null;\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t\tif (from.isEmpty()) {\n\t\t\tcirclePressed();\n\t\t}\n\t}", "public ArrayList<Player> searchPlayer(String search){\r\n\t\tint rowId = 1;\r\n\t\tCursor cursor;\r\n\t\tcursor = this.getPlayer(rowId);\r\n\t\tArrayList<Player> playerList = new ArrayList<Player>();\r\n\t\twhile(cursor.getCount() != 0){\r\n\t\t\tif (cursor.getString(1).startsWith(search)) {\r\n\t\t\t\tPlayer p = new Player(cursor.getString(1),cursor.getString(2),cursor.getString(3),\r\n\t\t\t\t\t\tcursor.getString(4),cursor.getString(5),cursor.getInt(6),\r\n\t\t\t\t\t\tcursor.getString(7),cursor.getString(8),cursor.getString(9),\r\n\t\t\t\t\t\tcursor.getString(10));\r\n\t\t\t\tplayerList.add(p);\r\n\t\t\t}\r\n\t\t\trowId = rowId + 1;\r\n\t\t\tcursor = this.getPlayer(rowId); \t\r\n\t\t}\r\n\t\tcursor.close();\r\n\r\n\t\treturn playerList;\r\n\t}", "public Player getPlayer(int index) {\r\n return players[index];\r\n }", "public int getPlayerIdBySelection(List<String> selection) {\n\t\tint id = 0;\n\t\tPreparedStatement statement = null;\n\t\tResultSet rs = null;\n\t\tjava.sql.Date date = null;\n\t\ttry {\n\t\t\tdate = new java.sql.Date(sdf.parse(selection.get(2)).getTime());\n\t\t} catch (ParseException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tint idTeam = getTeamIdByName(selection.get(4));\n\t\tString playerIdBySelectionRecords_sql = \"SELECT id FROM \" + player_table + \" WHERE name='\" + selection.get(0)\n\t\t\t\t+ \"' AND lastname='\" + selection.get(1) + \"' AND height='\" + selection.get(3) + \"' AND dateOfBirth='\"\n\t\t\t\t+ date + \"' AND idTeam='\" + idTeam + \"'\";\n\t\tconnection = connector.getConnection();\n\t\ttry {\n\t\t\tstatement = connection.prepareStatement(playerIdBySelectionRecords_sql);\n\t\t\trs = statement.executeQuery();\n\t\t\tif (rs.next()) {\n\t\t\t\tid = rs.getInt(1);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\t\treturn id;\n\t}", "private void chooseStartPlayer() throws IOExceptionFromController {\n try {\n game.setActivePlayer(playerControllers.get(0).getClient().chooseStartingPlayer(players));\n } catch (IOException | InterruptedException e) {\n throw new IOExceptionFromController(e, playerControllers.get(0));\n }\n }", "private void getPlayerList(){\r\n\r\n PlayerDAO playerDAO = new PlayerDAO(Statistics.this);\r\n players = playerDAO.readListofPlayerNameswDefaultFirst();\r\n\r\n }", "public void setPlayers(ArrayList<String> players) {\n this.players = new ArrayList<>();\n this.nicknames = new ArrayList<>();\n for (int i = 0; i < players.size(); i++) {\n if (!players.get(i).equals(gui.getViewController().getNickName())){\n JMenuItem newPlayerItem = new JMenuItem(players.get(i));\n newPlayerItem.addActionListener(new OpponentItemListener(gui.getViewController(),i));\n this.players.add(newPlayerItem);\n }\n this.nicknames.add(new JLabel(players.get(i)));\n this.nicknames.get(i).setHorizontalAlignment(SwingConstants.CENTER);\n this.nicknames.get(i).setVerticalAlignment(SwingConstants.CENTER);\n }\n for(int i = 0; i<this.players.size();i++){\n this.playerMenu.add(this.players.get(i));\n }\n initTurnPanel();\n }", "public void passSelectedCard(int index){\n\t\tSystem.out.println(\"PLAYER SELECTED CARD INDEX \" + index);\n\t\twaitingUser = false;\n\t\tplaySubRound(index);\n\n\t\ttodoThread();\n\t}", "private void enemy_choose_player(){\n\t\tint i;\n\t\tRandom r_gen = new Random();\n\t\tfor(i=0;i<enemy_num;i++){\n\t\t\tenemy[i][2] = r_gen.nextInt(player_num);\n\t\t}\n\t}", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n String s = prefs.getString(\"previousSelection\", \"\").trim(); // retrieve the string of player names from the phone\n if (s.length() > 0) {\n s = s.replaceAll(\"\\\\[\", \"\").replaceAll(\"\\\\]\", \"\"); // replace the commas with spaces\n selectedPlayers = new ArrayList<String>(Arrays.asList(s.split(\", \"))); // split the string at each space and add each name to selected players list\n\n showResults();\n } else {\n builder.setTitle(\"No previous selection \\nSelect the players present...\");\n builder.show();\n }\n }", "@Override\r\n\tpublic ArrayList<PlayerPO> findPlayerByName(String name) {\n\t\treturn playerController.findPlayerByName(name);\r\n\t}", "public Player getPlayerinTable(String name) {\r\n for (Player player : this.players) {\r\n if (player.getName().equals(name)) {\r\n return player;\r\n }\r\n }\r\n return null;\r\n }", "public static Player chooseAndSetArtist(ArrayList<Player> players){\r\n while (true) {\r\n for (Player p : players) {\r\n if (!previousArtists.contains(p)) {//checking if player was not artist\r\n if (artist != null) {//checking if there is already a set artist\r\n artist.isArtist = false;\r\n }\r\n artist = p;//setting artist\r\n artist.isArtist = true;\r\n previousArtists.add(artist);\r\n return artist;\r\n }\r\n }\r\n previousArtists.clear();//clearing if all players where the artist\r\n }\r\n }", "public static void set_players(){\n\t\tif(TossBrain.compselect.equals(\"bat\")){\n\t\t\tbat1=PlayBrain1.myteam[0];\n\t\t\tbat2=PlayBrain1.myteam[1];\n\t\t\tStriker=bat1;\n\t\t\tNonStriker=bat2;\n\t\t\t}\n\t\t\telse{\n\t\t\t\t\n\t\t\t\tbat1=PlayBrain1.oppteam[0];\n\t\t\t\tbat2=PlayBrain1.oppteam[1];\n\t\t\t\tStriker=bat1;\n\t\t\t\tNonStriker=bat2;\n\n\t\t\t\t}\n\t}", "@Override\n public Player getPlayerOnIndex(int index) {\n return players.get(index);\n }", "public Player getPlayer(String username) {\n for (Player p : players) {\n if (p.username.equals(username))\n return p;\n }\n return null;\n }", "List<Player> getPlayers();", "@Override\r\n \tpublic List<Skill> getCurrentlySelected(CDOMObject owner, PlayerCharacter pc)\r\n \t{\r\n \t\treturn Collections.emptyList();\r\n \t}", "private void getPlayers() {\r\n\t\tSystem.out.println(\"How Many Players: \");\r\n\t\tpnum = getNumber(1, 3);\r\n\r\n\t\tfor(int i=0; i < pnum; i++){\r\n\t\t\tSystem.out.println(\"What is player \" + (i + 1) + \"'s name? \");\r\n\t\t\tString name = sc.next();\r\n\t\t\tboolean dupe = true;\r\n\t\t\twhile(dupe){\r\n\t\t\t\tint samecounter = 0;\r\n\t\t\t\tfor(Player p : players){\r\n\t\t\t\t\tif(name.equals(p.getName())){\r\n\t\t\t\t\t\tsamecounter += 1;\r\n\t\t\t\t\t\tSystem.out.println(\"Name is the same as another players. Please choose another name: \");\r\n\t\t\t\t\t\tname = sc.next();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tif(samecounter == 0){\r\n\t\t\t\t\tdupe = false;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tplayers.add(new Player(name));\r\n\r\n\t\t}\r\n\t}", "public Player getSelector() {\n return selector;\n }", "@Override\n\tpublic List selectList(Object map) {\n\n\t\tList list = session.selectList(\"play.play_list\", map);\n\n\t\treturn list;\n\t}", "public void playSelection(Selection selection) {\n nextStartTime = selection.start;\n startPlay();\n }", "public Player findPlayer(String p_PlayerName) {\n for (Player l_Player : d_PlayerList) {\n if (l_Player.getD_Name().equals(p_PlayerName))\n return l_Player;\n }\n if (d_NeutralPlayer.getD_Name().equals(p_PlayerName))\n return d_NeutralPlayer;\n return null;\n }", "boolean hasPlayer(String player);", "public BasketballPlayer getPlayer(String player){\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_homeTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _homeTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\tfor(int i=0; i<5; i++){\n\t\t\tif(player.equals(_awayTeam.getPlayer(i).getpname())){\n\t\t\t\treturn _awayTeam.getPlayer(i);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private void switchPlayer(Player opponentPlayer, Match match) {\r\n if(opponentPlayer.getPlayerId().equals(match.getPlayer1().getPlayerId())){\r\n setCurrentPlayer(match, 1);\r\n } else if (opponentPlayer.getPlayerId().equals(match.getPlayer2().getPlayerId())){\r\n setCurrentPlayer(match, 2);\r\n } else {\r\n LOGGER.error(\"Player not found\");\r\n }\r\n }", "private void setupPlayers() {\n\t\tuserData=(UserData) Main.currentStage.getUserData();\n\t\tnumberPlayers=userData.getNumberPlayers();\n\t\tplayerNames=userData.getPlayerNames();\n\t\tcurrentPlayer=userData.getFirstPlayer();\n\t\tlb_currentplayername.setText(playerNames[currentPlayer]);\n\t\tplayers =new Player[4];\n\t\tfor(int i=0;i<4;i++) {\n\t\t\tif(i<numberPlayers) {\n\t\t\t\tplayers[i]=new Player(playerNames[i], false, i) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void rollDices() {\n\t\t\t\t\t\trotatedDice1();\n\t\t\t\t\t\trotatedDice2();\n\t\t\t\t\t\t//waiting for player choose what way to go then handler that choice\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\telse {\n\t\t\t\tplayers[i]=new Player(playerNames[i], true, i) {\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void rollDices() {\n\t\t\t\t\t\trotatedDice1();\n\t\t\t\t\t\trotatedDice2();\n\t\t\t\t\t\t//randomchoice and next player rolldice\n\t\t\t\t\t}\n\t\t\t\t};\n\t\t\t}\n\t\t\tswitch (i) {\n\t\t\t\tcase 0:{\n\t\t\t\t\tplayers[i].setHorseColor(yh0, yh1, yh2, yh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 1:{\n\t\t\t\t\tplayers[i].setHorseColor(bh0, bh1, bh2, bh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 2:{\n\t\t\t\t\tplayers[i].setHorseColor(rh0, rh1, rh2, rh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tcase 3:{\n\t\t\t\t\tplayers[i].setHorseColor(gh0, gh1, gh2, gh3);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tdefault:\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private PlayingCard chooseCard(HeartsGraphics g){\t\t\n\t\tHearts.setCurrentPlayer(this);\n\t\t\n\t\tif(number != PLAYER_ONE){\n\t\t\t// A.I. code\n\t\t\tint index;\n\t\t\t\n\t\t\tRandom r = new Random();\n\t\t\tindex = r.nextInt(hand.size());\t\t\t\n\t\t\t\n\t\t\treturn hand.get(index);\t\t\t\n\t\t} else {\n\t\t\treturn getCard(g);\n\t\t}\t\t\n\t}", "public void Players()\n\t{\n\t\tSystem.out.println(\"What team are you looking for?: \");\n\t\tSystem.out.println(\"1: Soccer\\n2: Basketball\\n3: Football\\n4: RETURN\");\n\t\tint choice1 = input.nextInt();\n\t\tswitch (choice1) {\n\t\t\n\t\tcase 1:\n\t\t\t\n\t\t\tString name = \"GB Soccer\";\n\t\t\tSelectTeam(name);\n\t\t\t\n\t\t\tSystem.out.println(\"\\nTo view player's full Bio, type Last Name\");\n\t\t\t\n\t\t\tScanner input = new Scanner(System.in);\n\t\t\tString Spname = input.nextLine();\n\t\t\tSelectPlayer(Spname);\n\t\t\tSystem.out.println(\"To return to teams list press 1, to exit press 2\");\n\t\t\tint choice2 = input.nextInt();\n\t\t\tswitch(choice2)\n\t\t\t{\n\t\t\tcase 1: Players(); break; case 2: System.exit(2); break;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Yet to be implemented\");\n\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\t\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tString name1 = \"GB Basketball\";\n\t\t\tSelectTeam(name1);\n\t\t\t\n\t\t\tSystem.out.println(\"\\nTo view player's full Bio, type Last Name\");\n\t\t\t\n\t\t\tScanner input1 = new Scanner(System.in);\n\t\t\tString Bpname = input1.nextLine();\n\t\t\tSelectPlayer(Bpname);\n\t\t\tSystem.out.println(\"To return to teams list press 1, to exit press 2\");\n\t\t\tint choice3 = input1.nextInt();\n\t\t\tswitch(choice3)\n\t\t\t{\n\t\t\tcase 1: Players(); break; case 2: System.exit(0); break;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Yet to be implemented\");\n\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tString name2 = \"GB Football\";\n\t\t\tSelectTeam(name2);\n\t\t\t\n\t\t\tSystem.out.println(\"\\nTo view player's full Bio, type Last Name\");\n\t\t\t\n\t\t\tScanner input2 = new Scanner(System.in);\n\t\t\tString Fpname = input2.nextLine();\n\t\t\tSelectPlayer(Fpname);\n\t\t\tSystem.out.println(\"To return to teams list press 1, to exit press 2\");\n\t\t\tint choice4 = input2.nextInt();\n\t\t\tswitch(choice4)\n\t\t\t{\n\t\t\tcase 1: Players(); break; case 2: System.exit(0); break;\n\t\t\tdefault:\n\t\t\t\tSystem.out.println(\"Yet to be implemented\");\n\t\t\t\tbreak; \n\t\t\t\t}\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tquestion();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Yet to be implemented\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "public boolean startGame(ArrayList<RemotePlayer> playerList, RemotePlayer player) throws IClientException, RemoteException;", "public void playerSelectionMade(View v) {\n final Animation animAlpha = AnimationUtils.loadAnimation(this, R.anim.anim_alpha);\n v.startAnimation(animAlpha);\n\n Intent intent = new Intent(this, GameResultActivity.class);\n intent.putExtra(PLAYER_CHOICE, v.getId());\n startActivity(intent);\n\n //Create Toast notification responding to player selection\n Integer playerChoice = GameUtils.formatPlayerChoice(v.getId());\n String toastText;\n switch(playerChoice)\n {\n case R.id.btnRock:\n toastText = \"Rock was clicked\";\n break;\n case R.id.btnPaper:\n toastText = \"Paper was clicked\";\n break;\n case R.id.btnScissors:\n toastText = \"Scissors was clicked\";\n break;\n case R.id.btnLizard:\n toastText = \"Lizard was clicked\";\n break;\n case R.id.btnSpock:\n toastText = \"Spock was clicked\";\n break;\n default:\n toastText = \"Error in selection\";\n break;\n }\n Toast toast = Toast.makeText(this, toastText, Toast.LENGTH_SHORT);\n toast.show();\n\n }", "private void updateActivePlayer() {\n indexOfActivePlayer++;\n if (indexOfActivePlayer == players.size()) {\n String previousPlayer = players.get(indexOfActivePlayer - 1).getName();\n Collections.shuffle(players);\n while (players.get(0).getName() == previousPlayer) {\n Collections.shuffle(players);\n }\n indexOfActivePlayer = 0;\n }\n }", "private static PlayerSide getPlayerByIndex(int index) {\n if (index == 0){\n return PlayerSide.CURRENT_PLAYER;\n } else {\n return PlayerSide.WAITING_PLAYER;\n }\n }", "public List<Player> findPlayers(List<Role> rl) {\n List<Player> pl = new ArrayList<Player>();\n for(Player p: players){\n for(Role r: rl){\n if(r.equals(p.getRole())){\n pl.add(0, p);\n }\n }\n }\n return pl;\n }", "public Character pickOpponent()\n {\n int oppIndex = random.nextInt(characterList.size());\n opponent = characterList.get(oppIndex);\n return opponent;\n }", "public PlayerChoicePick getNextPlayerChoicePick();", "private void loadPlayers() {\r\n this.passive_players.clear();\r\n this.clearRoster();\r\n //Map which holds the active and passive players' list\r\n Map<Boolean, List<PlayerFX>> m = ServiceHandler.getInstance().getDbService().getPlayersOfTeam(this.team.getID())\r\n .stream().map(PlayerFX::new)\r\n .collect(Collectors.partitioningBy(x -> x.isActive()));\r\n this.passive_players.addAll(m.get(false));\r\n m.get(true).stream().forEach(E -> {\r\n //System.out.println(\"positioning \"+E.toString());\r\n PlayerRosterPosition pos = this.getPlayerPosition(E.getCapnum());\r\n if (pos != null) {\r\n pos.setPlayer(E);\r\n }\r\n });\r\n }", "int getActivePlayerIndex();", "public abstract void activatedBy(Player player);", "public List<PlayerItem> getAllPlayerItemById(Player player);", "protected ArrayList<Player> settingPlayersChoice(ArrayList<Player> players){\n for (Player player : players) {\n do{\n try {\n choice = scanner.nextLine();\n if (!\"A\".equals(choice) && !\"B\".equals(choice) && !\"C\".equals(choice) && !\"D\".equals(choice)){\n System.out.println(\"Wrong Input!!!\");\n }\n }catch (InputMismatchException e){\n System.out.println(\"Wrong Input!!!\");\n System.out.println(\"Choose Between A,B,C,D\");\n }\n }while(!\"A\".equals(choice) && !\"B\".equals(choice) && !\"C\".equals(choice) && !\"D\".equals(choice));\n player.setAnswer(choice);\n choice = \"\";\n }\n return players;\n }", "boolean setPlayer(String player);", "@Override\n public void onClick(DialogInterface dialog, int which) {\n\n for (int i = 0; i < p.length; i++) {\n if (pChecked[i]) { // if a player's name has been ticked\n\n selectedPlayers.add(p[i]); // add that name to the selected players list\n pChecked[i] = false; // untick that name\n }\n }\n if (selectedPlayers.size() > 0) { // save the selection in case of repeated use\n editor.putString(\"previousSelection\", selectedPlayers.toString().trim());\n editor.commit();\n showResults();\n\n }\n }", "public void chooseAttackStarter(){\n gameState = GameState.ATTACKERSELECTION;\n currentTerritoriesOfInterest = Player.getTerritoryStringArray(currentPlayer.getAttackStarters());\n notifyObservers();\n }", "public void setPlayer(String player) {\r\n this.player = player;\r\n }", "@Test\n public void testsetPlayerList() {\n ArrayList<Player> players = new ArrayList<>();\n // Make 2 players.\n Player lars = new Player(\"127.0.0.1\", \"Lars\");\n Player remco = new Player(\"127.0.1.1\", \"Remco\");\n // Add the 2 players to the list.\n players.add(lars);\n players.add(remco);\n // Now set the player list to the session.\n session.setPlayerList(players);\n // Check if the list has a size of 2.\n assertEquals(2, session.getPlayers().size());\n }", "public void setCurrentPlayer(int index){\n this.currentPlayer=index%4;\n }" ]
[ "0.7260274", "0.7202891", "0.688444", "0.6639816", "0.6556595", "0.6382567", "0.63482", "0.6336608", "0.6294229", "0.6215869", "0.6193167", "0.6078412", "0.6063245", "0.605987", "0.6002986", "0.5990856", "0.59811366", "0.59659964", "0.59489155", "0.5865721", "0.5856001", "0.5850774", "0.58414555", "0.58230156", "0.5787803", "0.57727116", "0.576714", "0.57619685", "0.57378066", "0.572861", "0.57060623", "0.5673924", "0.5654836", "0.56382024", "0.5628784", "0.5612798", "0.5612785", "0.5583637", "0.5583107", "0.55762273", "0.5571406", "0.55706054", "0.55428714", "0.5542205", "0.55384636", "0.5535647", "0.55329293", "0.5524822", "0.55219203", "0.5520715", "0.5520291", "0.55179906", "0.55176127", "0.5498701", "0.5498313", "0.5497306", "0.5496164", "0.5495058", "0.54915243", "0.5488607", "0.54719037", "0.5471735", "0.5466657", "0.54591715", "0.5453739", "0.5442811", "0.5441672", "0.5441038", "0.54376507", "0.54351515", "0.5431872", "0.54273206", "0.5426813", "0.542534", "0.5408947", "0.5408737", "0.54069257", "0.5403182", "0.5391965", "0.5391438", "0.53826326", "0.53821033", "0.53819543", "0.5373732", "0.5372474", "0.53668845", "0.5364598", "0.5364363", "0.5352091", "0.53506905", "0.53501934", "0.53465563", "0.5345779", "0.53416693", "0.53361666", "0.5331545", "0.53309584", "0.53045994", "0.5298218", "0.5292345" ]
0.7799841
0
select a cell in a given list
@Override public Cell selectCell(List<Cell> selectable) { JSONObject message = new JSONObject(); message.put("function", "select"); message.put("type", "cell"); JSONArray jArray = createJSONCoordinateList(selectable); message.put("list", jArray); this.sendInstruction(message); JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse()); if (selected.get("x").equals("none")) return null; return selectable.stream().filter(c->c.getCoordX() == Integer.parseInt(selected.get("x").toString()) && c.getCoordY() == Integer.parseInt(selected.get("y").toString())) .collect(Collectors.toList()).get(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public native void selectCells(String... cellList) /*-{\r\n\t var self = [email protected]::getOrCreateJsObj()();\r\n\t self.selectCells(cellList);\r\n\t }-*/;", "public void setSelectedCell(Coord c) {\n this.selected = c;\n }", "public native void selectCell(Record cell) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.selectCell([email protected]::getJsObj()());\r\n }-*/;", "@Override\n\tpublic List<Cell> selectRoom(List<List<Cell>> selectable) {\n JSONObject message = new JSONObject();\n message.put(\"function\", \"select\");\n message.put(\"type\", \"room\");\n JSONArray jArray = new JSONArray();\n selectable.forEach(r -> {\n\t\t\tJSONArray room = createJSONCoordinateList(r);\n\t\t\tjArray.add(room);\n });\n message.put(\"list\", jArray);\n this.sendInstruction(message);\n\n JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n if (selected.get(\"room\").toString().equals(\"none\")) return new ArrayList<>();\n\n JSONArray room = (JSONArray) selected.get(\"room\");\n for(List<Cell> r : selectable){\n for(Cell c : r){\n if(c.getCoordX() == Integer.parseInt((((JSONObject) room.get(0)).get(\"x\").toString())) &&\n\t\t\t\t\t\tc.getCoordY() == Integer.parseInt((((JSONObject) room.get(0)).get(\"y\").toString())))\n \treturn r;\n }\n }\n return new ArrayList<>();\n }", "public void getSelected() {\n for (int i = 0; i < list.size(); i++) {\n if (selectColumn.getCellObservableValue(i).getValue().isSelected()) {\n selectedIngredients.add(i + 1);\n }\n }\n }", "public void selectCellForEvent(Object cell, MouseEvent e) {\r\n \t\t((JmtGraphUI) graph.getUI()).selectCellForEvent(cell, e);\r\n \t}", "public native void selectCell(String ID) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.selectCell(cell);\r\n }-*/;", "boolean selectAt(double x, double y);", "private void linkCell() {\n taskListView.setCellFactory(listView -> {\n TaskListViewCell cell = new TaskListViewCell();\n cell.addEventFilter(MouseEvent.MOUSE_PRESSED, event -> {\n taskListView.requestFocus();\n if (!cell.isEmpty()) {\n int index = cell.getIndex();\n if (taskListView.getSelectionModel().getSelectedIndices().contains(index)) {\n logger.fine(\"Selection in task list panel with index '\" + index\n + \"' has been deselected\");\n raise(new DeselectListCellTask(taskListView, index));\n } else {\n taskListView.getSelectionModel().select(index);\n }\n event.consume();\n }\n });\n return cell;\n });\n }", "void select(int index) throws InvalidValueException;", "public CellSelection getSelectCell() {\n return selection;\n }", "protected void selectCell( int row, int column )\n {\n validateCell( row, column );\n if ( row < 0 || column < 0 )\n {\n return;\n }\n\n final int r = row;\n final int c = column;\n SwingUtilities.invokeLater(\n new Runnable()\n {\n @Override\n public void run()\n {\n treeTable.changeSelection( r, c, false, false );\n }\n } );\n }", "public void setSelectedCell(Cell c) {\n //First event can be bogus (from system placing focus on first item)\n if (!selectionEnabled)c=null;\n menuBar.updateCellMenu(c);\n // deselect previous cell\n if (selectedCell != null) {\n selectedCell.setSelected(false);\n }\n // select new cell\n selectedCell = c;\n if (selectedCell != null) {\n selectedCell.setSelected(true);\n }\n // Return focus to the frame, just in case it gets set somewhere else\n // (like the buttons)\n requestFocus();\n }", "public Cell getSelectedCell() {\n return selectedCell;\n }", "public void selectAt(MouseEvent e) {\r\n \t\tactivateSelect();\r\n \t\tmouseListner.mousePressed(e);\r\n \t}", "Cell getCellAt(Coord coord);", "@Override\n public Component select(int x, int y) { \n\t m_selected = super.select(x, y);\n\t return m_selected;\n }", "private boolean[] SetSelected(boolean[] selected, JList list) {\n\t\tint[] indices = list.getSelectedIndices();\n\t\tfor (int i = 0; i < selected.length; i++) {\n\t\t\tselected[i] = false;\n\t\t}\n\t\tfor (int i = 0; i < indices.length; i++) {\n\t\t\tselected[indices[i]] = true;\n\t\t}\n\t\treturn selected;\n\t}", "List<mailIdentify> selectByExampleWithRowbounds(mailIdentifyExample example, RowBounds rowBounds);", "private void fillSelectionListFromArrayList(JList aListComponent,ArrayList<String> theList) {\n int[] toBeSelectedIndices = new int[theList.size()];\n int aValueIndex = 0;\n if(theList.size()>0){\n for(String aValue : theList){\n for(int in = 0; in < aListComponent.getModel().getSize();in++){\n String aCorrType = (String)aListComponent.getModel().getElementAt(in);\n if(aValue.equals(aCorrType)){\n toBeSelectedIndices[aValueIndex] = in;\n }\n }\n aValueIndex++;\n }\n aListComponent.setSelectedIndices(toBeSelectedIndices);\n \n }else{\n aListComponent.clearSelection();\n }\n \n }", "public native void deselectCells(String... cellList) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectCells(cellList);\r\n }-*/;", "@Override\r\n\t\t\t\t\tpublic boolean shouldSelectCell(EventObject arg0) {\n\t\t\t\t\t\treturn true;\r\n\t\t\t\t\t}", "protected abstract void setValue(JList<?> list, T value, int index, boolean isSelected, boolean cellHasFocus);", "void setSelectedIndexes(List<Integer> selectedIndexes);", "public void select(List<Object> objs, boolean selectionFlag) throws Exception;", "private void setListAndResetSelection(JList list, List<String> items, java.util.List selection) {\n Map<String,Integer> str_to_i = new HashMap<String,Integer>();\n String as_str[] = new String[items.size()]; for (int i=0;i<as_str.length;i++) { as_str[i] = items.get(i); str_to_i.put(as_str[i], i); }\n list.setListData(as_str);\n if (selection.size() > 0) {\n List<Integer> ints = new ArrayList<Integer>(); \n // Find the indices for the previous settings\n for (int i=0;i<selection.size();i++)\n if (str_to_i.containsKey(selection.get(i))) \n\t ints.add(str_to_i.get(selection.get(i)));\n // Convert back to ints\n int as_ints[] = new int[ints.size()];\n for (int i=0;i<as_ints.length;i++) as_ints[i] = ints.get(i);\n list.setSelectedIndices(as_ints);\n }\n }", "void updateSelected(Coord c) {\n this.selected = c;\n }", "public void selectCheckboxFromDD( By element, WebDriver driver, String class_name, String list_element)\n\t{\n\t\tList<String> xls_col_names = ExcelCache.getExpectedListData(class_name , list_element );\n\t\tList<WebElement> listelement = driver.findElements(element);\n\t\tlogger.info(\"Selecting the following values from Column customization list :\"+xls_col_names);\n\t\tfor (int i=0;i<xls_col_names.size();i++)\n\t\t{\n\t\t\tfor (int j=0;j<listelement.size();j++)\n\t\t\t{\n\t\t\t\tif(listelement.get(j).getAttribute(\"value\").equals(xls_col_names.get(i)) && !listelement.get(j).isSelected() )\n\t\t\t\t{\n\t\t\t\t\tlistelement.get(j).click();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\t\n\n\t}", "public int cellClicked(Board source, int cellX, int cellY);", "private void selectTableRow () {\n int selectedRow = itemTable.getSelectedRow();\n if (selectedRow >= 0 && selectedRow < clubEventList.size()) {\n boolean modOK = modIfChanged();\n if (modOK) {\n position = clubEventList.positionUsingListIndex (selectedRow);\n positionAndDisplay();\n }\n }\n }", "private int getSelected(List<ObjectParsing.Options> list){\n int position=0,i=0;\n for (ObjectParsing.Options options:\n list) {\n if(options.getSelected()!=null && options.getSelected().equals(\"true\")){\n position=i;break;\n }i++;\n }\n return position;\n }", "protected void setSelectedCells(Cell[][] selectedCells) {\n this.selectedCells = selectedCells;\n }", "private int isInList(ArrayList<Cell> list, Cell current) {\r\n\t\t\tint index = -1;\r\n\t\t\tfor (int i = 0; i < list.size(); i++) {\r\n\t\t\t\tif (current.row == list.get(i).row && current.col == list.get(i).col) {\r\n\t\t\t\t\tindex = i;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\treturn index;\r\n\t\t}", "public boolean isCellSelected(Object cell) {\r\n \t\treturn graph.isCellSelected(cell);\r\n \t}", "boolean selectTo(double x, double y);", "Object getSelection();", "private void selectSurfaceEntity(Tile tile) {\r\n\t\tint i = 0;\r\n\t\tfor (TileEntry te : surfaceTableModel.rows) {\r\n\t\t\tif (te.tile == tile) {\r\n\t\t\t\tint idx = surfaceTable.convertRowIndexToView(i);\r\n\t\t\t\tsurfaceTable.getSelectionModel().addSelectionInterval(idx, idx);\r\n\t\t\t\tsurfaceTable.scrollRectToVisible(surfaceTable.getCellRect(idx, 0, true));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\t\t\r\n\t}", "public SelectTile(MapManager parent, Point selected){\n this.parent = parent;\n \n //Save the selected point\n this.selected = new Point(selected.x, selected.y);\n\n //Add the Point to the list of selected cells\n this.parent.getSelectedArea().clear();\n this.parent.getSelectedArea().add(this.selected);\n }", "public void setCurrentCell(\n\t\t\tint index )\n\t{\n\t}", "public void select(Object obj, boolean selectionFlag);", "public abstract TIntArrayList select(TIntArrayList input);", "private void setSelectedWord() {\n for (TableRow row: rows) {\n Drawable background = row.getBackground();\n if (background instanceof ColorDrawable) {\n int backColor = ((ColorDrawable) background).getColor();\n if (backColor == rowSelectColor) {\n final TextView descriptionView = (TextView) row.findViewById(R.id.wordDescription);\n final TextView glossView1 = (TextView) row.findViewById(R.id.wordGloss1);\n if (descriptionView != null) selectedWords = descriptionView.getText().toString();\n if (glossView1 != null) selectedSynset = glossView1.getText().toString();\n }\n }\n }\n }", "void changeCellAt(int col, int row, String sexp);", "private void setJList(JList list, String strs[]) {\n List<Integer> indexes = new ArrayList<Integer>(); ListModel lm = list.getModel();\n for (int i=0;i<strs.length;i++) { for (int j=0;j<lm.getSize();j++) if (strs[i].equals(\"\" + lm.getElementAt(j))) indexes.add(j); }\n int index_array[] = new int[indexes.size()]; for (int i=0;i<index_array.length;i++) index_array[i] = indexes.get(i);\n list.setSelectedIndices(index_array);\n }", "@FXML \n public void handleSelected() throws Exception{\n \n TablePosition pos = (TablePosition) table.getSelectionModel().getSelectedCells().get(0);\n int index = pos.getRow();\n String selected = table.getItems().get(index).toString();\n String sn = selected.substring(0, selected.indexOf(\",\"));\n String cc =selected.substring(selected.indexOf(\",\")+1, selected.length());\n \n StudentMarkClick.Activate(sn, cc, lastclicked);\n //switch to detail view\n content.getChildren().clear();\n content.getChildren().add(FXMLLoader.load(getClass().getResource(\"viewMarks.fxml\")));\n \n //selected = selected.substring(1, selected.indexOf(\",\")); //only get username\n System.out.println(sn+\"|\"+cc); \n \n }", "private void selectCurrent() {\n final File currentSelection = callback.getCurrentSelection();\n final List<DirectoryListItem> items = gridView.getItems();\n IntStream.range(0, items.size())\n .filter(i -> compareFilePaths(items.get(i).getFile(), currentSelection))\n .findFirst()\n .ifPresent(selectedCellIndex::setValue);\n }", "Coord getSelected() {\n if (selected == null) {\n return null;\n }\n return new Coord(selected.col, selected.row);\n }", "public abstract boolean getCell(int x, int y);", "public void select();", "@Override\n public void valueChanged(ListSelectionEvent e) {\n TableModel tm = jTable.getModel();\n // Bepaalt de geselecteerde rij en vult een array met alle waardes\n int[] selRows = jTable.getSelectedRows();\n // Dit vult selectedID\n this.result = tm.getValueAt(selRows[0],0);\n }", "public native void deselectCell(String cell) /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n self.deselectCell(cell);\r\n }-*/;", "List<Trueorfalse> selectByExample(RowBounds rowBounds);", "int[] getSelection();", "public void selectIndex(int idx) {\n getElement().selectIndex(idx);\n }", "public static Cell getCell(CellView cellView)\n {\n for (int i = 0; i < cellList.size(); i ++)\n {\n if (cellList.get(i).getId().equals(cellView.getId()))\n return cellList.get(i);\n }\n return null;\n }", "List<Notifiction> selectByExampleWithRowbounds(NotifictionExample example, RowBounds rowBounds);", "protected abstract void rowSelectedCriterionTable(EvCriterion<Ev, CriterionShortIdentifier> item, Cell cell, ClickEvent event);", "ICell getCellAt(int col, int row) throws IllegalArgumentException;", "public void select(final String value) {\n\t\tif (value == null) {\n\t\t\treturn;\n\t\t}\n\t\twait(action(c -> {\n\t\t\tfor (int i = 0; i < c.getModel().getSize(); i++) {\n\t\t\t\tif (value.equals(c.getModel().getElementAt(i).toString())) {\n\t\t\t\t\tc.setSelectedIndex(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}).withReportText(\"selecting element \" + value));\n\t\tAssertions.assertTrue(getCachedElement().getSelectedIndex() >= 0,\n\t\t\t\t() -> name + \": element must have been selected: \" + value);\n\t}", "private void select(int row, int column) {\n \n if (recordList != null && entryForm != null) {\n currentColumn = column;\n if (currentRow != row) {\n currentRow = row;\n recordList.setSelectedIndex(row);\n }\n recordForm.setFocusAt(column);\n }\n \n }", "void populateCellMenu(Cell cell, List<String> actions);", "void multiSelection(DynamicTable table, String element) {\n //String upElement = element.substring(0,1).toUpperCase() +\n // element.substring(1);\n //................MULTIPLE SELECTION--Add DROP-DOWN MENU ....................\n Select multiTypeSelect = new Select(\"pmultitype\");\n multiTypeSelect.addOption(new Option(\"Only 1 \"+element+\" required\",\"1\", false));\n multiTypeSelect.addOption(new Option(\"12 month \"+element+\"s\", \"2\", false));\n multiTypeSelect.addOption(new Option(\"4 seasonal \"+element+\"\", \"3\", false));\n multiTypeSelect.addOption(new Option(\"A \"+element+\" / month (yrs*12)\", \"4\", false));\n\n //................PLOT TYPE SELECTION input box....................\n table.addRow(ec.cr2ColRow(\n chFSize(\"Multi-\"+element+\" Selection: \",\"-1\"), multiTypeSelect));\n\n }", "public void chooseCellColor(){\n currentCellColor = cellColorPicker.getValue();\n draw();\n }", "public native String[] getSelectedCellIds() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var cells = self.getSelectedCellIds();\r\n if (cells == null) return null;\r\n return @com.smartgwt.client.util.JSOHelper::convertToArray(Lcom/google/gwt/core/client/JavaScriptObject;)(cells);\r\n }-*/;", "public void select(int x, int y)\n\t{\n\t\tif(!this.used[x][y])\n\t\t{\n\t\t\tthis.cur.move(x, y);\n\t\t\tthis.moved = true;\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.selected = true;\n\t\t\tthis.cur = piece[x][y];\n\t\t}\n\t\t//drawState();\n\t}", "public native Boolean anyCellSelected() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var retVal =self.anyCellSelected();\r\n if(retVal == null || retVal === undefined) {\r\n return null;\r\n } else {\r\n return @com.smartgwt.client.util.JSOHelper::toBoolean(Z)(retVal);\r\n }\r\n }-*/;", "public abstract T getCell(int row, int column);", "@Override\n public void valueChanged(ListSelectionEvent e) {\n currentRow = recordList.getSelectedIndex();\n setRowValues(currentRow, currentColumn);\n if (selectionAction == WAITING_ON_SELECTION) {\n selectionAction = SENDING_SELECTION;\n }\n if (selectionAction == SENDING_SELECTION) {\n selectionAction = FINISHED_SELECTION;\n cellNotifier.select(currentRow, currentColumn); // Notify GUI to select\n }\n \n \n }", "List<Integer> getSelectedIndexes();", "void editCell(Coord coord, String string);", "private User getUser(MouseEvent e) {\n int index = locationToIndex(e.getPoint());\n Rectangle bounds = getCellBounds(index, index);\n if (bounds != null && bounds.contains(e.getPoint())) {\n setSelectedIndex(index);\n return getSelectedValue();\n }\n return null;\n }", "public void setSelection(int molIndex) {}", "public boolean select(String entry);", "@Override\r\n\tpublic boolean shouldSelectCell(EventObject anEvent) {\n\t\treturn true;\r\n\t}", "public void setSelection(Pair selection);", "private void selectItemInList(String item, Combo combo) {\n\t\tString[] items = combo.getItems();\n\t\tfor (int i = 0; i < items.length; i++) {\n\t\t\tif (items[i].equals(item)) {\n\t\t\t\tcombo.select(i);\n\t\t\t\tcombo.notifyListeners(SWT.Selection, null);\n\t\t\t}\n\t\t}\n\t}", "public void setSelected(List<F> selected) {\n this.selected = selected;\n }", "void cellMenuAction(Cell cell, String action);", "public static void select(StringComboViewer viewer, Object value){\n\t\t\n\t\tCollection<String> input = viewer.getInputCollection();\n\t\tint i = 0;\n\t\tfor (String name : input){\n\t\t\tif (value.equals(name)){\n\t\t\t\tviewer.setSelection(new StructuredSelection(viewer.getElementAt(i)));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}", "public abstract void setCell(int row, int column, T item);", "public native CellRecord[] getSelectedCells() /*-{\r\n var self = [email protected]::getOrCreateJsObj()();\r\n var cells = self.getSelectedCells();\r\n if (cells == null) return cells;\r\n return @com.smartgwt.client.widgets.cube.CubeGrid::convertToCellRecordArray(Lcom/google/gwt/core/client/JavaScriptObject;)(cells);\r\n }-*/;", "public void select() {}", "private void determineMenuSelection(String filePath) throws IOException {\n\t\tBufferedImage currentImage = Utils.readInImage(filePath);\n\t\tArrayList<Rectangle> boxes = model.getTemplateBoxes();\n\t\tArrayList<Rectangle> used = new ArrayList<>();\n\t\tdetermineInitSelections(boxes, used, currentImage);\n\t\tfor(int i = 7; i < boxes.size(); i++) { // Start at i = 2 for initial selections\n\t\t\t\n\t\t\tif(!used.contains(boxes.get(i))) {\n\t\t\t\tboolean a = searchBlackPixels(boxes.get(i), currentImage);\n\t\t\t\tboolean b = searchBlackPixels(boxes.get(i + 5), currentImage);\n\t\t\t\tif(a) {\n\t\t\t\t\tmodel.getSelections()[i] = 'A';\n\t\t\t\t\tused.add(boxes.get(i));\n\t\t\t\t\tused.add(boxes.get(i + 5));\n\t\t\t\t} else if(b) {\n\t\t\t\t\tmodel.getSelections()[i] = 'B';\n\t\t\t\t\tused.add(boxes.get(i));\n\t\t\t\t\tused.add(boxes.get(i + 5));\n\t\t\t\t} else {\n\t\t\t\t\tmodel.getSelections()[i] = 'A';\n\t\t\t\t\tused.add(boxes.get(i));\n\t\t\t\t\tused.add(boxes.get(i + 5));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void selectRange(String currentRange);", "public void widgetSelected(SelectionEvent e) {\n table.setSelection(new TableItem[]{cursor.getRow()});\n }", "public static void select(Combo combo, Object value){\n\t\tfor (int i = 0; i <combo.getItems().length; i++) {\n\t\t\tif (value.equals(combo.getItem(i))){\n\t\t\t\tcombo.select(i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "public void select ();", "public void setListSelection(int position) {\n/* 502 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void cellClick(Point mPos) {\n // for all cells\n for (int i = 0; i < game.grid.length; i++){\n for (int j = 0; j<game.grid[0].length; j++){\n // if the mouse position is in the cell\n if (mPos.x > j*cellSize && mPos.x < j*cellSize + cellSize && mPos.y > i*cellSize && mPos.y < i*cellSize + cellSize) {\n // change to dead cell if already live\n if (game.grid[i][j] == true) {\n game.grid[i][j] = false;\n // change to live cell if already dead\n } else {\n game.grid[i][j] = true;\n }\n }\n }\n } \n repaint();\n }", "void setRowSelection(int index, String value) {\r\n int val;\r\n try {\r\n val = ( (Integer) nameToIndexMap.get(value)).intValue();\r\n }\r\n catch (Exception e) {\r\n return;\r\n }\r\n ySelections[index] = val;\r\n\r\n // now, for all the plots in this row, update the objectives\r\n for (int i = 0; i < 2; i++) {\r\n plots[index][i].setObjectives(xSelections[i], val);\r\n /////////////////////////////////\r\n plots[index][i].redraw();\r\n /////////////////////////////////\r\n }\r\n fireTableDataChanged();\r\n }", "public abstract AwtCell get(int y, int x);", "public void move( char tL, int selectCell ){\r\n boardCells[ selectCell ].setData( tL );\r\n }", "public void fireTableRowSelected(Object source, int iRowIndex, int iSelectionType);", "@Override\n public void mousePressed(MouseEvent e) {\n if (e.getButton() == MouseEvent.BUTTON3) {\n int rowUnderMouse = getTable().rowAtPoint(e.getPoint());\n// if (rowUnderMouse != -1 && !getTable().isRowSelected(rowUnderMouse)) {\n// selected = rowUnderMouse;\n// }\n selected = rowUnderMouse;\n }\n }", "public CrosstabCell getCellByPoint(Point p) {\r\n\r\n for (int i=0; i<getCrosstabElement().getCells().size(); ++i)\r\n {\r\n CrosstabCell cell = (CrosstabCell)this.getCrosstabElement().getCells().elementAt(i);\r\n if (cell.getBounds().contains(p) && (isDefaultCellMode() == (cell.getType() == CrosstabCell.NODATA_CELL)))\r\n {\r\n return cell;\r\n }\r\n }\r\n\r\n return null;\r\n }", "List<Online> selectByExampleWithRowbounds(OnlineExample example, RowBounds rowBounds);", "public BoardCell pickLocation(Set<BoardCell> targets){\n\t\tfor (BoardCell i: targets)\r\n\t\t\tif (i.isRoom() && !(((RoomCell) i).getInitial() == lastRoomVisited))\r\n\t\t\t\treturn i;\r\n\t\t//\tpick random cell\r\n\t\tObject[] cell = targets.toArray();\r\n\t\tRandom generator = new Random();\r\n\t\tint random = generator.nextInt(cell.length);\r\n\t\treturn (BoardCell) cell[random];\r\n\t}", "void insertSelective(VRpDyCellBh record);", "private void table1MouseClicked(MouseEvent e) {\n\t\tint selC = table1.getSelectedColumn();\n\t\tint selR = table1.getSelectedRow();\n\t\tSystem.out.println(\" selC \" + selC + \" selR \" + selR);\n\t\t// System.out.println(modelKnow.getValueAt(selR, selC));\n\t}", "public static Cell getCell(String id)\n {\n for (int i = 0; i < cellList.size(); i ++)\n {\n if (cellList.get(i).getId().equals(id))\n return cellList.get(i);\n }\n return null;\n }" ]
[ "0.68682855", "0.6604316", "0.6471954", "0.634111", "0.6285213", "0.62276274", "0.6106245", "0.60070693", "0.5997247", "0.5978703", "0.5942719", "0.5867301", "0.5828461", "0.56830055", "0.55493826", "0.55437565", "0.55371785", "0.55292124", "0.5522787", "0.5521359", "0.5506501", "0.5502722", "0.55005825", "0.5488143", "0.54813594", "0.5456753", "0.5433386", "0.5430367", "0.5429149", "0.54118156", "0.5407001", "0.5379864", "0.5370625", "0.5368263", "0.5358756", "0.5349183", "0.53443277", "0.5343316", "0.5331932", "0.53311855", "0.53201294", "0.5309363", "0.5296888", "0.52922046", "0.5291818", "0.5285238", "0.5281447", "0.5275314", "0.52725416", "0.5259353", "0.5251288", "0.52507997", "0.52394897", "0.5237442", "0.5228437", "0.52237266", "0.5214494", "0.52106386", "0.52086145", "0.52079403", "0.52078456", "0.52061963", "0.5205807", "0.51974076", "0.5173849", "0.51735896", "0.51688874", "0.5168719", "0.5165256", "0.515848", "0.5134581", "0.5127129", "0.51268077", "0.5121154", "0.51201576", "0.511623", "0.51140654", "0.511333", "0.51133037", "0.5105533", "0.5101297", "0.5094925", "0.50745684", "0.50743085", "0.50691694", "0.50649905", "0.50597966", "0.5058947", "0.5052086", "0.5049712", "0.50456864", "0.50376374", "0.5021952", "0.50217915", "0.5019372", "0.50108445", "0.5006114", "0.50059927", "0.5004488", "0.5003872" ]
0.7900962
0
select a room in a given list
@Override public List<Cell> selectRoom(List<List<Cell>> selectable) { JSONObject message = new JSONObject(); message.put("function", "select"); message.put("type", "room"); JSONArray jArray = new JSONArray(); selectable.forEach(r -> { JSONArray room = createJSONCoordinateList(r); jArray.add(room); }); message.put("list", jArray); this.sendInstruction(message); JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse()); if (selected.get("room").toString().equals("none")) return new ArrayList<>(); JSONArray room = (JSONArray) selected.get("room"); for(List<Cell> r : selectable){ for(Cell c : r){ if(c.getCoordX() == Integer.parseInt((((JSONObject) room.get(0)).get("x").toString())) && c.getCoordY() == Integer.parseInt((((JSONObject) room.get(0)).get("y").toString()))) return r; } } return new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectroom() throws InterruptedException\r\n\t{\r\n\t\tExplicitWait(Select_Room);\r\n\t\t//SeleniumRepo.waitForElementPresent(Select_Room);\r\n\r\n\t\tif (Select_Room.isDisplayed()) \r\n\t\t{\r\n\t\t\tSelect_Room.click();\r\n\t\t\tThread.sleep(3000);\r\n\t\t\tSystem.out.println(\"Clicked on select room\");\r\n\t\t\tlogger.info(\"Clicked on select room\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on select room\");\r\n\r\n\t\t} else \r\n\t\t{\r\n\t\t\tSystem.out.println(\"Unable to Click on select room\");\r\n\t\t\tlogger.error(\"Unable to Click on select room\");\r\n\t\t\ttest.log(Status.FAIL, \"Unable to Click on select room\");\r\n\t\t}\r\n\r\n\t\t//Thread.sleep(2000);\r\n\t\tint roomlength = rooms.size();\r\n\t\tSystem.out.println(\"What is room size \" + roomlength);\r\n\t\tThread.sleep(3000);\r\n\r\n\t\t\r\n\t\t//This for loop selects the same room for a multi room booking. Inorder to change it\r\n\t\t//must handel the selection of a different room which clasp the select room dropdown\r\n\t\tfor(int L=1;L<=roomlength;L++)\r\n\t\t{\r\n\r\n\t\t\tif (SeleniumRepo.driver.findElement(By.xpath(\"(//ul[@class='rooms-selector-list']//li)[\"+L+\"]/a\")).isDisplayed()) \r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t{ \r\n\t\t\t\tJavascriptexecutor(SeleniumRepo.driver.findElement(By.xpath(\"(//ul[@class='rooms-selector-list']//li)[\"+L+\"]/a\")));\r\n\t\t\t\tThread.sleep(7000);\r\n\r\n\t\t\t\t//System.out.println(\"room \"+L+\" selected successfully\");\r\n\t\t\t\tlogger.info(\"rooms selected successfully\");\r\n\t\t\t\ttest.log(Status.INFO, \"rooms selected successfully\");\r\n\r\n\t\t\t} else \r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"rooms not selected successfully\");\r\n\t\t\t\tlogger.error(\"rooms not selected successfully\");\r\n\t\t\t\ttest.log(Status.FAIL, \"rooms not selected successfully\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void setRoom(Room room) {\n this.selectedRoom = room;\n }", "List<Room> selectRoomList(@Param(\"building\") String building);", "List<Room> selectRoomListWithFromIndex(@Param(\"building\") String building, @Param(\"fromIndex\") Integer fromIndex);", "public boolean checkRoom(List<Room> list, int value){\n boolean exists = false;\n for (Room r : list){\n if(r.getId() == value)\n exists = true;\n }\n return exists;\n }", "public void seeReservation(RoomList roomList){\n\t\tSystem.out.println(\"What is the name of the guest you wish to check a reservation for ?\");\n\t\tkeyboard.nextLine();\n\t\tString name = keyboard.nextLine();\n\t\tRoom room = null;\n\t\t\n\t\tfor(Room r: roomList.getList()){\n\t\t\tif(!r.isEmpty(r)) {\n\t\t\troom = r.findRoomByName(r, name);\n\t\t\troom.getGuestNames(room);\n\t\t\t}\n\t\t}\n\t}", "ExamRoom selectByPrimaryKey(Integer pkid);", "private void getUserRoomChoice() {\n int checkedChipId = mBinding.chipGroupRooms.getCheckedChipId();\n if (checkedChipId == R.id.chip_1_room) {\n mChipRoomsInput = 1;\n } else if (checkedChipId == R.id.chip_2_rooms) {\n mChipRoomsInput = 2;\n } else if (checkedChipId == R.id.chip_3_rooms) {\n mChipRoomsInput = 3;\n } else if (checkedChipId == R.id.chip_4_rooms) {\n mChipRoomsInput = 4;\n } else if (checkedChipId == R.id.chip_5_rooms) {\n mChipRoomsInput = 5;\n } else {\n mChipRoomsInput = 0;\n }\n }", "List<Room> selectRoomListWithSearchCondition(@Param(\"condition\") String condition);", "protected static Room getRoomFromName(ArrayList<Room> roomList, String name) {\n return roomList.get(findRoomIndex(roomList, name));\n }", "private void getUserBedroomsChoice() {\n int checkedChipId = mBinding.chipGroupBedrooms.getCheckedChipId();\n if (checkedChipId == R.id.chip_1_bedroom) {\n mChipBedroomsInput = 1;\n } else if (checkedChipId == R.id.chip_2_bedrooms) {\n mChipBedroomsInput = 2;\n } else if (checkedChipId == R.id.chip_3_bedrooms) {\n mChipBedroomsInput = 3;\n } else if (checkedChipId == R.id.chip_4_bedrooms) {\n mChipBedroomsInput = 4;\n } else if (checkedChipId == R.id.chip_5_bedrooms) {\n mChipBedroomsInput = 5;\n } else {\n mChipBedroomsInput = 0;\n }\n }", "public void check_in(String type) {\n int index=searchRoom(type);\n if (index<=0)\n {\n System.out.println(\"There is no available \"+type+\" room!\");\n }else\n {\n int roomNo=roomlist.get(index).getRoomid();\n /*New object is created and this object`s availability wiil be \"not available,statu will be \"check in\"*/\n Room room = new Room(type,roomNo,\"not available\",\"check in\",this,roomlist.get(index).getRoomcharge());\n changeList(room);\n System.out.println(toString());\n System.out.println(\"Checked in of the room \"+roomNo+\" .\");\n }\n }", "List<Room> selectRoomListWithScreenCondition(@Param(\"building\") String building, @Param(\"capacity\") Integer capacity,\n\t\t\t@Param(\"hasMultiMedia\") Integer hasMultiMedia);", "public void setRoomList (ArrayList<ItcRoom> roomList)\r\n\t {\r\n\t //this.roomList = roomList;\r\n\t }", "public Room getRandomRoom(){\n return (Room)rooms.get(random.nextInt(rooms.size()));\n }", "Room getRoom();", "Room getRoom();", "SrHotelRoomInfo selectByPrimaryKey(Long id);", "public int selectRoomByStatus(RoomStatus status) throws NullPointerException, IOException {\n\n\t\twhile (true) {\n\t\t\tSystem.out.println(\"Room ID:\");\n\n\t\t\tString input = br.readLine();\n\n\t\t\tif(Integer.parseInt(input) == 0) {\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\tPattern roomIdPattern = Pattern.compile(\".*([1-9][0-9][0-9])$\");\n\t\t\tMatcher roomIdMatcher = roomIdPattern.matcher(input);\n\n\t\t\tif (!(roomIdMatcher.find())) {\n\t\t\t\tSystem.out.println(\"Enter a room from the options above!\");\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tint roomId = Integer.parseInt(roomIdMatcher.group(1));\n\n\t\t\tif(!(rooms.containsKey(roomId)) && (rooms.get(roomId).status == status)) {\n\t\t\t\tSystem.out.println(\"There are no rooms to perform this action on!\");\n\t\t\t\treturn 0;\n\t\t\t}\n\n\t\t\treturn roomId;\n\n\t\t}\n\n\t}", "List<ExamRoom> selectAll();", "@Override\n\tpublic Cell selectCell(List<Cell> selectable) {\n JSONObject message = new JSONObject();\n message.put(\"function\", \"select\");\n message.put(\"type\", \"cell\");\n\t\tJSONArray jArray = createJSONCoordinateList(selectable);\n\t\tmessage.put(\"list\", jArray);\n this.sendInstruction(message);\n JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n if (selected.get(\"x\").equals(\"none\")) return null;\n\n return selectable.stream().filter(c->c.getCoordX() == Integer.parseInt(selected.get(\"x\").toString()) &&\n c.getCoordY() == Integer.parseInt(selected.get(\"y\").toString()))\n .collect(Collectors.toList()).get(0);\n\t}", "public void setRooms(ArrayList value);", "@Override\r\n public void setRoom(Room room) {\n this.room = room; //set the hive room\r\n roomList.add(this.room); // add room to the list\r\n }", "public void setRoom(Room room) {\n int roomNumber = room.getRoomNumber();\n if (room.getRoomNumber() > internalList.size()) {\n setRoomForRoomNumberLessThanNumberOfRooms(room);\n } else {\n setRoomForRoomNumberMoreThanNumberOfRooms(room);\n }\n }", "public Room findRoom(String roomName){\n for (Room r : roomList){\n if (r.getRoomName().equals(roomName)){\n return r;\n }\n }\n return null;\n }", "List<SrHotelRoomInfo> selectByExample(SrHotelRoomInfoExample example);", "private static void viewRooms() \n {\n String option, roomCode;\n\n displayMyRooms(\" \");\n\n Scanner input = new Scanner(System.in);\n\n System.out.print(\"Type (v)iew [room code] or \"\n + \"(r)eservations [room code], or (q)uit to exit: \");\n \n option = input.next().toLowerCase();\n \n while (!option.equals(\"q\"))\n {\n if (option.equals(\"v\") || option.equals(\"r\"))\n {\n System.out.print(\"Enter a room code: \");\n roomCode = \" '\" + input.next().toUpperCase() + \"'\";\n\n if(option.equals(\"v\"))\n displayDetailedRooms(roomCode);\n else\n displayDetailedReservations(\"WHERE ro.RoomId = \" + roomCode);\n }\n\n System.out.print(\"Type (v)iew [room code] or \"\n + \"(r)eservations [room code], or (q)uit to exit: \");\n \n option = input.next().toLowerCase();\n }\n \n }", "Location selectMoveLocation(ArrayList<Location> locs);", "public void setRoomList(ArrayList<RoomList> RoomList) {\r\n this.RoomList = RoomList;\r\n }", "RoomInfo room(int id);", "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 }", "public void goRoom(Command command) \n {\n if(!command.hasSecondWord()) {\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where?\");\n return;\n }\n\n String direction = command.getSecondWord();\n\n // Try to leave current room.\n Room nextRoom = null;\n \n for(Exit e : currentRoom.getListExits()) {\n String key = e.getDirection();\n Room exit = e.getRoom();\n \n if(direction.equals(key)){\n nextRoom = exit;\n break;\n }\n }\n \n if (nextRoom == null) {\n \n }\n else {\n currentRoom = nextRoom;\n printExits ();\n }\n }", "public void addRoomList(Detail list) {\n\t\t\tRoomList = list;\r\n\t\t}", "public static int room_booking(int start, int end){\r\n\r\n\t\tint selected_room = -1;\r\n\t\t// booking_days list is to store all the days between start and end day\r\n\t\tList<Integer> booking_days = new ArrayList<>();\r\n\t\tfor(int i=start;i<=end; i++) {\r\n\t\t\tbooking_days.add(i);\r\n\t\t}\r\n\r\n\t\tfor(int roomNo : hotel_size) {\r\n\r\n\t\t\tif(room_bookings.keySet().contains(roomNo)) {\r\n\t\t\t\tfor (Map.Entry<Integer, Map<Integer,List<Integer>>> entry : room_bookings.entrySet()) {\r\n\r\n\t\t\t\t\tList<Integer> booked_days_for_a_room = new ArrayList<Integer>();\r\n\t\t\t\t\tif(roomNo == entry.getKey()) {\r\n\t\t\t\t\t\tentry.getValue().forEach((bookingId, dates)->{\r\n\t\t\t\t\t\t\tbooked_days_for_a_room.addAll(dates);\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t\tList<Integer> check_elements = new ArrayList<Integer>();\r\n\t\t\t\t\t\tfor(int element : booking_days) {\r\n\t\t\t\t\t\t\tif(booked_days_for_a_room.contains(element)) {\r\n\t\t\t\t\t\t\t\tstatus = false;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tcheck_elements.add(element);\r\n\t\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\t\tstatus = true;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(status) {\r\n\t\t\t\t\t\t\tselected_room = roomNo;\r\n\t\t\t\t\t\t\treturn selected_room;\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\telse {\r\n\t\t\t\tselected_room = roomNo;\r\n\t\t\t\tstatus = true;\r\n\t\t\t\treturn selected_room;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn selected_room;\r\n\t}", "public Room getRoom(String name) {\n\n if (room1.getGuest() != null && room1.getGuest().getName().equals(name)) { // If room 1 has a guest and that guest has the name of the guest being requested\n\n return room1;\n\n } else if(room2.getGuest() != null && room2.getGuest().getName().equals(name)) { // If room 2 has a guest and that guest has the name of the guest being requested\n\n return room2;\n\n }\n\n else return null; // If no guest with such name occupies room\n }", "public void select_Rooms(String Enterrooms) throws InterruptedException, IOException\r\n\t{\r\n\t\t\r\n\t\tExplicitWait(select_rooms);\r\n\r\n\t\tif (select_rooms.isEnabled()) \r\n\t\t{\r\n\t\t\t//select_rooms.isDisplayed();\r\n\t\t\t/*select_rooms.click();\r\n\t\t\tSeleniumRepo.WaitForLoad(100);*/\r\n\t\t\tSeleniumRepoDropdown.selectDropDownValue(select_rooms, Enterrooms);\r\n\t\t\tlogger.info(\"rooms selected\");\r\n\t\t\ttest.log(Status.PASS, \"rooms selected\");\r\n\r\n\t\t} else \r\n\t\t{\r\n\t\t\t//System.out.println(\"Unable to select rooms\");\r\n\t\t\tlogger.error(\"Unable to select rooms\");\r\n\t\t\ttest.log(Status.FAIL, \" Unable to select rooms\");\r\n\r\n\t\t}\r\n\t\t\r\n\t\tint numberOfRooms = Integer.parseInt(Enterrooms);\t\r\n\t\tSystem.out.println(\"guest rooms \" + numberOfRooms);\r\n\r\n\r\n\t\t//Not sure what this is meant for but it will always return 1\r\n\t\tint adultslength = Listselect_adults.size();\r\n\t\tSystem.out.println(\"guest rooms sdult size \" + adultslength);\r\n\r\n\t\tfor(int j=1;j<=numberOfRooms;j++)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"This is the value of j = \" + j);\r\n\t\t\t\r\n\t\t\tString minnoofadults = ReadProperties.getPropValues(\"Admin.properties\", \"MINnoofadults\");\t\r\n\t\t\tString maxnoofadults = ReadProperties.getPropValues(\"Admin.properties\", \"MAXnoofadults\");\r\n\t\t\tif (SeleniumRepo.driver.findElement(By.xpath(\"(//*[starts-with(@id,'adults-in-room')])[\"+j+\"]\")).isDisplayed()) \r\n\t\t\t{\r\n\t\t\t\tSeleniumRepo.driver.findElement(By.xpath(\"(//*[starts-with(@id,'adults-in-room')])[\"+j+\"]\")).sendKeys(Integer.toString(\r\n\t\t\t\t\t\tSeleniumRepo.getRandomNumberInRange(Integer.parseInt(minnoofadults), Integer.parseInt(maxnoofadults))));\r\n\t\t\t\t//System.out.println(\"adults is entered successfully\");\r\n\t\t\t\tlogger.info(\"adults is entered successfully\");\r\n\t\t\t\ttest.log(Status.INFO, \"adults is entered successfully\");\r\n\r\n\t\t\t}\r\n\t\t\telse \r\n\t\t\t{\r\n\t\t\t\t//System.out.println(\"adults dropdown not found\");\r\n\t\t\t\tlogger.error(\"adults dropdown not found\");\r\n\t\t\t\ttest.log(Status.FAIL, \"adults dropdown not found\");\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t//NOt sure how this is suppouse to work with the for loop below but it will always have a value of 1\r\n//\t\tint childrenslength = Listselect_childrens.size();\r\n//\t\t//System.out.println(childrenslength);\r\n//\r\n//\t\tfor(int i=1;i<=numberOfRooms;i++)\r\n//\t\t{\r\n//\t\t\tSystem.out.println(\"This is the value of i = \" + i);\r\n//\r\n//\t\t\tString minnoofchildrens = ReadProperties.getPropValues(\"Admin.properties\", \"MINnoofchildrens\");\r\n//\t\t\tString maxnoofchildrens = ReadProperties.getPropValues(\"Admin.properties\", \"MAXnoofchildrens\");\r\n//\t\t\tif (SeleniumRepo.driver.findElement(By.xpath(\"(//*[starts-with(@id,'children-in-room')])[\"+i+\"]\")).isDisplayed()) {\r\n//\t\t\t\tSeleniumRepo.driver.findElement(By.xpath(\"(//*[starts-with(@id,'children-in-room')])[\"+i+\"]\")).sendKeys(Integer.toString(\r\n//\t\t\t\t\t\tSeleniumRepo.getRandomNumberInRange(Integer.parseInt(minnoofchildrens), Integer.parseInt(maxnoofchildrens))));\r\n//\t\t\t\t//System.out.println(\"childrens is entered successfully\");\r\n//\t\t\t\tlogger.info(\"childrens is entered successfully\");\r\n//\t\t\t\ttest.log(Status.INFO, \"childrens is entered successfully\");\r\n//\r\n//\t\t\t}\r\n//\t\t}\r\n\r\n\t\tThread.sleep(2000);\t\r\n\t\tif (roomselectiondone.isEnabled()) \r\n\t\t{\r\n\t\t\troomselectiondone.isDisplayed();\r\n\t\t\troomselectiondone.click();\r\n\t\t\t\r\n\t\t\tSeleniumRepo.waitForPageLoaded();\r\n\t\t\tThread.sleep(5000);\r\n\t\t\t//System.out.println(\"Clicked on done\");\r\n\t\t\tlogger.info(\"Clicked on done\");\r\n\t\t\ttest.log(Status.INFO, \"Clicked on done\");\r\n\t\t}\r\n\r\n\t\telse \r\n\t\t{\r\n\t\t\t//System.out.println(\"Done Button Not found\");\r\n\t\t\tlogger.error(\"Done Button Not found\");\r\n\t\t\ttest.log(Status.FAIL, \"Done Button Not found\");\r\n\r\n\t\t}\r\n\t}", "void askLobbyID(ArrayList<Lobby> lobbies);", "public void populateRooms(){\n }", "public static void showAllRoom(){\n ArrayList<Room> roomList = getListFromCSV(FuncGeneric.EntityType.ROOM);\n displayList(roomList);\n showServices();\n }", "public List<Room> findAllRooms();", "RoomInfo room(String name);", "private void setAvailableGames() {\n try {\n listView.getItems().clear();\n DataOutputStream dataOutputStream = new DataOutputStream(socket.getOutputStream());\n dataOutputStream.writeUTF(\"GLst\");\n ObjectInputStream objectInputStream = new ObjectInputStream(socket.getInputStream());\n HashMap<String, String> list = (HashMap<String, String>) objectInputStream.readObject();\n for (String roomCode : list.keySet()) {\n HBox hboxList = new HBox();\n hboxList.setSpacing(8);\n Button buttonJoin = new Button(\"Join\");\n buttonJoin.setOnAction(event -> joinGameRoom(roomCode));\n Separator separator = new Separator();\n separator.setOrientation(Orientation.VERTICAL);\n Label roomName = new Label(list.get(roomCode));\n roomName.setFont(Font.font(\"Arial\", 20));\n hboxList.getChildren().add(buttonJoin);\n hboxList.getChildren().add(separator);\n hboxList.getChildren().add(roomName);\n listView.getItems().add(hboxList);\n }\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\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 }", "@Override\n\tpublic Powerup choosePowerup(List<Powerup> selectable) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"powerup\");\n\t\tJSONArray jArray = new JSONArray();\n\t\tselectable.forEach(s->jArray.add(s.toJSON()));\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\n\t\tString selected = this.getResponse();\n\n\t\tif (selected == null || selectable.isEmpty()) return null;\n\t\tList<Powerup> matching = selectable.stream().filter(p->p.toJSON().toString().equals(selected))\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn matching.isEmpty() ? null : matching.get(0);\n\t}", "public RoomModel SelectRoomsById(int id)\r\n\t\t{\r\n\t\t\tRoomModel\trm\t\t\t\t=\tnew RoomModel();\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\tp\t\t\t\t\t\t=\tcon.prepareStatement(\"select room.*,building.buil_id,building.buil_name,floor.floor_name,room_rent.rent,company_reg.comp_name from room inner join floor on floor.floor_id = room.floor_id inner join building on floor.buil_id=building.buil_id inner join room_rent on room.room_id=room_rent.room_id left join company_reg on company_reg.room_id = room.room_id where room.room_id = ? order by room.room_id asc\");\r\n\t\t\t\tp.setInt(1,id);\r\n\t\t\t\tResultSet\trs\t\t\t=\tp.executeQuery();\r\n\t\t\t\t//System.out.print(p);\r\n\t\t\t\twhile(rs.next())\r\n\t\t\t\t{\r\n\t\t\t\t\trm.setRoom_id(rs.getInt(1));\r\n\t\t\t\t\trm.setFloor_id(rs.getInt(2));\r\n\t\t\t\t\trm.setR_name(rs.getString(3));\r\n\t\t\t\t\trm.setS_feet(rs.getFloat(4));\r\n\t\t\t\t\trm.setStatus(rs.getString(6));\r\n\t\t\t\t\trm.setOccupied(rs.getInt(7));\r\n\t\t\t\t\trm.setDoor_num(rs.getString(8));\r\n\t\t\t\t\trm.setBuil_id(rs.getInt(9));\r\n\t\t\t\t\trm.setBuil_name(rs.getString(10));\r\n\t\t\t\t\trm.setFloor_name(rs.getString(11));\r\n\t\t\t\t\trm.setRent(rs.getFloat(12));\r\n\t\t\t\t\trm.setOccupied_name(rs.getString(13));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tcatch (Exception e) \r\n\t\t\t{\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\treturn rm;\r\n\t\t}", "@Override\n\tpublic void setRooms(List<RoomInterface> rooms) {\n\t\tthis.rooms = rooms;\n\n\t}", "public void viewReservationList(RoomList roomList) {\n\t\tSystem.out.println(\"\");\t\t\t\t\t\t\t\t\t\t\n\t\tSystem.out.println(\"\\t\\tRESERVATION LIST\t\t\t\t \");\n\t\tSystem.out.println(\"**********************************************\\n\");\n\t\tfor(Room r: roomList.getList()){\t\t\t\t\t\t\t//search for all the rooms in the room list\n\t\t\tif(!r.isEmpty(r)) {\t\t\t\t\t\t\t\t\t\t//if a room is not empty(it has at least one guest)\n\t\t\t\tr.reservationList(r);\t\t\t\t\t\t\t\t//gets all the guests in non empty rooms\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\\n**********************************************\\n\");\n\t}", "public void setRoom(Room room) {\n currentRoom = room;\n }", "@Override\n\tpublic RoomInfo selectByRoomno(String roomno) {\n\t\treturn roomInfoDao.selectByRoomno(roomno);\n\t}", "@Override\n\tpublic Player selectPlayer(List<Player> selectable) {\n\t JSONObject message = new JSONObject();\n\t message.put(\"function\", \"select\");\n\t message.put(\"type\", \"player\");\n JSONArray jArray = new JSONArray();\n selectable.forEach(s->jArray.add(s.getNickname()));\n\t message.put(\"list\", jArray);\n\t this.sendInstruction(message);\n\n\t String selected = this.getResponse();\n\n\t\tif (selected == null || selected.isEmpty()) return null;\n\t\treturn selectable.stream().filter(p->p.getNickname().equals(selected))\n .collect(Collectors.toList()).get(0);\n\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}", "private void jumpToRoomDetail(UnitFamilyRoomModel roomModel){\n }", "public Hotel(ArrayList<Room> rooms) {\n this.rooms = rooms;\n }", "private static void createRooms() {\n// Room airport, beach, jungle, mountain, cave, camp, raft, seaBottom;\n\n airport = new Room(\"airport\");\n beach = new Room(\"beach\");\n jungle = new Room(\"jungle\");\n mountain = new Room(\"mountain\");\n cave = new Room(\"cave\");\n camp = new Room(\"camp\");\n seaBottom = new Room(\"seabottom\");\n\n //Setting the the exits in different rooms\n beach.setExit(\"north\", jungle);\n beach.setExit(\"south\", seaBottom);\n beach.setExit(\"west\", camp);\n\n jungle.setExit(\"north\", mountain);\n jungle.setExit(\"east\", cave);\n jungle.setExit(\"south\", beach);\n\n mountain.setExit(\"south\", jungle);\n\n cave.setExit(\"west\", jungle);\n\n camp.setExit(\"east\", beach);\n\n seaBottom.setExit(\"north\", beach);\n\n // Starting room\n currentRoom = airport;\n }", "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 }", "CmsRoomBook selectByPrimaryKey(String bookId);", "public void enterRoom(Room room) {\n currentRoom = room;\n }", "private void createAccess(ArrayList<Room> rooms) {\n\n rooms.get(0).setNorth(rooms.get(1));\n\n rooms.get(1).setEast(rooms.get(2));\n rooms.get(1).setWest(rooms.get(4));\n rooms.get(1).setSouth(rooms.get(0));\n\n rooms.get(2).setWest(rooms.get(1));\n rooms.get(2).setNorth(rooms.get(10));\n rooms.get(2).setEast(rooms.get(3));\n\n rooms.get(3).setWest(rooms.get(2));\n\n rooms.get(4).setWest(rooms.get(5));\n rooms.get(4).setNorth(rooms.get(8));\n rooms.get(4).setEast(rooms.get(1));\n\n rooms.get(5).setNorth(rooms.get(7));\n rooms.get(5).setSouth(rooms.get(6));\n rooms.get(5).setEast(rooms.get(4));\n\n rooms.get(6).setNorth(rooms.get(5));\n\n rooms.get(7).setNorth(rooms.get(13));\n rooms.get(7).setSouth(rooms.get(5));\n\n rooms.get(8).setEast(rooms.get(9));\n rooms.get(8).setSouth(rooms.get(4));\n\n rooms.get(9).setWest(rooms.get(8));\n rooms.get(9).setNorth(rooms.get(15));\n rooms.get(9).setEast(rooms.get(10));\n\n rooms.get(10).setWest(rooms.get(9));\n rooms.get(10).setEast(rooms.get(11));\n rooms.get(10).setSouth(rooms.get(2));\n\n rooms.get(11).setWest(rooms.get(10));\n\n rooms.get(12).setEast(rooms.get(13));\n\n rooms.get(13).setWest(rooms.get(12));\n rooms.get(13).setEast(rooms.get(14));\n rooms.get(13).setSouth(rooms.get(7));\n\n rooms.get(14).setWest(rooms.get(13));\n rooms.get(14).setNorth(rooms.get(18));\n rooms.get(14).setEast(rooms.get(15));\n\n rooms.get(15).setWest(rooms.get(14));\n rooms.get(15).setNorth(rooms.get(19));\n rooms.get(15).setEast(rooms.get(16));\n rooms.get(15).setSouth(rooms.get(9));\n\n rooms.get(16).setWest(rooms.get(15));\n rooms.get(16).setEast(rooms.get(17));\n\n rooms.get(17).setWest(rooms.get(16));\n\n rooms.get(18).setSouth(rooms.get(14));\n\n rooms.get(19).setSouth(rooms.get(13));\n\n }", "public Room getRoom(Color col){\n for(Room room: rooms){\n if(room.getColor() == col)\n return room;\n }\n return null; //TODO add exception\n }", "@FXML\n private void fastMatch() {\n if (Client.getUser().getState() != Type.UserState.IDLE) {\n JOptionPane.showMessageDialog(null, \"您已经在房间中\");\n return;\n }\n Room match = null;\n for (Room room : Client.roomsMap.values()) {\n if (room.hasSeat()) {\n match = room;\n Client.getUser().setRoom(match.getId());\n Client.getUser().setState(Type.UserState.READY);\n Client.updateUser();\n match.setState(Type.RoomState.READY);\n if (match.getPlayer1() == null || match.getPlayer1().isEmpty()) {\n match.setPlayer1(Client.getUser().getAccount());\n Client.updateRoom(room, Type.UpdateRoom.PLAYER1IN);\n } else {\n match.setPlayer2(Client.getUser().getAccount());\n Client.updateRoom(room, Type.UpdateRoom.PLAYER2IN);\n }\n break;\n }\n }\n if (match != null) {\n client.gotoGame(match);\n } else {\n int res = JOptionPane.showConfirmDialog(null, \"暂时找不到匹配的房间哦,是否要自己创建一个呢?\", \"未找到匹配的房间\", JOptionPane.YES_NO_OPTION);\n if (res == JOptionPane.YES_OPTION) {\n client.gotoCreateRoom();\n }\n }\n }", "public Room getRoom(String roomName)\n {\n Room room = rooms.get(0);\n // get each room from the rooms's arraylist.\n for (int i=0; i<rooms.size();i++){\n if (rooms.get(i).getName().equals(roomName)){\n room= rooms.get(i);\n }\n }\n return room;\n }", "@Query(\"from Room where occupied = :occ and hotel_id = :hotelId\")\n\tList<Room> findOccupied(@Param(\"occ\") boolean occupied, @Param(\"hotelId\") long id);", "public Room findRoomById(Long id);", "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 Room getRandomRoom() {\n random = new Random();\n Room portal = allrooms.get(random.nextInt(allrooms.size()-1));\n return portal;\n }", "public void removeRoomFromList(String roomname){\n\t\troomlist.remove(roomname);\t\t\t\n\t}", "@Test\n\tpublic void insideRoomTests() {\n\t\t//Tests middle of room\n\t\tSet<BoardCell> testList = board.getAdjList(3, 11);\n\t\tassertEquals(0, testList.size());\n\t\t//Tests a room space that is next to a walkway space\n\t\ttestList = board.getAdjList(16, 10);\n\t\tassertEquals(0, testList.size());\n\n\t}", "public void link_rooms() {\n numberGen = new Random();\n int index = numberGen.nextInt(roomList.size());\n int direction = numberGen.nextInt(2);\n Room linkRoom = roomList.get(index);\n\n for(Room destRoom: roomList) {\n draw_link(linkRoom.getPosition(), destRoom, direction);\n }\n }", "void setRoom(int inRoom) {\n \t\tgraphics.setRoom(inRoom);\n \t}", "private List<Character> lookupCharactersInRoom(Room room) throws SQLException {\n if (charactersInRoomQuery == null) {\n charactersInRoomQuery = makeCharactersInRoomQuery();\n }\n charactersInRoomQuery.setArgumentHolderValue(0, room);\n return characterDao.query(charactersInRoomQuery);\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n Rooms selectedRoom = ((Rooms) adapterView.getItemAtPosition(i));\n\n // Open chat room\n API.openPrivateChatActivity(API.currentUID, selectedRoom.getId(), getView());\n }", "public void setCurrentRoom(Room setRoom)\n {\n currentRoom = setRoom;\n }", "private Room createRooms(){\n Room inicio, pasilloCeldas, celdaVacia1,celdaVacia2, pasilloExterior,vestuarioGuardias, \n comedorReclusos,enfermeria,ventanaAbierta,salidaEnfermeria,patioReclusos,tunelPatio,salidaPatio;\n\n Item mochila,medicamentos,comida,itemInutil,itemPesado;\n mochila = new Item(\"Mochila\",1,50,true,true);\n medicamentos = new Item(\"Medicamentos\",5,10,true,false);\n comida = new Item(\"Comida\",2,5,true,false);\n itemInutil = new Item(\"Inutil\",10,0,false,false);\n itemPesado = new Item(\"Pesas\",50,0,false,false);\n\n // create the rooms\n inicio = new Room(\"Tu celda de la prision\");\n pasilloCeldas = new Room(\"Pasillo donde se encuentan las celdas\");\n celdaVacia1 = new Room(\"Celda vacia enfrente de la tuya\");\n celdaVacia2 = new Room(\"Celda de tu compaņero, esta vacia\");\n pasilloExterior = new Room(\"Pasillo exterior separado de las celdas\");\n vestuarioGuardias = new Room(\"Vestuario de los guardias de la prision\");\n comedorReclusos = new Room(\"Comedor de reclusos\");\n enfermeria = new Room(\"Enfermeria de la prision\");\n ventanaAbierta = new Room(\"Saliente de ventana de la enfermeria\");\n salidaEnfermeria = new Room(\"Salida de la prision por la enfermeria\");\n patioReclusos = new Room(\"Patio exterior de los reclusos\");\n tunelPatio = new Room(\"Tunel escondido para escapar de la prision\");\n salidaPatio = new Room(\"Salida de la prision a traves del tunel del patio\");\n\n // initialise room items\n\n comedorReclusos.addItem(\"Comida\",comida);\n enfermeria.addItem(\"Medicamentos\",medicamentos);\n pasilloCeldas.addItem(\"Inutil\",itemInutil);\n patioReclusos.addItem(\"Pesas\",itemPesado);\n vestuarioGuardias.addItem(\"Mochila\",mochila);\n\n // initialise room exits\n\n inicio.setExits(\"east\", pasilloCeldas);\n pasilloCeldas.setExits(\"north\",pasilloExterior);\n pasilloCeldas.setExits(\"east\",celdaVacia1);\n pasilloCeldas.setExits(\"south\",patioReclusos);\n pasilloCeldas.setExits(\"west\",inicio);\n pasilloCeldas.setExits(\"suroeste\",celdaVacia2);\n celdaVacia1.setExits(\"west\", pasilloCeldas);\n pasilloExterior.setExits(\"north\",comedorReclusos);\n pasilloExterior.setExits(\"west\",enfermeria);\n pasilloExterior.setExits(\"east\",vestuarioGuardias);\n comedorReclusos.setExits(\"south\", pasilloExterior);\n enfermeria.setExits(\"east\",pasilloExterior);\n enfermeria.setExits(\"south\", ventanaAbierta);\n ventanaAbierta.setExits(\"north\",enfermeria);\n ventanaAbierta.setExits(\"south\", salidaEnfermeria);\n patioReclusos.setExits(\"north\", pasilloCeldas);\n patioReclusos.setExits(\"east\", tunelPatio);\n tunelPatio.setExits(\"east\",salidaPatio);\n tunelPatio.setExits(\"west\", patioReclusos);\n // casilla de salida\n\n return inicio;\n }", "List<SeatBean> select(int rno) throws Exception;", "public static Room findAvailableRoom(Room[] room1, String roomType) {\n\t\tfor (int i =0; i< room1.length; i++) {\n\t\t\tif(room1[i].getType().equals(roomType) && room1[i].getAvailability()) {\n\t\t\t\treturn room1[i];\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "private void createRooms()\n {\n Room a1, a2, a3, b1, b2, b3, c1, c2, c3, bridge, outskirts;\n \n // create the rooms\n a1= new Room(\"see a strong river flowing south to the west. The trees seem to be letting up a little to the north.\");\n a2 = new Room(\" are still in a very dense forest. Maybe the trees are clearing up the the north?\");\n a3 = new Room(\"see a 30 foot cliff looming over the forest to the east. No way you could climb that. Every other direction is full of trees.\");\n b1 = new Room(\"see a strong river flowing to the west. Heavily wooded areas are in all other directions.\");\n b2 = new Room(\"see only trees around you.\");\n b3 = new Room(\"see a 30 foot cliff to the east. There might be one spot that is climbable. Trees surround you every other way.\");\n c1 = new Room(\" see the river cuts east here, but there seems to be a small wooden bridge to the south over it. The trees are less the direction that the river flows.\");\n c2 = new Room(\"are on a peaceful riverbank. If you weren't lost, this might be a nice spot for a picnic.\");\n c3 = new Room(\"see a 30 foot cliff to your east and a strong flowing river to the south. Your options are definitely limited.\");\n outskirts = new Room(\"make your way out of the trees and find yourself in an open field.\");\n cliff = new Room(\"managed to climb up the rocks to the top of the cliff. Going down, doesn't look as easy. You have to almost be out though now!\");\n bridge = new Room(\"cross the bridge and find a small trail heading south!\");\n win = new Room(\" manage to spot a road not too far off! Congratulations on finding your way out of the woods! Have a safe ride home! :)\" );\n fail = new Room(\" are entirely lost. It is pitch black out and there is no way that you are getting out of here tonight. I'm sorry, you LOSE.\");\n \n // initialise room exits\n a1.setExit(\"north\", outskirts);\n a1.setExit(\"east\", a2);\n a1.setExit(\"south\", b1);\n \n a2.setExit(\"east\", a3);\n a2.setExit(\"west\", a1);\n a2.setExit(\"south\", b2);\n a2.setExit(\"north\", outskirts);\n \n a3.setExit(\"north\", outskirts);\n a3.setExit(\"west\", a2);\n a3.setExit(\"south\", b3);\n \n b1.setExit(\"north\", a1);\n b1.setExit(\"east\", b2);\n b1.setExit(\"south\", c1);\n \n b2.setExit(\"east\", b3);\n b2.setExit(\"west\", b1);\n b2.setExit(\"south\", c2);\n b2.setExit(\"north\", a2);\n \n b3.setExit(\"north\", a3);\n b3.setExit(\"west\", b2);\n b3.setExit(\"south\", c3);\n b3.setExit(\"up\", cliff);\n \n c1.setExit(\"north\", b1);\n c1.setExit(\"east\", c2);\n c1.setExit(\"south\" , bridge);\n \n c2.setExit(\"east\", c3);\n c2.setExit(\"west\", c1);\n c2.setExit(\"north\", b2);\n \n c3.setExit(\"west\", c2);\n c3.setExit(\"north\", b3);\n \n outskirts.setExit(\"north\", win);\n outskirts.setExit(\"east\", a3);\n outskirts.setExit(\"west\", a1);\n outskirts.setExit(\"south\", a2);\n \n cliff.setExit(\"north\", outskirts);\n cliff.setExit(\"east\", win);\n \n bridge.setExit(\"north\", c1);\n bridge.setExit(\"south\", win);\n \n c3.addItem(new Item (\"shiny stone\", 0.1));\n a1.addItem(new Item (\"sturdy branch\", 2));\n a3.addItem(new Item(\"water bottle\" , 0.5));\n a3.addItem(new Item(\"ripped backpack\" , 1));\n currentRoom = b2; // start game outside\n }", "private void goRoom(Command command) \n {\n if(!command.hasSecondWord()) {\n // if there is no second word, we don't know where to go...\n System.out.println(\"Go where?\");\n return;\n }\n\n String direction = command.getSecondWord();\n\n // Try to leave current room.\n Room nextRoom = currentRoom.getExit(direction);\n \n if (nextRoom == null) {\n System.out.println(\"That way is blocked!\");\n }\n else {\n lastRoom = currentRoom;\n multiLastRooms.push (lastRoom);\n currentRoom = nextRoom;\n timer = timer + 1;\n System.out.println(currentRoom.getLongDescription());\n }\n }", "private void getUserBathroomsChoice() {\n int checkedChipId = mBinding.chipGroupBathrooms.getCheckedChipId();\n if (checkedChipId == R.id.chip_1_bathroom) {\n mChipBathroomsInput = 1;\n } else if (checkedChipId == R.id.chip_2_bathrooms) {\n mChipBathroomsInput = 2;\n } else if (checkedChipId == R.id.chip_3_bathrooms) {\n mChipBathroomsInput = 3;\n } else if (checkedChipId == R.id.chip_4_bathrooms) {\n mChipBathroomsInput = 4;\n } else if (checkedChipId == R.id.chip_5_bathrooms) {\n mChipBathroomsInput = 5;\n } else {\n mChipBathroomsInput = 0;\n }\n }", "@Override\n\tpublic List<PropertyRooms> findRoomByIsOccupied(char isOccupied) {\n\t\tList<PropertyRooms> rooms=hibernateTemplate.find(\"from PropertyRooms where isOccupied=?\",isOccupied);\n\t\treturn rooms;\n\t}", "public Room(int id, int roomNumber, int persons, int days){\n this.id = id;\n this.roomNumber = roomNumber;\n this.persons = persons;\n this.days = days;\n available = false; //default value, assignment not necessary\n }", "public void bookRoom(int hotelId, String roomNumber, int people){\n\n\n\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}", "public static ArrayList<String> checkWaitlist(boolean byRoom, int seats, Date date){\r\n con = DBConnection.getConnection();\r\n ArrayList<String> open = new ArrayList<>();\r\n\r\n if(byRoom){\r\n try{\r\n PreparedStatement retrieve = con.prepareStatement(\"SELECT * from Waitlist where SEATS <= ?\");\r\n retrieve.setInt(1, seats);\r\n ResultSet res = retrieve.executeQuery();\r\n \r\n while(res.next()){\r\n if(open.indexOf(res.getString(2)) >= 0){\r\n continue;\r\n }\r\n open.add(res.getString(1));\r\n open.add(res.getString(2));\r\n open.add(res.getString(3));\r\n }\r\n return open;\r\n }catch(SQLException e){\r\n e.printStackTrace();\r\n }\r\n return open;\r\n } else {\r\n try{\r\n PreparedStatement retrieve = con.prepareStatement(\"SELECT * from Waitlist where Date = ? and SEATS <= ?\"\r\n + \"ORDER by Timestamp\");\r\n retrieve.setDate(1, date);\r\n retrieve.setInt(2, seats);\r\n ResultSet res = retrieve.executeQuery();\r\n \r\n if(res.next()){\r\n open.add(res.getString(1));\r\n open.add(res.getString(3));\r\n }\r\n }catch(SQLException e){\r\n e.printStackTrace();\r\n }\r\n return open;\r\n }\r\n }", "public static SendResult checkRoomList(LinkedHashMap param) {\n\t\tSendResult sr=new SendResult(\"0\", \"\", \"\");\r\n\t\tif(param.containsKey(\"rlist\")) {\r\n\t\t\ttry {\r\n\t\t\t\tList<Room> powlist=(List<Room>) param.get(\"rlist\");\r\n\t\t\t\tif(powlist!=null && powlist.size()>0) {\r\n\t\t\t\t\tfor(Room pow : powlist) {\r\n\t\t\t\t\t\tif(pow==null) {\r\n\t\t\t\t\t\t\treturn new SendResult(\"100001\",\"参数错误\", \"\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(pow.getGatewaycode()==null||pow.getGatewaycode().equals(\"\")||pow.getGatewaycode().equals(\"null\")) {\r\n\t\t\t\t\t\t\tsr.setResultCode(\"-10001\");\r\n\t\t\t\t\t\t\tsr.setResultMsg(\"网关通讯ID不能为空\");\r\n\t\t\t\t\t\t\treturn sr;\r\n\t\t\t\t\t\t}else if(pow.getGatewaycode().length()!=10||pow.getGatewaycode().toUpperCase().matches(\".*[G-Z].*\")) {\r\n\t\t\t\t\t\t\tsr.setResultCode(\"-10002\");\r\n\t\t\t\t\t\t\tsr.setResultMsg(\"网关通讯ID必须为10位十六进制字符串\");\r\n\t\t\t\t\t\t\treturn sr;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(pow==null||\"\".equals(pow.getGatewaycode2())||pow.getGatewaycode2().equals(\"null\")) {\r\n\t\t\t\t\t\t\tsr.setResultCode(\"-10003\");\r\n\t\t\t\t\t\t\tsr.setResultMsg(\"网关唯一ID不能为空\");\r\n\t\t\t\t\t\t\treturn sr;\r\n\t\t\t\t\t\t}else if(pow.getGatewaycode2().length()!=10||pow.getGatewaycode2().toUpperCase().matches(\".*[G-Z].*\")) {\r\n\t\t\t\t\t\t\tsr.setResultCode(\"-10004\");\r\n\t\t\t\t\t\t\tsr.setResultMsg(\"网关唯一ID必须为10位十六进制字符串\");\r\n\t\t\t\t\t\t\treturn sr;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(pow.getRoomcode()==null||pow.getRoomcode().equals(\"\")||pow.getRoomcode().equals(\"null\")) {\r\n\t\t\t\t\t\t\tsr.setResultCode(\"-10005\");\r\n\t\t\t\t\t\t\tsr.setResultMsg(\"门锁编号不能为空\");\r\n\t\t\t\t\t\t\treturn sr;\r\n\t\t\t\t\t\t}else if(pow.getRoomcode().length()!=4||pow.getRoomcode().toUpperCase().matches(\".*[G-Z].*\")) {\r\n\t\t\t\t\t\t\tsr.setResultCode(\"-10006\");\r\n\t\t\t\t\t\t\tsr.setResultMsg(\"门锁编号必须为4位十六进制字符串\");\r\n\t\t\t\t\t\t\treturn sr;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}else {\r\n\t\t\t\t\treturn new SendResult(\"100001\",\"参数错误\", \"\");\r\n\t\t\t\t}\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\t// TODO: handle exception\r\n\t\t\t\treturn new SendResult(\"10008\",\"类型转换错误\",\"\");\r\n\t\t\t}\r\n\t\t}else {\r\n\t\t\t\treturn new SendResult(\"100001\",\"参数错误\", \"\");\r\n\t\t}\r\n\t\treturn sr;\r\n\t}", "private void setPlayerRoom(){\n player.setRoom(currentRoom);\n }", "private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }", "void joinRoom(int roomId) throws RoomNotFoundException, RoomPermissionException, IOException;", "public void createRooms()//Method was given\n { \n \n // create the rooms, format is name = new Room(\"description of the situation\"); ex. desc = 'in a small house' would print 'you are in a small house.'\n outside = new Room(\"outside\", \"outside of a small building with a door straight ahead. There is a welcome mat, a mailbox, and a man standing in front of the door.\", false);\n kitchen = new Room(\"kitchen\", \"in what appears to be a kitchen. There is a sink and some counters with an easter egg on top of the counter. There is a locked door straight ahead, and a man standing next to a potted plant. There is also a delicious looking chocolate bar sitting on the counter... how tempting\", true);\n poolRoom = new Room(\"pool room\", \"in a new room that appears much larger than the first room.You see a table with a flashlight, towel, and scissors on it. There is also a large swimming pool with what looks like a snorkel deep in the bottom of the pool. Straight ahead of you stands the same man as before.\", true);\n library = new Room(\"library\", \"facing east in a new, much smaller room than before. There are endless rows of bookshelves filling the room. All of the books have a black cover excpet for two: one red book and one blue book. The man stands in front of you, next to the first row of bookshelves\", true);\n exitRoom = new Room(\"exit\", \"outside of the building again. You have successfully escaped, congratulations! Celebrate with a non-poisonous chocolate bar\",true);\n \n // initialise room exits, goes (north, east, south, west)\n outside.setExits(kitchen, null, null, null);\n kitchen.setExits(poolRoom, null, outside, null);\n poolRoom.setExits(null, library, kitchen, null);\n library.setExits(null, null, exitRoom, poolRoom);\n exitRoom.setExits(null, null, null, null); \n \n currentRoom = outside; // start game outside\n }", "private void createRooms()\n {\n Room outside, theatre, pub, lab, office , hallway, backyard,chickenshop;\n \n // create the rooms\n outside = new Room(\"outside the main entrance of the university\");\n theatre = new Room(\"in a lecture theatre\");\n pub = new Room(\"in the campus pub\");\n lab = new Room(\"in a computing lab\");\n office = new Room(\"in the computing admin office\");\n hallway=new Room (\"in the hallway of the university\");\n backyard= new Room( \"in the backyard of the university\");\n chickenshop= new Room(\"in the chicken shop\");\n \n \n \n // initialise room exits\n outside.setExit(\"east\", theatre);\n outside.setExit(\"south\", lab);\n outside.setExit(\"west\", pub);\n\n theatre.setExit(\"west\", outside);\n theatre.setExit(\"north\", backyard);\n\n pub.setExit(\"east\", outside);\n\n lab.setExit(\"north\", outside);\n lab.setExit(\"east\", office);\n \n office.setExit(\"south\", hallway);\n office.setExit(\"west\", lab);\n \n chickenshop.setExit(\"west\", lab);\n\n currentRoom = outside; // start game outside\n \n }", "public void setRoom(java.lang.CharSequence value) {\n this.room = value;\n }", "static void goRoom(Command command) throws InterruptedException {\n if (currentRoom == airport) {\n lockRoom(command);\n }\n if (!command.hasSecondWord()) {\n System.out.println(\"Go where?\");\n return;\n }\n\n String direction = command.getSecondWord();\n\n Room nextRoom = currentRoom.getExit(direction);\n player.setCurrentRoom(nextRoom);\n /* loop that when next room is equel to null it print a message that says \"there is no door\" \n but if nextRoom is not equel null set currentRoom to nextRoom and print the description of the new room*/\n if (nextRoom == null) {\n System.out.println(\"There is no path!\");\n } else {\n currentRoom = nextRoom;\n System.out.println(player.getCurrentRoom().getLongDescription());\n\n }\n\n forceDialog();\n }", "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 getRooms();", "protected static String scheduleRoom(ArrayList<Room> roomList) {\n if (roomList.size() > 0) {\n System.out.println(\"Schedule a room:\");\n String name = getRoomName();\n // if (findRoomIndex(roomList, name) != -1) {\n System.out.println(\"Start Date? (yyyy-mm-dd):\");\n String startDate = keyboard.next();\n System.out.println(\"Start Time?\");\n String startTime = keyboard.next();\n startTime = startTime + \":00.0\";\n \n String tStartDate = startDate + startTime;\n String avRooms = availableRooms(roomList,tStartDate);\n \n System.out.println(\"End Date? (yyyy-mm-dd):\");\n String endDate = keyboard.next();\n System.out.println(\"End Time?\");\n String endTime = keyboard.next();\n endTime = endTime + \":00.0\";\n Timestamp startTimestamp = Timestamp.valueOf(startDate + \" \"\n + startTime);\n Timestamp endTimestamp = Timestamp.valueOf(endDate + \" \" + endTime);\n\n System.out.println(\"Subject?\");\n String subject = keyboard.next();\n Room curRoom = getRoomFromName(roomList, name);\n Meeting meeting = new Meeting(startTimestamp, endTimestamp, subject);\n\n // check wheather time is already exists for timestamp\n curRoom.addMeeting(meeting);\n return \"Successfully scheduled meeting!\";\n\n } else {\n return \"No room is available for schedule\";\n }\n }", "List<FactRoomLog> selectByExample(FactRoomLogExample example);", "@Override\n protected void onListItemClick(ListView l, View v, int position, long id) {\n super.onListItemClick(l, v, position, id);\n Cursor cursor = (Cursor) getListAdapter().getItem(position);\n int roomId = cursor.getInt(cursor.getColumnIndex(HomeManagementDBContract.RoomEntries._ID));\n Intent i = new Intent(this, RoomDetailActivity.class);\n i.putExtra(\"RoomID\", roomId);\n\n startActivity(i);\n }", "private void createRooms()//refactored\n {\n currentRoom = RoomCreator.buildCurrentRooms();//new\n }", "public void multiplayerSelected()\n {\n //call Client Controller's setState method with\n //a parameter of new ClientLobbyDiscoveryState()\n clientController.searchForGames();\n\n //populate the GameSelectScreen's text box with the lobbies from the\n //state\n gameSelectScreen.clearGames();\n\n //set state to GAMESELECT\n state = CurrentWindow.GAMESELECT;\n\n //hide the intro screen and show the game select screen\n introScreen.setVisible(false);\n gameSelectScreen.setVisible(true);\n }", "private void get_rooms() throws FileNotFoundException\n {\n Scanner room_all = new Scanner(new FileInputStream(db_rooms));\n room_all.nextLine();\n while(room_all.hasNextLine())\n {\n String [] searcher = (room_all.nextLine()).split(\"\\\"\");\n if(!searcher[7].equals(\"empty\"))\n data_set.add(new Room(searcher[3], searcher[5], (searcher[7].equals(\"booked\") ? 1 : 2), Integer.valueOf(searcher[1])));\n else\n data_set.add(new Room(Integer.valueOf(searcher[1])));\n }\n room_all.close();\n }", "void setRoomId(String roomId);" ]
[ "0.6566501", "0.63750625", "0.63383806", "0.62878186", "0.6184748", "0.6105617", "0.60650253", "0.6017856", "0.58635694", "0.585207", "0.5811877", "0.5807638", "0.5804834", "0.578247", "0.575863", "0.575425", "0.575425", "0.57382846", "0.5728933", "0.5694375", "0.5685264", "0.56800336", "0.5621224", "0.5614759", "0.55887663", "0.5547283", "0.55459183", "0.5538388", "0.5508593", "0.5494874", "0.5487008", "0.5483617", "0.54777306", "0.54759157", "0.5431456", "0.54269564", "0.5426008", "0.54194933", "0.5413816", "0.5398972", "0.5394873", "0.5390647", "0.5389335", "0.53892", "0.53799015", "0.5372849", "0.53620046", "0.5357365", "0.53482515", "0.5338061", "0.5324701", "0.5309714", "0.5305538", "0.53013223", "0.52979463", "0.5287638", "0.5286919", "0.5286062", "0.52842164", "0.5281496", "0.52695906", "0.5263654", "0.5263295", "0.52607536", "0.5243332", "0.5241041", "0.52406436", "0.523333", "0.5232142", "0.52317697", "0.52236664", "0.5217946", "0.5215319", "0.5207092", "0.5205374", "0.5200522", "0.5199567", "0.5196459", "0.519532", "0.5191939", "0.5187865", "0.51795226", "0.5178106", "0.5173716", "0.5172527", "0.5170579", "0.51594377", "0.515548", "0.5153259", "0.51516813", "0.5148054", "0.51354146", "0.5132197", "0.51240855", "0.51220137", "0.51211435", "0.51130056", "0.51093745", "0.5103082", "0.5098211" ]
0.74621165
0
builds a JSONArray of coordinates
private JSONArray createJSONCoordinateList(List<Cell> r) { JSONArray room = new JSONArray(); r.forEach(s -> { JSONObject coords = new JSONObject(); coords.put("x", s.getCoordX()); coords.put("y", s.getCoordY()); room.add(coords); }); return room; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double[] getCoordinates(){\n\t\tdouble[] coord = new double[2];\n\t\tdouble xcoord = (double)position[0]/9;\n\t\tdouble zcoord = (double)position[1]/9;\n\t\tcoord[0] = xcoord;\n\t\tcoord[1] = zcoord;\t\t\n\t\treturn coord;\n\t}", "public List<Float[]> getCoordinates() {\n return coordinates;\n }", "public int[] getCoordinates() {\n\t\t\n\t\tint[] a=new int[2];\n\t\ta[0]=xCoord;\n\t\ta[1]=yCoord;\n\t\t\n\t\treturn a;\n\t\t\n\t}", "public void getSeriesForPoints(){\n\n int lenght = cluster_polygon_coordinates.length;\n\n x_latitude = new Number[lenght];\n y_longitude = new Number[lenght];\n\n //x_latitude[lenght-1] = cluster_polygon_coordinates[0].x;\n //y_longitude[lenght-1] = cluster_polygon_coordinates[0].y;\n for (int i=0;i<lenght;i++) {\n\n x_latitude[i] = cluster_polygon_coordinates[i].x;\n y_longitude[i] = cluster_polygon_coordinates[i].y;\n// Log.d(TAG, Double.toString(cluster_polygon_coordinates[i].x));\n// Log.d(TAG, Double.toString(cluster_polygon_coordinates[i].y));\n// Log.d(TAG, Double.toString(cluster_polygon_coordinates[i].z));\n }\n\n }", "public int[] getCoords() {\n return coords;\n }", "public abstract int[] getCoords();", "public List<Double> getCoordinates() {\n return coordinates;\n }", "@Override\n\tpublic double[] getCoordinates() {\n\t\tdouble[] coordinates = { x1, y2, x2, y1 };\n\t\treturn coordinates;\n\t}", "public ArrayList<Coordinate> getCoordinates() {\n return coordinates;\n }", "public double[] getHitGeoCoord();", "public List<LatLng> getCoordinates() {\n return mCoordinates;\n }", "public List<LatLng> getCoordinates() {\n return getGeometryObject();\n }", "private static ArrayList<Coordinates> geoPath1() {\n return new ArrayList<Coordinates>() {\n {\n add(new Coordinates(\"-122.19170793,47.77509422,5.156\"));\n add(new Coordinates(\"-122.19171484,47.77509255,5.476\"));\n add(new Coordinates(\"-122.19172476,47.77509815,5.583\"));\n add(new Coordinates(\"-122.19172741,47.77510382,6.077\"));\n add(new Coordinates(\"-122.19172688,47.77510897,6.424\"));\n add(new Coordinates(\"-122.19172704,47.77511101,6.121\"));\n add(new Coordinates(\"-122.19172543,47.77511046,6.235\"));\n add(new Coordinates(\"-122.19172222,47.77511072,6.225\"));\n add(new Coordinates(\"-122.19172067,47.77510953,5.974\"));\n add(new Coordinates(\"-122.19171935,47.77511130,6.508\"));\n add(new Coordinates(\"-122.19171873,47.77511341,6.090\"));\n add(new Coordinates(\"-122.19171924,47.77511293,5.968\"));\n add(new Coordinates(\"-122.19171637,47.77511664,5.461\"));\n add(new Coordinates(\"-122.19171588,47.77511801,5.518\"));\n add(new Coordinates(\"-122.19171639,47.77511835,5.652\"));\n add(new Coordinates(\"-122.19171667,47.77511857,5.647\"));\n add(new Coordinates(\"-122.19171678,47.77511865,5.648\"));\n add(new Coordinates(\"-122.19172518,47.77511628,6.074\"));\n add(new Coordinates(\"-122.19173954,47.77511533,5.472\"));\n add(new Coordinates(\"-122.19175207,47.77511346,5.836\"));\n add(new Coordinates(\"-122.19176251,47.77510782,5.669\"));\n add(new Coordinates(\"-122.19177163,47.77510015,2.049\"));\n add(new Coordinates(\"-122.19177831,47.77509499,2.910\"));\n add(new Coordinates(\"-122.19178524,47.77509168,2.794\"));\n add(new Coordinates(\"-122.19179816,47.77509009,3.440\"));\n add(new Coordinates(\"-122.19181022,47.77508805,3.016\"));\n add(new Coordinates(\"-122.19182115,47.77508458,5.258\"));\n add(new Coordinates(\"-122.19182976,47.77508305,5.820\"));\n add(new Coordinates(\"-122.19183812,47.77508189,5.615\"));\n add(new Coordinates(\"-122.19184640,47.77507857,3.568\"));\n add(new Coordinates(\"-122.19185497,47.77506742,2.922\"));\n add(new Coordinates(\"-122.19186602,47.77506459,3.923\"));\n add(new Coordinates(\"-122.19187867,47.77506429,3.785\"));\n add(new Coordinates(\"-122.19188979,47.77506426,5.388\"));\n add(new Coordinates(\"-122.19190159,47.77506575,4.811\"));\n add(new Coordinates(\"-122.19191428,47.77506995,3.867\"));\n add(new Coordinates(\"-122.19192458,47.77507421,3.806\"));\n add(new Coordinates(\"-122.19193359,47.77507565,5.697\"));\n add(new Coordinates(\"-122.19194828,47.77507599,6.091\"));\n add(new Coordinates(\"-122.19196187,47.77507556,6.160\"));\n add(new Coordinates(\"-122.19197799,47.77507586,5.827\"));\n add(new Coordinates(\"-122.19199669,47.77507708,6.263\"));\n add(new Coordinates(\"-122.19201547,47.77507900,5.519\"));\n add(new Coordinates(\"-122.19203652,47.77508125,5.318\"));\n add(new Coordinates(\"-122.19205394,47.77508798,4.972\"));\n add(new Coordinates(\"-122.19206817,47.77509514,5.112\"));\n add(new Coordinates(\"-122.19208170,47.77510678,5.183\"));\n add(new Coordinates(\"-122.19209617,47.77511995,6.227\"));\n add(new Coordinates(\"-122.19211126,47.77512566,6.331\"));\n add(new Coordinates(\"-122.19212836,47.77513235,6.249\"));\n add(new Coordinates(\"-122.19214476,47.77513787,7.192\"));\n add(new Coordinates(\"-122.19215712,47.77514375,6.008\"));\n add(new Coordinates(\"-122.19216472,47.77514855,5.879\"));\n add(new Coordinates(\"-122.19217137,47.77514377,6.426\"));\n add(new Coordinates(\"-122.19217457,47.77513335,7.248\"));\n add(new Coordinates(\"-122.19217502,47.77511706,7.483\"));\n add(new Coordinates(\"-122.19218040,47.77510219,10.228\"));\n add(new Coordinates(\"-122.19218656,47.77509117,10.560\"));\n add(new Coordinates(\"-122.19219800,47.77508689,10.466\"));\n add(new Coordinates(\"-122.19221646,47.77507476,11.119\"));\n add(new Coordinates(\"-122.19223178,47.77505389,12.674\"));\n add(new Coordinates(\"-122.19223875,47.77504801,14.667\"));\n add(new Coordinates(\"-122.19224629,47.77504536,13.339\"));\n add(new Coordinates(\"-122.19224798,47.77504041,13.908\"));\n add(new Coordinates(\"-122.19224916,47.77503913,14.065\"));\n add(new Coordinates(\"-122.19225069,47.77503675,14.247\"));\n add(new Coordinates(\"-122.19224858,47.77502843,14.488\"));\n add(new Coordinates(\"-122.19224608,47.77502116,15.172\"));\n add(new Coordinates(\"-122.19224071,47.77501315,15.223\"));\n add(new Coordinates(\"-122.19223317,47.77500694,14.840\"));\n add(new Coordinates(\"-122.19222227,47.77500383,13.775\"));\n add(new Coordinates(\"-122.19221226,47.77499910,12.827\"));\n add(new Coordinates(\"-122.19220317,47.77499372,13.307\"));\n add(new Coordinates(\"-122.19219567,47.77498511,13.107\"));\n add(new Coordinates(\"-122.19219183,47.77497813,13.144\"));\n add(new Coordinates(\"-122.19218998,47.77497165,14.620\"));\n add(new Coordinates(\"-122.19219011,47.77496235,9.166\"));\n add(new Coordinates(\"-122.19218887,47.77495353,8.299\"));\n add(new Coordinates(\"-122.19218520,47.77494321,9.052\"));\n add(new Coordinates(\"-122.19218124,47.77493245,9.915\"));\n add(new Coordinates(\"-122.19218070,47.77492023,9.391\"));\n add(new Coordinates(\"-122.19217970,47.77490970,10.372\"));\n add(new Coordinates(\"-122.19217945,47.77490501,7.722\"));\n add(new Coordinates(\"-122.19217823,47.77489981,8.715\"));\n add(new Coordinates(\"-122.19218090,47.77489589,8.714\"));\n add(new Coordinates(\"-122.19218635,47.77488849,11.030\"));\n add(new Coordinates(\"-122.19219339,47.77487849,13.062\"));\n add(new Coordinates(\"-122.19219717,47.77486996,13.102\"));\n add(new Coordinates(\"-122.19219654,47.77486340,13.562\"));\n add(new Coordinates(\"-122.19219260,47.77485669,14.090\"));\n add(new Coordinates(\"-122.19218765,47.77484862,12.973\"));\n add(new Coordinates(\"-122.19218777,47.77484328,13.137\"));\n add(new Coordinates(\"-122.19218893,47.77483642,13.518\"));\n add(new Coordinates(\"-122.19218715,47.77483230,13.557\"));\n add(new Coordinates(\"-122.19218676,47.77482973,13.560\"));\n add(new Coordinates(\"-122.19218203,47.77482544,12.554\"));\n add(new Coordinates(\"-122.19217214,47.77482073,12.209\"));\n add(new Coordinates(\"-122.19216229,47.77481373,12.975\"));\n add(new Coordinates(\"-122.19215766,47.77481203,10.715\"));\n add(new Coordinates(\"-122.19214837,47.77480695,10.188\"));\n add(new Coordinates(\"-122.19213505,47.77480208,9.988\"));\n add(new Coordinates(\"-122.19212451,47.77479761,10.080\"));\n add(new Coordinates(\"-122.19211571,47.77479427,11.799\"));\n add(new Coordinates(\"-122.19210976,47.77478996,12.827\"));\n add(new Coordinates(\"-122.19211063,47.77478275,12.455\"));\n add(new Coordinates(\"-122.19210867,47.77477966,11.972\"));\n add(new Coordinates(\"-122.19209880,47.77477701,11.224\"));\n add(new Coordinates(\"-122.19208860,47.77477571,11.174\"));\n add(new Coordinates(\"-122.19208772,47.77477829,10.066\"));\n add(new Coordinates(\"-122.19208174,47.77477082,9.116\"));\n add(new Coordinates(\"-122.19207288,47.77476146,6.540\"));\n add(new Coordinates(\"-122.19206631,47.77474937,5.343\"));\n add(new Coordinates(\"-122.19206107,47.77474020,7.509\"));\n add(new Coordinates(\"-122.19205903,47.77473648,7.923\"));\n add(new Coordinates(\"-122.19206261,47.77474166,6.203\"));\n add(new Coordinates(\"-122.19206450,47.77474194,5.918\"));\n add(new Coordinates(\"-122.19205951,47.77473670,4.994\"));\n add(new Coordinates(\"-122.19204892,47.77472567,2.787\"));\n }\n };\n }", "private List<LatLng> getCoordinates() {\n\n List<LatLng> list = new ArrayList<>();\n SharedPreferences.Editor editor = walkingSharedPreferences.edit();\n int size = walkingSharedPreferences.getInt(user.getUsername(), 0);\n for(int actual = 0; actual < size; actual++) {\n String pos = walkingSharedPreferences.getString(user.getUsername() + \"_\" + actual, \"\");\n editor.remove(user.getUsername() + \"_\" + actual);\n String[] splitPos = pos.split(\" \");\n LatLng latLng = new LatLng(Double.parseDouble(splitPos[LAT]), Double.parseDouble(splitPos[LNG]));\n list.add(latLng);\n }\n editor.remove(user.getUsername());\n editor.apply();\n return list;\n\n }", "public String getCoordinates() {\n return this.coordinates;\n }", "public double[] getCoordinates() {\n\t\treturn coordinateTools.localToCoordinates(this);\n\t}", "public static String getPointsOfInterestJSON(ArrayList<ArrayList<Double>> geoList){\n Map featureCollectionObj = new LinkedHashMap();\n featureCollectionObj.put(\"type\", \"FeatureCollection\");\n\n /*\"features\": [\n { type\": \"Feature\",\n \"geometry\": {\n */\n JSONArray geoJSON = new JSONArray();\n\n /*\n \"type\": \"Feature\",\n \"geometry\": {\n \"type\": \"LineString\",\n */\n Map featureObj = new LinkedHashMap();\n featureObj.put(\"type\",\"Feature\");\n\n /*\n \"type\": \"Polygon\",\n \"coordinates\": [ [ [102.0, 0.0], [103.0, 1.0] ..\n */\n Map polygonObj = new LinkedHashMap();\n polygonObj.put(\"type\",\"Polygon\");\n\n ArrayList<ArrayList<ArrayList<Double>>> geoArrayList = new ArrayList<>();\n geoArrayList.add(geoList);\n polygonObj.put(\"coordinates\", geoArrayList);\n\n featureObj.put(\"geometry\",polygonObj);\n\n geoJSON.add(featureObj);\n\n featureCollectionObj.put(\"features\",geoJSON);\n\n String geoJSONtoString = JSONValue.toJSONString(featureCollectionObj);\n System.out.print(geoJSONtoString);\n return geoJSONtoString;\n\n }", "public Point[] getCoordinates() {\n Point[] temp = new Point[segments.length];\n for (int i = 0; i < segments.length; i++) {\n temp[i] = segments[i].getCoordinates();\n }\n return temp;\n }", "public JSONArray() {\n\t\tthis.rawArrayList = new ArrayList<Object>();\n\t}", "public int[][] coords(int i){\r\n\t\tswitch(i){\r\n\t\t\tcase 0:\r\n\t\t\t\tint[][] j1 = {{0,0},{1,0},{2,0},{3,0},{0,1}};\r\n\t\t\t\treturn j1;\r\n\t\t\tcase 1:\r\n\t\t\t\tint[][] j2 = {{0,0},{0,1},{0,2},{0,3},{1,0}};\r\n\t\t\t\treturn j2;\r\n\t\t\tcase 2:\r\n\t\t\t\tint[][] j3 = {{0,0},{1,1},{1,2 },{1,3},{1,0}};\r\n\t\t\t\treturn j3;\r\n\t\t\tcase 3:\r\n\t\t\t\tint[][] j4 = {{0,0},{1,1},{2,1},{3,1},{0,1}};\r\n\t\t\t\treturn j4;\r\n\t\t\tcase 4:\r\n\t\t\t\tint[][] j5 = {{3,0},{1,1},{2,1},{3,1},{0,1}};\r\n\t\t\t\treturn j5;\r\n\t\t\tcase 5:\r\n\t\t\t\tint[][] j6 = {{0,0},{0,1},{0,2},{0,3},{1,3}};\r\n\t\t\t\treturn j6;\t\t\r\n\t\t\tcase 6:\r\n\t\t\t\tint[][] j7 = {{0,0},{1,0},{2,0 },{3,0},{3,1}};\r\n\t\t\t\treturn j7;\r\n\t\t\tcase 7:\r\n\t\t\t\tint[][] j8 = {{0,3},{1,1},{1,2 },{1,3},{1,0}};\r\n\t\t\t\treturn j8;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "long getCoordinates();", "long getCoordinates();", "public double[] getLocation() {\n return new double[]{longitude,latitude};\n }", "public LatLng getCoordinates(JSONObject json) throws JSONException {\n Double lat = json.getJSONObject(\"geometry\").getJSONObject(\"location\").getDouble(\"lat\");\n Double lng = json.getJSONObject(\"geometry\").getJSONObject(\"location\").getDouble(\"lng\");\n\n return new LatLng(lat, lng);\n }", "public java.util.List[] getPointArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(POINT$0, targetList);\n java.util.List[] result = new java.util.List[targetList.size()];\n for (int i = 0, len = targetList.size() ; i < len ; i++)\n result[i] = ((org.apache.xmlbeans.SimpleValue)targetList.get(i)).getListValue();\n return result;\n }\n }", "private int [] createYArray(){\r\n\t\tint [] yCoord = {\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart + Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart - Constants.FLOOR_HEIGHT,\r\n\t\t\t\tyStart\r\n\t\t};\r\n\t\treturn yCoord;\r\n\t}", "public double[] getCoordinates() {\n \tdouble []coords = this.position.getCoordinates();\n \tthis.currentX = coords[0];\n \tthis.currentY = coords[1];\n \treturn coords;\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Coord[\" + this.x0 + \",\" + this.y0 + \"]\";\n\t}", "public JSONArray() {\n\t\tsuper();\n\t}", "public ArrayList<LatLng> getCoordinates(int runID){\r\n ArrayList<LatLng> journey = new ArrayList<>();\r\n LatLng current;\r\n String[] id = {String.valueOf(runID)};\r\n String[] columns = {ContentContract.LATITUDE, ContentContract.LONGITUDE};\r\n String whereClause = ContentContract.RUN_ID + \"= ?\";\r\n\r\n // Query from ContentProvider for the run coordinates table\r\n Cursor c = getContentResolver().query(ContentContract.RUN_COORDINATES, columns, whereClause, id, null);\r\n Log.d(\"g53mdp\", DatabaseUtils.dumpCursorToString(c));\r\n if(c.moveToFirst()){\r\n do {\r\n // Builds the LatLng list\r\n double latitude = c.getDouble(3);\r\n double longitude = c.getDouble(4);\r\n current = new LatLng(latitude, longitude);\r\n journey.add(current);\r\n } while(c.moveToNext());\r\n }\r\n return journey;\r\n }", "private float[] getCoords(double x, double y) {\n\t\tdouble angleXY = x * increment;\n\t\tdouble angleZ = y * increment;\n\t\tint zCoord = (int) (EYE_RADIUS * Math.cos(Math.toRadians(angleZ)));\n\t\t\n\t\tdouble ZRadiusScale = EYE_RADIUS * Math.sin(Math.toRadians(angleZ));\n\t\t\n\t\t\n\t\tint xCoord = (int) (ZRadiusScale*Math.cos(Math.toRadians(angleXY)));\n\t\tint yCoord = (int) (ZRadiusScale*Math.sin(Math.toRadians(angleXY)));\n\t\t\n\n\t\t\n\t\tfloat addMe[] = {xCoord, yCoord, zCoord};\n\t\t\n\t\treturn addMe;\n\t}", "public double[] element() {\n\t\treturn _coordinates;\n\t}", "public ArrayList<double[]> getRecentCoordinates(){\n Connection connection = null;\n ResultSet resultSet = null;\n PreparedStatement preparedStatement = null;\n\n ArrayList<double[]> coordinates = new ArrayList<double[]>();\n String cordsQuery = \"SELECT bike_id, x_cord, y_cord FROM bike_stats WHERE time >= (now() - INTERVAL 1 MINUTE)\";\n\n try{\n connection = DBCleanup.getConnection();\n\n preparedStatement = connection.prepareStatement(cordsQuery);\n resultSet = preparedStatement.executeQuery();\n while(resultSet.next()) {\n double[] row = new double[3];\n int row0 = resultSet.getInt(\"bike_id\");\n row[0] = (double) row0;\n row[1] = resultSet.getDouble(\"x_cord\");\n row[2] = resultSet.getDouble(\"y_cord\");\n coordinates.add(row);\n }\n return coordinates;\n\n }catch(SQLException e){\n System.out.println(e.getMessage() + \" - getRecentCoordinates()\");\n }finally {\n DBCleanup.closeStatement(preparedStatement);\n DBCleanup.closeResultSet(resultSet);\n DBCleanup.closeConnection(connection);\n }\n return null;\n }", "Collection<Point> getAllCoordinates();", "private static LatLng getLatLng(JSONArray jsonArray) {\n LatLng latLng = null;\n try {\n Double lng = jsonArray.getJSONObject(0).getDouble(\"lon\");\n Double lat = jsonArray.getJSONObject(0).getDouble(\"lat\");\n latLng = new LatLng(lat, lng);\n return latLng;\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return latLng;\n }", "private int [] createXArray(){\r\n\t\tint [] xCoord = {\r\n\t\t\t\txStart,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart + 65,\r\n\t\t\t\txStart + 65,\r\n\t\t\t\txStart + 50, \r\n\t\t\t\txStart,\r\n\t\t\t\txStart,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart + 50,\r\n\t\t\t\txStart,\r\n\t\t\t\txStart\r\n\t\t};\r\n\t\treturn xCoord;\r\n\t}", "public String toString() {\n\t\treturn \"[\" + x + \", \" + y + \"]\";\n\t}", "@GetMapping(\"ElementWebService/getAllCoords\")\n\tpublic String getAllHQCoords() {\n\t\tList<Element> elementList = elementService.getAll();\n\t\tList<Coord> coordList = new ArrayList<Coord>();\n\t\tfor(Element element: elementList) {\n\t\t\tcoordList.add(element.getLocation());\n\t\t}\n\t\treturn Tools.toJsonString(coordList);\n\t}", "public final String e() {\n JSONArray jSONArray = new JSONArray();\n long j2 = 0;\n for (int i2 = 0; i2 < this.i.size(); i2++) {\n TraceLocation traceLocation = this.i.get(i2);\n JSONObject jSONObject = new JSONObject();\n try {\n jSONObject.put(\"x\", traceLocation.getLongitude());\n jSONObject.put(\"y\", traceLocation.getLatitude());\n jSONObject.put(\"ag\", (int) traceLocation.getBearing());\n long time = traceLocation.getTime();\n if (i2 == 0) {\n if (time == 0) {\n time = (System.currentTimeMillis() - 10000) / 1000;\n }\n jSONObject.put(\"tm\", time / 1000);\n } else {\n if (time != 0) {\n long j3 = time - j2;\n if (j3 >= 1000) {\n jSONObject.put(\"tm\", j3 / 1000);\n }\n }\n jSONObject.put(\"tm\", 1);\n }\n j2 = time;\n jSONObject.put(\"sp\", (int) traceLocation.getSpeed());\n } catch (JSONException e) {\n e.printStackTrace();\n }\n jSONArray.put(jSONObject);\n }\n this.e = c() + \"&\" + jSONArray.toString();\n return jSONArray.toString();\n }", "public static void listGeolocations()\n {\n {\n JSONArray listGeolocations = new JSONArray();\n List<User> users = User.findAll();\n for (User user : users)\n {\n listGeolocations.add(Arrays.asList(user.firstName, user.latitude, user.longitude));\n }\n renderJSON(listGeolocations);\n }\n }", "private void getAllBuildings(JSONArray myjsonArray) {\r\n try {\r\n for(int j=0; j<myjsonArray.length(); j++) {\r\n JSONObject o = myjsonArray.getJSONObject(j);\r\n Build b = new Build(o.getString(\"description\"),Double.parseDouble(o.getString(\"latitude\")),\r\n Double.parseDouble( o.getString(\"longitude\")), o.getString(\"name\"));\r\n allBuildings_.add(b);\r\n }\r\n } catch (JSONException e) {\r\n e.printStackTrace();\r\n }\r\n }", "public static ArrayList<Coords> getCoords() {\n System.out.println(\"aha1 \" + thing);\n ArrayList<Coords> result = new ArrayList<Coords>();\n if(thing.equals(\"Bay Ridge\")){\n result = BayRidgeData.getData();\n System.out.println(\"true\");\n }else if(thing.equals(\"BRCA Commons Area\")){\n result = CommonsData.getData();\n }else{\n result = null;\n }\n return result;\n// return BayRidgeData.getData();\n }", "List<LatLng> mo201i() throws RemoteException;", "public JSONArray getOrders() throws Exception;", "public double[] getAsArray() {\n return position.getAsArray();\n }", "public JSONObject m9056e() throws JSONException {\n JSONObject jSONObject = new JSONObject();\n jSONObject.put(\"northWest\", this.f7550a.getLatitude() + \",\" + this.f7550a.getLongitude());\n jSONObject.put(\"northEast\", this.f7551b.getLatitude() + \",\" + this.f7551b.getLongitude());\n jSONObject.put(\"southWest\", this.f7552c.getLatitude() + \",\" + this.f7552c.getLongitude());\n jSONObject.put(\"southEast\", this.f7553d.getLatitude() + \",\" + this.f7553d.getLongitude());\n return jSONObject;\n }", "private static int[][] parsePoints(String points) {\n // assuming points are stored like this:\n // x0,y0 x1,y1 x2,y2 ...\n String[] pointList = points.split(\" \");\n int[][] coordinates = new int[2][pointList.length];\n \n for (int q=0; q<pointList.length; q++) {\n pointList[q] = pointList[q].trim();\n int delim = pointList[q].indexOf(\",\");\n coordinates[0][q] =\n (int) Double.parseDouble(pointList[q].substring(0, delim));\n coordinates[1][q] =\n (int) Double.parseDouble(pointList[q].substring(delim + 1));\n }\n return coordinates;\n }", "public static ArrayList<LatLng> convertCoordinatesStringToArrayLatLng(String stringCoords){\n List<String> arrayStringCoords = Arrays.asList(stringCoords.split(\",\"));\n ArrayList<LatLng> coords = new ArrayList<LatLng>();\n LatLng current;\n double lat, lon;\n for(int i=0; i < arrayStringCoords.size(); i += 2){\n lat = Double.parseDouble(arrayStringCoords.get(i));\n lon = Double.parseDouble(arrayStringCoords.get(i+1));\n current = new LatLng(lat, lon);\n coords.add(current);\n }\n return coords;\n }", "public String[] getGeoSystem();", "private JSArray convertToJSArray(ArrayList<Object> row) {\n JSArray jsArray = new JSArray();\n for (int i = 0; i < row.size(); i++) {\n jsArray.put(row.get(i));\n }\n return jsArray;\n }", "public static void instantiate(){\n listOfpoints = new ArrayList<>(12);\n listOfPolygons = new ArrayList<>(listOfpoints.size());\n\n for ( int i= 0 ; i < 70; i++ ){\n listOfpoints.add(new ArrayList<LatLng>());\n }\n\n listOfpoints.get(0).add(new LatLng(44.4293595,26.1035863));\n listOfpoints.get(0).add(new LatLng(44.4295434,26.1035434));\n listOfpoints.get(0).add(new LatLng(44.4297579,26.103479));\n listOfpoints.get(0).add(new LatLng(44.431566,26.1033503));\n listOfpoints.get(0).add(new LatLng(44.4327305,26.1031572));\n listOfpoints.get(0).add(new LatLng(44.4337724,26.1029211));\n listOfpoints.get(0).add(new LatLng(44.4342474,26.1028138));\n listOfpoints.get(0).add(new LatLng( 44.4348756,26.1025563));\n listOfpoints.get(0).add(new LatLng(44.4353199,26.1023203));\n listOfpoints.get(0).add(new LatLng( 44.4353046,26.101977));\n listOfpoints.get(0).add(new LatLng( 44.4352893,26.1015478));\n listOfpoints.get(0).add(new LatLng(44.4351974,26.1010758));\n listOfpoints.get(0).add(new LatLng(44.4350595,26.100432));\n listOfpoints.get(0).add(new LatLng(44.4348756,26.0995523));\n listOfpoints.get(0).add(new LatLng(44.4346458,26.0983292));\n listOfpoints.get(0).add(new LatLng(44.4343547,26.098415));\n listOfpoints.get(0).add(new LatLng( 44.4340176,26.0983506));\n listOfpoints.get(0).add(new LatLng( 44.4327918,26.0975996));\n listOfpoints.get(0).add(new LatLng(44.4318878,26.0972134));\n listOfpoints.get(0).add(new LatLng( 44.4307692,26.0968701));\n listOfpoints.get(0).add(new LatLng( 44.4300644,26.0968271));\n listOfpoints.get(0).add(new LatLng( 44.4298498,26.0972992));\n listOfpoints.get(0).add(new LatLng(44.4297732,26.0977713));\n listOfpoints.get(0).add(new LatLng(44.4296966,26.0985867));\n listOfpoints.get(0).add(new LatLng (44.4296506,26.0994235));\n listOfpoints.get(0).add(new LatLng (44.4295587,26.1002389));\n listOfpoints.get(0).add(new LatLng (44.4294361,26.1007754));\n listOfpoints.get(0).add(new LatLng (44.4292369,26.1016766));\n listOfpoints.get(0).add(new LatLng (44.429099,26.1025778));\n listOfpoints.get(0).add(new LatLng (44.4289917,26.1033717));\n\n\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n listOfpoints.get(1).add(new LatLng (44.43630606,26.1017829));\n listOfpoints.get(1).add(new LatLng (44.4370654,26.101461));\n listOfpoints.get(1).add(new LatLng (44.4382451,26.1007958));\n listOfpoints.get(1).add(new LatLng (44.4393176,26.1002379));\n listOfpoints.get(1).add(new LatLng (44.4406045,26.0996371));\n listOfpoints.get(1).add(new LatLng (44.4418301,26.0990792));\n listOfpoints.get(1).add(new LatLng (44.4415084,26.0983067));\n listOfpoints.get(1).add(new LatLng (44.4412173,26.0977059));\n listOfpoints.get(1).add(new LatLng (44.4409875,26.097148));\n listOfpoints.get(1).add(new LatLng (44.4406811,26.0965472));\n listOfpoints.get(1).add(new LatLng (44.4404207,26.0959893));\n listOfpoints.get(1).add(new LatLng (44.4400989,26.0963326));\n listOfpoints.get(1).add(new LatLng (44.4393636,26.0968691));\n listOfpoints.get(1).add(new LatLng (44.4390725,26.0969549));\n listOfpoints.get(1).add(new LatLng (44.4381532,26.0971051));\n listOfpoints.get(1).add(new LatLng (44.4372952,26.0975557));\n listOfpoints.get(1).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(1).add(new LatLng (44.4358244,26.0977918));\n listOfpoints.get(1).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(1).add(new LatLng (44.4348132,26.0979205));\n listOfpoints.get(1).add(new LatLng (44.4348591,26.0983497));\n listOfpoints.get(1).add(new LatLng (44.4352115,26.1003452));\n listOfpoints.get(1).add(new LatLng (44.435472,26.1017185));\n listOfpoints.get(1).add(new LatLng (44.4356099,26.1021262));\n\n\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n listOfpoints.get(2).add(new LatLng (44.435899,26.1039688));\n listOfpoints.get(2).add(new LatLng (44.4360216,26.1044623));\n listOfpoints.get(2).add(new LatLng (44.4360982,26.1049988));\n listOfpoints.get(2).add(new LatLng (44.4362361,26.1055781));\n listOfpoints.get(2).add(new LatLng (44.4363127,26.1059));\n listOfpoints.get(2).add(new LatLng (44.4364506,26.1063721));\n listOfpoints.get(2).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(2).add(new LatLng (44.4367264,26.1068441));\n listOfpoints.get(2).add(new LatLng (44.4369715,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4374312,26.1073591));\n listOfpoints.get(2).add(new LatLng (44.4380593,26.1076381));\n listOfpoints.get(2).add(new LatLng (44.4386722,26.1078741));\n listOfpoints.get(2).add(new LatLng (44.439239,26.1080672));\n listOfpoints.get(2).add(new LatLng (44.4399744,26.1083033));\n listOfpoints.get(2).add(new LatLng (44.4406485,26.1084106));\n listOfpoints.get(2).add(new LatLng (44.4407557,26.1080458));\n listOfpoints.get(2).add(new LatLng (44.440817,26.1075737));\n listOfpoints.get(2).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(2).add(new LatLng (44.4410928,26.1070587));\n listOfpoints.get(2).add(new LatLng (44.4419814,26.1071016));\n listOfpoints.get(2).add(new LatLng (44.4422877,26.1071875));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.107445));\n listOfpoints.get(2).add(new LatLng (44.443498,26.107402));\n listOfpoints.get(2).add(new LatLng (44.4433754,26.10693));\n listOfpoints.get(2).add(new LatLng (44.4432988,26.1065008));\n listOfpoints.get(2).add(new LatLng (44.4431763,26.1059858));\n listOfpoints.get(2).add(new LatLng (44.4429465,26.1052992));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1044838));\n listOfpoints.get(2).add(new LatLng (44.4429312,26.1036469));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1029818));\n listOfpoints.get(2).add(new LatLng (44.4432069,26.1027457));\n listOfpoints.get(2).add(new LatLng (44.4431303,26.1025311));\n listOfpoints.get(2).add(new LatLng (44.4429618,26.1022737));\n listOfpoints.get(2).add(new LatLng (44.4427627,26.101866));\n listOfpoints.get(2).add(new LatLng (44.4426707,26.1015656));\n listOfpoints.get(2).add(new LatLng (44.4426554,26.101072));\n listOfpoints.get(2).add(new LatLng (44.4427014,26.1002781));\n listOfpoints.get(2).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(2).add(new LatLng (44.4420426,26.0993125));\n listOfpoints.get(2).add(new LatLng (44.4412,26.0997202));\n listOfpoints.get(2).add(new LatLng (44.4400663,26.100321));\n listOfpoints.get(2).add(new LatLng (44.4390399,26.100836));\n listOfpoints.get(2).add(new LatLng (44.4382279,26.1012651));\n listOfpoints.get(2).add(new LatLng (44.4374924,26.1016514));\n listOfpoints.get(2).add(new LatLng (44.4366038,26.1021449));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1026384));\n listOfpoints.get(2).add(new LatLng (44.4357305,26.1027886));\n listOfpoints.get(2).add(new LatLng (44.4358071,26.1034753));\n\n\n listOfpoints.get(3).add(new LatLng (44.4290806,26.1040332));\n listOfpoints.get(3).add(new LatLng (44.4295709,26.1054494));\n listOfpoints.get(3).add(new LatLng (44.4302604,26.1070373));\n listOfpoints.get(3).add(new LatLng (44.4307508,26.1080887));\n listOfpoints.get(3).add(new LatLng (44.432804,26.111994));\n listOfpoints.get(3).add(new LatLng (44.4329113,26.1123373));\n listOfpoints.get(3).add(new LatLng (44.4330798,26.1136248));\n listOfpoints.get(3).add(new LatLng (44.4332483,26.1150195));\n listOfpoints.get(3).add(new LatLng (44.433325,26.1158349));\n listOfpoints.get(3).add(new LatLng (44.4347959,26.1162855));\n listOfpoints.get(3).add(new LatLng (44.4359143,26.1166288));\n listOfpoints.get(3).add(new LatLng (44.4365272,26.1168005));\n listOfpoints.get(3).add(new LatLng (44.4367723,26.1168434));\n listOfpoints.get(3).add(new LatLng (44.4373852,26.1166503));\n listOfpoints.get(3).add(new LatLng (44.43809,26.1163713));\n listOfpoints.get(3).add(new LatLng (44.4378755,26.1154272));\n listOfpoints.get(3).add(new LatLng (44.435516,26.1027672));\n listOfpoints.get(3).add(new LatLng (44.433708,26.1034109));\n listOfpoints.get(3).add(new LatLng (44.4330032,26.1035826));\n listOfpoints.get(3).add(new LatLng (44.4321451,26.1038401));\n listOfpoints.get(3).add(new LatLng (44.4309959,26.1039259));\n listOfpoints.get(3).add(new LatLng (44.4302451,26.1039903));\n listOfpoints.get(3).add(new LatLng (44.4296628,26.1039903));\n listOfpoints.get(3).add(new LatLng(44.4290806,26.1040332));\n\n\n\n listOfpoints.get(4).add(new LatLng ( 44.4343669 ,26.0798289));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0801508));\n listOfpoints.get(4).add(new LatLng (44.4335088 ,26.0905363));\n listOfpoints.get(4).add(new LatLng (44.4333862 ,26.092124));\n listOfpoints.get(4).add(new LatLng ( 44.433233 ,26.0926177));\n listOfpoints.get(4).add(new LatLng ( 44.4329879 ,26.0932614));\n listOfpoints.get(4).add(new LatLng (44.4327427 , 26.0936906));\n listOfpoints.get(4).add(new LatLng (44.4301838 ,26.0965659));\n listOfpoints.get(4).add(new LatLng (44.4301685 ,26.0967161));\n listOfpoints.get(4).add(new LatLng (44.4305209 ,26.096759));\n listOfpoints.get(4).add(new LatLng (44.4311338 ,26.0968878));\n listOfpoints.get(4).add(new LatLng (44.4317468 ,26.097038));\n listOfpoints.get(4).add(new LatLng (44.4323137 ,26.0972955));\n listOfpoints.get(4).add(new LatLng (44.4327427 ,26.0974457));\n listOfpoints.get(4).add(new LatLng (44.4333709 ,26.0978534));\n listOfpoints.get(4).add(new LatLng (44.4338919 ,26.0981538));\n listOfpoints.get(4).add(new LatLng (44.434229 ,26.0982611));\n listOfpoints.get(4).add(new LatLng ( 44.4345354 ,26.0982611));\n listOfpoints.get(4).add(new LatLng (44.4346886 ,26.0981752));\n listOfpoints.get(4).add(new LatLng (44.4345814, 26.0918667));\n listOfpoints.get(4).add(new LatLng (44.4343669 ,26.0798289));\n\n\n listOfpoints.get(5).add(new LatLng (44.4348405,26.097773));\n listOfpoints.get(5).add(new LatLng (44.435043,26.0980063));\n listOfpoints.get(5).add(new LatLng (44.4365598,26.0977703));\n listOfpoints.get(5).add(new LatLng (44.4372952, 26.0975557));\n listOfpoints.get(5).add(new LatLng (44.4381532, 26.0971051));\n listOfpoints.get(5).add(new LatLng ( 44.4393636,26.0968691));\n listOfpoints.get(5).add(new LatLng(44.4397739, 26.0964855));\n listOfpoints.get(5).add(new LatLng (44.4402029,26.0960993));\n listOfpoints.get(5).add(new LatLng (44.4406778,26.0956487));\n listOfpoints.get(5).add(new LatLng(44.4405706,26.0952195));\n listOfpoints.get(5).add(new LatLng (44.4403408 ,26.0942539));\n listOfpoints.get(5).add(new LatLng (44.440065 ,26.0931811));\n listOfpoints.get(5).add(new LatLng (44.4400497, 26.0919151));\n listOfpoints.get(5).add(new LatLng (44.4398199 ,26.0897693));\n listOfpoints.get(5).add(new LatLng (44.4397893 ,26.0891041));\n listOfpoints.get(5).add(new LatLng (44.4399271 , 26.0879668));\n listOfpoints.get(5).add(new LatLng (44.4399731 ,26.0873017));\n listOfpoints.get(5).add(new LatLng (44.4399884 ,26.0867223));\n listOfpoints.get(5).add(new LatLng (44.4365719, 26.0887179));\n listOfpoints.get(5).add(new LatLng (44.434672 ,26.0898337));\n listOfpoints.get(5).add(new LatLng (44.4348405 ,26.097773));\n\n\n listOfpoints.get(6).add(new LatLng (44.4365425,26.1067583));\n listOfpoints.get(6).add(new LatLng (44.4365354,26.1075151));\n listOfpoints.get(6).add(new LatLng (44.4375926,26.113137));\n listOfpoints.get(6).add(new LatLng (44.4378224,26.114167));\n listOfpoints.get(6).add(new LatLng (44.4435828,26.1191452));\n listOfpoints.get(6).add(new LatLng (44.4440117, 26.1184585));\n listOfpoints.get(6).add(new LatLng (44.4448849, 26.1172784));\n listOfpoints.get(6).add(new LatLng (44.4457888,26.1161411));\n listOfpoints.get(6).add(new LatLng (44.4462483, 26.1149395));\n listOfpoints.get(6).add(new LatLng (44.4466773, 26.113137));\n listOfpoints.get(6).add(new LatLng (44.4467998, 26.1121929));\n listOfpoints.get(6).add(new LatLng (44.4467539, 26.1112917));\n listOfpoints.get(6).add(new LatLng (44.4469683, 26.1101973));\n listOfpoints.get(6).add(new LatLng (44.4458041, 26.1093176));\n listOfpoints.get(6).add(new LatLng (44.4453905, 26.1091888));\n listOfpoints.get(6).add(new LatLng (44.4448083, 26.1089099));\n listOfpoints.get(6).add(new LatLng (44.4442109, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4435828, 26.1076224));\n listOfpoints.get(6).add(new LatLng (44.4433377, 26.107558));\n listOfpoints.get(6).add(new LatLng (44.4420662,26.1072791));\n listOfpoints.get(6).add(new LatLng (44.440863,26.1070373));\n listOfpoints.get(6).add(new LatLng (44.4407946,26.1082018));\n listOfpoints.get(6).add(new LatLng ( 44.4406107,26.1085451));\n listOfpoints.get(6).add(new LatLng (44.43986, 26.1084163));\n listOfpoints.get(6).add(new LatLng (44.4384659, 26.1079014));\n listOfpoints.get(6).add(new LatLng (44.4372095, 26.1073864));\n listOfpoints.get(6).add(new LatLng (44.4365425, 26.1067583));\n\n\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n listOfpoints.get(7).add(new LatLng ( 44.4265883,26.1107511));\n listOfpoints.get(7).add(new LatLng (44.4261898,26.118905));\n listOfpoints.get(7).add(new LatLng (44.4274311,26.1189909));\n listOfpoints.get(7).add(new LatLng (44.4276303,26.1189265));\n listOfpoints.get(7).add(new LatLng (44.4285497,26.1191625));\n listOfpoints.get(7).add(new LatLng (44.4288408,26.1193342));\n listOfpoints.get(7).add(new LatLng (44.4294997,26.1199564));\n listOfpoints.get(7).add(new LatLng (44.4297909, 26.1200852));\n listOfpoints.get(7).add(new LatLng (44.4303272,26.1203427));\n listOfpoints.get(7).add(new LatLng (44.431124, 26.1205787));\n listOfpoints.get(7).add(new LatLng (44.4328861, 26.1207289));\n listOfpoints.get(7).add(new LatLng (44.4329933, 26.1206431));\n listOfpoints.get(7).add(new LatLng (44.4331159, 26.1194844));\n listOfpoints.get(7).add(new LatLng (44.4331925,26.118154));\n listOfpoints.get(7).add(new LatLng (44.4332844,26.1160512));\n listOfpoints.get(7).add(new LatLng (44.4328094,26.112339));\n listOfpoints.get(7).add(new LatLng (44.4327022, 26.1120171));\n listOfpoints.get(7).add(new LatLng (44.4299135, 26.1064596));\n listOfpoints.get(7).add(new LatLng (44.4289634,26.1040778));\n listOfpoints.get(7).add(new LatLng (44.4281819,26.1039705));\n listOfpoints.get(7).add(new LatLng (44.4268641,26.1040563));\n\n\n\n\n listOfpoints.get(8).add (new LatLng (44.4262461,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4260163,26.1014488));\n listOfpoints.get(8).add (new LatLng (44.4259397,26.1023715));\n listOfpoints.get(8).add (new LatLng (44.4258784,26.103616));\n listOfpoints.get(8).add (new LatLng (44.426001,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.42643,26.1039593));\n listOfpoints.get(8).add (new LatLng (44.4272882,26.1038735));\n listOfpoints.get(8).add (new LatLng (44.4282995,26.1038306));\n listOfpoints.get(8).add (new LatLng (44.4289278,26.1035731));\n listOfpoints.get(8).add (new LatLng (44.4289431,26.1028006));\n listOfpoints.get(8).add (new LatLng (44.4291423,26.1015132));\n listOfpoints.get(8).add (new LatLng (44.4286366,26.1007836));\n listOfpoints.get(8).add (new LatLng (44.4284834,26.1010196));\n listOfpoints.get(8).add (new LatLng (44.4271043,26.1008694));\n listOfpoints.get(8).add (new LatLng (44.4262461, 26.1007836));\n\n\n\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n listOfpoints.get(9).add(new LatLng (44.4284834,26.1010196));\n listOfpoints.get(9).add(new LatLng (44.4290094,26.1000479));\n listOfpoints.get(9).add(new LatLng (44.4292545,26.0986961));\n listOfpoints.get(9).add(new LatLng (44.4293465,26.0971726));\n listOfpoints.get(9).add(new LatLng (44.4294844,26.0964216));\n listOfpoints.get(9).add(new LatLng (44.4301739,26.0956276));\n listOfpoints.get(9).add(new LatLng (44.432411,26.0931385));\n listOfpoints.get(9).add(new LatLng (44.4327022,26.0925163));\n listOfpoints.get(9).add(new LatLng (44.4328401,26.0919584));\n listOfpoints.get(9).add(new LatLng (44.4329014, 26.0913576));\n listOfpoints.get(9).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(9).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(9).add(new LatLng (44.4265882, 26.0922588));\n listOfpoints.get(9).add(new LatLng (44.4269867,26.0926879));\n listOfpoints.get(9).add(new LatLng (44.4267108,26.0998763));\n listOfpoints.get(9).add(new LatLng (44.4262461,26.1007836));\n\n\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n listOfpoints.get(10).add(new LatLng (44.4215507, 26.0903665));\n listOfpoints.get(10).add(new LatLng (44.4255811,26.0980483));\n listOfpoints.get(10).add(new LatLng ( 44.4265772,26.0999795));\n listOfpoints.get(10).add(new LatLng (44.4266998,26.099722));\n listOfpoints.get(10).add(new LatLng (44.4269867, 26.0926879));\n listOfpoints.get(10).add(new LatLng (44.4265882,26.0922588));\n listOfpoints.get(10).add(new LatLng (44.4262051,26.091658));\n listOfpoints.get(10).add(new LatLng (44.4260059,26.0907353));\n\n\n listOfpoints.get(11).add(new LatLng (44.4214281, 26.0905382));\n listOfpoints.get(11).add(new LatLng (44.4207385, 26.0915467));\n listOfpoints.get(11).add(new LatLng (44.4199568, 26.0929629));\n listOfpoints.get(11).add(new LatLng (44.4192059,26.0943576));\n listOfpoints.get(11).add(new LatLng (44.4187155,26.095409));\n listOfpoints.get(11).add(new LatLng (44.4186235,26.0957524));\n listOfpoints.get(11).add(new LatLng (44.4189607, 26.0968253));\n listOfpoints.get(11).add(new LatLng (44.4212442,26.1039063));\n listOfpoints.get(11).add(new LatLng (44.4227001,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.4251367,26.1039921));\n listOfpoints.get(11).add(new LatLng (44.425765,26.103799));\n listOfpoints.get(11).add(new LatLng (44.425811,26.1027476));\n listOfpoints.get(11).add(new LatLng (44.4259182,26.101503));\n listOfpoints.get(11).add(new LatLng (44.4260715,26.1009237));\n listOfpoints.get(11).add(new LatLng (44.4264086,26.1001297));\n listOfpoints.get(11).add(new LatLng (44.4260255, 26.0993143));\n listOfpoints.get(11).add(new LatLng (44.4252899, 26.0978981));\n listOfpoints.get(11).add(new LatLng (44.424064,26.0955593));\n listOfpoints.get(11).add(new LatLng (44.4230372,26.0935851));\n listOfpoints.get(11).add(new LatLng (44.4214281,26.0905382));\n\n\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n listOfpoints.get(12).add(new LatLng (44.4216123,26.1052654));\n listOfpoints.get(12).add(new LatLng (44.4226851,26.1084411));\n listOfpoints.get(12).add(new LatLng (44.4237731,26.1117241));\n listOfpoints.get(12).add(new LatLng (44.4244168,26.11181));\n listOfpoints.get(12).add(new LatLng (44.4263629,26.1118743));\n listOfpoints.get(12).add(new LatLng (44.4264242,26.1109946));\n listOfpoints.get(12).add(new LatLng (44.4265315,26.1078832));\n listOfpoints.get(12).add(new LatLng (44.4267154,26.1041496));\n listOfpoints.get(12).add(new LatLng (44.4254588, 26.1042354));\n listOfpoints.get(12).add(new LatLng (44.4242482,26.1041925));\n listOfpoints.get(12).add(new LatLng (44.4213365,26.1040423));\n\n\n\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n listOfpoints.get(13).add(new LatLng (44.4208987, 26.1041756));\n listOfpoints.get(13).add(new LatLng (44.4155345,26.1045404));\n listOfpoints.get(13).add(new LatLng (44.4156111, 26.1051198));\n listOfpoints.get(13).add(new LatLng (44.4156724, 26.106257));\n listOfpoints.get(13).add(new LatLng (44.4157184,26.1068793));\n listOfpoints.get(13).add(new LatLng (44.4157797, 26.1071153));\n listOfpoints.get(13).add(new LatLng (44.415841, 26.1077805));\n listOfpoints.get(13).add(new LatLng (44.4159024,26.1090465));\n listOfpoints.get(13).add(new LatLng (44.416025,26.1110635));\n listOfpoints.get(13).add(new LatLng (44.4161629,26.1116643));\n listOfpoints.get(13).add(new LatLng (44.4163468, 26.112072));\n listOfpoints.get(13).add(new LatLng (44.4166993,26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4170518, 26.1133595));\n listOfpoints.get(13).add(new LatLng (44.4177109, 26.1127158));\n listOfpoints.get(13).add(new LatLng (44.4184006,26.1118575));\n listOfpoints.get(13).add(new LatLng (44.4190136,26.1112566));\n listOfpoints.get(13).add(new LatLng (44.4199331, 26.1107846));\n listOfpoints.get(13).add(new LatLng (44.4215883,26.1101838));\n listOfpoints.get(13).add(new LatLng (44.4229369,26.10954));\n listOfpoints.get(13).add(new LatLng (44.422753, 26.1089178));\n listOfpoints.get(13).add(new LatLng (44.4222626,26.1074372));\n listOfpoints.get(13).add(new LatLng (44.4217262,26.1059137));\n listOfpoints.get(13).add(new LatLng (44.4212442, 26.1039063));\n\n\n\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n listOfpoints.get(14).add(new LatLng (44.4169314,26.1139266));\n listOfpoints.get(14).add(new LatLng (44.4177284,26.1143128));\n listOfpoints.get(14).add(new LatLng (44.4185253,26.1147205));\n listOfpoints.get(14).add(new LatLng (44.4237666,26.1189047));\n listOfpoints.get(14).add(new LatLng (44.4237819,26.1191408));\n listOfpoints.get(14).add(new LatLng (44.4240425,26.1191622));\n listOfpoints.get(14).add(new LatLng (44.4258814,26.1192481));\n listOfpoints.get(14).add(new LatLng (44.425912,26.1188404));\n listOfpoints.get(14).add(new LatLng (44.426004,26.1167804));\n listOfpoints.get(14).add(new LatLng (44.4261113,26.1148063));\n listOfpoints.get(14).add(new LatLng (44.4262798,26.1120812));\n listOfpoints.get(14).add(new LatLng (44.4238739,26.1119525));\n listOfpoints.get(14).add(new LatLng (44.4235674,26.1115662));\n listOfpoints.get(14).add(new LatLng (44.4230157,26.109914));\n listOfpoints.get(14).add(new LatLng (44.4218817,26.1103646));\n listOfpoints.get(14).add(new LatLng (44.4200733,26.1110512));\n listOfpoints.get(14).add(new LatLng (44.4187246,26.1118666));\n listOfpoints.get(14).add(new LatLng (44.4172379,26.1135832));\n\n\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n listOfpoints.get(15).add(new LatLng (44.4334184,26.0843973));\n listOfpoints.get(15).add(new LatLng (44.4305378,26.0839467));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0840969));\n listOfpoints.get(15).add(new LatLng (44.4305531,26.0845475));\n listOfpoints.get(15).add(new LatLng (44.4306604,26.0853844));\n listOfpoints.get(15).add(new LatLng (44.4302773,26.0908131));\n listOfpoints.get(15).add(new LatLng (44.4304765,26.0910277));\n listOfpoints.get(15).add(new LatLng (44.4329128,26.0911565));\n\n\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n listOfpoints.get(16).add(new LatLng (44.4252956,26.0790543));\n listOfpoints.get(16).add(new LatLng (44.4246213,26.0901265));\n listOfpoints.get(16).add(new LatLng (44.4247746,26.0905127));\n listOfpoints.get(16).add(new LatLng (44.4298621,26.0909634));\n listOfpoints.get(16).add(new LatLng (44.4300919,26.0907273));\n listOfpoints.get(16).add(new LatLng (44.430475,26.0853414));\n listOfpoints.get(16).add(new LatLng ( 44.4291112,26.0806422));\n listOfpoints.get(16).add(new LatLng (44.428391,26.0795693));\n listOfpoints.get(16).add(new LatLng (44.4277781,26.0794835));\n listOfpoints.get(16).add(new LatLng (44.42574,26.0784535));\n listOfpoints.get(16).add(new LatLng (44.4254029,26.0786466));\n\n\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n listOfpoints.get(17).add(new LatLng (44.433312,26.1178736));\n listOfpoints.get(17).add(new LatLng (44.4331128,26.1208562));\n listOfpoints.get(17).add(new LatLng (44.4327757,26.1238603));\n listOfpoints.get(17).add(new LatLng (44.4325765,26.1256413));\n listOfpoints.get(17).add(new LatLng (44.4354264,26.1251477));\n listOfpoints.get(17).add(new LatLng (44.4389196,26.122723));\n listOfpoints.get(17).add(new LatLng (44.4391954,26.1224012));\n listOfpoints.get(17).add(new LatLng (44.4381383,26.1165003));\n listOfpoints.get(17).add(new LatLng (44.4368666,26.1169724));\n listOfpoints.get(17).add(new LatLng (44.4364683,26.1169295));\n listOfpoints.get(17).add(new LatLng (44.4334039,26.1159853));\n\n\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n listOfpoints.get(18).add(new LatLng (44.4453896, 26.0909388));\n listOfpoints.get(18).add(new LatLng (44.4444245,26.0918185));\n listOfpoints.get(18).add(new LatLng (44.4428313, 26.093342));\n listOfpoints.get(18).add(new LatLng (44.4413912,26.0947797));\n listOfpoints.get(18).add(new LatLng (44.4405333,26.0959169));\n listOfpoints.get(18).add(new LatLng (44.4419274,26.0990069));\n listOfpoints.get(18).add(new LatLng (44.4433368,26.0983202));\n listOfpoints.get(18).add(new LatLng (44.4452824,26.0973761));\n listOfpoints.get(18).add(new LatLng (44.446707,26.0966894));\n listOfpoints.get(18).add(new LatLng (44.4468296,26.0961959));\n listOfpoints.get(18).add(new LatLng (44.4465385,26.0945651));\n listOfpoints.get(18).add(new LatLng (44.4462628,26.0935351));\n listOfpoints.get(18).add(new LatLng (44.4454662,26.0911104));\n\n\n listOfpoints.get(19).add(new LatLng (44.4401196,26.0817507));\n listOfpoints.get(19).add(new LatLng (44.4401043,26.0831669));\n listOfpoints.get(19).add(new LatLng (44.4402115,26.0846046));\n listOfpoints.get(19).add(new LatLng (44.440089,26.0863641));\n listOfpoints.get(19).add(new LatLng (44.4399358,26.0894755));\n listOfpoints.get(19).add(new LatLng ( 44.4402115, 26.0932949));\n listOfpoints.get(19).add(new LatLng (44.4407937,26.0953763));\n listOfpoints.get(19).add(new LatLng (44.440855,26.0952047));\n listOfpoints.get(19).add(new LatLng (44.4450832,26.0910419));\n listOfpoints.get(19).add(new LatLng (44.4454509,26.0905698));\n listOfpoints.get(19).add(new LatLng (44.4445011,26.0879949));\n listOfpoints.get(19).add(new LatLng (44.4437964,26.0862783));\n listOfpoints.get(19).add(new LatLng (44.4434287,26.0840681));\n listOfpoints.get(19).add(new LatLng (44.443061, 26.0812143));\n listOfpoints.get(19).add(new LatLng (44.4423257, 26.0809997));\n listOfpoints.get(19).add(new LatLng (44.4419887, 26.0810211));\n listOfpoints.get(19).add(new LatLng (44.4411767, 26.0813215));\n listOfpoints.get(19).add(new LatLng (44.4401196, 26.0817507));\n\n\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n listOfpoints.get(20).add(new LatLng (44.4145114,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4143275,26.0990294));\n listOfpoints.get(20).add(new LatLng (44.4143735, 26.0993727));\n listOfpoints.get(20).add(new LatLng (44.4144195, 26.0998233));\n listOfpoints.get(20).add(new LatLng (44.4142969, 26.1008104));\n listOfpoints.get(20).add(new LatLng (44.4140976,26.1009177));\n listOfpoints.get(20).add(new LatLng (44.4138983,26.1008962));\n listOfpoints.get(20).add(new LatLng (44.4138064,26.1006602));\n listOfpoints.get(20).add(new LatLng (44.4137451,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4130247,26.098729));\n listOfpoints.get(20).add(new LatLng (44.4127335,26.0984286));\n listOfpoints.get(20).add(new LatLng (44.4113386,26.0985144));\n listOfpoints.get(20).add(new LatLng (44.4102503, 26.0985788));\n listOfpoints.get(20).add(new LatLng (44.414021,26.1043509));\n listOfpoints.get(20).add(new LatLng (44.4143122,26.1043938));\n listOfpoints.get(20).add(new LatLng (44.4159522,26.1042865));\n listOfpoints.get(20).add(new LatLng (44.4191554,26.104029));\n listOfpoints.get(20).add(new LatLng (44.4210711,26.1038574));\n listOfpoints.get(20).add(new LatLng (44.4208259,26.1030205));\n listOfpoints.get(20).add(new LatLng (44.4203508,26.1016258));\n listOfpoints.get(20).add(new LatLng (44.4198297,26.1000379));\n listOfpoints.get(20).add(new LatLng (44.4192167, 26.0981067));\n listOfpoints.get(20).add(new LatLng (44.418527,26.0958537));\n\n\n listOfpoints.get(21).add(new LatLng (44.410189,26.0984071));\n listOfpoints.get(21).add(new LatLng (44.4103883,26.0984715));\n listOfpoints.get(21).add(new LatLng (44.4128867,26.0983213));\n listOfpoints.get(21).add(new LatLng (44.4138524, 26.1000594));\n listOfpoints.get(21).add(new LatLng (44.4138524,26.1004671));\n listOfpoints.get(21).add(new LatLng (44.4139597,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4141742,26.1007246));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.1003812));\n listOfpoints.get(21).add(new LatLng (44.4143275,26.0996946));\n listOfpoints.get(21).add(new LatLng (44.4141589,26.0986646));\n listOfpoints.get(21).add(new LatLng (44.418435,26.0957464));\n listOfpoints.get(21).add(new LatLng (44.4190021,26.0946306));\n listOfpoints.get(21).add(new LatLng (44.4183737,26.0934504));\n listOfpoints.get(21).add(new LatLng (44.4176534, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4165652, 26.0933431));\n listOfpoints.get(21).add(new LatLng (44.4155996,26.0927423));\n listOfpoints.get(21).add(new LatLng (44.4149406,26.0921415));\n listOfpoints.get(21).add(new LatLng (44.4142662,26.0919055));\n listOfpoints.get(21).add(new LatLng (44.412994, 26.0920986));\n listOfpoints.get(21).add(new LatLng (44.4098211,26.0943945));\n listOfpoints.get(21).add(new LatLng (44.4096679,26.0947164));\n listOfpoints.get(21).add(new LatLng (44.4096985, 26.0953816));\n listOfpoints.get(21).add(new LatLng (44.4088401, 26.0962399));\n listOfpoints.get(21).add(new LatLng (44.4088248,26.0966047));\n listOfpoints.get(21).add(new LatLng (44.410189, 26.0984071));\n\n\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n listOfpoints.get(22).add(new LatLng (44.4252745,26.0779102));\n listOfpoints.get(22).add(new LatLng (44.426102,26.0783394));\n listOfpoints.get(22).add(new LatLng (44.4286458, 26.079541));\n listOfpoints.get(22).add(new LatLng (44.4293813,26.0807855));\n listOfpoints.get(22).add(new LatLng (44.4303313,26.0837038));\n listOfpoints.get(22).add(new LatLng (44.4329668,26.08409));\n listOfpoints.get(22).add(new LatLng (44.4335797,26.0839613));\n listOfpoints.get(22).add(new LatLng (44.4337023,26.0821159));\n listOfpoints.get(22).add(new LatLng (44.4339474,26.0797556));\n listOfpoints.get(22).add(new LatLng (44.434499,26.078039));\n listOfpoints.get(22).add(new LatLng (44.4358473,26.0748632));\n listOfpoints.get(22).add(new LatLng (44.4351732,26.073962));\n listOfpoints.get(22).add(new LatLng (44.433212,26.0710867));\n listOfpoints.get(22).add(new LatLng (44.4312201,26.0683401));\n listOfpoints.get(22).add(new LatLng (44.4299329,26.067396));\n listOfpoints.get(22).add(new LatLng (44.4283087,26.0655506));\n listOfpoints.get(22).add(new LatLng (44.4274812,26.0668381));\n listOfpoints.get(22).add(new LatLng (44.4261633,26.0691984));\n listOfpoints.get(22).add(new LatLng (44.4249374,26.0715587));\n listOfpoints.get(22).add(new LatLng (44.4238034,26.0734041));\n\n\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n listOfpoints.get(23).add(new LatLng (44.4169069,26.0695417));\n listOfpoints.get(23).add(new LatLng (44.4131364,26.073447));\n listOfpoints.get(23).add(new LatLng (44.4139948,26.0749491));\n listOfpoints.get(23).add(new LatLng (44.4156807,26.0782106));\n listOfpoints.get(23).add(new LatLng (44.4178265,26.0819443));\n listOfpoints.get(23).add(new LatLng (44.4184089,26.0840471));\n listOfpoints.get(23).add(new LatLng (44.4213514,26.0900982));\n listOfpoints.get(23).add(new LatLng (44.4240486, 26.0903986));\n listOfpoints.get(23).add(new LatLng (44.424447,26.0897978));\n listOfpoints.get(23).add(new LatLng (44.4252132,26.0783394));\n listOfpoints.get(23).add(new LatLng (44.4236808, 26.0737474));\n listOfpoints.get(23).add(new LatLng (44.4205851,26.0657652));\n\n\n\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n listOfpoints.get(24).add(new LatLng (44.442854,26.1011417));\n listOfpoints.get(24).add(new LatLng (44.4434668,26.1027725));\n listOfpoints.get(24).add(new LatLng (44.4430685, 26.1033304));\n listOfpoints.get(24).add(new LatLng (44.4430685,26.1047895));\n listOfpoints.get(24).add(new LatLng (44.4437732,26.1076648));\n listOfpoints.get(24).add(new LatLng (44.4446617,26.1085661));\n listOfpoints.get(24).add(new LatLng (44.4461629,26.1092956));\n listOfpoints.get(24).add(new LatLng (44.447174,26.1100252));\n listOfpoints.get(24).add(new LatLng (44.4473272,26.108609));\n listOfpoints.get(24).add(new LatLng (44.4480624,26.107064));\n listOfpoints.get(24).add(new LatLng (44.4480931,26.1060341));\n listOfpoints.get(24).add(new LatLng (44.4476948,26.1029871));\n listOfpoints.get(24).add(new LatLng (44.448522, 26.1028583));\n listOfpoints.get(24).add(new LatLng (44.4499006,26.102515));\n listOfpoints.get(24).add(new LatLng (44.4509729, 26.101485));\n listOfpoints.get(24).add(new LatLng (44.4529335,26.1007555));\n listOfpoints.get(24).add(new LatLng (44.452719,26.0935457));\n listOfpoints.get(24).add(new LatLng (44.4521063,26.0865934));\n listOfpoints.get(24).add(new LatLng (44.4506359,26.0897262));\n listOfpoints.get(24).add(new LatLng (44.4472046,26.0966785));\n listOfpoints.get(24).add(new LatLng (44.4465306,26.0971077));\n listOfpoints.get(24).add(new LatLng (44.4427933,26.0989692));\n\n\n listOfpoints.get(25).add(new LatLng (44.3944544,26.1201103));\n listOfpoints.get(25).add(new LatLng (44.3948837,26.1205394));\n listOfpoints.get(25).add(new LatLng (44.400587,26.1207969));\n listOfpoints.get(25).add(new LatLng (44.4069336,26.1209686));\n listOfpoints.get(25).add(new LatLng (44.4075468,26.1204536));\n listOfpoints.get(25).add(new LatLng (44.4081599,26.119252));\n listOfpoints.get(25).add(new LatLng (44.4083439, 26.1177499));\n listOfpoints.get(25).add(new LatLng (44.4084665, 26.1148317));\n listOfpoints.get(25).add(new LatLng (44.4090183,26.1131151));\n listOfpoints.get(25).add(new LatLng (44.4102139, 26.1109693));\n listOfpoints.get(25).add(new LatLng (44.411992,26.106549));\n listOfpoints.get(25).add(new LatLng (44.4128197, 26.105562));\n listOfpoints.get(25).add(new LatLng (44.4140152, 26.1047037));\n listOfpoints.get(25).add(new LatLng (44.4105512, 26.099468));\n listOfpoints.get(25).add(new LatLng (44.4088344, 26.0971077));\n listOfpoints.get(25).add(new LatLng (44.4074854,26.0960777));\n listOfpoints.get(25).add(new LatLng (44.4067803, 26.0957773));\n listOfpoints.get(25).add(new LatLng (44.4047262, 26.096936));\n listOfpoints.get(25).add(new LatLng (44.4024267, 26.098481));\n listOfpoints.get(25).add(new LatLng (44.4015068, 26.0996826));\n listOfpoints.get(25).add(new LatLng (44.3998818, 26.1055191));\n listOfpoints.get(25).add(new LatLng (44.3944544, 26.1201103));\n\n\n\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4526408,26.0898486));\n listOfpoints.get(26).add(new LatLng (44.4530697,26.0983887));\n listOfpoints.get(26).add(new LatLng (44.4558573,26.0971013));\n listOfpoints.get(26).add(new LatLng ( 44.4622592,26.0925522));\n listOfpoints.get(26).add(new LatLng ( 44.4635762, 26.0910073));\n listOfpoints.get(26).add(new LatLng (44.4658121,26.0865441));\n listOfpoints.get(26).add(new LatLng (44.4631474,26.0864153));\n listOfpoints.get(26).add(new LatLng (44.4534067,26.0861578));\n listOfpoints.get(26).add(new LatLng (44.4523651,26.0865441));\n\n\n\n listOfpoints.get(27).add(new LatLng (44.4346864, 26.0895482));\n listOfpoints.get(27).add(new LatLng (44.4398343, 26.0864583));\n listOfpoints.get(27).add(new LatLng (44.439865,26.0816947));\n listOfpoints.get(27).add(new LatLng (44.4420098,26.0807076));\n listOfpoints.get(27).add(new LatLng (44.4429903, 26.0808793));\n listOfpoints.get(27).add(new LatLng (44.4426532,26.0791626));\n listOfpoints.get(27).add(new LatLng (44.4405084, 26.0729399));\n listOfpoints.get(27).add(new LatLng (44.440202, 26.0727253));\n listOfpoints.get(27).add(new LatLng (44.4384555, 26.0702363));\n listOfpoints.get(27).add(new LatLng (44.4362186, 26.0744849));\n listOfpoints.get(27).add(new LatLng (44.4344413,26.0792914));\n listOfpoints.get(27).add(new LatLng (44.4346864,26.0895482));\n\n\n\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n listOfpoints.get(28).add(new LatLng (44.443061,26.0812143));\n listOfpoints.get(28).add(new LatLng (44.4437562,26.0855141));\n listOfpoints.get(28).add(new LatLng (44.4440626,26.0866299));\n listOfpoints.get(28).add(new LatLng (44.444798, 26.0884753));\n listOfpoints.get(28).add(new LatLng (44.4465443,26.0937539));\n listOfpoints.get(28).add(new LatLng (44.4468813,26.0958138));\n listOfpoints.get(28).add(new LatLng (44.4471264,26.0961142));\n listOfpoints.get(28).add(new LatLng (44.4492097, 26.0919943));\n listOfpoints.get(28).add(new LatLng (44.4507109,26.0889473));\n listOfpoints.get(28).add(new LatLng (44.4519056, 26.0864153));\n listOfpoints.get(28).add(new LatLng (44.4518137,26.0848275));\n listOfpoints.get(28).add(new LatLng (44.4481987, 26.0827246));\n listOfpoints.get(28).add(new LatLng (44.4455026,26.081523));\n listOfpoints.get(28).add(new LatLng (44.443266, 26.0812226));\n\n\n\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n listOfpoints.get(29).add(new LatLng (44.437967, 26.115168));\n listOfpoints.get(29).add(new LatLng (44.4410924, 26.131905));\n listOfpoints.get(29).add(new LatLng (44.4413375,26.1327204));\n listOfpoints.get(29).add(new LatLng (44.443758, 26.1284717));\n listOfpoints.get(29).add(new LatLng (44.4467299, 26.1259827));\n listOfpoints.get(29).add(new LatLng (44.4480167,26.1254248));\n listOfpoints.get(29).add(new LatLng (44.4491809, 26.124266));\n listOfpoints.get(29).add(new LatLng (44.4380283, 26.1146959));\n\n\n listOfpoints.get(30).add(new LatLng (44.4129016,26.0735409));\n listOfpoints.get(30).add(new LatLng (44.4072915,26.0791628));\n listOfpoints.get(30).add(new LatLng (44.4031525,26.0816948));\n listOfpoints.get(30).add(new LatLng (44.4003317,26.0844414));\n listOfpoints.get(30).add(new LatLng (44.3973268,26.0850422));\n listOfpoints.get(30).add(new LatLng (44.4005463,26.0880463));\n listOfpoints.get(30).add(new LatLng (44.4017115, 26.0912221));\n listOfpoints.get(30).add(new LatLng (44.4043176,26.0963719));\n listOfpoints.get(30).add(new LatLng (44.4048695, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4060652,26.0956423));\n listOfpoints.get(30).add(new LatLng (44.4070462,26.0953848));\n listOfpoints.get(30).add(new LatLng (44.4084871, 26.096329));\n listOfpoints.get(30).add(new LatLng (44.4094682, 26.0951703));\n listOfpoints.get(30).add(new LatLng (44.4094375, 26.0944836));\n listOfpoints.get(30).add(new LatLng (44.4132388, 26.09178));\n listOfpoints.get(30).add(new LatLng (44.4145263, 26.091737));\n listOfpoints.get(30).add(new LatLng (44.4163656,26.0929387));\n listOfpoints.get(30).add(new LatLng (44.4183273,26.0930674));\n listOfpoints.get(30).add(new LatLng (44.4189404,26.0941832));\n listOfpoints.get(30).add(new LatLng (44.4212086, 26.0904067));\n listOfpoints.get(30).add(new LatLng (44.4210553,26.0898488));\n listOfpoints.get(30).add(new LatLng (44.4186339, 26.0850852));\n listOfpoints.get(30).add(new LatLng (44.4181741,26.0840123));\n listOfpoints.get(30).add(new LatLng (44.4176836, 26.0822527));\n listOfpoints.get(30).add(new LatLng (44.4171932,26.0813944));\n listOfpoints.get(30).add(new LatLng (44.4150781, 26.077575));\n listOfpoints.get(30).add(new LatLng (44.4129016, 26.0735409));\n\n\n\n listOfpoints.get(31).add(new LatLng (44.4152528, 26.1045537));\n listOfpoints.get(31).add(new LatLng (44.4142412, 26.1048541));\n listOfpoints.get(31).add(new LatLng (44.4125552,26.1062274));\n listOfpoints.get(31).add(new LatLng (44.4118501,26.1074291));\n listOfpoints.get(31).add(new LatLng (44.4107158,26.1103473));\n listOfpoints.get(31).add(new LatLng (44.4093976,26.1127935));\n listOfpoints.get(31).add(new LatLng (44.4087844, 26.1144243));\n listOfpoints.get(31).add(new LatLng (44.4085392, 26.1156259));\n listOfpoints.get(31).add(new LatLng (44.4085392,26.1170421));\n listOfpoints.get(31).add(new LatLng (44.4083246, 26.1195741));\n listOfpoints.get(31).add(new LatLng (44.4074355, 26.1209903));\n listOfpoints.get(31).add(new LatLng (44.409183, 26.1223636));\n listOfpoints.get(31).add(new LatLng (44.4168774, 26.1136518));\n listOfpoints.get(31).add(new LatLng (44.4158658, 26.1113344));\n listOfpoints.get(31).add(new LatLng (44.4156513, 26.1077295));\n listOfpoints.get(31).add(new LatLng (44.4152528,26.1045537));\n\n\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n listOfpoints.get(32).add(new LatLng (44.4164766, 26.114537));\n listOfpoints.get(32).add(new LatLng (44.4110201,26.120631));\n listOfpoints.get(32).add(new LatLng (44.4094872,26.122648));\n listOfpoints.get(32).add(new LatLng (44.4131046, 26.1296003));\n listOfpoints.get(32).add(new LatLng (44.4151891, 26.1329906));\n listOfpoints.get(32).add(new LatLng (44.4171203, 26.1348789));\n listOfpoints.get(32).add(new LatLng (44.4201242, 26.1365526));\n listOfpoints.get(32).add(new LatLng (44.4204001,26.1351364));\n listOfpoints.get(32).add(new LatLng (44.4206759, 26.1333339));\n listOfpoints.get(32).add(new LatLng (44.42181,26.1313169));\n listOfpoints.get(32).add(new LatLng (44.4228827, 26.1314028));\n listOfpoints.get(32).add(new LatLng (44.4255799, 26.1284845));\n listOfpoints.get(32).add(new LatLng (44.4256412, 26.1274975));\n listOfpoints.get(32).add(new LatLng (44.4257638, 26.1234634));\n listOfpoints.get(32).add(new LatLng (44.425917, 26.1195152));\n listOfpoints.get(32).add(new LatLng (44.4238635, 26.1194294));\n listOfpoints.get(32).add(new LatLng (44.4193273,26.115567));\n listOfpoints.get(32).add(new LatLng (44.4169364, 26.1141937));\n\n\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n listOfpoints.get(33).add(new LatLng (44.4255799,26.1284845));\n listOfpoints.get(33).add(new LatLng (44.4318104,26.1386596));\n listOfpoints.get(33).add(new LatLng (44.4320863,26.1385309));\n listOfpoints.get(33).add(new LatLng (44.4313814,26.1329948));\n listOfpoints.get(33).add(new LatLng (44.4316879,26.129819));\n listOfpoints.get(33).add(new LatLng (44.4326992,26.1229526));\n listOfpoints.get(33).add(new LatLng (44.4328861,26.1207289));\n listOfpoints.get(33).add(new LatLng (44.4300024, 26.1205493));\n listOfpoints.get(33).add(new LatLng (44.4288684,26.1196481));\n listOfpoints.get(33).add(new LatLng (44.4275797,26.1191541));\n listOfpoints.get(33).add(new LatLng (44.4261929,26.1191112));\n\n\n listOfpoints.get(34).add(new LatLng (44.4202782, 26.1364709));\n listOfpoints.get(34).add(new LatLng (44.4204314,26.1366855));\n listOfpoints.get(34).add(new LatLng (44.4255806,26.1375009));\n listOfpoints.get(34).add(new LatLng (44.4293579,26.1390888));\n listOfpoints.get(34).add(new LatLng (44.4303615,26.139196));\n listOfpoints.get(34).add(new LatLng (44.4317406,26.1386596));\n listOfpoints.get(34).add(new LatLng (44.4266686,26.1303877));\n listOfpoints.get(34).add(new LatLng (44.4255882,26.128596));\n listOfpoints.get(34).add(new LatLng (44.4250212,26.1291968));\n listOfpoints.get(34).add(new LatLng (44.4230214, 26.1315571));\n listOfpoints.get(34).add(new LatLng (44.4227685,26.1316644));\n listOfpoints.get(34).add(new LatLng (44.4217877,26.1315678));\n listOfpoints.get(34).add(new LatLng (44.4207762,26.1334668));\n listOfpoints.get(34).add(new LatLng (44.4202782,26.1364709));\n\n\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n listOfpoints.get(35).add(new LatLng (44.4437985,26.1194425));\n listOfpoints.get(35).add(new LatLng (44.4469926,26.1222749));\n listOfpoints.get(35).add(new LatLng (44.4492443, 26.1240881));\n listOfpoints.get(35).add(new LatLng (44.4504315,26.123144));\n listOfpoints.get(35).add(new LatLng (44.4512893,26.1217492));\n listOfpoints.get(35).add(new LatLng (44.451421, 26.1212347));\n listOfpoints.get(35).add(new LatLng (44.4523401, 26.1180161));\n listOfpoints.get(35).add(new LatLng (44.4527077, 26.1145399));\n listOfpoints.get(35).add(new LatLng (44.452944, 26.1009052));\n listOfpoints.get(35).add(new LatLng (44.4516573,26.1013558));\n listOfpoints.get(35).add(new LatLng (44.4510217,26.1016777));\n listOfpoints.get(35).add(new LatLng (44.4500413,26.1025574));\n listOfpoints.get(35).add(new LatLng (44.449712,26.1027291));\n listOfpoints.get(35).add(new LatLng (44.4477666,26.1031153));\n listOfpoints.get(35).add(new LatLng (44.4479198,26.1042526));\n listOfpoints.get(35).add(new LatLng (44.448027,26.1051967));\n listOfpoints.get(35).add(new LatLng (44.4481419,26.1058619));\n listOfpoints.get(35).add(new LatLng (44.4481189, 26.1070206));\n listOfpoints.get(35).add(new LatLng (44.448004,26.1073425));\n listOfpoints.get(35).add(new LatLng (44.4473836,26.1088338));\n listOfpoints.get(35).add(new LatLng (44.4472917,26.1100569));\n listOfpoints.get(35).add(new LatLng (44.4471385, 26.1102929));\n listOfpoints.get(35).add(new LatLng (44.4469241,26.1116877));\n listOfpoints.get(35).add(new LatLng (44.4469394,26.1122456));\n listOfpoints.get(35).add(new LatLng (44.4467403,26.1136403));\n listOfpoints.get(35).add(new LatLng (44.445959,26.1161938));\n listOfpoints.get(35).add(new LatLng (44.4448254,26.1176744));\n listOfpoints.get(35).add(new LatLng (44.4438143,26.1191764));\n\n\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n listOfpoints.get(36).add(new LatLng (44.4372662,26.123983));\n listOfpoints.get(36).add(new LatLng (44.4356115, 26.1252275));\n listOfpoints.get(36).add(new LatLng (44.4344471, 26.1254207));\n listOfpoints.get(36).add(new LatLng (44.4324705,26.1258069));\n listOfpoints.get(36).add(new LatLng (44.4315052, 26.1327377));\n listOfpoints.get(36).add(new LatLng (44.432256,26.1385742));\n listOfpoints.get(36).add(new LatLng (44.4351059,26.1373511));\n listOfpoints.get(36).add(new LatLng (44.4376339, 26.1363641));\n listOfpoints.get(36).add(new LatLng (44.4389822, 26.1353985));\n listOfpoints.get(36).add(new LatLng (44.4401772,26.1345402));\n listOfpoints.get(36).add(new LatLng (44.4411883, 26.1334458));\n listOfpoints.get(36).add(new LatLng (44.4402231, 26.1281458));\n listOfpoints.get(36).add(new LatLng (44.4398861,26.126279));\n listOfpoints.get(36).add(new LatLng (44.4391967, 26.1225882));\n\n\n\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n listOfpoints.get(37).add(new LatLng (44.3977135, 26.1097995));\n listOfpoints.get(37).add(new LatLng (44.3909519,26.1099282));\n listOfpoints.get(37).add(new LatLng (44.3874558, 26.1100784));\n listOfpoints.get(37).add(new LatLng (44.3877779, 26.1129538));\n listOfpoints.get(37).add(new LatLng (44.3881766, 26.1154428));\n listOfpoints.get(37).add(new LatLng (44.3886059, 26.1165586));\n listOfpoints.get(37).add(new LatLng (44.3894799, 26.1180178));\n listOfpoints.get(37).add(new LatLng (44.3906606, 26.1193052));\n listOfpoints.get(37).add(new LatLng (44.3927152, 26.1205927));\n listOfpoints.get(37).add(new LatLng (44.3936352, 26.1206785));\n listOfpoints.get(37).add(new LatLng (44.3940339, 26.1202279));\n listOfpoints.get(37).add(new LatLng (44.3978822,26.1102715));\n\n\n\n listOfpoints.get(38).add(new LatLng (44.389256,26.0917973));\n listOfpoints.get(38).add(new LatLng (44.3892556,26.0920523));\n listOfpoints.get(38).add(new LatLng (44.4003643, 26.0970731));\n listOfpoints.get(38).add(new LatLng (44.4008548, 26.0971482));\n listOfpoints.get(38).add(new LatLng (44.4030625, 26.0971601));\n listOfpoints.get(38).add(new LatLng (44.4043195,26.0965593));\n listOfpoints.get(38).add(new LatLng (44.4019587, 26.0920531));\n listOfpoints.get(38).add(new LatLng (44.4005636,26.0883195));\n listOfpoints.get(38).add(new LatLng (44.3987104,26.0864919));\n listOfpoints.get(38).add(new LatLng (44.3972443, 26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3961557,26.0851884));\n listOfpoints.get(38).add(new LatLng (44.3946992,26.0841584));\n listOfpoints.get(38).add(new LatLng (44.3918473,26.0856819));\n listOfpoints.get(38).add(new LatLng (44.3912493,26.08639));\n listOfpoints.get(38).add(new LatLng (44.389256, 26.0917973));\n\n\n\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n listOfpoints.get(39).add(new LatLng (44.4011008,26.0974224));\n listOfpoints.get(39).add(new LatLng (44.399997,26.0972078));\n listOfpoints.get(39).add(new LatLng (44.389065,26.0922189));\n listOfpoints.get(39).add(new LatLng (44.3863339,26.0922418));\n listOfpoints.get(39).add(new LatLng (44.387806,26.0981212));\n listOfpoints.get(39).add(new LatLng (44.3887261,26.1004386));\n listOfpoints.get(39).add(new LatLng (44.3889714,26.1023269));\n listOfpoints.get(39).add(new LatLng (44.3887567,26.1040435));\n listOfpoints.get(39).add(new LatLng (44.3875607,26.1097513));\n listOfpoints.get(39).add(new LatLng (44.3977341,26.1097306));\n listOfpoints.get(39).add(new LatLng (44.3979142,26.1101973));\n listOfpoints.get(39).add(new LatLng (44.397964,26.1101222));\n listOfpoints.get(39).add(new LatLng (44.3996198,26.1059165));\n listOfpoints.get(39).add(new LatLng (44.4016128,26.0990715));\n listOfpoints.get(39).add(new LatLng (44.4030402,26.0978593));\n listOfpoints.get(39).add(new LatLng (44.4029942,26.0973363));\n\n\n\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n listOfpoints.get(40).add(new LatLng (44.4494277,26.1245701));\n listOfpoints.get(40).add(new LatLng (44.4610682, 26.1325953));\n listOfpoints.get(40).add(new LatLng (44.4618646,26.1326811));\n listOfpoints.get(40).add(new LatLng (44.4644374, 26.1345265));\n listOfpoints.get(40).add(new LatLng (44.4660607, 26.1368439));\n listOfpoints.get(40).add(new LatLng (44.4665813,26.1365435));\n listOfpoints.get(40).add(new LatLng (44.4663976,26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4667345, 26.1349985));\n listOfpoints.get(40).add(new LatLng (44.4681739, 26.1354277));\n listOfpoints.get(40).add(new LatLng (44.4701952, 26.1371014));\n listOfpoints.get(40).add(new LatLng (44.4719714, 26.1368868));\n listOfpoints.get(40).add(new LatLng (44.4730739, 26.1358998));\n listOfpoints.get(40).add(new LatLng (44.4731964,26.1346981));\n listOfpoints.get(40).add(new LatLng (44.4687252,26.1305783));\n listOfpoints.get(40).add(new LatLng (44.466857,26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4662751, 26.1310932));\n listOfpoints.get(40).add(new LatLng (44.4658769, 26.1300633));\n listOfpoints.get(40).add(new LatLng (44.4666426, 26.129162));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1285183));\n listOfpoints.get(40).add(new LatLng (44.4697971, 26.1290333));\n listOfpoints.get(40).add(new LatLng (44.4723389, 26.1319945));\n listOfpoints.get(40).add(new LatLng (44.4743294,26.1327669));\n listOfpoints.get(40).add(new LatLng (44.4750338,26.1320374));\n listOfpoints.get(40).add(new LatLng (44.4756462,26.1297199));\n listOfpoints.get(40).add(new LatLng (44.4742376,26.1249563));\n listOfpoints.get(40).add(new LatLng (44.4742988, 26.1238835));\n listOfpoints.get(40).add(new LatLng (44.4741457,26.1231968));\n listOfpoints.get(40).add(new LatLng (44.4676533,26.1269734));\n listOfpoints.get(40).add(new LatLng (44.4668876,26.1267588));\n listOfpoints.get(40).add(new LatLng (44.4649275,26.1207506));\n listOfpoints.get(40).add(new LatLng (44.4648662,26.120064));\n listOfpoints.get(40).add(new LatLng (44.4674389,26.118562));\n listOfpoints.get(40).add(new LatLng (44.4689089,26.1177895));\n listOfpoints.get(40).add(new LatLng (44.4710833,26.1160729));\n listOfpoints.get(40).add(new LatLng (44.4714202,26.1163304));\n listOfpoints.get(40).add(new LatLng (44.4722777,26.116502));\n listOfpoints.get(40).add(new LatLng (44.4729208,26.1131117));\n listOfpoints.get(40).add(new LatLng (44.4723083,26.1107084));\n listOfpoints.get(40).add(new LatLng (44.4725227,26.1095926));\n listOfpoints.get(40).add(new LatLng (44.4733801,26.1087343));\n listOfpoints.get(40).add(new LatLng (44.4735945, 26.1082194));\n listOfpoints.get(40).add(new LatLng (44.4700727,26.1101076));\n listOfpoints.get(40).add(new LatLng (44.4533184,26.1047861));\n listOfpoints.get(40).add(new LatLng (44.4531039,26.105344));\n listOfpoints.get(40).add(new LatLng (44.4528589,26.1152146));\n listOfpoints.get(40).add(new LatLng (44.4526138,26.1174891));\n listOfpoints.get(40).add(new LatLng (44.452093,26.1197207));\n listOfpoints.get(40).add(new LatLng (44.4508982,26.1229822));\n listOfpoints.get(40).add(new LatLng (44.4496116, 26.1241839));\n\n\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n listOfpoints.get(41).add(new LatLng (44.4550165,26.1051764));\n listOfpoints.get(41).add(new LatLng (44.4698103,26.1097469));\n listOfpoints.get(41).add(new LatLng (44.4709588,26.1093392));\n listOfpoints.get(41).add(new LatLng (44.4739216,26.1077299));\n listOfpoints.get(41).add(new LatLng (44.4734929,26.1050262));\n listOfpoints.get(41).add(new LatLng (44.4721455,26.105155));\n listOfpoints.get(41).add(new LatLng (44.4701242,26.1040392));\n listOfpoints.get(41).add(new LatLng (44.467521, 26.101593));\n listOfpoints.get(41).add(new LatLng (44.4673067, 26.1001768));\n listOfpoints.get(41).add(new LatLng (44.4664185,26.099061));\n listOfpoints.get(41).add(new LatLng (44.4660816,26.0979023));\n listOfpoints.get(41).add(new LatLng (44.4662041,26.0968294));\n listOfpoints.get(41).add(new LatLng (44.4671535,26.0960569));\n listOfpoints.get(41).add(new LatLng (44.4677661,26.0958853));\n listOfpoints.get(41).add(new LatLng (44.4680723,26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4691748,26.0952415));\n listOfpoints.get(41).add(new LatLng (44.4720536,26.0967865));\n listOfpoints.get(41).add(new LatLng (44.4742278,26.0964861));\n listOfpoints.get(41).add(new LatLng (44.4749015, 26.0951986));\n listOfpoints.get(41).add(new LatLng (44.4747178,26.0948124));\n listOfpoints.get(41).add(new LatLng (44.4719617,26.0923662));\n listOfpoints.get(41).add(new LatLng (44.4714717,26.0908642));\n listOfpoints.get(41).add(new LatLng (44.4717167,26.0897913));\n listOfpoints.get(41).add(new LatLng (44.4723598,26.0888901));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0894909));\n listOfpoints.get(41).add(new LatLng (44.4732785,26.0900917));\n listOfpoints.get(41).add(new LatLng (44.4732479,26.0907783));\n listOfpoints.get(41).add(new LatLng (44.4735235,26.0912075));\n listOfpoints.get(41).add(new LatLng (44.4740135,26.0907354));\n listOfpoints.get(41).add(new LatLng (44.4734316,26.0891046));\n listOfpoints.get(41).add(new LatLng (44.4724211,26.0881176));\n listOfpoints.get(41).add(new LatLng (44.4661428,26.0866585));\n listOfpoints.get(41).add(new LatLng (44.4639989,26.09095));\n listOfpoints.get(41).add(new LatLng (44.4621305,26.0931387));\n listOfpoints.get(41).add(new LatLng (44.4558053,26.0973375));\n listOfpoints.get(41).add(new LatLng (44.4531632,26.0985928));\n listOfpoints.get(41).add(new LatLng (44.4531249,26.1045259));\n\n\n\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n listOfpoints.get(42).add(new LatLng (44.4404676, 26.072638));\n listOfpoints.get(42).add(new LatLng (44.4426125, 26.0786676));\n listOfpoints.get(42).add(new LatLng (44.4427656, 26.0791182));\n listOfpoints.get(42).add(new LatLng (44.4429801, 26.0806202));\n listOfpoints.get(42).add(new LatLng (44.4461972, 26.0758781));\n listOfpoints.get(42).add(new LatLng ( 44.4465955, 26.0753846));\n listOfpoints.get(42).add(new LatLng ( 44.4468405, 26.0753202));\n listOfpoints.get(42).add(new LatLng (44.4474227, 26.0759639));\n listOfpoints.get(42).add(new LatLng (44.4501186, 26.0695052));\n listOfpoints.get(42).add(new LatLng ( 44.4472848, 26.063776));\n listOfpoints.get(42).add(new LatLng ( 44.4461972,26.0623597));\n listOfpoints.get(42).add(new LatLng (44.4454925, 26.0618233));\n listOfpoints.get(42).add(new LatLng ( 44.4442057,26.0612654));\n listOfpoints.get(42).add(new LatLng (44.4432099,26.0609435));\n listOfpoints.get(42).add(new LatLng ( 44.4429035,26.062467));\n listOfpoints.get(42).add(new LatLng (44.4385679, 26.0699558));\n listOfpoints.get(42).add(new LatLng (44.4386598, 26.0701274));\n\n\n\n listOfpoints.get(43).add(new LatLng ( 44.4430787,26.0806953));\n listOfpoints.get(43).add(new LatLng ( 44.443126, 26.0810753));\n listOfpoints.get(43).add(new LatLng ( 44.4455924,26.0813757));\n listOfpoints.get(43).add(new LatLng (44.4467107,26.0816761));\n listOfpoints.get(43).add(new LatLng (44.4514593,26.0842939));\n listOfpoints.get(43).add(new LatLng (44.4518575,26.0844441));\n listOfpoints.get(43).add(new LatLng (44.4519188,26.0818906));\n listOfpoints.get(43).add(new LatLng (44.4520107,26.0813971));\n listOfpoints.get(43).add(new LatLng (44.452026,26.0767193));\n listOfpoints.get(43).add(new LatLng (44.4527, 26.0732861));\n listOfpoints.get(43).add(new LatLng ( 44.4511682,26.0706039));\n listOfpoints.get(43).add(new LatLng (44.4503219, 26.069692));\n listOfpoints.get(43).add(new LatLng (44.4502719,26.0698017));\n listOfpoints.get(43).add(new LatLng (44.4475595, 26.0760068));\n listOfpoints.get(43).add(new LatLng (44.447414, 26.0761356));\n listOfpoints.get(43).add(new LatLng (44.4468242, 26.0754811));\n listOfpoints.get(43).add(new LatLng (44.4465485, 26.0755562));\n listOfpoints.get(43).add(new LatLng (44.4462728, 26.0759746));\n listOfpoints.get(43).add(new LatLng (44.4430787,26.0806953));\n\n\n\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n listOfpoints.get(44).add(new LatLng (44.4299706,26.0672689));\n listOfpoints.get(44).add(new LatLng (44.431342,26.068213));\n listOfpoints.get(44).add(new LatLng (44.4358314, 26.0745752));\n listOfpoints.get(44).add(new LatLng (44.4382828,26.0698974));\n listOfpoints.get(44).add(new LatLng (44.4353105,26.0630095));\n listOfpoints.get(44).add(new LatLng (44.435096,26.0616792));\n listOfpoints.get(44).add(new LatLng (44.4344678, 26.0595763));\n listOfpoints.get(44).add(new LatLng (44.4320315, 26.0595334));\n listOfpoints.get(44).add(new LatLng (44.4316178, 26.0600913));\n listOfpoints.get(44).add(new LatLng (44.4291968, 26.0639));\n listOfpoints.get(44).add(new LatLng (44.4283234, 26.0653913));\n\n\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n listOfpoints.get(45).add(new LatLng (44.441285, 26.1333359));\n listOfpoints.get(45).add(new LatLng (44.4414535,26.1345376));\n listOfpoints.get(45).add(new LatLng (44.4428936,26.1475195));\n listOfpoints.get(45).add(new LatLng (44.443154,26.1493863));\n listOfpoints.get(45).add(new LatLng (44.4434451, 26.149794));\n listOfpoints.get(45).add(new LatLng (44.4437515,26.1497082));\n listOfpoints.get(45).add(new LatLng (44.4445175,26.1494721));\n listOfpoints.get(45).add(new LatLng (44.4454979,26.1488713));\n listOfpoints.get(45).add(new LatLng (44.4459574,26.1481847));\n listOfpoints.get(45).add(new LatLng (44.447091,26.147262));\n listOfpoints.get(45).add(new LatLng (44.448148,26.1456527));\n listOfpoints.get(45).add(new LatLng (44.4520847, 26.1353101));\n listOfpoints.get(45).add(new LatLng (44.4529577,26.1321129));\n listOfpoints.get(45).add(new LatLng (44.4531262,26.1316623));\n listOfpoints.get(45).add(new LatLng (44.4536776, 26.1311473));\n listOfpoints.get(45).add(new LatLng (44.4547192, 26.1298813));\n listOfpoints.get(45).add(new LatLng (44.455148,26.1288513));\n listOfpoints.get(45).add(new LatLng (44.449833, 26.1251177));\n listOfpoints.get(45).add(new LatLng (44.4491437, 26.12471));\n listOfpoints.get(45).add(new LatLng (44.4477038,26.1259545));\n listOfpoints.get(45).add(new LatLng (44.4462332, 26.1266841));\n listOfpoints.get(45).add(new LatLng (44.4447013, 26.1279501));\n listOfpoints.get(45).add(new LatLng (44.4436596, 26.129259));\n listOfpoints.get(45).add(new LatLng (44.4413922,26.133057));\n\n\n\n listOfpoints.get(46).add(new LatLng (44.4322314,26.1388506));\n listOfpoints.get(46).add(new LatLng (44.4335155,26.1535014));\n listOfpoints.get(46).add(new LatLng (44.4338066,26.1552395));\n listOfpoints.get(46).add(new LatLng (44.434971,26.1596598));\n listOfpoints.get(46).add(new LatLng (44.4350966, 26.1598576));\n listOfpoints.get(46).add(new LatLng (44.4421748,26.1571969));\n listOfpoints.get(46).add(new LatLng (44.4425731, 26.1570252));\n listOfpoints.get(46).add(new LatLng (44.4429102, 26.1561669));\n listOfpoints.get(46).add(new LatLng (44.443477, 26.1502231));\n listOfpoints.get(46).add(new LatLng (44.4429255, 26.1494077));\n listOfpoints.get(46).add(new LatLng (44.442328, 26.144215));\n listOfpoints.get(46).add(new LatLng (44.4418837, 26.1404384));\n listOfpoints.get(46).add(new LatLng (44.4412556, 26.1349882));\n listOfpoints.get(46).add(new LatLng (44.4411331, 26.1338295));\n listOfpoints.get(46).add(new LatLng (44.4406428,26.1344732));\n listOfpoints.get(46).add(new LatLng (44.4388656, 26.1357821));\n listOfpoints.get(46).add(new LatLng (44.4374868, 26.1367048));\n listOfpoints.get(46).add(new LatLng (44.4350813, 26.137606));\n listOfpoints.get(46).add(new LatLng (44.4322314, 26.1388506));\n\n\n\n listOfpoints.get(47).add(new LatLng (44.4202257, 26.1368063));\n listOfpoints.get(47).add(new LatLng (44.4179627,26.1463187));\n listOfpoints.get(47).add(new LatLng (44.4227749, 26.149709));\n listOfpoints.get(47).add(new LatLng (44.4231734, 26.1503527));\n listOfpoints.get(47).add(new LatLng (44.4237251, 26.1504386));\n listOfpoints.get(47).add(new LatLng (44.4261157, 26.1495373));\n listOfpoints.get(47).add(new LatLng (44.4262996, 26.1508463));\n listOfpoints.get(47).add(new LatLng (44.4268206, 26.1524341));\n listOfpoints.get(47).add(new LatLng (44.4283937, 26.1547449));\n listOfpoints.get(47).add(new LatLng (44.433251, 26.1534574));\n listOfpoints.get(47).add(new LatLng (44.4320712, 26.1388662));\n listOfpoints.get(47).add(new LatLng (44.430401,26.139467));\n listOfpoints.get(47).add(new LatLng (44.4295736, 26.1393812));\n listOfpoints.get(47).add(new LatLng (44.4254668, 26.137686));\n listOfpoints.get(47).add(new LatLng (44.4241642,26.1374929));\n listOfpoints.get(47).add(new LatLng (44.4202257,26.1368063));\n\n\n\n listOfpoints.get(48).add(new LatLng (44.4234516,26.1510693));\n listOfpoints.get(48).add(new LatLng (44.425076, 26.1630856));\n listOfpoints.get(48).add(new LatLng (44.4292135,26.1619484));\n listOfpoints.get(48).add(new LatLng(44.4286618, 26.1578285));\n listOfpoints.get(48).add(new LatLng (44.4287078,26.156026));\n listOfpoints.get(48).add(new LatLng (44.4286925,26.1557042));\n listOfpoints.get(48).add(new LatLng (44.4269762, 26.1532151));\n listOfpoints.get(48).add(new LatLng (44.4262407, 26.151713));\n listOfpoints.get(48).add(new LatLng (44.4259189, 26.1499535));\n listOfpoints.get(48).add(new LatLng (44.4237122, 26.1506402));\n listOfpoints.get(48).add(new LatLng (44.4234516, 26.1510693));\n\n\n\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n listOfpoints.get(49).add(new LatLng (44.4286925, 26.1557042));\n listOfpoints.get(49).add(new LatLng (44.4287964, 26.1580645));\n listOfpoints.get(49).add(new LatLng (44.4290876, 26.1602317));\n listOfpoints.get(49).add(new LatLng (44.4302981,26.1670124));\n listOfpoints.get(49).add(new LatLng (44.4357222, 26.1692654));\n listOfpoints.get(49).add(new LatLng (44.4362584,26.1689865));\n listOfpoints.get(49).add(new LatLng (44.4366108, 26.1683857));\n listOfpoints.get(49).add(new LatLng (44.4367794,26.1675274));\n listOfpoints.get(49).add(new LatLng (44.433332, 26.1536442));\n listOfpoints.get(49).add(new LatLng (44.4285513, 26.1548459));\n\n\n\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.14650));\n listOfpoints.get(50).add(new LatLng (44.4142265, 26.15554));\n listOfpoints.get(50).add(new LatLng (44.41369, 26.1578359));\n listOfpoints.get(50).add(new LatLng (44.4131842,26.1635008));\n listOfpoints.get(50).add(new LatLng (44.4133221, 26.1636295));\n listOfpoints.get(50).add(new LatLng (44.4154679, 26.1645951));\n listOfpoints.get(50).add(new LatLng (44.4169393, 26.1648526));\n listOfpoints.get(50).add(new LatLng (44.4181654, 26.1648097));\n listOfpoints.get(50).add(new LatLng (44.420403, 26.1642732));\n listOfpoints.get(50).add(new LatLng (44.4248319, 26.1631574));\n listOfpoints.get(50).add(new LatLng (44.4232688, 26.151227));\n listOfpoints.get(50).add(new LatLng (44.4226558, 26.1500253));\n listOfpoints.get(50).add(new LatLng (44.4178742, 26.1465063));\n\n\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n listOfpoints.get(51).add(new LatLng (44.4079354,26.1261736));\n listOfpoints.get(51).add(new LatLng (44.3993506, 26.1595188));\n listOfpoints.get(51).add(new LatLng (44.4000559,26.1602484));\n listOfpoints.get(51).add(new LatLng (44.407077,26.1638962));\n listOfpoints.get(51).add(new LatLng (44.4081807, 26.1641108));\n listOfpoints.get(51).add(new LatLng (44.4091004, 26.1638104));\n listOfpoints.get(51).add(new LatLng (44.4114916, 26.162995));\n listOfpoints.get(51).add(new LatLng (44.4129018, 26.16351));\n listOfpoints.get(51).add(new LatLng (44.413147, 26.1608063));\n listOfpoints.get(51).add(new LatLng (44.4135762, 26.1567723));\n listOfpoints.get(51).add(new LatLng (44.4148943, 26.1529957));\n listOfpoints.get(51).add(new LatLng (44.4176838,26.1461722));\n listOfpoints.get(51).add(new LatLng (44.4183121,26.1435329));\n listOfpoints.get(51).add(new LatLng (44.4200133, 26.1367523));\n listOfpoints.get(51).add(new LatLng (44.4175152,26.1354433));\n listOfpoints.get(51).add(new LatLng (44.4159825, 26.1342417));\n listOfpoints.get(51).add(new LatLng (44.4146031,26.1324822));\n listOfpoints.get(51).add(new LatLng (44.4113383,26.1266242));\n listOfpoints.get(51).add(new LatLng (44.409177,26.1228262));\n\n\n listOfpoints.get(52).add(new LatLng (44.3988714,26.159323));\n listOfpoints.get(52).add(new LatLng (44.4079468,26.1248191));\n listOfpoints.get(52).add(new LatLng (44.4088665, 26.1225875));\n listOfpoints.get(52).add(new LatLng (44.4080694,26.1217721));\n listOfpoints.get(52).add(new LatLng (44.4065059,26.1213858));\n listOfpoints.get(52).add(new LatLng (44.3941185, 26.120785));\n listOfpoints.get(52).add(new LatLng (44.3862678, 26.1391528));\n listOfpoints.get(52).add(new LatLng (44.3887826,26.1415131));\n listOfpoints.get(52).add(new LatLng (44.3886293, 26.1448605));\n listOfpoints.get(52).add(new LatLng (44.3891813, 26.1464484));\n listOfpoints.get(52).add(new LatLng (44.389304, 26.1472209));\n listOfpoints.get(52).add(new LatLng (44.3927079, 26.155761));\n listOfpoints.get(52).add(new LatLng (44.3941492, 26.1572631));\n listOfpoints.get(52).add(new LatLng (44.3985648, 26.16031));\n listOfpoints.get(52).add(new LatLng (44.3988714, 26.159323));\n\n\n\n listOfpoints.get(53).add(new LatLng (44.3886499, 26.1177499));\n listOfpoints.get(53).add(new LatLng (44.3892939, 26.1179645));\n listOfpoints.get(53).add(new LatLng (44.3881592, 26.1159046));\n listOfpoints.get(53).add(new LatLng (44.3876838,26.1132224));\n listOfpoints.get(53).add(new LatLng (44.3873311, 26.1100895));\n listOfpoints.get(53).add(new LatLng (44.3887879, 26.1032445));\n listOfpoints.get(53).add(new LatLng (44.3888645, 26.1022789));\n listOfpoints.get(53).add(new LatLng (44.3886192, 26.1005838));\n listOfpoints.get(53).add(new LatLng (44.3883738,26.0998542));\n listOfpoints.get(53).add(new LatLng (44.3876225,26.097923));\n listOfpoints.get(53).add(new LatLng (44.3869478, 26.0954554));\n listOfpoints.get(53).add(new LatLng (44.3862577, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3860584, 26.0924299));\n listOfpoints.get(53).add(new LatLng (44.3789427, 26.0917003));\n listOfpoints.get(53).add(new LatLng (44.3757526,26.1157758));\n listOfpoints.get(53).add(new LatLng (44.375998,26.1173208));\n listOfpoints.get(53).add(new LatLng (44.3765195,26.1189945));\n listOfpoints.get(53).add(new LatLng (44.3769183,26.1194665));\n listOfpoints.get(53).add(new LatLng (44.3775624, 26.1194236));\n listOfpoints.get(53).add(new LatLng (44.3786973,26.1184366));\n listOfpoints.get(53).add(new LatLng (44.3824393,26.1150248));\n listOfpoints.get(53).add(new LatLng (44.3831447, 26.114939));\n listOfpoints.get(53).add(new LatLng (44.3840802, 26.1151106));\n listOfpoints.get(53).add(new LatLng (44.3879598, 26.1175568));\n listOfpoints.get(53).add(new LatLng (44.3886499,26.1177499));\n\n\n listOfpoints.get(54).add(new LatLng ( 44.3939843, 26.1207857));\n listOfpoints.get(54).add(new LatLng (44.3928679,26.120861));\n listOfpoints.get(54).add(new LatLng (44.3916643, 26.1202602));\n listOfpoints.get(54).add(new LatLng (44.3901386, 26.1189727));\n listOfpoints.get(54).add(new LatLng (44.3894869, 26.1181573));\n listOfpoints.get(54).add(new LatLng (44.3881836, 26.1178784));\n listOfpoints.get(54).add(new LatLng (44.3839589, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3830541, 26.1151318));\n listOfpoints.get(54).add(new LatLng (44.382479, 26.1153034));\n listOfpoints.get(54).add(new LatLng (44.3814899, 26.1160544));\n listOfpoints.get(54).add(new LatLng (44.3792585,26.1181466));\n listOfpoints.get(54).add(new LatLng (44.3765793, 26.1204638));\n listOfpoints.get(54).add(new LatLng (44.3792479, 26.1275449));\n listOfpoints.get(54).add(new LatLng (44.379524,26.135098));\n listOfpoints.get(54).add(new LatLng (44.3856888, 26.1398616));\n listOfpoints.get(54).add(new LatLng (44.3939843,26.1207857));\n\n\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n listOfpoints.get(55).add(new LatLng (44.3767422, 26.0507223));\n listOfpoints.get(55).add(new LatLng (44.3901146,26.0632536));\n listOfpoints.get(55).add(new LatLng (44.4006018,26.0712359));\n listOfpoints.get(55).add(new LatLng (44.4064272, 26.0638544));\n listOfpoints.get(55).add(new LatLng (44.4054461,26.0626528));\n listOfpoints.get(55).add(new LatLng (44.3997432, 26.0485766));\n listOfpoints.get(55).add(new LatLng (44.3817726,26.0459158));\n listOfpoints.get(55).add(new LatLng (44.3777851, 26.0469458));\n\n\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n listOfpoints.get(56).add(new LatLng (44.4007746, 26.0715552));\n listOfpoints.get(56).add(new LatLng (44.3971564,26.0688944));\n listOfpoints.get(56).add(new LatLng (44.3905634, 26.0639591));\n listOfpoints.get(56).add(new LatLng (44.3862699, 26.078207));\n listOfpoints.get(56).add(new LatLng (44.38124,26.0855027));\n listOfpoints.get(56).add(new LatLng (44.3802585, 26.0858031));\n listOfpoints.get(56).add(new LatLng (44.3797064, 26.0867901));\n listOfpoints.get(56).add(new LatLng (44.3790009,26.091425));\n listOfpoints.get(56).add(new LatLng (44.3848591,26.091897));\n listOfpoints.get(56).add(new LatLng (44.3890301,26.0918541));\n listOfpoints.get(56).add(new LatLng (44.3909928, 26.0865755));\n listOfpoints.get(56).add(new LatLng (44.3915141,26.0856314));\n listOfpoints.get(56).add(new LatLng (44.3946727, 26.0839608));\n listOfpoints.get(56).add(new LatLng (44.3961445,26.0850122));\n listOfpoints.get(56).add(new LatLng (44.3967425,26.0849907));\n listOfpoints.get(56).add(new LatLng (44.4002074, 26.0843041));\n listOfpoints.get(56).add(new LatLng (44.4029362, 26.0816648));\n listOfpoints.get(56).add(new LatLng (44.4055576,26.0799267));\n listOfpoints.get(56).add(new LatLng (44.4070752,26.0791113));\n listOfpoints.get(56).add(new LatLng (44.4130379,26.0732319));\n listOfpoints.get(56).add(new LatLng (44.406462, 26.0640051));\n\n\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n listOfpoints.get(57).add(new LatLng (44.4056207, 26.0623124));\n listOfpoints.get(57).add(new LatLng (44.4131623,26.0729554));\n listOfpoints.get(57).add(new LatLng (44.4204884,26.0654452));\n listOfpoints.get(57).add(new LatLng (44.4181895,26.0583212));\n listOfpoints.get(57).add(new LatLng (44.4005004, 26.0494378));\n\n\n listOfpoints.get(58).add(new LatLng (44.414413, 26.0354062));\n listOfpoints.get(58).add(new LatLng (44.415394, 26.0475512));\n listOfpoints.get(58).add(new LatLng (44.4158231,26.0502978));\n listOfpoints.get(58).add(new LatLng (44.4181221,26.0576363));\n listOfpoints.get(58).add(new LatLng (44.4207888, 26.0658331));\n listOfpoints.get(58).add(new LatLng (44.4237005, 26.0731287));\n listOfpoints.get(58).add(new LatLng (44.4298608,26.0624857));\n listOfpoints.get(58).add(new LatLng (44.4293091,26.0617562));\n listOfpoints.get(58).add(new LatLng (44.4290027,26.0610266));\n listOfpoints.get(58).add(new LatLng (44.4275316, 26.0600825));\n listOfpoints.get(58).add(new LatLng (44.426275, 26.0585375));\n listOfpoints.get(58).add(new LatLng (44.4259379,26.0566922));\n listOfpoints.get(58).add(new LatLng (44.4253862, 26.0520573));\n listOfpoints.get(58).add(new LatLng (44.4242829,26.0473366));\n listOfpoints.get(58).add(new LatLng (44.4229037,26.0406847));\n listOfpoints.get(58).add(new LatLng (44.4221374,26.0347624));\n listOfpoints.get(58).add(new LatLng (44.4165281,26.0346766));\n listOfpoints.get(58).add(new LatLng (44.414413,26.0354062));\n\n\n listOfpoints.get(59).add(new LatLng (44.4224216, 26.0344395));\n listOfpoints.get(59).add(new LatLng (44.422437, 26.0360274));\n listOfpoints.get(59).add(new LatLng (44.423004,26.040276));\n listOfpoints.get(59).add(new LatLng (44.4255632,26.0522065));\n listOfpoints.get(59).add(new LatLng (44.4259156,26.055468));\n listOfpoints.get(59).add(new LatLng (44.42636,26.0583219));\n listOfpoints.get(59).add(new LatLng (44.4274787,26.059781));\n listOfpoints.get(59).add(new LatLng (44.4290264, 26.0608325));\n listOfpoints.get(59).add(new LatLng (44.4293328,26.0616264));\n listOfpoints.get(59).add(new LatLng (44.4299764,26.0623989));\n listOfpoints.get(59).add(new LatLng (44.4319071,26.0594162));\n listOfpoints.get(59).add(new LatLng (44.4345885, 26.0593948));\n listOfpoints.get(59).add(new LatLng (44.4342361, 26.0348472));\n listOfpoints.get(59).add(new LatLng (44.4273254, 26.0330877));\n listOfpoints.get(59).add(new LatLng (44.4237396,26.0342893));\n listOfpoints.get(59).add(new LatLng (44.4224216,26.0344395));\n\n\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n listOfpoints.get(60).add(new LatLng (44.4343687, 26.0351665));\n listOfpoints.get(60).add(new LatLng (44.4347671,26.059757));\n listOfpoints.get(60).add(new LatLng (44.435334, 26.0617097));\n listOfpoints.get(60).add(new LatLng (44.4355025, 26.0629327));\n listOfpoints.get(60).add(new LatLng (44.4356864,26.0635979));\n listOfpoints.get(60).add(new LatLng (44.4371728, 26.0669608));\n listOfpoints.get(60).add(new LatLng (44.4383602, 26.0697182));\n listOfpoints.get(60).add(new LatLng (44.4427184,26.0621798));\n listOfpoints.get(60).add(new LatLng (44.4429329,26.0609782));\n listOfpoints.get(60).add(new LatLng (44.447161,26.0392201));\n listOfpoints.get(60).add(new LatLng (44.4427491,26.0356152));\n listOfpoints.get(60).add(new LatLng (44.4345371,26.034714));\n\n\n listOfpoints.get(61).add(new LatLng (44.4053059, 26.0112059));\n listOfpoints.get(61).add(new LatLng (44.384914, 26.0334789));\n listOfpoints.get(61).add(new LatLng (44.3778596, 26.0462677));\n listOfpoints.get(61).add(new LatLng (44.3811722,26.0454952));\n listOfpoints.get(61).add(new LatLng (44.399879, 26.0482418));\n listOfpoints.get(61).add(new LatLng (44.4002162, 26.0489714));\n listOfpoints.get(61).add(new LatLng (44.4169858,26.0575115));\n listOfpoints.get(61).add(new LatLng (44.4180893, 26.0579407));\n listOfpoints.get(61).add(new LatLng (44.4156984,26.0508167));\n listOfpoints.get(61).add(new LatLng (44.4151773,26.0472977));\n listOfpoints.get(61).add(new LatLng (44.414135,26.0356247));\n listOfpoints.get(61).add(new LatLng (44.4110082, 26.0104334));\n listOfpoints.get(61).add(new LatLng (44.4061643,26.0117208));\n listOfpoints.get(61).add(new LatLng (44.4053059,26.0112059));\n\n\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n listOfpoints.get(62).add(new LatLng (44.4103304, 26.0034906));\n listOfpoints.get(62).add(new LatLng (44.4127522,26.0228884));\n listOfpoints.get(62).add(new LatLng (44.4144076,26.0351192));\n listOfpoints.get(62).add(new LatLng (44.4167986,26.0343897));\n listOfpoints.get(62).add(new LatLng (44.4221013, 26.0343038));\n listOfpoints.get(62).add(new LatLng (44.4271277, 26.0328018));\n listOfpoints.get(62).add(new LatLng (44.4343295, 26.0347544));\n listOfpoints.get(62).add(new LatLng (44.4344597, 26.0345399));\n listOfpoints.get(62).add(new LatLng (44.436423, 26.0347646));\n listOfpoints.get(62).add(new LatLng (44.4424747, 26.0213321));\n listOfpoints.get(62).add(new LatLng (44.4459215, 26.0171264));\n listOfpoints.get(62).add(new LatLng (44.4457043,26.0167004));\n listOfpoints.get(62).add(new LatLng (44.4252662, 25.9987613));\n listOfpoints.get(62).add(new LatLng (44.4235193, 25.9990188));\n listOfpoints.get(62).add(new LatLng (44.4103691, 26.0025379));\n\n\n listOfpoints.get(63).add(new LatLng (44.450683, 26.0692569));\n listOfpoints.get(63).add(new LatLng (44.4530725,26.0733768));\n listOfpoints.get(63).add(new LatLng (44.4523986, 26.0762092));\n listOfpoints.get(63).add(new LatLng (44.4522454,26.0783979));\n listOfpoints.get(63).add(new LatLng (44.4521842,26.0858652));\n listOfpoints.get(63).add(new LatLng (44.4658762, 26.0861656));\n listOfpoints.get(63).add(new LatLng (44.4661262, 26.0856151));\n listOfpoints.get(63).add(new LatLng (44.4670374, 26.0787379));\n listOfpoints.get(63).add(new LatLng (44.467496, 26.0777089));\n listOfpoints.get(63).add(new LatLng (44.4773875,26.0721728));\n listOfpoints.get(63).add(new LatLng (44.4779387,26.0720012));\n listOfpoints.get(63).add(new LatLng (44.482103,26.0611007));\n listOfpoints.get(63).add(new LatLng (44.4811232,26.0571525));\n listOfpoints.get(63).add(new LatLng (44.4748153, 26.0461661));\n listOfpoints.get(63).add(new LatLng (44.4716917, 26.0438487));\n listOfpoints.get(63).add(new LatLng (44.4690579,26.0436771));\n listOfpoints.get(63).add(new LatLng (44.4667916, 26.0449645));\n listOfpoints.get(63).add(new LatLng (44.4519663, 26.0668513));\n listOfpoints.get(63).add(new LatLng (44.450683,26.0692569));\n\n\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n listOfpoints.get(64).add(new LatLng (44.466193, 26.0862472));\n listOfpoints.get(64).add(new LatLng (44.4723947,26.0878994));\n listOfpoints.get(64).add(new LatLng (44.4731756,26.0883715));\n listOfpoints.get(64).add(new LatLng (44.4739718,26.090131));\n listOfpoints.get(64).add(new LatLng (44.4744158, 26.090882));\n listOfpoints.get(64).add(new LatLng (44.4748292,26.0909678));\n listOfpoints.get(64).add(new LatLng (44.4753498,26.0906889));\n listOfpoints.get(64).add(new LatLng (44.4774321, 26.0888006));\n listOfpoints.get(64).add(new LatLng (44.4801879,26.0864832));\n listOfpoints.get(64).add(new LatLng (44.4868014,26.0859682));\n listOfpoints.get(64).add(new LatLng (44.4880873,26.0854532));\n listOfpoints.get(64).add(new LatLng (44.489618,26.0824491));\n listOfpoints.get(64).add(new LatLng (44.4904753, 26.0788443));\n listOfpoints.get(64).add(new LatLng (44.4890057,26.0784151));\n listOfpoints.get(64).add(new LatLng (44.478167, 26.0727074));\n listOfpoints.get(64).add(new LatLng (44.4678468, 26.0779216));\n listOfpoints.get(64).add(new LatLng (44.467219, 26.0788228));\n listOfpoints.get(64).add(new LatLng (44.4663308, 26.0857322));\n\n\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n listOfpoints.get(65).add(new LatLng (44.443222,26.0605852));\n listOfpoints.get(65).add(new LatLng (44.4450067,26.0611538));\n listOfpoints.get(65).add(new LatLng (44.4465463,26.062173));\n listOfpoints.get(65).add(new LatLng (44.4472816,26.0631386));\n listOfpoints.get(65).add(new LatLng (44.448913,26.0666577));\n listOfpoints.get(65).add(new LatLng (44.4502551,26.0690373));\n listOfpoints.get(65).add(new LatLng (44.4664896,26.0448331));\n listOfpoints.get(65).add(new LatLng (44.4688479,26.0434168));\n listOfpoints.get(65).add(new LatLng (44.469491,26.0403269));\n listOfpoints.get(65).add(new LatLng (44.4702566,26.037237));\n listOfpoints.get(65).add(new LatLng (44.4701035,26.0353058));\n listOfpoints.get(65).add(new LatLng (44.4613441,26.0305422));\n listOfpoints.get(65).add(new LatLng (44.4611297,26.0346621));\n listOfpoints.get(65).add(new LatLng (44.4606089,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.4595369,26.0350913));\n listOfpoints.get(65).add(new LatLng (44.458618,26.0354775));\n listOfpoints.get(65).add(new LatLng (44.4545745,26.0376233));\n listOfpoints.get(65).add(new LatLng (44.4501632,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4494892,26.0417002));\n listOfpoints.get(65).add(new LatLng (44.4485701,26.039297));\n listOfpoints.get(65).add(new LatLng (44.4477429,26.0380953));\n listOfpoints.get(65).add(new LatLng (44.4466093,26.0430306));\n listOfpoints.get(65).add(new LatLng (44.4432698,26.0604113));\n\n\n\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0912642));\n listOfpoints.get(66).add(new LatLng (44.4741016,26.0917148));\n listOfpoints.get(66).add(new LatLng (44.4743313,26.0922513));\n listOfpoints.get(66).add(new LatLng (44.4750816,26.0927019));\n listOfpoints.get(66).add(new LatLng (44.4758471,26.0937962));\n listOfpoints.get(66).add(new LatLng (44.4762758,26.0947189));\n listOfpoints.get(66).add(new LatLng (44.4766127,26.0962853));\n listOfpoints.get(66).add(new LatLng (44.4765514,26.0971436));\n listOfpoints.get(66).add(new LatLng (44.4761227,26.0977444));\n listOfpoints.get(66).add(new LatLng (44.4753878,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4745457,26.0985384));\n listOfpoints.get(66).add(new LatLng (44.4734585,26.0989675));\n listOfpoints.get(66).add(new LatLng (44.4729073,26.0990104));\n listOfpoints.get(66).add(new LatLng (44.4718508,26.0986671));\n listOfpoints.get(66).add(new LatLng (44.471223,26.0980663));\n listOfpoints.get(66).add(new LatLng (44.469263,26.0970792));\n listOfpoints.get(66).add(new LatLng (44.4689567,26.0971651));\n listOfpoints.get(66).add(new LatLng (44.468773,26.0975728));\n listOfpoints.get(66).add(new LatLng (44.4687424,26.0981092));\n listOfpoints.get(66).add(new LatLng (44.4688955,26.0985169));\n listOfpoints.get(66).add(new LatLng (44.4692017,26.0986886));\n listOfpoints.get(66).add(new LatLng (44.4694774,26.0985598));\n listOfpoints.get(66).add(new LatLng (44.4704268,26.0990319));\n listOfpoints.get(66).add(new LatLng (44.4707483,26.0994396));\n listOfpoints.get(66).add(new LatLng (44.4719733,26.1024651));\n listOfpoints.get(66).add(new LatLng (44.4735963,26.1028943));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1035809));\n listOfpoints.get(66).add(new LatLng (44.4741322,26.1042676));\n listOfpoints.get(66).add(new LatLng (44.4735351,26.1047396));\n listOfpoints.get(66).add(new LatLng (44.474071,26.1077866));\n listOfpoints.get(66).add(new LatLng (44.4738413,26.1079583));\n listOfpoints.get(66).add(new LatLng (44.473826,26.1085591));\n listOfpoints.get(66).add(new LatLng (44.4733667,26.1097822));\n listOfpoints.get(66).add(new LatLng (44.4732595,26.1107478));\n listOfpoints.get(66).add(new LatLng (44.4734432,26.1111555));\n listOfpoints.get(66).add(new LatLng (44.4763087,26.1089172));\n listOfpoints.get(66).add(new LatLng (44.4946789,26.1040249));\n listOfpoints.get(66).add(new LatLng (44.4968217,26.0792198));\n listOfpoints.get(66).add(new LatLng (44.490592,26.0788336));\n listOfpoints.get(66).add(new LatLng (44.4898573,26.0820737));\n listOfpoints.get(66).add(new LatLng (44.4894593,26.0830178));\n listOfpoints.get(66).add(new LatLng (44.4882229,26.0855306));\n listOfpoints.get(66).add(new LatLng (44.4870595,26.0860456));\n listOfpoints.get(66).add(new LatLng (44.4801439,26.0866335));\n listOfpoints.get(66).add(new LatLng (44.4761173,26.090174));\n listOfpoints.get(66).add(new LatLng (44.4751527,26.0912469));\n listOfpoints.get(66).add(new LatLng (44.4742952,26.0910108));\n\n listOfpoints.get(67).add(new LatLng (44.4671287, 26.121282));\n listOfpoints.get(67).add(new LatLng (44.46768,26.1231274));\n listOfpoints.get(67).add(new LatLng (44.4696095,26.1234278));\n listOfpoints.get(67).add(new LatLng (44.4712938,26.1224408));\n listOfpoints.get(67).add(new LatLng (44.4723657,26.1229557));\n listOfpoints.get(67).add(new LatLng (44.4727944, 26.1226553));\n listOfpoints.get(67).add(new LatLng (44.4740193, 26.1226982));\n listOfpoints.get(67).add(new LatLng (44.4745399,26.1236424));\n listOfpoints.get(67).add(new LatLng (44.4743668,26.1243164));\n listOfpoints.get(67).add(new LatLng (44.4747037, 26.1250031));\n listOfpoints.get(67).add(new LatLng (44.4751324,26.1257541));\n listOfpoints.get(67).add(new LatLng (44.4758673,26.1267626));\n listOfpoints.get(67).add(new LatLng (44.4761736, 26.127578));\n listOfpoints.get(67).add(new LatLng (44.491758,26.1285221));\n listOfpoints.get(67).add(new LatLng (44.4931662, 26.1377919));\n listOfpoints.get(67).add(new LatLng (44.494452,26.1444008));\n listOfpoints.get(67).add(new LatLng (44.4947581,26.1462033));\n listOfpoints.get(67).add(new LatLng (44.4958601, 26.1472332));\n listOfpoints.get(67).add(new LatLng (44.4969009, 26.1458599));\n listOfpoints.get(67).add(new LatLng (44.4984926, 26.1450875));\n listOfpoints.get(67).add(new LatLng (44.5000231,26.1446583));\n listOfpoints.get(67).add(new LatLng (44.5006353,26.1435425));\n listOfpoints.get(67).add(new LatLng (44.5012475,26.1424267));\n listOfpoints.get(67).add(new LatLng (44.5057774, 26.144315));\n listOfpoints.get(67).add(new LatLng (44.5070629, 26.137191));\n listOfpoints.get(67).add(new LatLng (44.5066956, 26.1233723));\n listOfpoints.get(67).add(new LatLng (44.502227,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4952479,26.1044896));\n listOfpoints.get(67).add(new LatLng (44.4782558,26.1086953));\n listOfpoints.get(67).add(new LatLng (44.4765716,26.1090386));\n listOfpoints.get(67).add(new LatLng (44.4734175,26.1114848));\n listOfpoints.get(67).add(new LatLng (44.4739994,26.1124289));\n listOfpoints.get(67).add(new LatLng (44.4744587,26.1137163));\n listOfpoints.get(67).add(new LatLng (44.474275,26.1152613));\n listOfpoints.get(67).add(new LatLng (44.4738156,26.1171067));\n listOfpoints.get(67).add(new LatLng (44.4729582,26.1180937));\n listOfpoints.get(67).add(new LatLng (44.4705695, 26.1195099));\n listOfpoints.get(67).add(new LatLng (44.4677826,26.1202395));\n listOfpoints.get(67).add(new LatLng (44.4671287,26.121282));\n\n\n //Stockholm\n listOfpoints.get(68).add(new LatLng(59.339281, 18.005316));\n listOfpoints.get(68).add(new LatLng(59.263986, 18.253591));\n listOfpoints.get(68).add(new LatLng(59.260869, 17.878596));\n\n //Stockholm\n listOfpoints.get(69).add(new LatLng(59.342841, 18.040179));\n listOfpoints.get(69).add(new LatLng(59.355275, 17.884694));\n listOfpoints.get(69).add(new LatLng(59.423065, 18.075748));\n\n\n for(int i = 0 ; i < listOfpoints.size(); i++){\n listOfPolygons.add( MapsActivity.instance.mMap.addPolygon(new PolygonOptions()\n .addAll(listOfpoints.get(i))\n .strokeWidth(0)\n .fillColor(Color.argb(50, 0, 250, 0))) );\n }\n\n\n\n\n }", "public double[] toArray() {\n\t\treturn new double[] {x, y, z};\n\t}", "public List<int[]> getSkyline(int[][] buildings) {\n List<int[]> res = new ArrayList<int[]>();\n if (buildings == null || buildings.length == 0 || buildings[0].length == 0) {\n return res;\n }\n \n // find maximum position\n int max = Integer.MIN_VALUE;\n for (int[] building : buildings) {\n max = Math.max(max, building[1]);\n }\n \n // create height map\n int[] heights = new int[max + 1]; // the last point has zero height \n \n // update height map with the maximum height\n for (int[] building : buildings) {\n for (int i = building[0]; i < building[1]; i++) {\n heights[i] = Math.max(heights[i], building[2]);\n }\n }\n \n // build result with inflexion\n for (int i = 0; i < heights.length; i++) {\n if ((i == 0 && heights[i] != 0) || (i > 0 && heights[i] != heights[i - 1])) {\n res.add(new int[] {i, heights[i]});\n }\n }\n \n return res;\n }", "double[] getOrigin();", "public void setCoordinates(String coordinates) {\n this.coordinates = coordinates;\n }", "public static JSONObject fetchlocation() throws JSONException {\n\t\tJSONArray jArrayCity = new JSONArray();\n\t\tJSONObject cityList = new JSONObject();\n\t\tConnection connection = null;\n\t\ttry {\n\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tSQLCITY:{\n\t\t\t\ttry {\t\n\t\t\t\t\tconnection = DBConnection.createConnection();\n\t\t\t\t\tString sqlCityQuery =\"select city_id,city_name from sa_city where is_active='Y'\";\t\t \t\t\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sqlCityQuery);\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\twhile(resultSet.next()){\n\t\t\t\t\t\tJSONObject jsonObjectcity = new JSONObject();\n\t\t\t\t\t\tjsonObjectcity.put(\"cityid\",resultSet.getString(\"city_id\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"cityname\",resultSet.getString(\"city_name\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"arealist\", getLocationList(jsonObjectcity.getInt(\"cityid\"), false ));\n\t\t\t\t\t\tjArrayCity.put(jsonObjectcity);\n\t\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t\t\t}finally{\n\t\t\t\t\tif(connection!=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t}\n\n\t\tSystem.out.println(\"Fetch location output length--\"+jArrayCity.length());\n\t\tcityList.put(\"citylist\", jArrayCity);\n\t\treturn cityList;\n\t}", "private double[] generateRandomCoordinates() {\n return generateRandomCoordinates(CoordinateDomain.GEOGRAPHIC, 0.05f);\n }", "public org.landxml.schema.landXML11.CornerDocument.Corner[] getCornerArray()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n java.util.List targetList = new java.util.ArrayList();\r\n get_store().find_all_element_users(CORNER$12, targetList);\r\n org.landxml.schema.landXML11.CornerDocument.Corner[] result = new org.landxml.schema.landXML11.CornerDocument.Corner[targetList.size()];\r\n targetList.toArray(result);\r\n return result;\r\n }\r\n }", "public String toString()\n\t{\n\t\treturn \"[\" + mX + \", \" + mY + \"]\";\n\t}", "public Point[] getLocation()\n {\n return shipLocation.clone();\n }", "public static int[] getCoordinate(int state) {\n return new int[]{(state % 4), (state / 4)};\n }", "private static String[][] getDataForGrid(CWaypoint[] wayPoints) {\r\n\t\tString data[][] = new String[wayPoints.length][1];\r\n\t\tfor (int i = 0; i < data.length; i++) {\r\n\t\t\tdata[i][0] = wayPoints[i].getTime().toString();\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "public ArrayList<ArrayList<String>> extractCoordsFromWfsXml(String xml_og) {\r\n\t\tSystem.out.println(\"ParserXmlJson.extractBoundingBoxFromWfsXml: \"+ xml_og);\r\n\t\tPointPolygon point = new PointPolygon();\r\n\t\tArrayList<String> list_objectid = new ArrayList<String>();\r\n\t\tArrayList<String> list_coords = new ArrayList<String>();\r\n\t\tArrayList<ArrayList<String>> list_coords_objectid = new ArrayList<ArrayList<String>>();\r\n\t\t\r\n\t\t\r\n\t\tDocumentBuilder dbuilder = null;\r\n\t\ttry {\t\t\t\r\n\t\t\tXPath xPath = XPathFactory.newInstance().newXPath();\r\n\t\t\tDocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();\r\n\t\t\tdbFactory.setNamespaceAware(true);\r\n\t DocumentBuilder builder = dbFactory.newDocumentBuilder();\r\n\t Document doc = builder.parse(new InputSource(new StringReader(xml_og)));\r\n\t \t \r\n\t \txPath.setNamespaceContext(new NamespaceContext() {\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic Iterator getPrefixes(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic String getPrefix(String namespaceURI) {\r\n\t\t\t\t\t\treturn null;\r\n\t\t\t\t\t}\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t @Override\r\n\t\t\t public String getNamespaceURI(String args) {\r\n\t\t\t if(LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon.equals(args)){\r\n\t\t\t \treturn LoadOnStartAppConfiguration.arbeitsbereichXmlTagPolygon;\r\n\t\t\t }else if(\"gml\".equals(args)){\r\n\t\t\t \treturn \"http://www.opengis.net/gml/3.2\"; \t\r\n\t\t\t }else{\r\n\t\t\t \treturn null;\r\n\t\t\t }\r\n\t\t\t }\r\n\t\t\t\t});\t\t\r\n//\t \tString path_offering = \"/wfs:FeatureCollection/wfs:member/geofence_sbg:geofence_sbg_bbox/@gml:id\";\r\n//\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n//\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getNodeValue());\r\n\t\t\t\t/*\r\n\t\t\t\tString path_offering = \"/soap:Envelope/soap:Body/sos:Capabilities/@version\";\r\n\t\t\t\tNode node_offering = (Node)xPath.compile(path_offering).evaluate(doc, XPathConstants.NODE);\r\n\t\t\t\tSystem.out.println(\"offering: \"+node_offering.getTextContent());\r\n\t\t\t\t\r\n\t\t\t\tString path_procedures = \"//om:OM_Observation[@name='GetObservation']/ows:Parameter[@name='procedure']/ows:AllowedValues/ows:Value\"; */\r\n//\t\t\t\tString pathToLoading = \"//om:OM_Observation[om:observedProperty[@xlink:href='http://ispace.researchstudio.at/ont/swe/property/Loading']]/om:result\";\r\n\t\t\t\t\r\n\t\t\t\t//jetzt werden hier aber alle X Y Koordinaten,die sich in InsertObservation.xml wiederholen, ausgelesen werden\r\n\t \tString pathToObjectid = \"//geofence_sbg:objectid\";\r\n\t \tNodeList nodes_Objectid = (NodeList)xPath.compile(pathToObjectid).evaluate(doc, XPathConstants.NODESET);\r\n\t \t\r\n\t\t\t\tString pathToCoordinates =\"//gml:LinearRing/gml:posList\";\r\n\t\t\t\tNodeList nodes_position = (NodeList)xPath.compile(pathToCoordinates).evaluate(doc, XPathConstants.NODESET);\r\n\t\t\t\t//book[title/@lang = 'it'] [@uom='abc']\r\n\t\t\t\t//myNodeList.item(0).setNodeValue(\"Hi mom!\");\r\n\t\t\t\tString xy= \"\";\r\n\t\t\t\t\r\n\t\t\t\tSystem.out.println(\"vor for loop ParserXmlJson.extractPointFromIO:\"+ nodes_position.getLength());\t\r\n\t\t\t\tfor(int n = 0; n<nodes_position.getLength(); n++){\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO: \"+nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tpoint.list_ofStrConsistingOf5CoordinatesForBoundingBox.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tlist_coords.add(nodes_position.item(n).getTextContent());\r\n\t\t\t\t\tSystem.out.println(\"ParserXmlJson.extractPointFromIO objectid: \"+nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\tlist_objectid.add(nodes_Objectid.item(n).getTextContent());\r\n\t\t\t\t\t\t\t\t\t\r\n\t\t\t\t\t//node_procedures.item(n).setTextContent(\"4444\");\r\n\t\t\t\t\t//System.out.println(\"ParserXmlJson.parseInsertObservation:parser EDITED:\"+node_procedures.item(n).getTextContent());\r\n\t\t\t\t}\t\t\t\r\n\t\t\t//\tSystem.out.println(TextFiles.xmlDocument2StringWithPrettyPrint(doc, 2));\r\n\t\t\t\ttry{\r\n\t\t\t\t\t\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tSystem.out.println(\"Error: maybe no coordinates!\");\r\n\t\t\t\t\te.printStackTrace();\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}catch(Exception ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\t\t\t\r\n\t\tlist_coords_objectid.add(list_coords);\r\n\t\tlist_coords_objectid.add(list_objectid);\r\n\t\treturn list_coords_objectid;//point.list_ofStrConsistingOf5CoordinatesForBoundingBox;\t\t\t\t\r\n\t}", "public List<int[]> getCoords(Board lev){\n \tint[][] coords;\n \tColumn c = lev.getColumns().get(col);\n \tint[] p1 = c.getFrontPoint1();\n \tint[] p2 = c.getFrontPoint2();\n\n \tif (isPod && z < Board.BOARD_DEPTH) {\n \t\tint cx = p1[0] + (p2[0]-p1[0])/2;\n \t\tint cy = p1[1] + (p2[1]-p1[1])/2;\n\n \t\t// define outer and inner diamonds\n \t\tint[][] outer = new int[4][3];\n \t\tint[][] inner = new int[4][3];\n \t\touter[0][0] = cx;\n \t\touter[0][1] = cy - PODSIZE;\n \t\touter[0][2] = (int)z;\n \t\touter[1][0] = cx + PODSIZE;\n \t\touter[1][1] = cy;\n \t\touter[1][2] = (int) z;\n \t\touter[2][0] = cx;\n \t\touter[2][1] = cy + PODSIZE;\n \t\touter[2][2] = (int) z;\n \t\touter[3][0] = cx - PODSIZE;\n \t\touter[3][1] = cy;\n \t\touter[3][2] = (int) z;\n \t\tinner[0][0] = cx;\n \t\tinner[0][1] = cy - PODSIZE/3;\n \t\tinner[0][2] = (int) z;\n \t\tinner[1][0] = cx + PODSIZE/3;\n \t\tinner[1][1] = cy;\n \t\tinner[1][2] = (int) z;\n \t\tinner[2][0] = cx;\n \t\tinner[2][1] = cy + PODSIZE/3;\n \t\tinner[2][2] = (int) z;\n \t\tinner[3][0] = cx - PODSIZE/3;\n \t\tinner[3][1] = cy;\n \t\tinner[3][2] = (int) z;\n\n \t\t// define line path through those diamonds:\n \t\tcoords = new int[17][3];\n \t\tcoords[0] = outer[0];\n \t\tcoords[1] = outer[1];\n \t\tcoords[2] = inner[1];\n \t\tcoords[3] = inner [0];\n \t\tcoords[4] = outer[1];\n \t\tcoords[5] = outer[2];\n \t\tcoords[6] = inner[2];\n \t\tcoords[7] = inner[1];\n \t\tcoords[8] = outer[2];\n \t\tcoords[9] = outer[3];\n \t\tcoords[10]= inner[3];\n \t\tcoords[11]= inner[2];\n \t\tcoords[12]= outer[3];\n \t\tcoords[13]= outer[0];\n \t\tcoords[14]= inner[0];\n \t\tcoords[15]= inner[3];\n \t\tcoords[16]= outer[0];\n \t}\n \telse { \n \t\tcoords = new int[7][3];\n \t\tswitch (s) {\n \t\tcase STRAIGHT:\n \t\t\tcoords[0][0] = p1[0];\n \t\t\tcoords[0][1] = p1[1];\n \t\t\tcoords[0][2] = (int) (z-EXHEIGHT_H);\n \t\t\tcoords[1][0] = p2[0];\n \t\t\tcoords[1][1] = p2[1];\n \t\t\tcoords[1][2] = (int) (z+EXHEIGHT_H);\n \t\t\tcoords[2][0] = p2[0] - (p2[0]-p1[0])/3;\n \t\t\tcoords[2][1] = p2[1] - (p2[1]-p1[1])/3;\n \t\t\tcoords[2][2] = (int) z;\n \t\t\tcoords[3][0] = p2[0];\n \t\t\tcoords[3][1] = p2[1];\n \t\t\tcoords[3][2] = (int) (z-EXHEIGHT_H);\n \t\t\tcoords[4][0] = p1[0];\n \t\t\tcoords[4][1] = p1[1];\n \t\t\tcoords[4][2] = (int) (z+EXHEIGHT_H);\n \t\t\tcoords[5][0] = p1[0] + (p2[0]-p1[0])/3;\n \t\t\tcoords[5][1] = p1[1] + (p2[1]-p1[1])/3;\n \t\t\tcoords[5][2] = (int) z;\n \t\t\tcoords[6][0] = p1[0];\n \t\t\tcoords[6][1] = p1[1];\n \t\t\tcoords[6][2] = (int) (z-EXHEIGHT_H);\n \t\t\tbreak;\n\n \t\tcase JUMPRIGHT1:\n \t\tcase LANDRIGHT2:\n \t\t\tcoords[0][0] = p1[0] + (p2[0]-p1[0])/4;\n \t\t\tcoords[0][1] = p1[1] + (p2[1]-p1[1])/4;\n \t\t\tcoords[0][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[1][0] = p2[0] + (p2[0]-p1[0])/4;\n \t\t\tcoords[1][1] = p2[1] + (p2[1]-p1[1])/4;\n \t\t\tcoords[1][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[2][0] = p2[0] - (p2[0]-p1[0])/11;\n \t\t\tcoords[2][1] = p2[1] - (p2[1]-p1[1])/11;\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[3][0] = p2[0];\n \t\t\tcoords[3][1] = p2[1];\n \t\t\tcoords[3][2] = (int) z;\n \t\t\tcoords[4][0] = (int) (p1[0] + (p2[0]-p1[0])/2);\n \t\t\tcoords[4][1] = (int) (p1[1] + (p2[1]-p1[1])/2);\n \t\t\tcoords[4][2] = (int) (z+ EXHEIGHT_H*5);\n \t\t\tcoords[5][0] = (int) (p2[0] - (p2[0]-p1[0])/2.5);\n \t\t\tcoords[5][1] = (int) (p2[1] - (p2[1]-p1[1])/2.5);\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H *2.6);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n\n \t\tcase JUMPLEFT1:\n \t\tcase LANDLEFT2:\n \t\t\tcoords[0][0] = p1[0];\n \t\t\tcoords[0][1] = p1[1];\n \t\t\tcoords[0][2] = (int) z;\n \t\t\tcoords[1][0] = (int) (p1[0] + (p2[0]-p1[0])/2);\n \t\t\tcoords[1][1] = (int) (p1[1] + (p2[1]-p1[1])/2);\n \t\t\tcoords[1][2] = (int) (z+ EXHEIGHT_H*5);\n \t\t\tcoords[2][0] = (int) (p1[0] + (p2[0]-p1[0])/2.5);\n \t\t\tcoords[2][1] = (int) (p1[1] + (p2[1]-p1[1])/2.5);\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H *2.6);\n \t\t\tcoords[3][0] = p2[0] - (p2[0]-p1[0])/4;\n \t\t\tcoords[3][1] = p2[1] - (p2[1]-p1[1])/4;\n \t\t\tcoords[3][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[4][0] = p1[0] - (p2[0]-p1[0])/4;\n \t\t\tcoords[4][1] = p1[1] - (p2[1]-p1[1])/4;\n \t\t\tcoords[4][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[5][0] = p1[0] + (p2[0]-p1[0])/11;\n \t\t\tcoords[5][1] = p1[1] + (p2[1]-p1[1])/11;\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n\n \t\tcase JUMPLEFT2:\n \t\tcase LANDLEFT1:\n \t\t\tcoords[0][0] = p1[0];\n \t\t\tcoords[0][1] = p1[1];\n \t\t\tcoords[0][2] = (int) z;\n \t\t\tcoords[1][0] = (int) (p1[0] + (p2[0]-p1[0])/4.5);\n \t\t\tcoords[1][1] = (int) (p1[1] + (p2[1]-p1[1])/4.5);\n \t\t\tcoords[1][2] = (int) (z+ EXHEIGHT_H*8);\n \t\t\tcoords[2][0] = (int) (p1[0] + (p2[0]-p1[0])/4.5);\n \t\t\tcoords[2][1] = (int) (p1[1] + (p2[1]-p1[1])/4.5);\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H *4);\n \t\t\tcoords[3][0] = p2[0] - (p2[0]-p1[0])/2;\n \t\t\tcoords[3][1] = p2[1] - (p2[1]-p1[1])/2;\n \t\t\tcoords[3][2] = (int) (z+EXHEIGHT_H*4);\n \t\t\tcoords[4][0] = (int) (p1[0] - (p2[0]-p1[0])/3.5);\n \t\t\tcoords[4][1] = (int) (p1[1] - (p2[1]-p1[1])/3.5);\n \t\t\tcoords[4][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[5][0] = p1[0];// - (p2[0]-p1[0])/15;\n \t\t\tcoords[5][1] = p1[1];// - (p2[1]-p1[1])/15;\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n\n \t\tcase JUMPRIGHT2:\n \t\tcase LANDRIGHT1:\n \t\t\tcoords[0][0] = p2[0] - (p2[0]-p1[0])/2;\n \t\t\tcoords[0][1] = p2[1] - (p2[1]-p1[1])/2;\n \t\t\tcoords[0][2] = (int) (z+EXHEIGHT_H*4);\n \t\t\tcoords[1][0] = (int) (p2[0] + (p2[0]-p1[0])/3.5);\n \t\t\tcoords[1][1] = (int) (p2[1] + (p2[1]-p1[1])/3.5);\n \t\t\tcoords[1][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[2][0] = p2[0];// - (p2[0]-p1[0])/15;\n \t\t\tcoords[2][1] = p2[1];// - (p2[1]-p1[1])/15;\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[3][0] = p2[0];\n \t\t\tcoords[3][1] = p2[1];\n \t\t\tcoords[3][2] = (int) z;\n \t\t\tcoords[4][0] = (int) (p2[0] - (p2[0]-p1[0])/4.5);\n \t\t\tcoords[4][1] = (int) (p2[1] - (p2[1]-p1[1])/4.5);\n \t\t\tcoords[4][2] = (int) (z+ EXHEIGHT_H*8);\n \t\t\tcoords[5][0] = (int) (p2[0] - (p2[0]-p1[0])/4.5);\n \t\t\tcoords[5][1] = (int) (p2[1] - (p2[1]-p1[1])/4.5);\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H *4);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n \t\t}\n \t}\n\n \treturn Arrays.asList(coords);\n }", "public double[] GetPointArray() {\n return PointArray;\n }", "public static int[] convertToCartesian(GeoCoords coords) {\n int[] res = new int[2];\n\n res[1] = latToX(coords.getLat());\n res[0] = lonToY(coords.getLon());\n\n return res;\n }", "List<Coordinate> getCoordinates(@NotNull String transportId);", "public Coordinates getCoordinates()\r\n {\r\n return new Coordinates(r.getX(), r.getY());\r\n }", "public static PointD[] fillData() {\n ArrayList<PointD> vals = new ArrayList();\n while (scn.hasNextLine()) {\n String[] xandy = scn.nextLine().split(\"\\\\s*,\\\\s*\");\n vals.add(new PointD(Double.parseDouble(xandy[0]), Double.parseDouble(xandy[1])));\n }\n PointD[] vals2 = new PointD[vals.size()];\n for (int x = 0; x < vals.size(); x++) {\n vals2[x] = vals.get(x);\n }\n return vals2;\n }", "private List<GCSPoint> toListOfGCSPoints(List<LatLng> coordinatesLatLng) {\n List<GCSPoint> pathCoordiantesEV = new ArrayList<>();\n for (LatLng latLng : coordinatesLatLng) {\n pathCoordiantesEV.add(new GCSPoint(latLng.latitude, latLng.longitude));\n }\n\n return pathCoordiantesEV;\n }", "@Override\r\n\tpublic String getFormatedCoordinates() {\n\t\treturn \"Drone position: (\"+x+\",\"+y+\",\"+z+\")\";\r\n\t}", "@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n ArrayList<String> ArrayDescripcionMarker = new ArrayList<String>();\n ArrayList<String> ArrayX = new ArrayList<String>();\n ArrayList<String> ArrayY = new ArrayList<String>();\n Integer tamanio=0;\n\n\n new DataMainActivitBuscarUbicacionReservas(mapa.this).execute();\n\n\n\n System.out.println(\"aca lista1 ANTESSSS\" +getIntent().getStringArrayListExtra(\"miLista\"));\n System.out.println(\"aca tamaño ANTESSSS\" +getIntent().getIntExtra(\"tamanio\",0));\n System.out.println(\"aca lista2 ANTESSS\" +getIntent().getStringArrayListExtra(\"miLista2\"));\n System.out.println(\"aca listaCLIENTE ANTESSS\" +getIntent().getStringArrayListExtra(\"milistaCliente\"));\n\n //cantidad de reservas/markes a dibujar\n tamanio = getIntent().getIntExtra(\"tamanio\",0);\n /// Casteo la lista que tiene las latitudes\n double[] failsArray = new double[tamanio]; //create an array with the size of the failList\n for (int i = 0; i < tamanio; ++i) { //iterate over the elements of the list\n failsArray[i] = Double.parseDouble(getIntent().getStringArrayListExtra(\"miLista\").get(i)); //store each element as a double in the array\n // failsArray[i] = Double.parseDouble(lista.get(i)); //store each element as a double in the array\n }\n\n /// Casteo la lista que tiene las longitudes\n double[] failsArray2 = new double[tamanio]; //create an array with the size of the failList\n for (int i = 0; i < tamanio; ++i) { //iterate over the elements of the list\n failsArray2[i] = Double.parseDouble(getIntent().getStringArrayListExtra(\"miLista2\").get(i)); //store each element as a double in the array\n // failsArray2[i] = Double.parseDouble(lista2.get(i)); //store each element as a double in the array\n }\n\n ///// Recorro las listas y genero el marker.\n for (int i = 0; i < tamanio; i++){\n LatLng vol_1 = new LatLng(failsArray[i], failsArray2[i]);\n mMap.addMarker(new MarkerOptions().position(vol_1).title(getIntent().getStringArrayListExtra(\"milistaCliente\").get(i)));\n // mMap.addMarker(new MarkerOptions().position(vol_1));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(vol_1, 12f));\n }\n\n\n\n ///////////// DIUJO ZONAS - POLIGIONOS /////////////////\n\n Polygon polygon1 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4466867, -58.7446665),\n new LatLng(-34.4755556, -58.7870237),\n new LatLng( -34.5313786, -58.7034557),\n new LatLng(-34.5005326, -58.6488037))\n .strokeColor(Color.RED));\n polygon1.setTag(\"ZONA 1\");\n polygon1.setStrokeWidth(4f);\n\n\n\n Polygon polygon2 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4466867, -58.7446665),\n new LatLng(-34.4810476,-58.6806737),\n new LatLng( -34.4541926,-58.6249857),\n new LatLng( -34.3982066,-58.6507117))\n .strokeColor(BLUE));\n polygon2.setTag(\"ZONA 2\");\n polygon2.setStrokeWidth(4f);\n\n\n Polygon polygon3 = mMap.addPolygon(new PolygonOptions()\n .add(new LatLng(-34.4810476,-58.6806737),\n new LatLng(-34.5005326, -58.6488037),\n new LatLng( -34.4786136,-58.6067997),\n new LatLng( -34.4547056,-58.6234267))\n .strokeColor(Color.GREEN));\n polygon3.setTag(\"ZONA 3\");\n polygon3.setStrokeWidth(4f);\n\n\n ///////////// FIN DIUJO ZONAS - POLIGIONOS /////////////////\n\n\n\n\n /*\n //DIBUJO ZONAS DE CIRCULOS\n Circle circle = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.455587, -58.685503))\n .radius(1800)\n .strokeColor(Color.RED));\n circle.setStrokeWidth(4f);\n circle.setTag(\"Zona1\");\n\n\n Circle circle2 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.480523, -58.717237))\n .radius(1600)\n .strokeColor(Color.BLUE));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n\n Circle circle3 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.450193, -58.725039))\n .radius(1800)\n .strokeColor(Color.GREEN));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n\n Circle circle4 = mMap.addCircle(new CircleOptions()\n .center(new LatLng(-34.469302, -58.653062))\n .radius(1500)\n .strokeColor(Color.YELLOW));\n circle2.setStrokeWidth(4f);\n circle2.setTag(\"Zona2\");\n\n //funcion que revisa si un punto esta dentro del circulo zona 1\n\n float[] disResultado = new float[2];\n // LatLng pos = new LatLng(40.416775, -3.703790);\n LatLng pos = new LatLng(-34.470327, -58.683718);\n double lat = pos.latitude; //getLatitude\n double lng = pos.longitude;//getLongitude\n\n\n Location.distanceBetween( pos.latitude, pos.longitude,\n circle.getCenter().latitude,\n circle.getCenter().longitude,\n disResultado);\n\n if(disResultado[0] > circle.getRadius()){\n System.out.println(\"FUERAAAA ZONA 1\" );\n } else {\n System.out.println(\"DENTROOO ZONA 1\" );\n }\n\n*/\n\n\n\n }", "public void setCoords(int[] coords) {\n this.coords = coords;\n }", "public String getPointsData() {\n\t\t\tStringBuilder pointsString = new StringBuilder(\"[\");\n\n\t\t\ttry {\n\t\t\t\tCursor pointsCursor = dbHandler\n\t\t\t\t\t\t.getEveryLatLong(Main.logged_user);\n\n\t\t\t\tif (pointsCursor != null) {\n\n\t\t\t\t\tif (pointsCursor.moveToFirst()) {\n\t\t\t\t\t\twhile (!pointsCursor.isAfterLast()) {\n\t\t\t\t\t\t\tpointsString.append(String.format(GOOGLE_MAP_POINT,\n\t\t\t\t\t\t\t\t\tpointsCursor.getDouble(LATITUDE),\n\t\t\t\t\t\t\t\t\tpointsCursor.getDouble(LONGITUDE)));\n\n\t\t\t\t\t\t\tpointsCursor.moveToNext();\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tpointsCursor.close();\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\t\t\t\tLog.e(LOG_TAB, ex.getMessage());\n\t\t\t\tpointsString.append(\"ERROR_\");\n\t\t\t}\n\n\t\t\tif(pointsString.length() > GOOGLE_MAP_POINT.length())\n\t\t\t\treturn pointsString.substring(0, pointsString.length() - 1) + \"]\";\n\t\t\telse\n\t\t\t\treturn \"NODATA\";\n\t\t}", "public int[] annaKoordinaatit()\n\t{\n\t\tint[] koordinaatit = {this.x, this.y};\n\t\treturn koordinaatit;\n\t}", "public Estado[][] parseToEstado (String rutaFichero) {\n String fichero = \"\";\n try (BufferedReader reader = new BufferedReader (new FileReader(\"./ejemplos/\" + rutaFichero))) { \n String line = reader.readLine();\n while (line != null) {\n fichero = fichero.concat(line);\n line = reader.readLine();\n }\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n \n \n JSONObject obj = new JSONObject (fichero);\n int filas = obj.getInt(\"rows\");\n int columnas = obj.getInt(\"cols\");\n int num_vecinos = obj.getInt(\"max_n\");\n \n JSONArray mov = obj.getJSONArray(\"mov\"); JSONArray movimiento_individual;\n int[][] movimientos = new int [mov.length()][mov.getJSONArray(0).length()];\n for (int i=0; i < mov.length(); i++) {\n movimiento_individual = mov.getJSONArray(i);\n for (int j=0; j < movimiento_individual.length(); j++) {\n movimientos[i][j] = movimiento_individual.getInt(j);\n }\n }\n \n JSONArray id_mov = obj.getJSONArray(\"id_mov\");\n char[] id_movimientos = new char[id_mov.length()];\n for (int i=0; i < id_mov.length(); i++) {\n id_movimientos[i] = id_mov.getString(i).charAt(0);\n }\n \n \n JSONObject celdas = obj.getJSONObject(\"cells\");\n JSONObject celdaAux; JSONArray vecinos; \n int value; boolean[] vecinosEstado;\n \n Estado[][] lab = new Estado[filas][columnas];\n for (int i = 0; i < filas; i++) {\n for (int j = 0; j < columnas; j++) {\n celdaAux = celdas.getJSONObject(\"(\" + i + \", \" + j +\")\");\n value = celdaAux.getInt(\"value\");\n vecinos = celdaAux.getJSONArray(\"neighbors\");\n \n vecinosEstado = new boolean [vecinos.length()];\n for (int k = 0; k < vecinos.length(); k++) {\n vecinosEstado[k] = vecinos.getBoolean(k);\n }\n \n lab[i][j] = new Estado(i, j, num_vecinos, id_movimientos, movimientos, value, vecinosEstado);\n }\n }\n \n return lab;\n }", "public int[][] get2DAsteroids(){\n int[][] result = new int[field.length][2];\n for (int i = 0; i<field.length;i++){\n //casting to int maybe inaccurate but this is used for 2d representation so its not that important\n //NOTE: being able to access the x and y fields is very unsafe (getters/setters?)\n result[i][0] = (int)field[i].x;\n result[i][1] = (int)field[i].y;\n }\n return result;\n }", "@Override\n protected void onPostExecute(List<List<HashMap<String, String>>> result) {\n generatePolyLinesFromWayPointsAndAddToMap(result);\n }", "private Object JSONArray(String estado) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public Coordinates getCoordinates() {\n if (this.coordinates == null)\n return new Coordinates(-1, -1);\n return this.coordinates;\n }", "public static JSONObject fetchServinglocation() throws JSONException {\n\t\tJSONArray jArrayCity = new JSONArray();\n\t\tJSONObject cityList = new JSONObject();\n\t\tConnection connection = null;\n\t\ttry {\n\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tSQLCITY:{\n\t\t\t\ttry {\t\n\t\t\t\t\tconnection = DBConnection.createConnection();\n\t\t\t\t\tString sqlCityQuery =\"select city_id,city_name from sa_city where is_active='Y'\";\t\t \t\t\n\t\t\t\t\tpreparedStatement = connection.prepareStatement(sqlCityQuery);\n\t\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\t\twhile(resultSet.next()){\n\t\t\t\t\t\tJSONObject jsonObjectcity = new JSONObject();\n\t\t\t\t\t\tjsonObjectcity.put(\"cityid\",resultSet.getString(\"city_id\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"cityname\",resultSet.getString(\"city_name\"));\n\t\t\t\t\t\tjsonObjectcity.put(\"arealist\", getLocationList( jsonObjectcity.getInt(\"cityid\") , true));\n\t\t\t\t\t\tjArrayCity.put(jsonObjectcity);\n\t\t\t\t\t}\n\t\t\t\t}catch(Exception e){\n\t\t\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t\t\t}finally{\n\t\t\t\t\tif(connection!=null){\n\t\t\t\t\t\tconnection.close();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Error due to:\"+e.getMessage());\n\t\t}\n\n\t\tSystem.out.println(\"Fetch location output length--\"+jArrayCity.length());\n\t\tcityList.put(\"citylist\", jArrayCity);\n\t\treturn cityList;\n\t}", "public org.astrogrid.stc.coords.v1_10.beans.Double3Type[] xgetPointArray()\n {\n synchronized (monitor())\n {\n check_orphaned();\n java.util.List targetList = new java.util.ArrayList();\n get_store().find_all_element_users(POINT$0, targetList);\n org.astrogrid.stc.coords.v1_10.beans.Double3Type[] result = new org.astrogrid.stc.coords.v1_10.beans.Double3Type[targetList.size()];\n targetList.toArray(result);\n return result;\n }\n }", "private Point[] getPointArray()\n\t{\n\t\treturn this.pointArray; // This should probably be a copy, to maintain security (?)\n\t}", "public float[] getLocation() {\n return llpoints;\n }", "public Integer[] getCoordenada() {\n return this.elementos.clone();\n }", "private JSONArray foodsToJson() {\n JSONArray jsonArray = new JSONArray();\n\n for (Food f : units) {\n jsonArray.put(f.toJson());\n }\n\n return jsonArray;\n }", "public List<int[]> getSkyline(int[][] buildings) {\n List<int[]> result = new ArrayList<>();\n\n //Can also use TreeMap<Height, Count> here to implement multi-map\n TreeSet<Rectangle> bst = new TreeSet<>();\n List<KeyPoint> sortedKeyPoints = new ArrayList<>();\n for (int i = 0; i < buildings.length; ++i) {\n Rectangle rec = new Rectangle(buildings[i][0], buildings[i][1], buildings[i][2]);\n sortedKeyPoints.add(new KeyPoint(rec.l, rec));\n sortedKeyPoints.add(new KeyPoint(rec.r, rec));\n }\n sortedKeyPoints.sort(null);\n for (int i = 0; i < sortedKeyPoints.size(); ++i) {\n int x = sortedKeyPoints.get(i).x;\n Rectangle rec = sortedKeyPoints.get(i).rec;\n if (x == rec.l) {\n bst.add(rec);\n } else {\n bst.remove(rec);\n }\n int[] curPoint = bst.isEmpty() ? new int[]{x, 0} : new int[]{x, bst.last().h};\n if (result.isEmpty()) {\n result.add(curPoint);\n } else {\n int[] prePoint = result.get(result.size()-1);\n if (prePoint[0] == curPoint[0]) {\n prePoint[1] = curPoint[1];\n } else if (prePoint[1] != curPoint[1]) {\n result.add(curPoint);\n }\n }\n }\n return result;\n }", "protected String doInBackground(Double... args) {\n List<NameValuePair> params = new ArrayList<NameValuePair>();\n /*params.add(new BasicNameValuePair(\"latitude\", Double.toString(latitude)));\n params.add(new BasicNameValuePair(\"longitude\", Double.toString(longitude)));*/\n params.add(new BasicNameValuePair(\"latitude\", Double.toString(args[0])));\n params.add(new BasicNameValuePair(\"longitude\", Double.toString(args[1])));\n JSONObject json = jParser.makeHttpRequest(MapsContract.MapsEntry.url_all_products, \"GET\", params);\n Log.d(\"All Locations: \", json.toString());\n try {\n locations = json.getJSONArray(MapsContract.MapsEntry.TAG_LOCATION);\n for (int i = 0; i < locations.length(); i++) {\n JSONObject c = locations.getJSONObject(i);\n String uid = c.getString(MapsContract.MapsEntry.TAG_UID);\n String distance = c.getString(MapsContract.MapsEntry.TAG_DISTANCE);\n String latitude = c.getString(MapsContract.MapsEntry.TAG_LATITUDE);\n String longitude = c.getString(MapsContract.MapsEntry.TAG_LONGITUDE);\n HashMap<String, String> map = new HashMap<String, String>();\n map.put(MapsContract.MapsEntry.TAG_UID, uid);\n map.put(MapsContract.MapsEntry.TAG_DISTANCE, distance);\n map.put(MapsContract.MapsEntry.TAG_LATITUDE, latitude);\n map.put(MapsContract.MapsEntry.TAG_LONGITUDE, longitude);\n locationList.add(map);\n }\n error += json.toString() + \"From DoInBackground\";\n Thread.sleep(5000);\n } catch (JSONException e) {\n error += e.getLocalizedMessage() + \"JSONExecption\";\n\n } catch (InterruptedException e) {\n error += e.getMessage() + \"InterruptedExeption\";\n }\n //Toast.makeText(getApplicationContext(), json.toString(), Toast.LENGTH_LONG).show();\n return error;\n }", "public ArrayList<double[]> getMostRecentCoordinates() {\n Connection connection = null;\n ResultSet resultSet = null;\n PreparedStatement preparedStatement = null;\n\n ArrayList<double[]> recentCords = new ArrayList<>();\n String recentQuery = \"SELECT bs.bike_id, bs.x_cord, bs.y_cord FROM bike_stats bs JOIN \" +\n \"(SELECT bike_id, MAX(time) AS maxtime FROM bike_stats GROUP BY bike_id) gbd \" +\n \"ON bs.bike_id = gbd.bike_id AND bs.time = gbd.maxtime JOIN bike \" +\n \"ON bs.bike_id = bike.bike_id WHERE active = 1\";\n\n try{\n connection = DBCleanup.getConnection();\n\n preparedStatement= connection.prepareStatement(recentQuery);\n resultSet = preparedStatement.executeQuery();\n while (resultSet.next()){\n double[] row = new double[3];\n row[0] = (double) resultSet.getInt(\"bs.bike_id\");\n row[1] = resultSet.getDouble(\"bs.x_cord\");\n row[2] = resultSet.getDouble(\"bs.y_cord\");\n recentCords.add(row);\n }\n return recentCords;\n }catch(SQLException e){\n System.out.println(e.getMessage() + \" - getMostRecentCoordinates()\");\n }finally {\n DBCleanup.closeResultSet(resultSet);\n DBCleanup.closeStatement(preparedStatement);\n DBCleanup.closeConnection(connection);\n }\n return null;\n }", "public Double[] gps(String ipAddr) {\n String GPScmd = \"gpspipe -w -n10\";\n String GPSdata = \"\";\n Double[] coord = new Double[2];\n char x;\n /*************************************************\n * Code to 'write' request for GPS info from Pi. *\n * \"lan\": 345325643, \"lon\": 23456789, *\n *************************************************/\n if (prompt != null) {\n try {\n GPSdata = sendCommand(GPScmd);\n String lat = \"\", lon = \"\";\n int plusIndex = GPSdata.indexOf(\"lat]\\\":\");\n if (plusIndex != -1) {\n lat = GPSdata.substring(plusIndex + 6);\n int plusIndex2 = GPSdata.indexOf(\"lon]\\\":\");\n if (plusIndex2 != -1) {\n lon = GPSdata.substring(plusIndex2 + 6);\n }\n lat = lat.split(\",\")[0];\n lon = lon.split(\",\")[0];\n coord[0] = Double.parseDouble(lat);\n coord[1] = Double.parseDouble(lon);\n // Use before\n System.out.println(lat + \"----\" + lon);\n }\n } catch (Exception e){\n e.printStackTrace();\n }\n }\n return coord;\n }", "public int[] getCellCoordinates(CellRecord cellRecord) {\r\n com.google.gwt.core.client.JsArrayInteger cellCoodJS = doGetCellCoordinates(cellRecord.getJsObj());\r\n return new int[]{cellCoodJS.get(0), cellCoodJS.get(1)};\r\n }", "public static JSONObject getLatestItems(String lat, String lon) {\n\t\tInputStream is = null;\n\t\tString result = \"\";\n\t\tJSONObject jArray = null;\n\t\ttry {\n\t\t\tHttpClient httpclient = new DefaultHttpClient();\n\t\t\t//http://nominatim.openstreetmap.org/reverse?format=json&lat=50.008089&lon=19.960429&zoom=18&addressdetails=1\n\t\t\t//http://nominatim.openstreetmap.org/reverse?format=json&lat=\" + lat + \"&lon=\" + lon + \"&zoom=18&addressdetails=1\n\t\t\tHttpPost httppost = new HttpPost(\"http://nominatim.openstreetmap.org/reverse?format=json&lat=\" + lat + \"&lon=\" + lon + \"&zoom=18&addressdetails=1\");\n\t\t\tList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(2);\n\t\t\thttppost.setEntity(new UrlEncodedFormEntity(nameValuePairs));\n\t\t\tHttpResponse response = httpclient.execute(httppost);\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\tis = entity.getContent();\n\t\t} catch (Exception e) {}\n\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(is, \"utf-8\"), 8);\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tString line = null;\n\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\tsb.append(line + \"\\n\");\n\t\t\t}\n\t\t\tis.close();\n\t\t\tresult = sb.toString();\n\t\t} catch (Exception e) {\n\t\t}\n\t\ttry {\n\t\t\tjArray = new JSONObject(result);\n\t\t} catch (JSONException e) {\n\t\t}\n\t\treturn jArray;\n\t}", "Function<double[], double[]> convertTo(T coordinateSystem);", "private static double[] makePolygon() {\n double[] polygon = new double[POINTS*2];\n \n for (int i = 0; i < POINTS; i++) {\n double a = i * Math.PI * 2.0 / POINTS;\n polygon[2*i] = Math.cos(a);\n polygon[2*i+1] = Math.sin(a);\n }\n \n return polygon;\n }", "org.openxmlformats.schemas.drawingml.x2006.main.CTPath2D[] getPathArray();", "private MrnWoatlas5[] doGet(Vector result) {\n if (dbg) System.out.println (\"vector size = \" + result.size());\n int latitudeCol = db.getColNumber(LATITUDE);\n int longitudeCol = db.getColNumber(LONGITUDE);\n int depthCol = db.getColNumber(DEPTH);\n int temperatureMinCol = db.getColNumber(TEMPERATURE_MIN);\n int temperatureMaxCol = db.getColNumber(TEMPERATURE_MAX);\n int salinityMinCol = db.getColNumber(SALINITY_MIN);\n int salinityMaxCol = db.getColNumber(SALINITY_MAX);\n int oxygenMinCol = db.getColNumber(OXYGEN_MIN);\n int oxygenMaxCol = db.getColNumber(OXYGEN_MAX);\n int nitrateMinCol = db.getColNumber(NITRATE_MIN);\n int nitrateMaxCol = db.getColNumber(NITRATE_MAX);\n int phosphateMinCol = db.getColNumber(PHOSPHATE_MIN);\n int phosphateMaxCol = db.getColNumber(PHOSPHATE_MAX);\n int silicateMinCol = db.getColNumber(SILICATE_MIN);\n int silicateMaxCol = db.getColNumber(SILICATE_MAX);\n int chlorophyllMinCol = db.getColNumber(CHLOROPHYLL_MIN);\n int chlorophyllMaxCol = db.getColNumber(CHLOROPHYLL_MAX);\n MrnWoatlas5[] cArray = new MrnWoatlas5[result.size()];\n for (int i = 0; i < result.size(); i++) {\n Vector row = (Vector) result.elementAt(i);\n cArray[i] = new MrnWoatlas5();\n if (latitudeCol != -1)\n cArray[i].setLatitude ((String) row.elementAt(latitudeCol));\n if (longitudeCol != -1)\n cArray[i].setLongitude ((String) row.elementAt(longitudeCol));\n if (depthCol != -1)\n cArray[i].setDepth ((String) row.elementAt(depthCol));\n if (temperatureMinCol != -1)\n cArray[i].setTemperatureMin((String) row.elementAt(temperatureMinCol));\n if (temperatureMaxCol != -1)\n cArray[i].setTemperatureMax((String) row.elementAt(temperatureMaxCol));\n if (salinityMinCol != -1)\n cArray[i].setSalinityMin ((String) row.elementAt(salinityMinCol));\n if (salinityMaxCol != -1)\n cArray[i].setSalinityMax ((String) row.elementAt(salinityMaxCol));\n if (oxygenMinCol != -1)\n cArray[i].setOxygenMin ((String) row.elementAt(oxygenMinCol));\n if (oxygenMaxCol != -1)\n cArray[i].setOxygenMax ((String) row.elementAt(oxygenMaxCol));\n if (nitrateMinCol != -1)\n cArray[i].setNitrateMin ((String) row.elementAt(nitrateMinCol));\n if (nitrateMaxCol != -1)\n cArray[i].setNitrateMax ((String) row.elementAt(nitrateMaxCol));\n if (phosphateMinCol != -1)\n cArray[i].setPhosphateMin ((String) row.elementAt(phosphateMinCol));\n if (phosphateMaxCol != -1)\n cArray[i].setPhosphateMax ((String) row.elementAt(phosphateMaxCol));\n if (silicateMinCol != -1)\n cArray[i].setSilicateMin ((String) row.elementAt(silicateMinCol));\n if (silicateMaxCol != -1)\n cArray[i].setSilicateMax ((String) row.elementAt(silicateMaxCol));\n if (chlorophyllMinCol != -1)\n cArray[i].setChlorophyllMin((String) row.elementAt(chlorophyllMinCol));\n if (chlorophyllMaxCol != -1)\n cArray[i].setChlorophyllMax((String) row.elementAt(chlorophyllMaxCol));\n } // for i\n return cArray;\n }", "List<GridCoordinate> getCoordinates(int cellWidth, int cellHeight);", "@NotNull\n private ArrayList<Coordinate> makeCoordinatesFromCenterCoordinate(@NotNull Coordinate centerPointCoordinate) {\n ArrayList<Coordinate> coordinates = new ArrayList<>();\n coordinates.add(new Coordinate(centerPointCoordinate.getXCoordinate() - (Constants.BULLET_SIZE / 2), centerPointCoordinate.getYCoordinate() - (Constants.BULLET_SIZE / 2)));\n coordinates.add(new Coordinate(centerPointCoordinate.getXCoordinate() + (Constants.BULLET_SIZE / 2), centerPointCoordinate.getYCoordinate() - (Constants.BULLET_SIZE / 2)));\n coordinates.add(new Coordinate(centerPointCoordinate.getXCoordinate() + (Constants.BULLET_SIZE / 2), centerPointCoordinate.getYCoordinate() + (Constants.BULLET_SIZE / 2)));\n coordinates.add(new Coordinate(centerPointCoordinate.getXCoordinate() - (Constants.BULLET_SIZE / 2), centerPointCoordinate.getYCoordinate() + (Constants.BULLET_SIZE / 2)));\n return coordinates;\n }", "public Point2D[] getGivenPoints(){ \n return this.points; \n }", "public ArrayList<float []> getObjectPos(){\n ArrayList<float []> o_pos = new ArrayList<>();\n float [] pos = new float [3];\n for (int i = 0; i < field.length; i++){\n pos[0] = field[i].x;\n pos[1] = field[i].y;\n pos[2] = field[i].z;\n o_pos.add(pos);\n }\n return o_pos;\n }" ]
[ "0.6373055", "0.6112799", "0.60934865", "0.609305", "0.6073598", "0.6038836", "0.5923042", "0.59210646", "0.5859696", "0.57860786", "0.5781289", "0.5751681", "0.5712569", "0.56939507", "0.5653981", "0.5646565", "0.564479", "0.56439596", "0.56411016", "0.5619396", "0.55944717", "0.55944717", "0.55764973", "0.5554767", "0.55524135", "0.54822206", "0.5470104", "0.5462524", "0.5414278", "0.53934777", "0.5389653", "0.53150135", "0.5302117", "0.5290406", "0.52888125", "0.5283984", "0.5282844", "0.5272535", "0.52484787", "0.52109635", "0.51693505", "0.51687974", "0.5144743", "0.51367325", "0.5133239", "0.5122147", "0.51051885", "0.50902396", "0.5090027", "0.50808597", "0.50786275", "0.50766325", "0.506508", "0.50584346", "0.504692", "0.50460917", "0.5043818", "0.5040015", "0.5008649", "0.5006455", "0.50011677", "0.49970922", "0.4995024", "0.4982776", "0.49816638", "0.49778756", "0.49704674", "0.49595556", "0.49579978", "0.49538347", "0.49518362", "0.49252212", "0.4924822", "0.492341", "0.49207836", "0.49199766", "0.49197483", "0.49142346", "0.4912204", "0.49049893", "0.49020556", "0.4886318", "0.485646", "0.48507884", "0.4847874", "0.48462704", "0.48460206", "0.4840736", "0.48392898", "0.48199868", "0.4819832", "0.48188812", "0.48078325", "0.48065257", "0.48036906", "0.478957", "0.4789149", "0.47835663", "0.47777522", "0.4772277" ]
0.7299178
0
select a powerup card from a given list
@Override public Powerup choosePowerup(List<Powerup> selectable) { JSONObject message = new JSONObject(); message.put("function", "select"); message.put("type", "powerup"); JSONArray jArray = new JSONArray(); selectable.forEach(s->jArray.add(s.toJSON())); message.put("list", jArray); this.sendInstruction(message); String selected = this.getResponse(); if (selected == null || selectable.isEmpty()) return null; List<Powerup> matching = selectable.stream().filter(p->p.toJSON().toString().equals(selected)) .collect(Collectors.toList()); return matching.isEmpty() ? null : matching.get(0); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Card> selectByExample(CardExample example);", "void chooseCards(List<SortedBag<Card>> options,\n ChooseCardsHandler handler);", "public static String chooseCardsFromCollection() {\n System.out.println(\"Please select the pokemons you want. By their number and separated by a - (a dash).\");\n System.out.println(\"Ex : 1-6-23-3-87-34...\");\n System.out.println(\"NB: Only 60 ! No more, no less ;) \");\n return keyboardChoice.nextLine();\n }", "private void selectCard() {\n\t\tDeck from = isInMainDeck() ? mainDeck : c.getDeck();\n\t\tDeck to = isInMainDeck() ? c.getDeck() : mainDeck;\n\t\t\n\t\tselectedCard = from.getCurrent();\n\t\tif (selectedCard == null) {\n\t\t\treturn;\n\t\t}\n\t\tif (!to.isFull(animators.size())) {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_CHOOSE_CARD);\n\t\t\tVector3f p = from.getPosFor(selectedCard);\n\t\t\tfrom.removeCurrent();\n\t\t\tanimators.add(new Animator(selectedCard, p, isInMainDeck(), to, to.getLastPos()));\n\t\t} else {\n\t\t\tselectedCard = null;\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t\tif (from.isEmpty()) {\n\t\t\tcirclePressed();\n\t\t}\n\t}", "public Card chooseCard(Hand h, Trick t);", "void selectCardsFrom(int number, List<Card> cards, String title, Consumer<List<Card>> callback);", "public int chooseCard(){\n if(playable.size() == 1)//checks the size\n return searchCard(0);//returns the only playable card\n else{\n int temp = (int) Math.random()*playable.size();//chooses a random one\n return searchCard(temp);//returns that cards position\n }\n }", "private PlayingCard chooseCard(HeartsGraphics g){\t\t\n\t\tHearts.setCurrentPlayer(this);\n\t\t\n\t\tif(number != PLAYER_ONE){\n\t\t\t// A.I. code\n\t\t\tint index;\n\t\t\t\n\t\t\tRandom r = new Random();\n\t\t\tindex = r.nextInt(hand.size());\t\t\t\n\t\t\t\n\t\t\treturn hand.get(index);\t\t\t\n\t\t} else {\n\t\t\treturn getCard(g);\n\t\t}\t\t\n\t}", "public int askWhatPermitCards(List<PermitCard> cards);", "public List<Integer> askPlayerCardsToUse();", "Card selectByPrimaryKey(String card);", "public int askWhatPoliticCards(List<PoliticCard> cards);", "default void selectOneCardFrom(List<Card> cards, String title, Consumer<Card> callback) {\n\t\tselectCardsFrom(1, cards, title, list -> callback.accept(list.get(0)));\n\t}", "public Card chooseFromHand(String sign , String colorName){\n Scanner scanner = new Scanner(System.in);\n Card chosenCard = null;\n int cardIndex;\n do{\n System.out.println(\"which cart ? (-1 to pick up card from cardDeck) ?\");\n cardIndex =scanner.nextInt();\n// scanner.nextLine();\n if(cardIndex == -1){\n ArrayList<Card> playableCards = playableNormalCards(sign , colorName);\n if(playableCards.size() == 0){\n return null;\n }\n else {\n System.out.println(\"you still can play : \");\n for(Card card : playableCards){\n System.out.print(card + \" \");\n }\n System.out.println();\n }\n }\n else if(cardIndex<=0 ||cardIndex > hand.size()){\n System.out.println(\"not valid input\");\n System.out.println(\"please try again : \");\n }\n else if(hand.get(cardIndex-1).getSign().equals(\"B\")){\n chosenCard = hand.get(cardIndex -1);\n }\n else if((!(hand.get(cardIndex-1).getSign().equals(sign))) &&\n (!(hand.get(cardIndex-1).getColorName().equals(colorName)))){\n System.out.println(\"not playable card\");\n System.out.println(\"please try again : \");\n }\n else{\n chosenCard = hand.get(cardIndex - 1);\n }\n\n }while(cardIndex <= 0 || cardIndex > hand.size() || chosenCard == null);\n\n\n hand.remove(chosenCard);\n return chosenCard;\n }", "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 void chooseCards() {\n\n if (availableGods.isEmpty()) {\n createChallenger();\n notifyChoose(cardsChosen, this.getGodListNames(), this.getCurrentTurn().getCurrentPlayer().getNickname());\n } else {\n notifyChoose(true, this.getGodListNames(), this.getCurrentTurn().getCurrentPlayer().getNickname());\n }\n\n }", "List<PasswordCard> selectByExample(PasswordCardExample example);", "Symbol getActiveCard();", "public static int chooseCardFromCollection(Collection collection) {\n System.out.println(\"Please select the pokemons numbers you want. (beetween 1 and \" + collection.getAlCardsCollection().size() + \")\");\n return keyboardChoice.nextInt();\n }", "public void passSelectedCard(int index){\n\t\tSystem.out.println(\"PLAYER SELECTED CARD INDEX \" + index);\n\t\twaitingUser = false;\n\t\tplaySubRound(index);\n\n\t\ttodoThread();\n\t}", "private void selectAndPickARow(Card card, Player player) {\n\n int selectedRow = 1;\n\n pickARow(card, firstRow, player);\n }", "public void chooseActionCards(View view) {\n\t\tIntent intent = new Intent(this, ActionCards.class);\n\t\tstartActivity(intent);\n\t}", "public Card PlayCard() {\n\t Card ret = null;\n\t Card card;\n\t if (mCardCount > 0) {\n\t\t // To work out what card to play, see what cards can be played\n\t\t \tCard[] playableCards;\n\t\t \tplayableCards = mRules.GetPlayableCards();\n\t\t \tCard[] selectedCards;\n\t\t \tselectedCards = new Card[8];\n\t\t \tint iNumSelectableCards = 0;\n\t\t \tfor (int i = 0; i < 8; i++)\n\t\t \t\tselectedCards[i] = null;\n\t \tfor (int i = 0; i < mCardCount; i++){\n\t \t\tcard = mCard[i];\n\t \t\tswitch (card.GetSuit()){\n\t \t\tcase Card.HEARTS:\n\t \t\t\t\n\t \t\t\t// Card is a heart, can it be played?\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tselectedCards[Rules.HEARTS8] = card;\n\t \t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t// and must be played first\n\t \t\t\t\tplayableCards[Rules.HEARTS8] = new Card(8,Card.HEARTS);\n\t \t\t\t\tplayableCards[Rules.HEARTS6] = new Card(6,Card.HEARTS);\n\t \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(7,Card.CLUBS);\n\t \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(7,Card.DIAMONDS);\n\t \t\t\t\tplayableCards[Rules.SPADES8] = new Card(7,Card.SPADES);\n\t \n\t \t\t\t\treturn card;\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.HEARTS6])){\n\t \t\t\t\t\tselectedCards[Rules.HEARTS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t\t//Log.i(\"\",\" Playing card \" + (card.GetValue()) + \" , \" +card.GetSuit());\n\t \t\t\t\t\t//Log.i(\"\",\" Updating playable card \" + (card.GetValue()-1) + \" , \" +Card.HEARTS);\t \t\t\t\t\t\n\t \t\t\t\t\t//playableCards[Rules.HEARTS6] = new Card(card.GetValue()-1,Card.HEARTS);\n\t \t\t\t\t\t//return card;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.HEARTS8])){\n\t \t\t\t\t\tselectedCards[Rules.HEARTS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t\t//Log.i(\"\",\" Playing card \" + (card.GetValue()) + \" , \" +card.GetSuit());\n\t \t\t\t\t\t//Log.i(\"\",\" Updating playable card \" + (card.GetValue()+1) + \" , \" +Card.HEARTS);\t \t\t\t\t\t\n\t \t\t\t\t\t//playableCards[Rules.HEARTS8] = new Card(card.GetValue()+1,Card.HEARTS);\n\t \t\t\t\t\t//return card;\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\t\n\t \t\t\t\n\t \t\t\tbreak;\n\t \t\tcase Card.DIAMONDS:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.DIAMONDS8])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS6])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS8])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t\t \t\t\t\n\t \t\t\t\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase Card.CLUBS:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS6])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t\t \t\t\t\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase Card.SPADES:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.SPADES8])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.SPADES6])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.SPADES8])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\t\n\t \t\t\tbreak;\n\n\t \t\t\t\t \t\t\t\n\t \t\t}\n\t\n\t \t}\t\n\t \t\n\t \t// Now go through the selectable cards and see which is best to be played\n\t \tif (iNumSelectableCards == 0)\n\t \t\treturn ret;\n\t \t\n\t \tint iPos;\n\t \tcard = null;\n\t \tif (iNumSelectableCards == 1){\n\t\t\t \tfor (int i = 0; i < 8; i++)\n\t\t\t \t\tif (selectedCards[i] != null){\n\t\t\t \t\t\tcard = selectedCards[i];\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t}\n\t\t\t \t\t\t \t\n\t \t}\n\t \telse {\n\t\t\t String sDifficulty = mRules.mView.GetSettings().getString(\"Difficulty\", \"0\");// 0 = hard, 1 = easy\n\t\t\t int iDifficulty = Integer.parseInt(sDifficulty);\n\t\t\t if (iDifficulty == EASY){\n\t\t\t \t// Get a random card from the playable ones\n\t\t\t\t\t Random generator = new Random();\n\t\t\t\t\t int randomIndex = generator.nextInt( iNumSelectableCards );\n\t\t\t\t\t int iCount = 0;\n\t\t\t\t\t \tfor (int i = 0; i < 8; i++){\n\t\t\t\t\t \t\tif (selectedCards[i] != null){\n\t\t\t\t\t \t\t\tif (iCount == randomIndex){\n\t\t\t\t\t \t\t\t\tcard = selectedCards[i];\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\telse iCount++;\n\t\t\t\t\t \t\t}\t\n\t\t\t\t\t \t}\n\t\t\t }\n\t\t\t else {\n\t\t\t \tiPos = GetBestCard(selectedCards);\n\t\t\t \tcard = selectedCards[iPos];\n\t\t\t }\n\t \t}\n\t \t\n\t \tswitch (card.GetSuit()){\n \t\tcase Card.HEARTS:\t \t\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\t// and must be played first\n \t\t\t\tplayableCards[Rules.HEARTS8] = new Card(8,Card.HEARTS);\n \t\t\t\tplayableCards[Rules.HEARTS6] = new Card(6,Card.HEARTS);\n \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(7,Card.CLUBS);\n \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(7,Card.DIAMONDS);\n \t\t\t\tplayableCards[Rules.SPADES8] = new Card(7,Card.SPADES);\n \n \t\t\t\treturn card;\n \t\t\t}\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.HEARTS6])){\n \t\t\t\t\tplayableCards[Rules.HEARTS6] = new Card(card.GetValue()-1,Card.HEARTS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.HEARTS8])){ \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.HEARTS8] = new Card(card.GetValue()+1,Card.HEARTS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t \t\t\t\n \t\t\t\n \t\t\tbreak; \n \t\tcase Card.DIAMONDS:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(8,Card.DIAMONDS);\n\t \t\t\t\tplayableCards[Rules.DIAMONDS6] = new Card(6,Card.DIAMONDS);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS6])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.DIAMONDS6] = new Card(card.GetValue()-1,Card.DIAMONDS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS8])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(card.GetValue()+1,Card.DIAMONDS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t\t \t\t\t\n \t\t\t\n \t\t\tbreak; \n \t\t\t\n \t\tcase Card.CLUBS:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(8,Card.CLUBS);\n\t \t\t\t\tplayableCards[Rules.CLUBS6] = new Card(6,Card.CLUBS);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\t \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS6])){\n \t\t\t\t\tplayableCards[Rules.CLUBS6] = new Card(card.GetValue()-1,Card.CLUBS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n \t\t\t\t\tLog.i(\"\",\" Updating playable card \" + (card.GetValue()+1) + \" , \" +Card.CLUBS);\n \t\t\t\t\tplayableCards[Rules.CLUBS8] = new Card(card.GetValue()+1,Card.CLUBS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t\t \t\t\t\n \t\t\tbreak; \n \t\tcase Card.SPADES:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.SPADES8] = new Card(8,Card.SPADES);\n\t \t\t\t\tplayableCards[Rules.SPADES6] = new Card(6,Card.SPADES);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\t \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.SPADES6])){ \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.SPADES6] = new Card(card.GetValue()-1,Card.SPADES);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.SPADES8])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.SPADES8] = new Card(card.GetValue()+1,Card.SPADES);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t \t\t\t\n \t\t\tbreak;\n \t\t\t\n\t \t}\n\t \n\t }\n\t return ret;\n }", "public void cardsSelected(int button) {\n for (int i = 0; i < mCardsList.size(); i++) {\n if (mCardsList.get(i))\n mCardsList.set(i, false);\n }\n\n mCardsList.set(button, true);\n mClaimRouteView.setRadioButtons();\n mClaimRouteView.toggleChooseButton(true);\n }", "public Card pickOnThePioche(ArrayList<Card> pioche) {\n\t\tCard card = null;\n\t\tif (pioche == null) {\n\t\t\tthrow new IllegalArgumentException(\"pickOnThePioche(): the parameter is null\");\n\t\t} else {\n\t\t\tif (pioche.size() > 0) {\n\t\t\t\tint i = random.nextInt(pioche.size());\n\t\t\t\tcard = pioche.get(i);\n\t\t\t} else {\n\t\t\t\tif (pioche.equals(this.worker)) {\n\t\t\t\t\tcard = new Worker(150, \"Stop\", 0, 0, 0, 0, 0);\n\t\t\t\t} else if (pioche.equals(this.building)) {\n\t\t\t\t\tcard = new Building(150, \"Stop\", 0, 0, 0, 0, 0, 0);\n\t\t\t\t} else if (pioche.equals(this.machine)) {\n\t\t\t\t\tcard = new Machine(150, \"Stop\", 0, 0, 0, 0, 0, 0, 0, 0, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn card;\n\t}", "private List<Card> chooseMulligan() {\n return this.b.getPlayer(this.b.getLocalteam()).getHand().stream()\n .filter(c -> c.finalStats.get(Stat.COST) > 3 && c.finalStats.get(Stat.SPELLBOOSTABLE) == 0)\n .collect(Collectors.toList());\n }", "public void victoryCardFind();", "public void selectCard( int n ) {\r\n\r\n if ( 0 <= n && n < NUM_CARDS ) {\r\n switch ( undoStack.size() ) {\r\n case 2:\r\n undo();\r\n undo();\r\n case 0:\r\n add( n );\r\n break;\r\n case 1:\r\n add( n );\r\n checkMatch();\r\n break;\r\n default:\r\n throw\r\n new RuntimeException(\r\n \"Internal Error: undoStack too big.\" );\r\n }\r\n announce( null );\r\n }\r\n }", "private void addRandomFoilCard(List<CardCollection.Item> result, int count) {\n List<String> possibleCards = new ArrayList<String>();\n\n // Very Rare foils\n for (int i=0; i<3; ++i) {\n possibleCards.add(\"9_94\"); // Fighters Coming In\n possibleCards.add(\"7_168\"); // Boelo\n possibleCards.add(\"106_11\"); // Chall Bekan\n possibleCards.add(\"8_94\"); // Commander Igar\n possibleCards.add(\"9_110\"); // Janus Greejatus\n possibleCards.add(\"9_118\"); // Myn Kyneugh\n possibleCards.add(\"9_120\"); // Sim Aloo\n possibleCards.add(\"4_116\"); // Bad Feeling Have I\n possibleCards.add(\"1_222\"); // Lateral Damage\n possibleCards.add(\"6_149\"); // Scum And Villainy\n possibleCards.add(\"7_241\"); // Sienar Fleet Systems\n possibleCards.add(\"101_6\"); // Vader's Obsession\n possibleCards.add(\"9_147\"); // Death Star II: Throne Room\n possibleCards.add(\"4_161\"); // Executor: Holotheatre\n possibleCards.add(\"4_163\"); // Executor: Meditation Chamber\n possibleCards.add(\"3_150\"); // Hoth: Wampa Cave\n possibleCards.add(\"2_147\"); // Kiffex (Dark)\n possibleCards.add(\"106_10\"); // Black Squadron TIE\n possibleCards.add(\"110_8\"); // IG-88 In IG-2000\n possibleCards.add(\"106_1\"); // Arleil Schous\n possibleCards.add(\"7_44\"); // Tawss Khaa\n possibleCards.add(\"5_23\"); // Frozen Assets\n possibleCards.add(\"7_62\"); // Goo Nee Tay\n possibleCards.add(\"1_55\"); // Mantellian Savrip\n possibleCards.add(\"4_30\"); // Order To Engage\n possibleCards.add(\"101_3\"); // Run Luke, Run!\n possibleCards.add(\"104_2\"); // Lone Rogue\n possibleCards.add(\"6_83\"); // Kiffex (Light)\n possibleCards.add(\"9_64\"); // Blue Squadron B-wing\n possibleCards.add(\"103_1\"); // Gold Leader In Gold 1\n possibleCards.add(\"9_73\"); // Green Squadron A-wing\n possibleCards.add(\"9_76\"); // Liberty\n possibleCards.add(\"103_2\"); // Red Leader In Red 1\n possibleCards.add(\"106_9\"); // Z-95 Headhunter\n }\n\n // Super Rare foils\n for (int i=0; i<2; ++i) {\n possibleCards.add(\"109_6\"); // 4-LOM With Concussion Rifle\n possibleCards.add(\"9_98\"); // Admiral Piett\n possibleCards.add(\"9_99\"); // Baron Soontir Fel\n possibleCards.add(\"110_5\"); // Bossk With Mortar Gun\n possibleCards.add(\"108_6\"); // Darth Vader With Lightsaber\n possibleCards.add(\"110_7\"); // Dengar With Blaster Carbine\n possibleCards.add(\"1_171\"); // Djas Puhr\n possibleCards.add(\"109_11\"); // IG-88 With Riot Gun\n possibleCards.add(\"110_9\"); // Jodo Kast\n possibleCards.add(\"9_117\"); // Moff Jerjerrod\n possibleCards.add(\"7_195\"); // Outer Rim Scout\n possibleCards.add(\"9_136\"); // Force Lightning\n possibleCards.add(\"3_138\"); // Trample\n possibleCards.add(\"104_7\"); // Walker Garrison\n possibleCards.add(\"2_143\"); // Death Star\n possibleCards.add(\"9_142\"); // Death Star II\n possibleCards.add(\"109_8\"); // Boba Fett In Slave I\n possibleCards.add(\"9_154\"); // Chimaera\n possibleCards.add(\"109_10\"); // Dengar In Punishing One\n possibleCards.add(\"106_13\"); // Dreadnaught-Class Heavy Cruiser\n possibleCards.add(\"9_157\"); // Flagship Executor\n possibleCards.add(\"9_172\"); // The Emperor's Shield\n possibleCards.add(\"9_173\"); // The Emperor's Sword\n possibleCards.add(\"110_12\"); // Zuckuss In Mist Hunter\n possibleCards.add(\"104_5\"); // Imperial Walker\n possibleCards.add(\"8_172\"); // Tempest Scout 1\n possibleCards.add(\"9_178\"); // Darth Vader's Lightsaber\n possibleCards.add(\"110_11\"); // Mara Jade's Lightsaber\n possibleCards.add(\"9_1\"); // Capital Support\n possibleCards.add(\"9_6\"); // Admiral Ackbar\n possibleCards.add(\"2_2\"); // Brainiac\n possibleCards.add(\"109_1\"); // Chewie With Blaster Rifle\n possibleCards.add(\"8_3\"); // Chief Chirpa\n possibleCards.add(\"9_13\"); // General Calrissian\n possibleCards.add(\"8_14\"); // General Crix Madine\n possibleCards.add(\"1_15\"); // Kal'Falnl C'ndros\n possibleCards.add(\"102_3\"); // Leia\n possibleCards.add(\"108_3\"); // Luke With Lightsaber\n possibleCards.add(\"7_32\"); // Melas\n possibleCards.add(\"8_23\"); // Orrimaarko\n possibleCards.add(\"110_3\"); // See-Threepio\n possibleCards.add(\"9_31\"); // Wedge Antilles, Red Squadron Leader\n possibleCards.add(\"8_32\"); // Wicket\n possibleCards.add(\"3_32\"); // Bacta Tank\n possibleCards.add(\"3_34\"); // Echo Base Operations\n possibleCards.add(\"1_52\"); // Kessel Run\n possibleCards.add(\"1_76\"); // Don't Get Cocky\n possibleCards.add(\"1_82\"); // Gift Of The Mentor\n possibleCards.add(\"5_69\"); // Smoke Screen\n possibleCards.add(\"1_138\"); // Yavin 4: Massassi Throne Room\n possibleCards.add(\"111_2\"); // Artoo-Detoo In Red 5\n possibleCards.add(\"9_65\"); // B-wing Attack Squadron\n possibleCards.add(\"9_68\"); // Gold Squadron 1\n possibleCards.add(\"106_4\"); // Gold Squadron Y-wing\n possibleCards.add(\"9_74\"); // Home One\n possibleCards.add(\"9_75\"); // Independence\n possibleCards.add(\"109_2\"); // Lando In Millennium Falcon\n possibleCards.add(\"9_81\"); // Red Squadron 1\n possibleCards.add(\"106_7\"); // Red Squadron X-wing\n possibleCards.add(\"7_150\"); // X-wing Assault Squadron\n possibleCards.add(\"104_3\"); // Rebel Snowspeeder\n possibleCards.add(\"9_90\"); // Luke's Lightsaber\n }\n\n // Ultra Rare foils\n for (int i=0; i<1; ++i) {\n possibleCards.add(\"9_109\"); // Emperor Palpatine\n possibleCards.add(\"9_113\"); // Lord Vader\n possibleCards.add(\"110_10\"); // Mara Jade, The Emperor's Hand\n possibleCards.add(\"9_24\"); // Luke Skywalker, Jedi Knight\n }\n\n filterNonExistingCards(possibleCards);\n Collections.shuffle(possibleCards, _random);\n addCards(result, possibleCards.subList(0, Math.min(possibleCards.size(), count)), true);\n }", "public static Card Card_Choice(Hero hero) {\n System.out.print(hero.getInventory());\n Scanner console = new Scanner(System.in);\n System.out.println(\"\\nWhich card do you choose?\");\n\n int input = console.nextInt();\n console.nextLine();\n Card card = hero.getCard(input-1);\n hero.setInventory(input);\n\n // console.close();\n return card;\n }", "public static void switchCard(String s){cl.show(cards,s);}", "public void setCardPower(List<CardPower> cardPower) {\n this.cardPower = cardPower;\n }", "static /* synthetic */ void m56321b(HoneyPayMainUI honeyPayMainUI, List list) {\n AppMethodBeat.m2504i(41910);\n ArrayList arrayList = new ArrayList();\n if (!(list == null || list.isEmpty())) {\n for (asj honeyPayCardType : list) {\n arrayList.add(new HoneyPayCardType(honeyPayCardType));\n }\n }\n Intent intent = new Intent(honeyPayMainUI, HoneyPaySelectCardTypeUI.class);\n intent.putParcelableArrayListExtra(\"key_card_type_list\", arrayList);\n honeyPayMainUI.startActivity(intent);\n AppMethodBeat.m2505o(41910);\n }", "public void selectCard(int cardNumber, boolean isLast) {\r\n\t\tCard c = null;\r\n\t\t// Selecting from reserve\r\n\t\tint prevGold = currentPlayer.getGold();\r\n\t\tif (cardNumber >= 0 && cardNumber < 4) {\r\n\t\t\tif (cardNumber == 0) { \r\n\t\t\t\tc = GlobalVars.cardDatabase.get(\"Goblin\");\r\n\t\t\t\tif (currentPlayer.getSwords() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSwords(-1*c.getCost());\r\n\t\t\t\t\tdoCardEffects(c);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (cardNumber == 1) {\r\n\t\t\t\tc = reserve.getExplorers().get(0);\r\n\t\t\t\tif (reserve.getExplorers().size() > 0 && currentPlayer.getSkill() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*c.getCost());\r\n\t\t\t\t\tcurrentPlayer.getDiscardPile().add(c);\r\n\t\t\t\t\treserve.removeExplorer();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (cardNumber == 2) {\r\n\t\t\t\tc = reserve.getMercenaries().get(0);\r\n\t\t\t\tif (reserve.getMercenaries().size() > 0 && currentPlayer.getSkill() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*c.getCost());\r\n\t\t\t\t\tcurrentPlayer.getDiscardPile().add(c);\r\n\t\t\t\t\treserve.removeMercenary();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (cardNumber == 3) {\r\n\t\t\t\tc = reserve.getSecretTomes().get(0);\r\n\t\t\t\tif (reserve.getSecretTomes().size() > 0 && currentPlayer.getSkill() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*c.getCost());\r\n\t\t\t\t\tcurrentPlayer.getDiscardPile().add(c);\r\n\t\t\t\t\treserve.removeSecretTome();\r\n\t\t\t\t\tcurrentPlayer.updateSecretTomes(1);\r\n\t\t\t\t} else return;\r\n\t\t\t}\r\n\t\t\t// Add appropriate event description\r\n\t\t\tif (c.getType().contentEquals(\"monster\")) addEvent(\"``\"+currentName+\"`` has slain **\"+c.getName()+\"**\",false);\r\n\t\t\telse addEvent(\"``\"+currentName+\"`` selected **\"+c.getName()+\"**\",false);\r\n\t\t\taddHistory(c.getName().toUpperCase());\r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] \"+currentName+\" selected \"+c.getName());\r\n\t\t} else {\r\n\t\t\t// Check if already bought\r\n\t\t\tif (dungeonRow[cardNumber-4].isBought()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tc = dungeonRow[cardNumber-4];\r\n\t\t\t// Check restrictions\r\n\t\t\tif (c.isDeep() && !currentPlayer.isUnderground()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Crystal Golem\r\n\t\t\tif (c.getName().contentEquals(\"Crystal Golem\") && !currentPlayer.isInCave()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (c.getType().contentEquals(\"basic\")) {\r\n\t\t\t\tif (currentPlayer.getSkill() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*c.getCost());\r\n\t\t\t\t\tcurrentPlayer.getDiscardPile().add(c);\r\n\t\t\t\t\t//dungeonRow[cardNumber-4] = null;\r\n\t\t\t\t\tdungeonRow[cardNumber-4].setBought(true);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (c.getType().contentEquals(\"gem\")) {\r\n\t\t\t\tint newc = c.getCost();\r\n\t\t\t\tif (currentPlayer.getPlayArea().has(\"Gem Collector\")) {\r\n\t\t\t\t\tnewc -= 2;\r\n\t\t\t\t}\r\n\t\t\t\tif (currentPlayer.getSkill() >= newc) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*newc);\r\n\t\t\t\t\tcurrentPlayer.getDiscardPile().add(c);\r\n\t\t\t\t\tdungeonRow[cardNumber-4].setBought(true);\r\n\t\t\t\t\tcurrentPlayer.updateClankOnBoard(2);\r\n\t\t\t\t\tif (currentPlayer.getSwags() > 0) currentPlayer.updateSkill(2*currentPlayer.getSwags());\r\n\t\t\t\t\t\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (c.getType().contentEquals(\"device\")) {\r\n\t\t\t\tif (currentPlayer.getSkill() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*c.getCost());\r\n\t\t\t\t\t\r\n\t\t\t\t\tdoCardEffects(c);\r\n\t\t\t\t\t\r\n\t\t\t\t\tdungeonRow[cardNumber-4].setBought(true);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (c.getType().contentEquals(\"monster\")) {\r\n\t\t\t\tif (currentPlayer.getSwords() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSwords(-1*c.getCost());\r\n\r\n\t\t\t\t\tdoCardEffects(c);\r\n\t\t\t\t\t\r\n\t\t\t\t\tdungeonRow[cardNumber-4].setBought(true);\r\n\t\t\t\t} else return;\r\n\t\t\t}\r\n\t\t\t// Acquire effects\r\n\t\t\tif (c.getAcquire() != null) {\r\n\t\t\t\tif (c.getAcquire().contentEquals(\"health\")) {\r\n\t\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\t} else if (c.getAcquire().contentEquals(\"swords\")) {\r\n\t\t\t\t\tcurrentPlayer.updateSwords(1);\r\n\t\t\t\t} else if (c.getAcquire().contentEquals(\"boots\")) {\r\n\t\t\t\t\tcurrentPlayer.updateBoots(1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Add appropriate event description\r\n\t\t\tif (c.getType().contentEquals(\"monster\")) addEvent(\"``\"+currentName+\"`` has slain **\"+c.getName()+\"**\",false);\r\n\t\t\telse addEvent(\"``\"+currentName+\"`` selected **\"+c.getName()+\"**\",false);\r\n\t\t\taddHistory(c.getName().toUpperCase());\r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] \"+currentName+\" selected \"+c.getName());\r\n\t\t}\r\n\t\tif (isLast) {\r\n\t\t\tif (prevGold != currentPlayer.getGold()) {\r\n\t\t\t\tupdateMarketAndTreasures(false);\r\n\t\t\t}\r\n\t\t\tupdateBoardNoImageChange(); // Consider removing later\r\n\t\t\tupdateInfo(currentPlayer, false);\r\n\t\t\tupdateDungeonRow(currentPlayer, false);\r\n\t\t\tupdateEvents(false);\r\n\t\t}\r\n\t}", "private void pickCards() throws IOExceptionFromController {\n Deck deck = game.getDeck();\n try {\n if (playerControllers.get(0).getClient().chooseYesNo(\"Do you want to randomize the playable God Powers pool?\")) {\n deck.pickRandom(game.getPlayerNum());\n playerControllers.get(0).getClient().displayMessage(\"Picking cards...\");\n } else {\n ArrayList<Card> choices = playerControllers.get(0).getClient().chooseCards(deck.getCards(), game.getPlayerNum(), null);\n for (Card card : choices) {\n deck.pickCard(card);\n }\n }\n } catch (IOException | InterruptedException e) {\n throw new IOExceptionFromController(e, playerControllers.get(0));\n }\n ArrayList<Card> cardPool = deck.getPickedCards();\n ArrayList<Card> chosenCards = new ArrayList<Card>();\n for (int i = 0; i < game.getPlayerNum(); i++) {\n int j = (i == game.getPlayerNum() - 1) ? 0 : i + 1;\n Card chosenCard;\n try {\n chosenCard = playerControllers.get(j).getClient().chooseCards(cardPool, 1, chosenCards).get(0);\n } catch (IOException | InterruptedException e) {\n throw new IOExceptionFromController(e, playerControllers.get(j));\n }\n cardPool.remove(chosenCard);\n chosenCards.add(chosenCard);\n players.get(j).setGodCard(chosenCard);\n playerControllers.get(j).setGodController(chosenCard.getController());\n broadcastMessage((players.get(j).getId() + \" is \" + chosenCard.getGod() + \" (\" + players.get(j).getColor() + \")\\n\"));\n broadcastMessage(\"Picking cards...\");\n }\n }", "void askBuyDevCards();", "public static void displayOneCharacter (List<Character> listCP){\n System.out.println(\"enter the index of your character : \");\n int ch = getUserChoice();\n System.out.println(listCP.get(ch));\n }", "@Override\n public PlayingCard chooseCard() throws InterruptedException {\n\n boolean validInput = false;\n int max = hand.getSize();\n String inputStr;\n int inputInt = 0; // not ideal; but compiler is happier\n Scanner sc = new Scanner(System.in);\n\n while (!validInput) {\n this.hand.showCards();\n System.out.println(\"Choose a card from the above\");\n\n inputStr = Game.cleanStringInput(sc.nextLine());\n\n // only supports 0 ~ 9\n if (inputStr.matches(\"\\\\d\")) {\n\n if (inputStr.matches(\"0\")) {\n surrender(sc);\n inputStr = \"1\"; // to throw away last card\n }\n\n // - 1 is to allow usage of 1 - 9 for card selection instead\n // of 0 - 8...this converts card \"1\" into index 0.\n inputInt = (Integer.parseInt(inputStr)) - 1;\n\n // must be LESS than max...if size = 1, then \"max index\" == 0\n if (inputInt < max && inputInt >= 0) {\n validInput = true;\n } else {\n System.out.println(\"OOPS! Enter between 1 and \"\n + (max) + \"!\"); // \"between 1 and 1\" is acceptable\n Thread.sleep(1000);\n\n } // end check for acceptable index\n } else {\n System.out.println(\"OOPS! Enter a single digit ONLY!\");\n Thread.sleep(1000);\n } // end check for digit entered\n } // end \"while-loop\" check for valid input\n\n // if we're here, we can safely return the selected card\n return (PlayingCard) hand.removeCard(inputInt);\n }", "static PaymentChoiceInfo payOneAmmo(int[] ammoInAmmoBox, List<PowerUpLM> ammoInPowerUp){\n System.out.println(\"You have \" + costToString(ammoInAmmoBox) + \"in your ammo box\");\n System.out.println(\"Choose one ammo unit or powerup of the following to pay the cost of one ammo: \");\n List<String> options = new ArrayList<>();\n int nrOption = 1;\n\n for(PowerUpLM pw : ammoInPowerUp){\n System.out.println(nrOption + \": \" + pw.getName() + \"(\" + ammoTypeToString(pw.getGainAmmoColor()) + \")\");\n options.add(Integer.toString(nrOption));\n nrOption++;\n }\n AmmoType[] ammoTypes = {AmmoType.RED, AmmoType.BLUE, AmmoType.YELLOW};\n\n for(AmmoType ammoType : ammoTypes) {\n if (ammoInAmmoBox[AmmoType.intFromAmmoType(ammoType)] > 0) {\n System.out.println(nrOption + \": \" + ammoTypeToString(ammoType).toUpperCase() + \"ammo unit\");\n options.add(Integer.toString(nrOption));\n nrOption++;\n }\n }\n System.out.print(GeneralInfo.ASK_INPUT);\n String userAnswer = readUserChoice(options, false);\n if(userAnswer == null){//time expired\n return null;\n }\n else{\n Integer idChosenPowerup;\n int[] ammoToDiscard = new int[3];\n List<Integer> idPowerUpsToDiscard = new ArrayList<>();\n\n int chosenOption = Integer.parseInt(userAnswer);\n if(chosenOption <= ammoInPowerUp.size()){//it is a powerup\n int posInList = chosenOption - 1;\n idChosenPowerup = ammoInPowerUp.get(posInList).getIdPowerUp();\n idPowerUpsToDiscard.add(idChosenPowerup);\n }\n else{//it is an ammo unit\n int posInAmmoTypes = chosenOption - ammoInPowerUp.size() - 1;\n AmmoType chosenAmmo = ammoTypes[posInAmmoTypes];\n ammoToDiscard[AmmoType.intFromAmmoType(chosenAmmo)] = 1;\n }\n\n return new PaymentChoiceInfo(ammoToDiscard, idPowerUpsToDiscard);\n }\n }", "@Override\n protected void receiveInfo(GameInfo info) {\n if (!(info instanceof PalaceGameState)) {\n return;\n }\n PalaceGameState state = new PalaceGameState((PalaceGameState) info);\n PalaceSelectCardAction selectCardAction;\n if (state.getTurn() != this.playerNum) {\n return;\n } else {\n sleep(1000); // make the computer \"think\"\n boolean isBigger = false;// variable to check if they have a valid card\n\n //determines if the cards are valid\n if (!(state.getP2Hand().isEmpty()) && !state.getPlayPilePalaceCards().isEmpty()) {\n for (int i = 0; i < state.getP2Hand().size(); i++) {\n if (state.getP2Hand().get(i).getRank() > state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).getRank()) {\n isBigger = true;\n }\n }\n }\n\n //takes pile if they have no hand cards to play\n if (isBigger == false && !(state.getP2Hand().isEmpty())) {\n PalaceTakePileAction take = new PalaceTakePileAction(this);\n Log.d(\"compPlayer\", \"took the pile\");\n this.game.sendAction(take);\n }\n\n //begins searching for a card to select\n PalaceCard cardToSelect = null;\n\n // check in the case when the play pile and their hand are both not empty\n if (!(state.getPlayPilePalaceCards().isEmpty()) && (!(state.getP2Hand().isEmpty()))) {\n\n // while they haven't selected a card or the card they selected is less than the top card\n // another card is selected at random from their hand\n while (cardToSelect == null ||\n (cardToSelect.getRank() <\n (state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).getRank()) &&\n state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).getRank() >=0)) {\n cardToSelect =\n state.getP2Hand().get((int) (Math.random() * state.getP2Hand().size()));\n }\n\n // selects a card when they are playing from their top cards\n } else if (state.getP2Hand().isEmpty() && (!(state.getP2TopPalaceCards().isEmpty()))) {\n\n //pick any random card if the play pile is empty\n if (state.getPlayPilePalaceCards().isEmpty()) {\n cardToSelect =\n state.getP2TopPalaceCards().\n get((int) (Math.random() * state.getP2TopPalaceCards().size()));\n }\n\n //play pile is not empty so find a valid card\n else {\n\n //checks to see if there is a valid card\n for (int i = 0; i < state.getP2TopPalaceCards().size(); i++) {\n if (state.getP2TopPalaceCards().get(i).getRank() >\n state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).getRank() &&\n state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).getRank() >= 0) {\n isBigger = true;\n }\n }\n\n //finds a random valid card because there is one that is valid\n if (isBigger) {\n while (cardToSelect == null ||\n (cardToSelect.getRank() <\n state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).\n getRank() &&\n state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).\n getRank() >= 0)) {\n cardToSelect =\n state.getP2TopPalaceCards().\n get((int) (Math.random() * state.\n getP2TopPalaceCards().size()));\n }\n }\n\n //no card to be played so take the pile\n else {\n PalaceTakePileAction take = new PalaceTakePileAction(this);\n Log.d(\"compPlayer\", \"took the pile\");\n this.game.sendAction(take);\n }\n }\n }\n\n //they only have bottom cards left, all are valid to be played so pick a random one\n else if (state.getP2TopPalaceCards().isEmpty()&&state.getP2Hand().isEmpty()) {\n cardToSelect =\n state.getP2BottomPalaceCards().\n get((int) (Math.random() * state.getP2BottomPalaceCards().size()));\n }\n\n //the play pile is empty and they only have hand cards, pick one at random\n else {\n cardToSelect =\n state.getP2Hand().get((int) (Math.random() * state.getP2Hand().size()));\n }\n\n //create and send the select card action with the selected card\n selectCardAction = new PalaceSelectCardAction(this, cardToSelect,\n state.getSelectedPalaceCards());\n this.game.sendAction(selectCardAction);\n\n //rerun selectCardAction if there are multiple of the same card\n if (!state.getP2Hand().isEmpty()) {\n for (int i = 0; i < state.getP2Hand().size(); i++) {\n if (state.getP2Hand().get(i).getRank() == cardToSelect.getRank() &&\n !cardToSelect.equals(state.getP2Hand().get(i))) {\n selectCardAction = new PalaceSelectCardAction(this, state.getP2Hand().get(i),\n state.getSelectedPalaceCards());\n this.game.sendAction(selectCardAction);\n }\n }\n }\n else if (state.getP2Hand().isEmpty() && !state.getP2TopPalaceCards().isEmpty()) {\n for (int i = 0; i < state.getP2Hand().size(); i++) {\n if (state.getP2Hand().get(i).getRank() == cardToSelect.getRank() &&\n !cardToSelect.equals(state.getP2TopPalaceCards().get(i))) {\n selectCardAction = new PalaceSelectCardAction(this, state.getP2TopPalaceCards().get(i),\n state.getSelectedPalaceCards());\n this.game.sendAction(selectCardAction);\n }\n }\n }\n\n //creates and sends the playCardAction\n PalacePlayCardAction playCardAction = new PalacePlayCardAction(this);\n this.game.sendAction(playCardAction);\n }\n\n\n }", "void playMonumentCard();", "@Override\n public void performAction(UI client) {\n client.chooseCards(possibleCards, num, pickedCards);\n }", "public WebElement selectSavedCardDropDown() {\n\t\treturn findElement(repositoryParser, PAGE_NAME, \"dropDownOption\");\n\t}", "@Override\n void pickCard() {\n\n boolean suitFound = false; // true if player has the suit\n Card cardToBeat; // strongest card on pile\n Card pickedCard = null; // card to throw\n ArrayList<Card> cardsToChooseFrom = new ArrayList<Card>();\n char trump = pitchTable.getTrump();\n\n // find the strongest card on pile\n cardToBeat = pitchTable.getCardToBeat();\n\n // if pile is empty\n if (cardToBeat == null){\n // pick the strongest non trump card\n for (Card card : hand)\n if (card.suit != trump)\n if ((pickedCard == null) || (pickedCard.rank < card.rank))\n pickedCard = card;\n\n // if non trump card not found (means all cards are trump)\n // then pick the strongest card\n if (pickedCard == null)\n for (Card card : hand)\n if ((pickedCard == null) || (pickedCard.rank < card.rank))\n pickedCard = card;\n }\n else { // means leading suit is set already\n // check if player has suit\n for (Card card : hand) {\n if (card.suit == pitchTable.getLeadingSuit())\n suitFound = true;\n }\n\n // if player does not have suit he can play any card\n if (!suitFound)\n cardsToChooseFrom = hand;\n else // if player has suit then cardsToChooseFrom = allowed cards\n for (Card card : hand)\n if ((card.suit == pitchTable.getLeadingSuit()) ||\n card.suit == pitchTable.getTrump())\n cardsToChooseFrom.add(card);\n }\n\n // try to take the trick with the lowest winning card\n // if no winning card then throw the lowest you have\n\n // (trying to take the trick)\n // if card not picked yet\n // then find the lowest card that has the suit and is higher than cardToBeat\n if (pickedCard == null)\n for (Card card : cardsToChooseFrom)\n if ((cardToBeat.suit == card.suit) && (cardToBeat.rank < card.rank))\n if ((pickedCard == null) || (pickedCard.rank > card.rank))\n pickedCard = card;\n\n // (trying to take the trick)\n // if card not picked yet and cardToBeat is not trump\n // then find the lowest trump\n if ((pickedCard == null) && (cardToBeat.suit != trump))\n for (Card card : cardsToChooseFrom)\n if (card.suit == trump)\n if ((pickedCard == null) || (pickedCard.rank > card.rank))\n pickedCard = card;\n\n // (trying to throw the lowest)\n // if still no card picked (means player cannot take the trick)\n // then throw the lowest non trump\n if (pickedCard == null)\n for (Card card : cardsToChooseFrom)\n if (card.suit != trump)\n if ((pickedCard == null) || (pickedCard.rank > card.rank))\n pickedCard = card;\n\n // (trying to throw the lowest)\n // if still no card picked (means all allowed cards are trump)\n // then throw the lowest trump\n if (pickedCard == null)\n for (Card card : cardsToChooseFrom)\n if ((pickedCard == null) || (pickedCard.rank > card.rank))\n pickedCard = card;\n\n if (pickedCard == null)\n System.out.println(\"Error: picked card still null\");\n\n pitchTable.putOnPile(pickedCard);\n hand.remove(pickedCard);\n\n }", "public void choose(int n) {\r\n\t\tfor (int i = 0; i < mustChoose.size(); i++) {\r\n\t\t\t// Find the specific card\r\n\t\t\tif (mustChoose.get(i).contentEquals(\"Shrine\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(1);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Dragon Shrine\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(2);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tmustTrash.add(\"Dragon Shrine\");\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Treasure Hunter\")) {\r\n\t\t\t\tif (!dungeonRow[n-4].isBought()) {\r\n\t\t\t\t\tdungeonRow[n-4] = mainDeck.getNext();\r\n\t\t\t\t\tmainDeck.removeTop();\r\n\t\t\t\t\tif (dungeonRow[n-4].isHasArrive()) {\r\n\t\t\t\t\t\tdoArriveEffect(dungeonRow[n-4]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tupdateDungeonRow(currentPlayer, false);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Underworld Dealing\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(1);\r\n\t\t\t\t} else if (n == 2 && currentPlayer.getGold() >= 7) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(-7);\r\n\t\t\t\t\t// Tries to buy 2\r\n\t\t\t\t\tif (reserve.getSecretTomes().size() > 0) {\r\n\t\t\t\t\t\tcurrentPlayer.getDiscardPile().add(reserve.getSecretTomes().get(0));\r\n\t\t\t\t\t\treserve.removeSecretTome();\r\n\t\t\t\t\t\tcurrentPlayer.updateSecretTomes(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (reserve.getSecretTomes().size() > 0) {\r\n\t\t\t\t\t\tcurrentPlayer.getDiscardPile().add(reserve.getSecretTomes().get(0));\r\n\t\t\t\t\t\treserve.removeSecretTome();\r\n\t\t\t\t\t\tcurrentPlayer.updateSecretTomes(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tupdateDungeonRow(currentPlayer, false);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Apothecary\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateSwords(3);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(2);\r\n\t\t\t\t} else if (n == 3) {\r\n\t\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Mister Whiskers\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\t// Only dragon attack in the middle of turn\r\n\t\t\t\t\tdragonAttack(cubesPerLevel[attackLevel]);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tcurrentPlayer.updateClankOnBoard(-2);\r\n\t\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Wand of Wind\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateTeleports(1);\r\n\t\t\t\t} else if (n > 1) {\r\n\t\t\t\t\t// Take a secret from nearby room\r\n\t\t\t\t\tif (Utils.has(GlobalVars.adjacentRoomsPerRoom[currentPlayer.getCurrentRoom()],n) || Utils.has(GlobalVars.teleportRoomsPerRoom[currentPlayer.getCurrentRoom()],n)) {\r\n\t\t\t\t\t\tif (mapContents[n].startsWith(\"Minor\") || mapContents[n].startsWith(\"Major\")) {\r\n\t\t\t\t\t\t\trewardPlayer(n);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tupdateBoard();\r\n\t\t\t\t\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else return;\r\n\t\t\t\t} else return;\r\n\t\t\t}\r\n\t\t\tmustChoose.remove(i);\r\n\t\t}\r\n\t\tupdateMarketAndTreasures(false);\r\n\t\tupdateInfo(currentPlayer, false);\r\n\t\t// In case Mister Whiskers ends the game\r\n\t\tif (!checkIfGameIsOver()) {\r\n\t\t\tupdatePlayArea(currentPlayer, false);\r\n\t\t}\r\n\t}", "public void selectWeaponFromInventory(int weaponIndex) {\n }", "List<SupplyNeed> selectByExample(SupplyNeedExample example);", "public Card getCard(ArrayList<Card> cards, int index);", "public List<Card> list();", "private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }", "private void addRandomPremiereCard(List<CardCollection.Item> result, int count) {\n List<String> possibleCards = new ArrayList<String>();\n possibleCards.addAll(_premiereSetRarity.getAllCards());\n filterNonExistingCards(possibleCards);\n Collections.shuffle(possibleCards, _random);\n addCards(result, possibleCards.subList(0, Math.min(possibleCards.size(), count)), false);\n }", "public void selectProduct() {\n\t\tActions obj = new Actions(driver);\n\t\tobj.moveToElement(driver.findElements(By.xpath(\".//*[@id='center_column']/ul/li\")).get(0)).build().perform();\n\t\tdriver.findElement(By.xpath(\".//*[@id='center_column']/ul/li[1]/div/div[2]/div[2]/a[1]/span\")).click();\n\t}", "@Override\n public SortedBag<Card> chooseAdditionalCards(List<SortedBag<Card>> options) {\n sendInstruction(MessageId.CHOOSE_ADDITIONAL_CARDS,\n Serdes.CARD_BAG_LIST_SERDE.serialize(options));\n return Serdes.CARD_BAG_SERDE.deserialize(receiveInstruction());\n }", "void pickUp();", "private void addRandomSpecialEditionCard(List<CardCollection.Item> result, int count) {\n List<String> possibleCards = new ArrayList<String>();\n possibleCards.addAll(_specialEditionSetRarity.getAllCards());\n filterNonExistingCards(possibleCards);\n Collections.shuffle(possibleCards, _random);\n addCards(result, possibleCards.subList(0, Math.min(possibleCards.size(), count)), false);\n }", "public interface Strategy {\n public Integer pick_card( List<Card> hand, Suit trump, Suit round );\n}", "public void selectPressed() {\n\t\tif (edit) {\n\t\t\tdisplayCardHelp = !displayCardHelp;\n\t\t} else {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t}", "public Card selectCardById(int cno) {\n\t\treturn this.caDao.selectCardById(cno);\n\t}", "public CardChoice getCardChoices(PlayerPiece playerPiece) {\n System.out.println(\"Please select one of the following Rooms (Type in room name):\");\n System.out.println(this.getRoomCards());\n boolean validCard = false;\n RoomCard roomCard = this.findRoomCard(sc.nextLine());\n if (roomCard == null) {\n while (!validCard) {\n System.out.println(\"Invalid input! Please select one of the following Rooms (Type in room name):\");\n System.out.println(this.getRoomCards());\n roomCard = this.findRoomCard(sc.nextLine());\n if (roomCard != null) {\n validCard = true;\n }\n }\n }\n validCard = false;\n WeaponCard weaponCard = this.findWeaponCard(sc.nextLine());\n if (weaponCard == null) {\n while (!validCard) {\n System.out.println(\"Invalid input! Please select one of the following weapons (Type in room name):\");\n System.out.println(this.getRoomCards());\n weaponCard = this.findWeaponCard(sc.nextLine());\n if (weaponCard != null) {\n validCard = true;\n }\n }\n }\n validCard = false;\n SuspectCard suspectCard = this.findSuspectCard(sc.nextLine());\n if (suspectCard == null) {\n while (!validCard) {\n System.out.println(\"Invalid input! Please select one of the following suspect (Type in room name):\");\n System.out.println(this.getRoomCards());\n suspectCard = this.findSuspectCard(sc.nextLine());\n if (suspectCard != null) {\n validCard = true;\n }\n }\n }\n return new CardChoice(playerPiece, roomCard, weaponCard, suspectCard);\n\n }", "private static void showMatchedDeckInfo() {\n }", "@Override\n public List<CardCollection.Item> openPackage() {\n List<CardCollection.Item> result = new LinkedList<CardCollection.Item>();\n addRandomPremiereCard(result, 3);\n addRandomJabbasPalaceCard(result, 3);\n addRandomFoilCard(result, 1);\n addRandomCloudCityCard(result, 3);\n addRandomReflectionsIICards(result);\n addRandomANewHopeOrHothCard(result, 1);\n addRandomSpecialEditionCard(result, 3);\n addRandomPremiereCard(result, 2);\n return result;\n }", "private List<Card> setupDeck(){\n List<Card> llist = new LinkedList<Card>();\n String[] faceCards = {\"J\",\"Q\",\"K\",\"A\"};\n String[] suits = {\"spades\",\"clubs\",\"diamonds\",\"hearts\"};\n\n for(int i=2; i<=10; i++){\n for(int j=1; j<=4; j++){\n llist.add(new Card(Integer.toString(i), suits[j-1], j, i));\n }\n }\n for(int k=1; k<=4; k++){\n for(int l=1; l<=4; l++){\n llist.add(new Card(faceCards[k-1],suits[l-1], l, k+10));\n }\n }\n return llist;\n }", "public static void pickUpCannon(ClientContext ctx) {\n GameObject cannon = ctx.objects.select().id(6).poll();\n\n if (cannon.inViewport()) {\n cannon.interact((\"Pick-up\"), cannon.name());\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.inventory.select().id(Items.CANNON_BASE_6).count() == 1;\n }\n }, 250, 20);\n }\n }", "public void selectDeal() {\n\t}", "private void select() {\n\t\tif (selected.equals(mealSelect) && !eating) {\n\t\t\tmakeMeal();\n\t\t} else if (selected.equals(snackSelect) && !eating) {\n\t\t\tmakeSnack();\n\t\t} else if (selected.equals(medicineSelect) && !eating){\n\t\t\tmakeMedicine();\n\t\t} else if (selected.equals(playSelect) && !eating){\n\t\t\tmakePlay();\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\tint p,s,t;\n\t\tString ch1=new String();\n\t\tString ch2=new String();\n\t\tString[] myList1= {\"ACE\",\"2\",\"3\",\"4\",\"5\",\"6\",\"7\",\"8\",\"9\",\"10\",\"Jack\",\"Queen\",\"King\"};\n\t\tString[] myList2= {\"Clubs\",\"Diamonds\",\"Heart\",\"Spades\"};\n\t\tp=input.nextInt();\n\t\ts=p/13;\n\t\tt=p%13;\n\t\tch1=myList1[p-1];\n\t\tch2=myList2[t];\n\t\tSystem.out.print(\"The card you picked is \"+ch1+\" of \"+ch2);\n\t}", "SdkMobileVcode selectOne(SdkMobileVcodeExample example);", "public void handleUseToolCard(Match match) {\n try {\n int num;\n System.out.println(\"Digita 9 in qualsiasi momento per tornare al menù principale.\");\n do {\n System.out.println(\"Digita il numero della carta utensile che vuoi utilizzare, tra 1 e 3\");\n num = scanner.nextInt();\n } while ((num < 1 || num > 3) && num != 9);\n if (num == 9)\n chooseAction(controller.getMatch(), controller.getNickname());\n else {\n int id = match.getToolCards().get(num - 1).getId();\n useToolCard(id, match);\n }\n } catch (NullPointerException e) {\n } catch (NumberFormatException e) {\n System.out.println(\"Digita un carattere valido\");\n } catch (IndexOutOfBoundsException e) {\n }\n }", "public UnoCard getPlayerCard(String pid, int choice) {\r\n ArrayList<UnoCard> hand = getPlayerHand(pid);\r\n return hand.get(choice);\r\n }", "void playCurrentStationCard();", "public List<CardPower> pickUpAmmo()throws NoCardAmmoAvailableException {\n List<CardPower> powerups = new ArrayList<>();\n if (position.getCardAmmo() == null){\n throw new NoCardAmmoAvailableException();\n }\n if(position.getCardAmmo()!=null){\n List<Color> ammos = position.getCardAmmo().getAmmo();\n ammos = controlGrabAmmo(ammos);\n ammo.addAll(ammos);\n if(position.getCardAmmo().getCardPower() > 0){\n powerups = new ArrayList<>();\n for(int i=0; i<position.getCardAmmo().getCardPower() && cardPower.size() + i + 1 <= 3; i++)\n powerups.add(game.drawPowerUp());\n cardPower.addAll(powerups);\n }\n game.notifyGrabCardAmmo(this,ammos);\n position.setCardAmmo(null);\n }\n return powerups;\n }", "void displayCards(List<Card> cards, String title);", "public void displayUnusedCards(MapBoard board){\n\t\tSystem.out.println(\"----------------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"|\\t\\t\\t\\t\\tSelect card to play |\");\n\t\tSystem.out.println(\"----------------------------------------------------------------------------------------------\");\n\t\tSystem.out.println(\"\\n\");\n\t\tint local=0;\n\t\tScanner input=new Scanner(System.in);\n\t\tArrayList<Integer> temp=new ArrayList<>();\n\t\tfor (int i = 0; i < playerCards.size(); i++) {\n\t\t\tif (!(playerCards.get(i).used)) {\n\t\t\t\tSystem.out.println(\"\\tPress \\\"\"+(i)+\"\\\"\");\n\t\t\t\tplayerCards.get(i).showPlayerCardDetails();\n\t\t\t\tSystem.out.println();\n\t\t\t\tlocal++;\n\t\t\t\ttemp.add(i);\n\t\t\t}\n\t\t}\n\t\t\n\t\tdo{\n\t\t\tint j=input.nextInt();\n\t\t\t\n\t\t\tif(!(temp.contains(j))){\n\t\t\t\tSystem.out.println(\"<<<<<---Wrong choice--->>>>>\\n\");\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\t//perform action specific to player card\n\t\t\tplayerCards.get(j).used=true;\n\t\t\tplayerCards.get(j).startPlayerCardActions();\n\t\t\tbreak;\n\t\t}while(true);\n\t\t\n\t\t\n\t\t//discard used cards at the end of each turn\n\t\tdiscardUsedCards();\n\t\tif(Start.temparea.size()>0)\n\t\t{\n\t\t\tSystem.out.println(\"--------------------------------------------------------------\");\n\t\t\tSystem.out.println(\"| <<<< Do you want to perform cityarea card ? >>>> |\");\n\t\t\tSystem.out.println(\"--------------------------------------------------------------\");\n\t\t\tSystem.out.println(\"| 1. YES |\");\n\t\t\tSystem.out.println(\"| 2. No |\");\n\t\t\tSystem.out.println(\"--------------------------------------------------------------\");\n\t\t\n\t\t\tdo\n\t\t\t{\n\t\t\t\tint value=input.nextInt();\n\t\t\t\tif(value==1)\n\t\t\t\t{\n\t\t\t\t\t//Start.PerformPlayerCard(board, this);\n\t\t\t\t\tStart.CheckCityAreaCard(board, this);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(value==2)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"<<<<<---Wrong Choice.--->>>>\\n\");\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t\twhile(true);\n\t\t}\n\t\t\n\t}", "void playMonopolyCard(String resource);", "public ChooseCards(ArrayList<CardView> possibleCards, int num, ArrayList<CardView> pickedCards) {\n super(\"choose cards\");\n this.possibleCards = possibleCards;\n this.num = num;\n this.pickedCards = pickedCards;\n }", "public static PaymentChoiceInfo askPayment(int[] costToPay, int[] ammoInAmmoBox, List<PowerUpLM> ammoInPowerUp){\n boolean checkResult;\n possibleChoice = new ArrayList<>();\n paymentSB = new StringBuilder();\n responeForAmmo = new ArrayList<>();\n responseForPowerUp = new ArrayList<>();\n tmpAmmoInAmmoBox = new int[ammoInAmmoBox.length];\n ammoChosen = new int[ammoInAmmoBox.length];\n powerUpIdChosenList = new ArrayList<>();\n tmpCostToPay = new int[costToPay.length];\n tmpAmmoInPowerUp = new ArrayList<>();\n\n //Creazione liste temporanee per tenere traccia quantità \"utilizzate\" e del costo rimanente\n for(i = 0; i < costToPay.length; i++){\n tmpCostToPay[i] = costToPay[i];\n }\n\n for(i = 0; i < ammoInAmmoBox.length; i++){\n tmpAmmoInAmmoBox[i] = ammoInAmmoBox[i];\n }\n\n tmpAmmoInPowerUp.addAll(ammoInPowerUp);\n\n //Costruzione interazione utente\n msg = \"You need to pay with ammo to proceed with this action. \\n\" +\n \"You can use ammo from you ammo box or your powerups.\\n\\n\" +\n \"This is the cost you need to pay: \";\n paymentSB.append(msg);\n\n msg = ToolsView.costToString(tmpCostToPay) + \"\\n\\n\";\n paymentSB.append(msg);\n checkResult = checkIfNeedMore(tmpCostToPay);\n while(checkResult) {\n messageConstructor();\n System.out.print(paymentSB);\n\n String userChoice = ToolsView.readUserChoice(possibleChoice, false);\n\n if (userChoice != null) {\n if (responeForAmmo.contains(userChoice)) {\n switch (userChoice) {\n case red:\n tmpCostToPay[GeneralInfo.RED_ROOM_ID]--;\n tmpAmmoInAmmoBox[GeneralInfo.RED_ROOM_ID]--;\n ammoChosen[GeneralInfo.RED_ROOM_ID]++;\n break;\n case blue:\n tmpCostToPay[GeneralInfo.BLUE_ROOM_ID]--;\n tmpAmmoInAmmoBox[GeneralInfo.BLUE_ROOM_ID]--;\n ammoChosen[GeneralInfo.BLUE_ROOM_ID]++;\n break;\n case yellow:\n tmpCostToPay[GeneralInfo.YELLOW_ROOM_ID]--;\n tmpAmmoInAmmoBox[GeneralInfo.YELLOW_ROOM_ID]--;\n ammoChosen[GeneralInfo.YELLOW_ROOM_ID]++;\n break;\n }\n checkResult = checkIfNeedMore(tmpCostToPay);\n } else if (responseForPowerUp.contains(userChoice)) {\n PowerUpLM powerToDiscard = tmpAmmoInPowerUp.get(Integer.parseInt(userChoice) - 1);\n powerUpIdChosenList.add(powerToDiscard.getIdPowerUp());\n tmpAmmoInPowerUp.remove(Integer.parseInt(userChoice) - 1);\n\n if(powerToDiscard.getGainAmmoColor().equals(AmmoType.RED))\n tmpCostToPay[GeneralInfo.RED_ROOM_ID]--;\n else if(powerToDiscard.getGainAmmoColor().equals(AmmoType.BLUE))\n tmpCostToPay[GeneralInfo.BLUE_ROOM_ID]--;\n else if(powerToDiscard.getGainAmmoColor().equals(AmmoType.YELLOW))\n tmpCostToPay[GeneralInfo.YELLOW_ROOM_ID]--;\n\n //tmpAmmoInPowerUp.remove(Integer.parseInt(userChoice) - 1);\n checkResult = checkIfNeedMore(tmpCostToPay);\n\n if(checkResult){\n paymentSB = new StringBuilder();\n msg = \"This is the cost left to pay: \";\n paymentSB.append(msg);\n\n msg = ToolsView.costToString(tmpCostToPay) + \"\\n\\n\";\n paymentSB.append(msg);\n }\n }\n }\n else\n return null;\n }\n return new PaymentChoiceInfo(ammoChosen, powerUpIdChosenList);\n }", "Card getCard(UUID cardId);", "public void setupRandomCards(ArrayList<String> cardSets)\n\t{\n\t\tArrayList<Card> unrandomized = new ArrayList<Card>();\n\t\tfor (String expansionName : cardSets)\n\t\t{\n\t\t\tswitch(expansionName)\n\t\t\t{\n\t\t\t\tcase(\"base\") :\n\t\t\t\t\tfor (Card card : cards.getBase())\n\t\t\t\t\t\tunrandomized.add(card);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault :\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (unrandomized.size() == 0)\n\t\t{\n\t\t\tLog.important(\"No sets were selected - adding base set\");\n\t\t\tfor (Card card : cards.getBase())\n\t\t\t\tunrandomized.add(card);\n\t\t}\n\t\tLog.important(\"Selecting 10 random cards from card set.\");\n\t\tint index;\n\t\tCard card;\n\t\tfor (int i = 0; i < 10; i++)\n\t\t{\n\t\t\tindex = random.nextInt(unrandomized.size());\n\t card = unrandomized.get(index);\n\t unrandomized.remove(index);\n\t gameCards.add(card);\n\t Log.log(\"Card selected: \" + card.getName());\n\t\t}\n\t\tLog.important(\"Done selecting cards.\");\n\t}", "@Override\n\tpublic Player selectPlayer(List<Player> selectable) {\n\t JSONObject message = new JSONObject();\n\t message.put(\"function\", \"select\");\n\t message.put(\"type\", \"player\");\n JSONArray jArray = new JSONArray();\n selectable.forEach(s->jArray.add(s.getNickname()));\n\t message.put(\"list\", jArray);\n\t this.sendInstruction(message);\n\n\t String selected = this.getResponse();\n\n\t\tif (selected == null || selected.isEmpty()) return null;\n\t\treturn selectable.stream().filter(p->p.getNickname().equals(selected))\n .collect(Collectors.toList()).get(0);\n\t}", "public void chooseCard(String[][] cardsInfo) {\r\n \r\n // Why do we need two cards?!?!\r\n //System.out.println(\"Card is \" + cardsInfo[0][0]);\r\n //System.out.println(\"Card 2 is \" + cardsInfo[1][0]);\r\n\r\n System.out.println(\"\");\r\n if (getMinScore() > 0) {\r\n printScore(\"Your score so far is\");\r\n }\r\n\r\n System.out.println(\" Dealer offers a card.\");\r\n\t\tSystem.out.print(\" Twist or Stick? (T/S) \");\r\n\r\n int choice = 0;\r\n String[] chosenCard = cardsInfo[choice];\r\n\r\n switch (Character.toLowerCase(Keyboard.readChar())) {\r\n\r\n case 'q':\r\n case 'e':\r\n \r\n // This will ask the user if they want to quit.\r\n\t\t\t\tendGameSwitch = true;\r\n break;\r\n\t\t\t\r\n\t\t\tcase 't':\r\n\r\n // Adds to score, and offers another card.\r\n twist(chosenCard);\r\n System.out.println(\" Card was \" + chosenCard[0]);\r\n break;\r\n\r\n default:\r\n\r\n // Dosen't do much, but allows cards to be compared.\r\n \t\t\tstick();\r\n if (getMinScore() > 0) {\r\n printScore(\"Sticking with score of\");\r\n }\r\n break;\r\n }\r\n\t}", "public ChosenItemPage rememberElementAndFindIt(){\n showxButton.click(); //делает выпадющее меню количества выбора показываемых товаров\n waitVisibilityOf(showx12Button); \n showx12Button.click(); //выбираем показывать по 12\n WebElement firstItem=results.get(0);\n waitVisibilityOf(firstItem);\n String name=firstItem.getText(); //name of the product in the first item\n\n Assert.assertEquals(\"Показывать по 12 не установлено\",\n \"Показывать по 12\", showx.getText());\n\n Stash.put(Stash.firstItemName, name); //remeber first item\n fillField(name,headerSearch);\n headerSearch.sendKeys(Keys.ENTER);\n return new ChosenItemPage();\n }", "private static String descriptionPowerUpFoundOnView(String cardName){\n String descToReturn = null;\n for(PowerUpLM card : InfoOnView.getMyPowerUps().getPowerUps()){\n if(cardName.equalsIgnoreCase(card.getName())){\n descToReturn = card.getDescription();\n }\n }\n return descToReturn;\n }", "void askStartItems(ArrayList<LightLeaderCard> quartet, int numResources, boolean faithPoints);", "public void printPermitCards(Player player);", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tLog.d(\"vggg\", \"bjbjb\");\r\n\t\t\t\tgetnumber_Fourgroup6_xuan_clear();\r\n\t\t\t\tgetrand();\r\n\t\t\t\tfor (int i = 0; i < 2; i++) {\r\n\t\t\t\t\tint xuan = rand[i];\r\n\t\t\t\t\tswitch (xuan) {\r\n\t\t\t\t\tcase 0:\r\n\r\n\t\t\t\t\t\tselectxuan0();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tselectxuan1();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tselectxuan2();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\tselectxuan3();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\tselectxuan4();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 5:\r\n\t\t\t\t\t\tselectxuan5();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 6:\r\n\t\t\t\t\t\tselectxuan6();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 7:\r\n\t\t\t\t\t\tselectxuan7();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 8:\r\n\t\t\t\t\t\tselectxuan8();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 9:\r\n\t\t\t\t\t\tselectxuan9();\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\r\n\t\t\t}", "private ActorProfile selectRandomActorProfile(List<ActorProfile> list,\n ActorProfile actorSender)\n throws CannotSelectARandomActorException {\n if(randomSelectorIndex>=MAX_LOOPS_ON_RANDOM_ACTORS){\n throw new CannotSelectARandomActorException(\"The number of tries, \"+randomSelectorIndex+\" is upper than the limit\");\n }\n int randomIndex = (int) (((double)list.size())*Math.random());\n ActorProfile actorSelected = list.get(randomIndex);\n if(actorSelected.getIdentityPublicKey().equals(actorSender.getIdentityPublicKey())){\n randomSelectorIndex++;\n actorSelected = selectRandomActorProfile(list, actorSender);\n }\n /*if(actorSelected.getNsIdentityPublicKey().equals(actorSender.getNsIdentityPublicKey())){\n randomSelectorIndex++;\n actorSelected = selectRandomActorProfile(list, actorSender);\n }*/\n return actorSelected;\n }", "private void selectAvailableDevices() {\n\n ArrayList deviceStrs = new ArrayList();\n final ArrayList<String> devices = new ArrayList();\n\n BluetoothAdapter btAdapter = BluetoothAdapter.getDefaultAdapter();\n // checking and enabling bluetooth\n if (!btAdapter.isEnabled()) {\n Intent enableBtIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_ENABLE);\n startActivityForResult(enableBtIntent, REQUEST_ENABLE_BT);\n } else {\n btAdapter = BluetoothAdapter.getDefaultAdapter();\n Set<BluetoothDevice> pairedDevices = btAdapter.getBondedDevices();\n if (pairedDevices.size() > 0) {\n for (BluetoothDevice device : pairedDevices) {\n deviceStrs.add(device.getName() + \"\\n\" + device.getAddress());\n devices.add(device.getAddress());\n }\n }\n\n // show a list of paired devices to connect with\n final AlertDialog.Builder alertDialog = new AlertDialog.Builder(this);\n ArrayAdapter adapter = new ArrayAdapter(this, android.R.layout.select_dialog_singlechoice,\n deviceStrs.toArray(new String[deviceStrs.size()]));\n alertDialog.setSingleChoiceItems(adapter, -1, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n int position = ((AlertDialog) dialog).getListView().getCheckedItemPosition();\n String deviceAddress = devices.get(position);\n setDeviceAddress(deviceAddress);\n chosen = true;\n //notify user for ongoing connection\n launchRingDialog();\n\n }\n });\n\n alertDialog.setTitle(R.string.blueChose);\n alertDialog.show();\n }\n }", "public void pickSandwhich() {\n includedIngredients.clear();\n if(selectSandwhich.getValue().equals(\"Chicken\")){\n includedIngredients.appendText(\"Fried Chicken\\nSpicy Sauce\\nPickles\");\n sandwhich = new Chicken();\n\n }\n\n if(selectSandwhich.getValue().equals(\"Fish\")){\n includedIngredients.appendText(\"Grilled Snapper\\nCilantro\\nLime\");\n sandwhich = new Fish();\n }\n\n if(selectSandwhich.getValue().equals(\"Beef\")){\n includedIngredients.appendText(\"Roast Beef\\nProvolone Cheese\\nMustard\");\n sandwhich = new Beef();\n }\n orderPrice.clear();\n String price = new DecimalFormat(\"#.##\").format(sandwhich.price());\n orderPrice.appendText(\"$\"+price);\n }", "@Override\n\tpublic WeaponSelection chooseWeapon(List<Weapon> selectable) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"weapon\");\n\t\tJSONArray jArray = new JSONArray();\n\t\tselectable.forEach(s->jArray.add(s.getName()));\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\t\tJSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n\t\treturn parseWeaponSelection(selected);\n\t}", "private void cs5() {\n\t\t\tif(ctx.widgets.widget(519).component(1).text().contains(\"You get some\")){\n\t\t\t\tctx.widgets.widget(519).component(2).click();\n\t\t\t}\n\t\t\tif(ctx.inventory.selectedItem().valid()){\n\t\t\t\tMethod.interactInventory(2511, \"Use\", \"Logs\");\n\t\t\t}else Method.interactInventory(590, \"Use\", \"Tinder box\");\n\t\t\t\n\t\t}", "public Card getCard(int index)\n\t{\n\t\treturn hand[index];\n\t}", "List<IceApp> selectByExample(IceAppExample example);", "List<CraftAdvReq> selectByExample(CraftAdvReqExample example);", "private void triggerDropCard(double percentage) {\n if (isDropped(percentage)) {\n String name;\n int tar = rd.nextInt(7);\n switch (tar) { // 7 is the total type of building card\n case 0:\n name = \"Tower\";\n break;\n case 1:\n name = \"Barracks\";\n break;\n case 2:\n name = \"Campfire\";\n break;\n case 3:\n name = \"Trap\";\n break;\n case 4:\n name = \"VampireCastle\";\n break;\n case 5:\n name = \"ZombiePit\";\n break;\n case 6:\n name = \"Village\";\n break;\n default:\n return;\n }\n loadCard(name);\n }\n }", "private void getUserBedroomsChoice() {\n int checkedChipId = mBinding.chipGroupBedrooms.getCheckedChipId();\n if (checkedChipId == R.id.chip_1_bedroom) {\n mChipBedroomsInput = 1;\n } else if (checkedChipId == R.id.chip_2_bedrooms) {\n mChipBedroomsInput = 2;\n } else if (checkedChipId == R.id.chip_3_bedrooms) {\n mChipBedroomsInput = 3;\n } else if (checkedChipId == R.id.chip_4_bedrooms) {\n mChipBedroomsInput = 4;\n } else if (checkedChipId == R.id.chip_5_bedrooms) {\n mChipBedroomsInput = 5;\n } else {\n mChipBedroomsInput = 0;\n }\n }", "public ArrayList<PrizeCard> scramble() {\n java.util.Random rand1 = new java.util.Random();\n ArrayList<PrizeCard> scrambled = new ArrayList<PrizeCard>();\n scrambled = prizeCards;\n /* write your code here */\n\n\n\n for (int i = 0; i < 40; i++) {\n if (i % 10 == 0) {\n int rand = rand1.nextInt(39 / 10) * 10;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n } else if (i % 2 == 0) {\n int rand = rand1.nextInt(39 / 2) * 2;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n } else {\n int rand = (rand1.nextInt(38 / 2) * 2) + 1;\n PrizeCard temp = prizeCards.get(i);\n scrambled.set(i, prizeCards.get(rand));\n scrambled.set(rand, temp);\n }\n }\n\n return scrambled;\n }", "public void addAccusationSelection(String cardName) {\n SuspectCard suspect = findSuspectCard(cardName);\n RoomCard room = findRoomCard(cardName);\n WeaponCard weapon = findWeaponCard(cardName);\n\n if (suspect != null) {\n this.accusationChoices.setSuspect(suspect);\n logMessage(currentPlayersTurn.getPiece().getName() + \" selected \"\n + cardName + \" as part of their accusation.\");\n return;\n }\n if (room != null) {\n this.accusationChoices.setRoom(room);\n logMessage(currentPlayersTurn.getPiece().getName() + \" selected \"\n + cardName + \" as part of their accusation.\");\n return;\n }\n if (weapon != null) {\n this.accusationChoices.setWeapon(weapon);\n logMessage(currentPlayersTurn.getPiece().getName() + \" selected \"\n + cardName + \" as part of their accusation.\");\n return;\n }\n\n }", "public void showCard(View view) {\n String cardID = view.getTag().toString();\n grimoire.setCard(cardID);\n\n Intent intent = new Intent(GrimoireCardSelectionActivity.this, GrimoireCardActivity.class);\n startActivity(intent);\n }", "public void choosePayToObtainCards(Map<String, HashMap<Integer, String>> payToObtainCards) {\n\n payToObtainController.chooseCards(payToObtainCards);\n\n }", "void selectPlayerFrom(List<Player> players, String title, Consumer<Player> callback);" ]
[ "0.63331616", "0.62234056", "0.6163574", "0.61245453", "0.61166537", "0.61116934", "0.60843617", "0.60738236", "0.60471207", "0.5983314", "0.58907086", "0.58741367", "0.5869999", "0.58467096", "0.58098745", "0.5803102", "0.57751715", "0.5732347", "0.56732804", "0.5644718", "0.56272155", "0.56207365", "0.5618209", "0.5607127", "0.56066024", "0.55977327", "0.55961406", "0.5581614", "0.55792594", "0.5545136", "0.552553", "0.5521297", "0.54841185", "0.5476678", "0.54255146", "0.542364", "0.5422225", "0.5418599", "0.5345398", "0.5332725", "0.5332355", "0.5320167", "0.5301768", "0.53003925", "0.5297077", "0.52839965", "0.5271166", "0.5271081", "0.52618486", "0.5247637", "0.5216967", "0.52168936", "0.51954013", "0.5181457", "0.5176272", "0.5175612", "0.5171285", "0.5154626", "0.5150914", "0.51490855", "0.5143144", "0.51406413", "0.51309097", "0.51285154", "0.5124033", "0.5117429", "0.5116214", "0.5116006", "0.51065", "0.5103424", "0.5103199", "0.5101042", "0.5098657", "0.50935", "0.5089244", "0.50823456", "0.50822115", "0.5079926", "0.50770813", "0.50664324", "0.5046988", "0.50398546", "0.5032917", "0.50291777", "0.50238925", "0.50180334", "0.50102216", "0.500954", "0.500775", "0.5003004", "0.50023663", "0.4991947", "0.4990353", "0.49843737", "0.49832314", "0.49773407", "0.4976964", "0.49724326", "0.4971967", "0.49635482" ]
0.6728084
0
select a weapon card from a given list
@Override public WeaponSelection chooseWeapon(List<Weapon> selectable) { JSONObject message = new JSONObject(); message.put("function", "select"); message.put("type", "weapon"); JSONArray jArray = new JSONArray(); selectable.forEach(s->jArray.add(s.getName())); message.put("list", jArray); this.sendInstruction(message); JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse()); return parseWeaponSelection(selected); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selectWeaponFromInventory(int weaponIndex) {\n }", "private Card murderWeapon(UI ui, Player currentPlayer) {\n CardPanel cardPanel = new CardPanel(ui.getBoard(), ui.getCmd(), \"weapons\");\n ui.getLayers().add(cardPanel, Integer.valueOf(6));\n cardPanel.showPanel();\n ui.getInfo().addText(\"Enter the weapon you think \" + murderer.getName() + \" killed Gunther in \" + location.getName() + \". Listed Below\"); // prompt\n\n // display all the characters to the player that they can select\n for (int i = 0; i < WEAPON_NAMES.length; i++) {\n ui.getInfo().addText(WEAPON_NAMES[i].toString().substring(0,1) + WEAPON_NAMES[i].toString().substring(1).toLowerCase());\n }\n\n WeaponTypes murderWeapon = null;\n String weapon;\n\n // check the input from the user whether it is a weapon, help command, notes command or the wrong input\n do {\n weapon = ui.getCmd().getCommand().toLowerCase();\n switch (weapon) {\n case \"rope\":\n murderWeapon = WeaponTypes.ROPE;\n break;\n case \"dagger\":\n murderWeapon = WeaponTypes.DAGGER;\n break;\n case \"wrench\":\n murderWeapon = WeaponTypes.WRENCH;\n break;\n case \"pistol\":\n murderWeapon = WeaponTypes.PISTOL;\n break;\n case \"candlestick\":\n murderWeapon = WeaponTypes.CANDLESTICK;\n break;\n case \"pipe\":\n murderWeapon = WeaponTypes.PIPE;\n break;\n case \"notes\":\n currentPlayer.getPlayerNotes().showNotes(currentPlayer);\n break;\n case \"help\":\n ui.getInfo().addText(\"Select a weapon from the list above for the questioning!\");\n break;\n default:\n ui.getInfo().addText(\"That was an invalid entry, enter a weapon from the list above for the questioning!\");\n break;\n }\n } while (murderWeapon == null); // while the player input was not a weapon\n\n cardPanel.removePanel();\n ui.getLayers().remove(cardPanel);\n return new Card(murderWeapon.toString()); // return a card with the murder weapon selected by the user\n }", "void chooseCards(List<SortedBag<Card>> options,\n ChooseCardsHandler handler);", "public Card chooseCard(Hand h, Trick t);", "@Override\n\tpublic Powerup choosePowerup(List<Powerup> selectable) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"powerup\");\n\t\tJSONArray jArray = new JSONArray();\n\t\tselectable.forEach(s->jArray.add(s.toJSON()));\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\n\t\tString selected = this.getResponse();\n\n\t\tif (selected == null || selectable.isEmpty()) return null;\n\t\tList<Powerup> matching = selectable.stream().filter(p->p.toJSON().toString().equals(selected))\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn matching.isEmpty() ? null : matching.get(0);\n\t}", "public int chooseCard(){\n if(playable.size() == 1)//checks the size\n return searchCard(0);//returns the only playable card\n else{\n int temp = (int) Math.random()*playable.size();//chooses a random one\n return searchCard(temp);//returns that cards position\n }\n }", "List<Card> selectByExample(CardExample example);", "@Override\n\tpublic WeaponSelection shoot(List<Weapon> loaded) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"shoot\");\n\t\treturn getWeaponSelection(loaded, message);\n\t}", "public void toSelectingWeapon() {\n }", "private void selectCard() {\n\t\tDeck from = isInMainDeck() ? mainDeck : c.getDeck();\n\t\tDeck to = isInMainDeck() ? c.getDeck() : mainDeck;\n\t\t\n\t\tselectedCard = from.getCurrent();\n\t\tif (selectedCard == null) {\n\t\t\treturn;\n\t\t}\n\t\tif (!to.isFull(animators.size())) {\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_CHOOSE_CARD);\n\t\t\tVector3f p = from.getPosFor(selectedCard);\n\t\t\tfrom.removeCurrent();\n\t\t\tanimators.add(new Animator(selectedCard, p, isInMainDeck(), to, to.getLastPos()));\n\t\t} else {\n\t\t\tselectedCard = null;\n\t\t\tSoundPlayer.playSound(SoundMap.MENU_ERROR);\n\t\t}\n\t\tif (from.isEmpty()) {\n\t\t\tcirclePressed();\n\t\t}\n\t}", "public void equipSelectedWeapon() {\n }", "public int askWhatPermitCards(List<PermitCard> cards);", "private WeaponSelection getWeaponSelection(List<Weapon> weapons, JSONObject message) {\n\t\tJSONArray jArray = createJSONWeaponList(weapons);\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\n\t\tJSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n\t\treturn parseWeaponSelection(selected);\n\t}", "public void chooseCards() {\n\n if (availableGods.isEmpty()) {\n createChallenger();\n notifyChoose(cardsChosen, this.getGodListNames(), this.getCurrentTurn().getCurrentPlayer().getNickname());\n } else {\n notifyChoose(true, this.getGodListNames(), this.getCurrentTurn().getCurrentPlayer().getNickname());\n }\n\n }", "private PlayingCard chooseCard(HeartsGraphics g){\t\t\n\t\tHearts.setCurrentPlayer(this);\n\t\t\n\t\tif(number != PLAYER_ONE){\n\t\t\t// A.I. code\n\t\t\tint index;\n\t\t\t\n\t\t\tRandom r = new Random();\n\t\t\tindex = r.nextInt(hand.size());\t\t\t\n\t\t\t\n\t\t\treturn hand.get(index);\t\t\t\n\t\t} else {\n\t\t\treturn getCard(g);\n\t\t}\t\t\n\t}", "Card selectByPrimaryKey(String card);", "public WeaponCard findWeaponCard(String search) {\n for (WeaponCard card : this.getWeaponCards()) {\n if (card.getName().toLowerCase().equals(search.toLowerCase())) {\n return card;\n }\n }\n return null;\n }", "public static void genWeaponList() {\r\n int i;\r\n\r\n auxItemVector.clear();\r\n \r\n if(currentChar == null) return;\r\n\r\n for (i = 0; i < currentChar.getItemsNumber(); i++) {\r\n if(currentChar.getItem(i).getType() == weapon)\r\n auxItemVector.add(currentChar.getItem(i));\r\n }\r\n }", "public void pickUpWeapon(CardWeapon weapon, CardWeapon weaponToWaste, List<CardPower> powerUp) throws InsufficientAmmoException, NoCardWeaponSpaceException {\n List <Color> tmp = new ArrayList<>(weapon.getPrice());\n List <CardPower> tmpPU = new ArrayList<>();\n if(this.weapons.size()== 3)\n if(weaponToWaste==null)\n throw new NoCardWeaponSpaceException();\n if(tmp.size() > 1)\n {\n tmp = tmp.subList(1, tmp.size());\n pay(tmp, powerUp);\n }\n if (weapons.size() == 3){\n this.position.getWeapons().add(weaponToWaste);\n this.weapons.remove(weaponToWaste);\n }\n this.weapons.add(weapon);\n weapon.setShooter(this);\n this.position.getWeapons().remove(weapon);\n if(game != null)\n game.notifyGrabWeapon(this,weapon, weaponToWaste);\n\n }", "private List<Card> chooseMulligan() {\n return this.b.getPlayer(this.b.getLocalteam()).getHand().stream()\n .filter(c -> c.finalStats.get(Stat.COST) > 3 && c.finalStats.get(Stat.SPELLBOOSTABLE) == 0)\n .collect(Collectors.toList());\n }", "public void selectWeapon( final int weaponIndex ) throws RemoteException {\r\n if ( weaponIndex < weapons.length ) {\r\n playerState.weaponIndex = weaponIndex;\r\n playerState.weapon = weapons[ playerState.weaponIndex ];\r\n }\r\n }", "public boolean canGrabWeapon(CardWeapon cw){\n List<Color> priceTmp;\n if(cw.getPrice().size()>1) {\n priceTmp = new ArrayList<>(cw.getPrice().subList(1, cw.getPrice().size()));\n return controlPayment(priceTmp);\n }\n else\n return true;\n }", "public Card pickOnThePioche(ArrayList<Card> pioche) {\n\t\tCard card = null;\n\t\tif (pioche == null) {\n\t\t\tthrow new IllegalArgumentException(\"pickOnThePioche(): the parameter is null\");\n\t\t} else {\n\t\t\tif (pioche.size() > 0) {\n\t\t\t\tint i = random.nextInt(pioche.size());\n\t\t\t\tcard = pioche.get(i);\n\t\t\t} else {\n\t\t\t\tif (pioche.equals(this.worker)) {\n\t\t\t\t\tcard = new Worker(150, \"Stop\", 0, 0, 0, 0, 0);\n\t\t\t\t} else if (pioche.equals(this.building)) {\n\t\t\t\t\tcard = new Building(150, \"Stop\", 0, 0, 0, 0, 0, 0);\n\t\t\t\t} else if (pioche.equals(this.machine)) {\n\t\t\t\t\tcard = new Machine(150, \"Stop\", 0, 0, 0, 0, 0, 0, 0, 0, 0);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn card;\n\t}", "private static String descriptionWeaponFoundOnView(String cardName){\n String descToReturn = null;\n //search between your loaded weapons\n for(WeaponLM weapon : InfoOnView.getMyLoadedWeapons().getLoadedWeapons()){\n if(cardName.equalsIgnoreCase(weapon.getName())){\n descToReturn = detailedDescriptionWeapon(weapon);\n }\n }\n //search between the unloaded weapons of all the players\n for(PlayerDataLM player : InfoOnView.getPlayers()){\n for(WeaponLM weapon : player.getUnloadedWeapons()) {\n if (cardName.equalsIgnoreCase(weapon.getName())){\n descToReturn = detailedDescriptionWeapon(weapon);\n }\n }\n }\n //search between the weapons on the spawn points\n for(SpawnPointLM spawnPoint : InfoOnView.spawnPoints()){\n for(WeaponLM weapon : spawnPoint.getWeapons()){\n if (cardName.equalsIgnoreCase(weapon.getName())){\n descToReturn = detailedDescriptionWeapon(weapon);\n }\n }\n }\n return descToReturn;\n }", "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}", "private void addRandomFoilCard(List<CardCollection.Item> result, int count) {\n List<String> possibleCards = new ArrayList<String>();\n\n // Very Rare foils\n for (int i=0; i<3; ++i) {\n possibleCards.add(\"9_94\"); // Fighters Coming In\n possibleCards.add(\"7_168\"); // Boelo\n possibleCards.add(\"106_11\"); // Chall Bekan\n possibleCards.add(\"8_94\"); // Commander Igar\n possibleCards.add(\"9_110\"); // Janus Greejatus\n possibleCards.add(\"9_118\"); // Myn Kyneugh\n possibleCards.add(\"9_120\"); // Sim Aloo\n possibleCards.add(\"4_116\"); // Bad Feeling Have I\n possibleCards.add(\"1_222\"); // Lateral Damage\n possibleCards.add(\"6_149\"); // Scum And Villainy\n possibleCards.add(\"7_241\"); // Sienar Fleet Systems\n possibleCards.add(\"101_6\"); // Vader's Obsession\n possibleCards.add(\"9_147\"); // Death Star II: Throne Room\n possibleCards.add(\"4_161\"); // Executor: Holotheatre\n possibleCards.add(\"4_163\"); // Executor: Meditation Chamber\n possibleCards.add(\"3_150\"); // Hoth: Wampa Cave\n possibleCards.add(\"2_147\"); // Kiffex (Dark)\n possibleCards.add(\"106_10\"); // Black Squadron TIE\n possibleCards.add(\"110_8\"); // IG-88 In IG-2000\n possibleCards.add(\"106_1\"); // Arleil Schous\n possibleCards.add(\"7_44\"); // Tawss Khaa\n possibleCards.add(\"5_23\"); // Frozen Assets\n possibleCards.add(\"7_62\"); // Goo Nee Tay\n possibleCards.add(\"1_55\"); // Mantellian Savrip\n possibleCards.add(\"4_30\"); // Order To Engage\n possibleCards.add(\"101_3\"); // Run Luke, Run!\n possibleCards.add(\"104_2\"); // Lone Rogue\n possibleCards.add(\"6_83\"); // Kiffex (Light)\n possibleCards.add(\"9_64\"); // Blue Squadron B-wing\n possibleCards.add(\"103_1\"); // Gold Leader In Gold 1\n possibleCards.add(\"9_73\"); // Green Squadron A-wing\n possibleCards.add(\"9_76\"); // Liberty\n possibleCards.add(\"103_2\"); // Red Leader In Red 1\n possibleCards.add(\"106_9\"); // Z-95 Headhunter\n }\n\n // Super Rare foils\n for (int i=0; i<2; ++i) {\n possibleCards.add(\"109_6\"); // 4-LOM With Concussion Rifle\n possibleCards.add(\"9_98\"); // Admiral Piett\n possibleCards.add(\"9_99\"); // Baron Soontir Fel\n possibleCards.add(\"110_5\"); // Bossk With Mortar Gun\n possibleCards.add(\"108_6\"); // Darth Vader With Lightsaber\n possibleCards.add(\"110_7\"); // Dengar With Blaster Carbine\n possibleCards.add(\"1_171\"); // Djas Puhr\n possibleCards.add(\"109_11\"); // IG-88 With Riot Gun\n possibleCards.add(\"110_9\"); // Jodo Kast\n possibleCards.add(\"9_117\"); // Moff Jerjerrod\n possibleCards.add(\"7_195\"); // Outer Rim Scout\n possibleCards.add(\"9_136\"); // Force Lightning\n possibleCards.add(\"3_138\"); // Trample\n possibleCards.add(\"104_7\"); // Walker Garrison\n possibleCards.add(\"2_143\"); // Death Star\n possibleCards.add(\"9_142\"); // Death Star II\n possibleCards.add(\"109_8\"); // Boba Fett In Slave I\n possibleCards.add(\"9_154\"); // Chimaera\n possibleCards.add(\"109_10\"); // Dengar In Punishing One\n possibleCards.add(\"106_13\"); // Dreadnaught-Class Heavy Cruiser\n possibleCards.add(\"9_157\"); // Flagship Executor\n possibleCards.add(\"9_172\"); // The Emperor's Shield\n possibleCards.add(\"9_173\"); // The Emperor's Sword\n possibleCards.add(\"110_12\"); // Zuckuss In Mist Hunter\n possibleCards.add(\"104_5\"); // Imperial Walker\n possibleCards.add(\"8_172\"); // Tempest Scout 1\n possibleCards.add(\"9_178\"); // Darth Vader's Lightsaber\n possibleCards.add(\"110_11\"); // Mara Jade's Lightsaber\n possibleCards.add(\"9_1\"); // Capital Support\n possibleCards.add(\"9_6\"); // Admiral Ackbar\n possibleCards.add(\"2_2\"); // Brainiac\n possibleCards.add(\"109_1\"); // Chewie With Blaster Rifle\n possibleCards.add(\"8_3\"); // Chief Chirpa\n possibleCards.add(\"9_13\"); // General Calrissian\n possibleCards.add(\"8_14\"); // General Crix Madine\n possibleCards.add(\"1_15\"); // Kal'Falnl C'ndros\n possibleCards.add(\"102_3\"); // Leia\n possibleCards.add(\"108_3\"); // Luke With Lightsaber\n possibleCards.add(\"7_32\"); // Melas\n possibleCards.add(\"8_23\"); // Orrimaarko\n possibleCards.add(\"110_3\"); // See-Threepio\n possibleCards.add(\"9_31\"); // Wedge Antilles, Red Squadron Leader\n possibleCards.add(\"8_32\"); // Wicket\n possibleCards.add(\"3_32\"); // Bacta Tank\n possibleCards.add(\"3_34\"); // Echo Base Operations\n possibleCards.add(\"1_52\"); // Kessel Run\n possibleCards.add(\"1_76\"); // Don't Get Cocky\n possibleCards.add(\"1_82\"); // Gift Of The Mentor\n possibleCards.add(\"5_69\"); // Smoke Screen\n possibleCards.add(\"1_138\"); // Yavin 4: Massassi Throne Room\n possibleCards.add(\"111_2\"); // Artoo-Detoo In Red 5\n possibleCards.add(\"9_65\"); // B-wing Attack Squadron\n possibleCards.add(\"9_68\"); // Gold Squadron 1\n possibleCards.add(\"106_4\"); // Gold Squadron Y-wing\n possibleCards.add(\"9_74\"); // Home One\n possibleCards.add(\"9_75\"); // Independence\n possibleCards.add(\"109_2\"); // Lando In Millennium Falcon\n possibleCards.add(\"9_81\"); // Red Squadron 1\n possibleCards.add(\"106_7\"); // Red Squadron X-wing\n possibleCards.add(\"7_150\"); // X-wing Assault Squadron\n possibleCards.add(\"104_3\"); // Rebel Snowspeeder\n possibleCards.add(\"9_90\"); // Luke's Lightsaber\n }\n\n // Ultra Rare foils\n for (int i=0; i<1; ++i) {\n possibleCards.add(\"9_109\"); // Emperor Palpatine\n possibleCards.add(\"9_113\"); // Lord Vader\n possibleCards.add(\"110_10\"); // Mara Jade, The Emperor's Hand\n possibleCards.add(\"9_24\"); // Luke Skywalker, Jedi Knight\n }\n\n filterNonExistingCards(possibleCards);\n Collections.shuffle(possibleCards, _random);\n addCards(result, possibleCards.subList(0, Math.min(possibleCards.size(), count)), true);\n }", "public static Card Card_Choice(Hero hero) {\n System.out.print(hero.getInventory());\n Scanner console = new Scanner(System.in);\n System.out.println(\"\\nWhich card do you choose?\");\n\n int input = console.nextInt();\n console.nextLine();\n Card card = hero.getCard(input-1);\n hero.setInventory(input);\n\n // console.close();\n return card;\n }", "private void pickItem() \n {\n if(currentRoom.getShortDescription() == \"in the campus pub\" && i.picked3 == false)\n {\n i.item3 = true;\n i.picked3 = true;\n System.out.println(\"You picked a redbull drink\");\n }\n else if(currentRoom.getShortDescription() == \"in th hallway\" && i.picked2 == false)\n {\n i.item2 = true;\n i.picked2 = true;\n System.out.println(\"You picked a torch\");\n }\n else if(currentRoom.getShortDescription() == \"in the office\" && i.picked1 == false)\n {\n i.item1 = true;\n i.picked1 = true;\n System.out.println(\"You picked a pair of scissors\");\n }\n else\n System.out.println(\"There is no items in the room!\");\n }", "public Card PlayCard() {\n\t Card ret = null;\n\t Card card;\n\t if (mCardCount > 0) {\n\t\t // To work out what card to play, see what cards can be played\n\t\t \tCard[] playableCards;\n\t\t \tplayableCards = mRules.GetPlayableCards();\n\t\t \tCard[] selectedCards;\n\t\t \tselectedCards = new Card[8];\n\t\t \tint iNumSelectableCards = 0;\n\t\t \tfor (int i = 0; i < 8; i++)\n\t\t \t\tselectedCards[i] = null;\n\t \tfor (int i = 0; i < mCardCount; i++){\n\t \t\tcard = mCard[i];\n\t \t\tswitch (card.GetSuit()){\n\t \t\tcase Card.HEARTS:\n\t \t\t\t\n\t \t\t\t// Card is a heart, can it be played?\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tselectedCards[Rules.HEARTS8] = card;\n\t \t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t// and must be played first\n\t \t\t\t\tplayableCards[Rules.HEARTS8] = new Card(8,Card.HEARTS);\n\t \t\t\t\tplayableCards[Rules.HEARTS6] = new Card(6,Card.HEARTS);\n\t \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(7,Card.CLUBS);\n\t \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(7,Card.DIAMONDS);\n\t \t\t\t\tplayableCards[Rules.SPADES8] = new Card(7,Card.SPADES);\n\t \n\t \t\t\t\treturn card;\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.HEARTS6])){\n\t \t\t\t\t\tselectedCards[Rules.HEARTS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t\t//Log.i(\"\",\" Playing card \" + (card.GetValue()) + \" , \" +card.GetSuit());\n\t \t\t\t\t\t//Log.i(\"\",\" Updating playable card \" + (card.GetValue()-1) + \" , \" +Card.HEARTS);\t \t\t\t\t\t\n\t \t\t\t\t\t//playableCards[Rules.HEARTS6] = new Card(card.GetValue()-1,Card.HEARTS);\n\t \t\t\t\t\t//return card;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.HEARTS8])){\n\t \t\t\t\t\tselectedCards[Rules.HEARTS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t\t//Log.i(\"\",\" Playing card \" + (card.GetValue()) + \" , \" +card.GetSuit());\n\t \t\t\t\t\t//Log.i(\"\",\" Updating playable card \" + (card.GetValue()+1) + \" , \" +Card.HEARTS);\t \t\t\t\t\t\n\t \t\t\t\t\t//playableCards[Rules.HEARTS8] = new Card(card.GetValue()+1,Card.HEARTS);\n\t \t\t\t\t\t//return card;\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\t\n\t \t\t\t\n\t \t\t\tbreak;\n\t \t\tcase Card.DIAMONDS:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.DIAMONDS8])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS6])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS8])){\n\t \t\t\t\t\tselectedCards[Rules.DIAMONDS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t\t \t\t\t\n\t \t\t\t\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase Card.CLUBS:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS6])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n\t \t\t\t\t\tselectedCards[Rules.CLUBS8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t\t \t\t\t\n\t \t\t\tbreak;\n\t \t\t\t\n\t \t\tcase Card.SPADES:\n\t \t\t\t// Is it a seven, it can be played...\n\t \t\t\tif (card.GetValue() == 7){\n\t \t\t\t\tif (card.Equals(playableCards[Rules.SPADES8])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\t \t\t\t\t\n\t \t\t\t}\n\t \t\t\t\n\t \t\t\tif (card.GetValue() < 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.SPADES6])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES6] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\n\t \t\t\tif (card.GetValue() > 7){\n\t \t\t\t\tif (card.Equals( playableCards[Rules.SPADES8])){\n\t \t\t\t\t\tselectedCards[Rules.SPADES8] = card;\n\t \t\t\t\t\tiNumSelectableCards++;\n\t \t\t\t\t}\n\t \t\t\t}\t \t\t\t\n\t \t\t\tbreak;\n\n\t \t\t\t\t \t\t\t\n\t \t\t}\n\t\n\t \t}\t\n\t \t\n\t \t// Now go through the selectable cards and see which is best to be played\n\t \tif (iNumSelectableCards == 0)\n\t \t\treturn ret;\n\t \t\n\t \tint iPos;\n\t \tcard = null;\n\t \tif (iNumSelectableCards == 1){\n\t\t\t \tfor (int i = 0; i < 8; i++)\n\t\t\t \t\tif (selectedCards[i] != null){\n\t\t\t \t\t\tcard = selectedCards[i];\n\t\t\t \t\t\tbreak;\n\t\t\t \t\t}\n\t\t\t \t\t\t \t\n\t \t}\n\t \telse {\n\t\t\t String sDifficulty = mRules.mView.GetSettings().getString(\"Difficulty\", \"0\");// 0 = hard, 1 = easy\n\t\t\t int iDifficulty = Integer.parseInt(sDifficulty);\n\t\t\t if (iDifficulty == EASY){\n\t\t\t \t// Get a random card from the playable ones\n\t\t\t\t\t Random generator = new Random();\n\t\t\t\t\t int randomIndex = generator.nextInt( iNumSelectableCards );\n\t\t\t\t\t int iCount = 0;\n\t\t\t\t\t \tfor (int i = 0; i < 8; i++){\n\t\t\t\t\t \t\tif (selectedCards[i] != null){\n\t\t\t\t\t \t\t\tif (iCount == randomIndex){\n\t\t\t\t\t \t\t\t\tcard = selectedCards[i];\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\telse iCount++;\n\t\t\t\t\t \t\t}\t\n\t\t\t\t\t \t}\n\t\t\t }\n\t\t\t else {\n\t\t\t \tiPos = GetBestCard(selectedCards);\n\t\t\t \tcard = selectedCards[iPos];\n\t\t\t }\n\t \t}\n\t \t\n\t \tswitch (card.GetSuit()){\n \t\tcase Card.HEARTS:\t \t\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\t// and must be played first\n \t\t\t\tplayableCards[Rules.HEARTS8] = new Card(8,Card.HEARTS);\n \t\t\t\tplayableCards[Rules.HEARTS6] = new Card(6,Card.HEARTS);\n \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(7,Card.CLUBS);\n \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(7,Card.DIAMONDS);\n \t\t\t\tplayableCards[Rules.SPADES8] = new Card(7,Card.SPADES);\n \n \t\t\t\treturn card;\n \t\t\t}\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.HEARTS6])){\n \t\t\t\t\tplayableCards[Rules.HEARTS6] = new Card(card.GetValue()-1,Card.HEARTS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.HEARTS8])){ \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.HEARTS8] = new Card(card.GetValue()+1,Card.HEARTS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t \t\t\t\n \t\t\t\n \t\t\tbreak; \n \t\tcase Card.DIAMONDS:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(8,Card.DIAMONDS);\n\t \t\t\t\tplayableCards[Rules.DIAMONDS6] = new Card(6,Card.DIAMONDS);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS6])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.DIAMONDS6] = new Card(card.GetValue()-1,Card.DIAMONDS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.DIAMONDS8])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.DIAMONDS8] = new Card(card.GetValue()+1,Card.DIAMONDS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t\t \t\t\t\n \t\t\t\n \t\t\tbreak; \n \t\t\t\n \t\tcase Card.CLUBS:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.CLUBS8] = new Card(8,Card.CLUBS);\n\t \t\t\t\tplayableCards[Rules.CLUBS6] = new Card(6,Card.CLUBS);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\t \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS6])){\n \t\t\t\t\tplayableCards[Rules.CLUBS6] = new Card(card.GetValue()-1,Card.CLUBS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals(playableCards[Rules.CLUBS8])){\n \t\t\t\t\tLog.i(\"\",\" Updating playable card \" + (card.GetValue()+1) + \" , \" +Card.CLUBS);\n \t\t\t\t\tplayableCards[Rules.CLUBS8] = new Card(card.GetValue()+1,Card.CLUBS);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t\t \t\t\t\n \t\t\tbreak; \n \t\tcase Card.SPADES:\n \t\t\t// Is it a seven, it can be played...\n \t\t\tif (card.GetValue() == 7){\n \t\t\t\tif (playableCards[Rules.HEARTS8] != null && playableCards[Rules.HEARTS8].GetValue() > 7){\n\t \t\t\t\tplayableCards[Rules.SPADES8] = new Card(8,Card.SPADES);\n\t \t\t\t\tplayableCards[Rules.SPADES6] = new Card(6,Card.SPADES);\t \t\t\t\t\t\n \t\t\t\t\treturn card;\n \t\t\t\t}\t \t\t\t\t\n \t\t\t}\n \t\t\t\n \t\t\tif (card.GetValue() < 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.SPADES6])){ \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.SPADES6] = new Card(card.GetValue()-1,Card.SPADES);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\n \t\t\tif (card.GetValue() > 7){\n \t\t\t\tif (card.Equals( playableCards[Rules.SPADES8])){\t \t\t\t\t\t\n \t\t\t\t\tplayableCards[Rules.SPADES8] = new Card(card.GetValue()+1,Card.SPADES);\n \t\t\t\t\treturn card;\n \t\t\t\t}\n \t\t\t}\t \t\t\t\n \t\t\tbreak;\n \t\t\t\n\t \t}\n\t \n\t }\n\t return ret;\n }", "public Card getWeapon(String weaponName) {\n return card.getWeapon(weaponName);\n }", "public Card chooseFromHand(String sign , String colorName){\n Scanner scanner = new Scanner(System.in);\n Card chosenCard = null;\n int cardIndex;\n do{\n System.out.println(\"which cart ? (-1 to pick up card from cardDeck) ?\");\n cardIndex =scanner.nextInt();\n// scanner.nextLine();\n if(cardIndex == -1){\n ArrayList<Card> playableCards = playableNormalCards(sign , colorName);\n if(playableCards.size() == 0){\n return null;\n }\n else {\n System.out.println(\"you still can play : \");\n for(Card card : playableCards){\n System.out.print(card + \" \");\n }\n System.out.println();\n }\n }\n else if(cardIndex<=0 ||cardIndex > hand.size()){\n System.out.println(\"not valid input\");\n System.out.println(\"please try again : \");\n }\n else if(hand.get(cardIndex-1).getSign().equals(\"B\")){\n chosenCard = hand.get(cardIndex -1);\n }\n else if((!(hand.get(cardIndex-1).getSign().equals(sign))) &&\n (!(hand.get(cardIndex-1).getColorName().equals(colorName)))){\n System.out.println(\"not playable card\");\n System.out.println(\"please try again : \");\n }\n else{\n chosenCard = hand.get(cardIndex - 1);\n }\n\n }while(cardIndex <= 0 || cardIndex > hand.size() || chosenCard == null);\n\n\n hand.remove(chosenCard);\n return chosenCard;\n }", "@Override\n protected void receiveInfo(GameInfo info) {\n if (!(info instanceof PalaceGameState)) {\n return;\n }\n PalaceGameState state = new PalaceGameState((PalaceGameState) info);\n PalaceSelectCardAction selectCardAction;\n if (state.getTurn() != this.playerNum) {\n return;\n } else {\n sleep(1000); // make the computer \"think\"\n boolean isBigger = false;// variable to check if they have a valid card\n\n //determines if the cards are valid\n if (!(state.getP2Hand().isEmpty()) && !state.getPlayPilePalaceCards().isEmpty()) {\n for (int i = 0; i < state.getP2Hand().size(); i++) {\n if (state.getP2Hand().get(i).getRank() > state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).getRank()) {\n isBigger = true;\n }\n }\n }\n\n //takes pile if they have no hand cards to play\n if (isBigger == false && !(state.getP2Hand().isEmpty())) {\n PalaceTakePileAction take = new PalaceTakePileAction(this);\n Log.d(\"compPlayer\", \"took the pile\");\n this.game.sendAction(take);\n }\n\n //begins searching for a card to select\n PalaceCard cardToSelect = null;\n\n // check in the case when the play pile and their hand are both not empty\n if (!(state.getPlayPilePalaceCards().isEmpty()) && (!(state.getP2Hand().isEmpty()))) {\n\n // while they haven't selected a card or the card they selected is less than the top card\n // another card is selected at random from their hand\n while (cardToSelect == null ||\n (cardToSelect.getRank() <\n (state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).getRank()) &&\n state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).getRank() >=0)) {\n cardToSelect =\n state.getP2Hand().get((int) (Math.random() * state.getP2Hand().size()));\n }\n\n // selects a card when they are playing from their top cards\n } else if (state.getP2Hand().isEmpty() && (!(state.getP2TopPalaceCards().isEmpty()))) {\n\n //pick any random card if the play pile is empty\n if (state.getPlayPilePalaceCards().isEmpty()) {\n cardToSelect =\n state.getP2TopPalaceCards().\n get((int) (Math.random() * state.getP2TopPalaceCards().size()));\n }\n\n //play pile is not empty so find a valid card\n else {\n\n //checks to see if there is a valid card\n for (int i = 0; i < state.getP2TopPalaceCards().size(); i++) {\n if (state.getP2TopPalaceCards().get(i).getRank() >\n state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).getRank() &&\n state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).getRank() >= 0) {\n isBigger = true;\n }\n }\n\n //finds a random valid card because there is one that is valid\n if (isBigger) {\n while (cardToSelect == null ||\n (cardToSelect.getRank() <\n state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).\n getRank() &&\n state.getPlayPilePalaceCards().\n get(state.getPlayPilePalaceCards().size() - 1).\n getRank() >= 0)) {\n cardToSelect =\n state.getP2TopPalaceCards().\n get((int) (Math.random() * state.\n getP2TopPalaceCards().size()));\n }\n }\n\n //no card to be played so take the pile\n else {\n PalaceTakePileAction take = new PalaceTakePileAction(this);\n Log.d(\"compPlayer\", \"took the pile\");\n this.game.sendAction(take);\n }\n }\n }\n\n //they only have bottom cards left, all are valid to be played so pick a random one\n else if (state.getP2TopPalaceCards().isEmpty()&&state.getP2Hand().isEmpty()) {\n cardToSelect =\n state.getP2BottomPalaceCards().\n get((int) (Math.random() * state.getP2BottomPalaceCards().size()));\n }\n\n //the play pile is empty and they only have hand cards, pick one at random\n else {\n cardToSelect =\n state.getP2Hand().get((int) (Math.random() * state.getP2Hand().size()));\n }\n\n //create and send the select card action with the selected card\n selectCardAction = new PalaceSelectCardAction(this, cardToSelect,\n state.getSelectedPalaceCards());\n this.game.sendAction(selectCardAction);\n\n //rerun selectCardAction if there are multiple of the same card\n if (!state.getP2Hand().isEmpty()) {\n for (int i = 0; i < state.getP2Hand().size(); i++) {\n if (state.getP2Hand().get(i).getRank() == cardToSelect.getRank() &&\n !cardToSelect.equals(state.getP2Hand().get(i))) {\n selectCardAction = new PalaceSelectCardAction(this, state.getP2Hand().get(i),\n state.getSelectedPalaceCards());\n this.game.sendAction(selectCardAction);\n }\n }\n }\n else if (state.getP2Hand().isEmpty() && !state.getP2TopPalaceCards().isEmpty()) {\n for (int i = 0; i < state.getP2Hand().size(); i++) {\n if (state.getP2Hand().get(i).getRank() == cardToSelect.getRank() &&\n !cardToSelect.equals(state.getP2TopPalaceCards().get(i))) {\n selectCardAction = new PalaceSelectCardAction(this, state.getP2TopPalaceCards().get(i),\n state.getSelectedPalaceCards());\n this.game.sendAction(selectCardAction);\n }\n }\n }\n\n //creates and sends the playCardAction\n PalacePlayCardAction playCardAction = new PalacePlayCardAction(this);\n this.game.sendAction(playCardAction);\n }\n\n\n }", "public Vector<EntityWeapon> getWeaponList();", "public static String chooseCardsFromCollection() {\n System.out.println(\"Please select the pokemons you want. By their number and separated by a - (a dash).\");\n System.out.println(\"Ex : 1-6-23-3-87-34...\");\n System.out.println(\"NB: Only 60 ! No more, no less ;) \");\n return keyboardChoice.nextLine();\n }", "void selectCardsFrom(int number, List<Card> cards, String title, Consumer<List<Card>> callback);", "private void getWeaponItem(double x, double y, String option,\r\n\t\t\tBufferedImage itemimage, SpriteGroup items) {\r\n\t\tint weaponoption = Resources.getInt(option);\r\n\t\tItem newGun = new WeaponItem(player, new Sprite(itemimage),\r\n\t\t\t\tweaponoption, x, y);\r\n\t\titems.add(newGun);\r\n\t\tnewGun.setActive(true);\r\n\t}", "private void select(String query)\r\n\t{\r\n\t\ttry \r\n\t\t{\r\n\t\t\tset = statement.executeQuery(query);\r\n\t\t\twhile(set.next())\r\n\t\t\t{\t\r\n\t\t\t\t\tpalicoWeapons.add(new PalicoWeapon(set.getString(\"name\"), set.getInt(\"rarity\"), set.getInt(\"attackMelee\"), set.getInt(\"attackRanged\"), \r\n\t\t\t\t\t\t\tset.getString(\"attackType\"), set.getString(\"elementType\"), set.getInt(\"elementDamage\"), set.getInt(\"Affinity\"), \r\n\t\t\t\t\t\t\tset.getInt(\"defenseBonus\"), set.getString(\"elderSeal\")));\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (SQLException e) \r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.err.println(\"Failed to find palico weapons from database.\");\r\n\t\t}\r\n\t}", "public Card getCard(ArrayList<Card> cards, int index);", "@Override\n void pickCard() {\n\n boolean suitFound = false; // true if player has the suit\n Card cardToBeat; // strongest card on pile\n Card pickedCard = null; // card to throw\n ArrayList<Card> cardsToChooseFrom = new ArrayList<Card>();\n char trump = pitchTable.getTrump();\n\n // find the strongest card on pile\n cardToBeat = pitchTable.getCardToBeat();\n\n // if pile is empty\n if (cardToBeat == null){\n // pick the strongest non trump card\n for (Card card : hand)\n if (card.suit != trump)\n if ((pickedCard == null) || (pickedCard.rank < card.rank))\n pickedCard = card;\n\n // if non trump card not found (means all cards are trump)\n // then pick the strongest card\n if (pickedCard == null)\n for (Card card : hand)\n if ((pickedCard == null) || (pickedCard.rank < card.rank))\n pickedCard = card;\n }\n else { // means leading suit is set already\n // check if player has suit\n for (Card card : hand) {\n if (card.suit == pitchTable.getLeadingSuit())\n suitFound = true;\n }\n\n // if player does not have suit he can play any card\n if (!suitFound)\n cardsToChooseFrom = hand;\n else // if player has suit then cardsToChooseFrom = allowed cards\n for (Card card : hand)\n if ((card.suit == pitchTable.getLeadingSuit()) ||\n card.suit == pitchTable.getTrump())\n cardsToChooseFrom.add(card);\n }\n\n // try to take the trick with the lowest winning card\n // if no winning card then throw the lowest you have\n\n // (trying to take the trick)\n // if card not picked yet\n // then find the lowest card that has the suit and is higher than cardToBeat\n if (pickedCard == null)\n for (Card card : cardsToChooseFrom)\n if ((cardToBeat.suit == card.suit) && (cardToBeat.rank < card.rank))\n if ((pickedCard == null) || (pickedCard.rank > card.rank))\n pickedCard = card;\n\n // (trying to take the trick)\n // if card not picked yet and cardToBeat is not trump\n // then find the lowest trump\n if ((pickedCard == null) && (cardToBeat.suit != trump))\n for (Card card : cardsToChooseFrom)\n if (card.suit == trump)\n if ((pickedCard == null) || (pickedCard.rank > card.rank))\n pickedCard = card;\n\n // (trying to throw the lowest)\n // if still no card picked (means player cannot take the trick)\n // then throw the lowest non trump\n if (pickedCard == null)\n for (Card card : cardsToChooseFrom)\n if (card.suit != trump)\n if ((pickedCard == null) || (pickedCard.rank > card.rank))\n pickedCard = card;\n\n // (trying to throw the lowest)\n // if still no card picked (means all allowed cards are trump)\n // then throw the lowest trump\n if (pickedCard == null)\n for (Card card : cardsToChooseFrom)\n if ((pickedCard == null) || (pickedCard.rank > card.rank))\n pickedCard = card;\n\n if (pickedCard == null)\n System.out.println(\"Error: picked card still null\");\n\n pitchTable.putOnPile(pickedCard);\n hand.remove(pickedCard);\n\n }", "public void pickUp(Item item) {\n this.curItem = item;\n this.curItem.setNonDamagablePlayer(this);\n if (item instanceof PickupableWeaponHolder) {\n this.weapon = ((PickupableWeaponHolder)(item)).getWeapon();\n }\n }", "public void selectCard(int cardNumber, boolean isLast) {\r\n\t\tCard c = null;\r\n\t\t// Selecting from reserve\r\n\t\tint prevGold = currentPlayer.getGold();\r\n\t\tif (cardNumber >= 0 && cardNumber < 4) {\r\n\t\t\tif (cardNumber == 0) { \r\n\t\t\t\tc = GlobalVars.cardDatabase.get(\"Goblin\");\r\n\t\t\t\tif (currentPlayer.getSwords() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSwords(-1*c.getCost());\r\n\t\t\t\t\tdoCardEffects(c);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (cardNumber == 1) {\r\n\t\t\t\tc = reserve.getExplorers().get(0);\r\n\t\t\t\tif (reserve.getExplorers().size() > 0 && currentPlayer.getSkill() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*c.getCost());\r\n\t\t\t\t\tcurrentPlayer.getDiscardPile().add(c);\r\n\t\t\t\t\treserve.removeExplorer();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (cardNumber == 2) {\r\n\t\t\t\tc = reserve.getMercenaries().get(0);\r\n\t\t\t\tif (reserve.getMercenaries().size() > 0 && currentPlayer.getSkill() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*c.getCost());\r\n\t\t\t\t\tcurrentPlayer.getDiscardPile().add(c);\r\n\t\t\t\t\treserve.removeMercenary();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (cardNumber == 3) {\r\n\t\t\t\tc = reserve.getSecretTomes().get(0);\r\n\t\t\t\tif (reserve.getSecretTomes().size() > 0 && currentPlayer.getSkill() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*c.getCost());\r\n\t\t\t\t\tcurrentPlayer.getDiscardPile().add(c);\r\n\t\t\t\t\treserve.removeSecretTome();\r\n\t\t\t\t\tcurrentPlayer.updateSecretTomes(1);\r\n\t\t\t\t} else return;\r\n\t\t\t}\r\n\t\t\t// Add appropriate event description\r\n\t\t\tif (c.getType().contentEquals(\"monster\")) addEvent(\"``\"+currentName+\"`` has slain **\"+c.getName()+\"**\",false);\r\n\t\t\telse addEvent(\"``\"+currentName+\"`` selected **\"+c.getName()+\"**\",false);\r\n\t\t\taddHistory(c.getName().toUpperCase());\r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] \"+currentName+\" selected \"+c.getName());\r\n\t\t} else {\r\n\t\t\t// Check if already bought\r\n\t\t\tif (dungeonRow[cardNumber-4].isBought()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tc = dungeonRow[cardNumber-4];\r\n\t\t\t// Check restrictions\r\n\t\t\tif (c.isDeep() && !currentPlayer.isUnderground()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// Crystal Golem\r\n\t\t\tif (c.getName().contentEquals(\"Crystal Golem\") && !currentPlayer.isInCave()) {\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (c.getType().contentEquals(\"basic\")) {\r\n\t\t\t\tif (currentPlayer.getSkill() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*c.getCost());\r\n\t\t\t\t\tcurrentPlayer.getDiscardPile().add(c);\r\n\t\t\t\t\t//dungeonRow[cardNumber-4] = null;\r\n\t\t\t\t\tdungeonRow[cardNumber-4].setBought(true);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (c.getType().contentEquals(\"gem\")) {\r\n\t\t\t\tint newc = c.getCost();\r\n\t\t\t\tif (currentPlayer.getPlayArea().has(\"Gem Collector\")) {\r\n\t\t\t\t\tnewc -= 2;\r\n\t\t\t\t}\r\n\t\t\t\tif (currentPlayer.getSkill() >= newc) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*newc);\r\n\t\t\t\t\tcurrentPlayer.getDiscardPile().add(c);\r\n\t\t\t\t\tdungeonRow[cardNumber-4].setBought(true);\r\n\t\t\t\t\tcurrentPlayer.updateClankOnBoard(2);\r\n\t\t\t\t\tif (currentPlayer.getSwags() > 0) currentPlayer.updateSkill(2*currentPlayer.getSwags());\r\n\t\t\t\t\t\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (c.getType().contentEquals(\"device\")) {\r\n\t\t\t\tif (currentPlayer.getSkill() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSkill(-1*c.getCost());\r\n\t\t\t\t\t\r\n\t\t\t\t\tdoCardEffects(c);\r\n\t\t\t\t\t\r\n\t\t\t\t\tdungeonRow[cardNumber-4].setBought(true);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (c.getType().contentEquals(\"monster\")) {\r\n\t\t\t\tif (currentPlayer.getSwords() >= c.getCost()) {\r\n\t\t\t\t\tcurrentPlayer.updateSwords(-1*c.getCost());\r\n\r\n\t\t\t\t\tdoCardEffects(c);\r\n\t\t\t\t\t\r\n\t\t\t\t\tdungeonRow[cardNumber-4].setBought(true);\r\n\t\t\t\t} else return;\r\n\t\t\t}\r\n\t\t\t// Acquire effects\r\n\t\t\tif (c.getAcquire() != null) {\r\n\t\t\t\tif (c.getAcquire().contentEquals(\"health\")) {\r\n\t\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\t} else if (c.getAcquire().contentEquals(\"swords\")) {\r\n\t\t\t\t\tcurrentPlayer.updateSwords(1);\r\n\t\t\t\t} else if (c.getAcquire().contentEquals(\"boots\")) {\r\n\t\t\t\t\tcurrentPlayer.updateBoots(1);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// Add appropriate event description\r\n\t\t\tif (c.getType().contentEquals(\"monster\")) addEvent(\"``\"+currentName+\"`` has slain **\"+c.getName()+\"**\",false);\r\n\t\t\telse addEvent(\"``\"+currentName+\"`` selected **\"+c.getName()+\"**\",false);\r\n\t\t\taddHistory(c.getName().toUpperCase());\r\n\t\t\tSystem.out.println(\"[DEBUG LOG/Game.java] \"+currentName+\" selected \"+c.getName());\r\n\t\t}\r\n\t\tif (isLast) {\r\n\t\t\tif (prevGold != currentPlayer.getGold()) {\r\n\t\t\t\tupdateMarketAndTreasures(false);\r\n\t\t\t}\r\n\t\t\tupdateBoardNoImageChange(); // Consider removing later\r\n\t\t\tupdateInfo(currentPlayer, false);\r\n\t\t\tupdateDungeonRow(currentPlayer, false);\r\n\t\t\tupdateEvents(false);\r\n\t\t}\r\n\t}", "default void selectOneCardFrom(List<Card> cards, String title, Consumer<Card> callback) {\n\t\tselectCardsFrom(1, cards, title, list -> callback.accept(list.get(0)));\n\t}", "private void pickCards() throws IOExceptionFromController {\n Deck deck = game.getDeck();\n try {\n if (playerControllers.get(0).getClient().chooseYesNo(\"Do you want to randomize the playable God Powers pool?\")) {\n deck.pickRandom(game.getPlayerNum());\n playerControllers.get(0).getClient().displayMessage(\"Picking cards...\");\n } else {\n ArrayList<Card> choices = playerControllers.get(0).getClient().chooseCards(deck.getCards(), game.getPlayerNum(), null);\n for (Card card : choices) {\n deck.pickCard(card);\n }\n }\n } catch (IOException | InterruptedException e) {\n throw new IOExceptionFromController(e, playerControllers.get(0));\n }\n ArrayList<Card> cardPool = deck.getPickedCards();\n ArrayList<Card> chosenCards = new ArrayList<Card>();\n for (int i = 0; i < game.getPlayerNum(); i++) {\n int j = (i == game.getPlayerNum() - 1) ? 0 : i + 1;\n Card chosenCard;\n try {\n chosenCard = playerControllers.get(j).getClient().chooseCards(cardPool, 1, chosenCards).get(0);\n } catch (IOException | InterruptedException e) {\n throw new IOExceptionFromController(e, playerControllers.get(j));\n }\n cardPool.remove(chosenCard);\n chosenCards.add(chosenCard);\n players.get(j).setGodCard(chosenCard);\n playerControllers.get(j).setGodController(chosenCard.getController());\n broadcastMessage((players.get(j).getId() + \" is \" + chosenCard.getGod() + \" (\" + players.get(j).getColor() + \")\\n\"));\n broadcastMessage(\"Picking cards...\");\n }\n }", "public List<String> getWeaponCardList() {\n return weaponCardList;\n }", "static void weapon(char item)\r\n {\r\n \tString pClass = MainApp.playerClass;\r\n \tif(MainApp.alreadyEquipped == false)\r\n\t\t{\r\n\t\t\tif(pClass == \"Warrior\")\r\n\t\t\t{\r\n\t \t\tif(item == '0')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Warrior Equipped!\");\r\n\t \t\t}\r\n\t \t\t//System.out.print(\"Post Equip Warrior\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Archer\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '&')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Archer Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Archer\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Rogue\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '!')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Rogue Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Rogue\");\r\n\t\t\t}\r\n\t }\r\n }", "@Override\n\tpublic Player selectPlayer(List<Player> selectable) {\n\t JSONObject message = new JSONObject();\n\t message.put(\"function\", \"select\");\n\t message.put(\"type\", \"player\");\n JSONArray jArray = new JSONArray();\n selectable.forEach(s->jArray.add(s.getNickname()));\n\t message.put(\"list\", jArray);\n\t this.sendInstruction(message);\n\n\t String selected = this.getResponse();\n\n\t\tif (selected == null || selected.isEmpty()) return null;\n\t\treturn selectable.stream().filter(p->p.getNickname().equals(selected))\n .collect(Collectors.toList()).get(0);\n\t}", "private void selectAndPickARow(Card card, Player player) {\n\n int selectedRow = 1;\n\n pickARow(card, firstRow, player);\n }", "public int askWhatPoliticCards(List<PoliticCard> cards);", "public void giveOneCard(Deck deck, ArrayList<Cards> table)\n {\n //Burn one card\n deck.getCard();\n\n //Add 1 card\n table.add(deck.getCard());\n }", "public List<Integer> askPlayerCardsToUse();", "public void setWeaponCardsAndPieces() {\n List<WeaponCard> weaponCards = new ArrayList<>(); // empty list for the new weapon cards\n List<WeaponPiece> weaponPieces = new ArrayList<>(); // empty list for the new weapon pieces\n\n Data data = new Data(\"data.json\"); // read data from data.json\n JSONObject weaponData = (JSONObject) data.getJsonData().get(\"Weapons\"); // get the weapon data from the data\n for (int i = 0; i < 6; i++) { // for loop 0 to 5\n String weaponName = String.valueOf(weaponData.get(String.valueOf(i))); // get the weapon name\n //Make and add weaponCard and WeaponPiece to their specified lists.\n weaponCards.add(new WeaponCard(weaponName));\n weaponPieces.add(new WeaponPiece(weaponName));\n }\n //Assign the lists into their class variables\n this.weaponCards = weaponCards;\n this.weaponPieces = weaponPieces;\n }", "public Skills chooseSkill();", "public void printWeaponList(List<Weapon> list) {\n\t\tSystem.out.println(\"**** Available Weapons ****\");\n\t\tSystem.out.println(\"ID\\tName\\t\\tDamage\\tEquipped\");\n\t\tSystem.out.println(\"============================================================================================\");\n\t\tint id = 1;\n\t\tfor(Weapon w : list) {\t\t\n\t\t\tSystem.out.printf(id++ + \"\\t\" + w.getName() + \"\\t\\t\"+ w.getWeaponDmg()+ \"\\t\");\n\t\t\tif(w.isEquipped()) {\n\t\t\t\tSystem.out.println(\"Y\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"N\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println();\t\n\t}", "public void choose(int n) {\r\n\t\tfor (int i = 0; i < mustChoose.size(); i++) {\r\n\t\t\t// Find the specific card\r\n\t\t\tif (mustChoose.get(i).contentEquals(\"Shrine\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(1);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Dragon Shrine\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(2);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tmustTrash.add(\"Dragon Shrine\");\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Treasure Hunter\")) {\r\n\t\t\t\tif (!dungeonRow[n-4].isBought()) {\r\n\t\t\t\t\tdungeonRow[n-4] = mainDeck.getNext();\r\n\t\t\t\t\tmainDeck.removeTop();\r\n\t\t\t\t\tif (dungeonRow[n-4].isHasArrive()) {\r\n\t\t\t\t\t\tdoArriveEffect(dungeonRow[n-4]);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tupdateDungeonRow(currentPlayer, false);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Underworld Dealing\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(1);\r\n\t\t\t\t} else if (n == 2 && currentPlayer.getGold() >= 7) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(-7);\r\n\t\t\t\t\t// Tries to buy 2\r\n\t\t\t\t\tif (reserve.getSecretTomes().size() > 0) {\r\n\t\t\t\t\t\tcurrentPlayer.getDiscardPile().add(reserve.getSecretTomes().get(0));\r\n\t\t\t\t\t\treserve.removeSecretTome();\r\n\t\t\t\t\t\tcurrentPlayer.updateSecretTomes(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (reserve.getSecretTomes().size() > 0) {\r\n\t\t\t\t\t\tcurrentPlayer.getDiscardPile().add(reserve.getSecretTomes().get(0));\r\n\t\t\t\t\t\treserve.removeSecretTome();\r\n\t\t\t\t\t\tcurrentPlayer.updateSecretTomes(1);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tupdateDungeonRow(currentPlayer, false);\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Apothecary\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateSwords(3);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tcurrentPlayer.updateGold(2);\r\n\t\t\t\t} else if (n == 3) {\r\n\t\t\t\t\tupdateHealth(currentPlayer,1);\r\n\t\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Mister Whiskers\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\t// Only dragon attack in the middle of turn\r\n\t\t\t\t\tdragonAttack(cubesPerLevel[attackLevel]);\r\n\t\t\t\t} else if (n == 2) {\r\n\t\t\t\t\tcurrentPlayer.updateClankOnBoard(-2);\r\n\t\t\t\t\tupdateBoardNoImageChange();\r\n\t\t\t\t} else return;\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Wand of Wind\")) {\r\n\t\t\t\tif (n == 1) {\r\n\t\t\t\t\tcurrentPlayer.updateTeleports(1);\r\n\t\t\t\t} else if (n > 1) {\r\n\t\t\t\t\t// Take a secret from nearby room\r\n\t\t\t\t\tif (Utils.has(GlobalVars.adjacentRoomsPerRoom[currentPlayer.getCurrentRoom()],n) || Utils.has(GlobalVars.teleportRoomsPerRoom[currentPlayer.getCurrentRoom()],n)) {\r\n\t\t\t\t\t\tif (mapContents[n].startsWith(\"Minor\") || mapContents[n].startsWith(\"Major\")) {\r\n\t\t\t\t\t\t\trewardPlayer(n);\r\n\t\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t\tupdateBoard();\r\n\t\t\t\t\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else return;\r\n\t\t\t\t} else return;\r\n\t\t\t}\r\n\t\t\tmustChoose.remove(i);\r\n\t\t}\r\n\t\tupdateMarketAndTreasures(false);\r\n\t\tupdateInfo(currentPlayer, false);\r\n\t\t// In case Mister Whiskers ends the game\r\n\t\tif (!checkIfGameIsOver()) {\r\n\t\t\tupdatePlayArea(currentPlayer, false);\r\n\t\t}\r\n\t}", "@Override\n public void performAction(UI client) {\n client.chooseCards(possibleCards, num, pickedCards);\n }", "public interface Strategy {\n public Integer pick_card( List<Card> hand, Suit trump, Suit round );\n}", "public CardChoice getCardChoices(PlayerPiece playerPiece) {\n System.out.println(\"Please select one of the following Rooms (Type in room name):\");\n System.out.println(this.getRoomCards());\n boolean validCard = false;\n RoomCard roomCard = this.findRoomCard(sc.nextLine());\n if (roomCard == null) {\n while (!validCard) {\n System.out.println(\"Invalid input! Please select one of the following Rooms (Type in room name):\");\n System.out.println(this.getRoomCards());\n roomCard = this.findRoomCard(sc.nextLine());\n if (roomCard != null) {\n validCard = true;\n }\n }\n }\n validCard = false;\n WeaponCard weaponCard = this.findWeaponCard(sc.nextLine());\n if (weaponCard == null) {\n while (!validCard) {\n System.out.println(\"Invalid input! Please select one of the following weapons (Type in room name):\");\n System.out.println(this.getRoomCards());\n weaponCard = this.findWeaponCard(sc.nextLine());\n if (weaponCard != null) {\n validCard = true;\n }\n }\n }\n validCard = false;\n SuspectCard suspectCard = this.findSuspectCard(sc.nextLine());\n if (suspectCard == null) {\n while (!validCard) {\n System.out.println(\"Invalid input! Please select one of the following suspect (Type in room name):\");\n System.out.println(this.getRoomCards());\n suspectCard = this.findSuspectCard(sc.nextLine());\n if (suspectCard != null) {\n validCard = true;\n }\n }\n }\n return new CardChoice(playerPiece, roomCard, weaponCard, suspectCard);\n\n }", "public static void pickUpCannon(ClientContext ctx) {\n GameObject cannon = ctx.objects.select().id(6).poll();\n\n if (cannon.inViewport()) {\n cannon.interact((\"Pick-up\"), cannon.name());\n Condition.wait(new Callable<Boolean>() {\n @Override\n public Boolean call() throws Exception {\n return ctx.inventory.select().id(Items.CANNON_BASE_6).count() == 1;\n }\n }, 250, 20);\n }\n }", "public void chooseActionCards(View view) {\n\t\tIntent intent = new Intent(this, ActionCards.class);\n\t\tstartActivity(intent);\n\t}", "public static int chooseCardFromCollection(Collection collection) {\n System.out.println(\"Please select the pokemons numbers you want. (beetween 1 and \" + collection.getAlCardsCollection().size() + \")\");\n return keyboardChoice.nextInt();\n }", "Symbol getActiveCard();", "void askStartItems(ArrayList<LightLeaderCard> quartet, int numResources, boolean faithPoints);", "public void getAttackedByDarknessMagicBook(IEquipableItem item){item.strongAttackTo(this.getOwner());}", "public String randWeapon() {\n\n\t\t// Generates a random number.\n\t\tRandom rand = new Random();\n\n\t\t// A random number between 0 and 2 is generated, and the value at that index in\n\t\t// the Choice array is then saved to the variable compChoice\n\t\tString compChoice = weapArray[rand.nextInt(3)];\n\n\t\t// Makes the users weapon equal to whichever weapon they inputed\n\t\tswitch (compChoice) {\n\n\t\tcase \"Rock\":\n\t\t\tweapon = new Rock();\n\t\t\tbreak;\n\t\tcase \"Paper\":\n\t\t\tweapon = new Paper();\n\t\t\tbreak;\n\t\tcase \"Scissors\":\n\t\t\tweapon = new Scissors();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn compChoice;\n\t}", "List<CraftAdvReq> selectByExample(CraftAdvReqExample example);", "public void selectDeal() {\n\t}", "public static SuggestHand shuffleAndAssignCards(\r\n ArrayList< Player > players )\r\n {\r\n int counter = 0; // Iterator pointer to keep track of the\r\n // cards\r\n SuggestHand solutionCards = null;\r\n\r\n /*\r\n * Grab all the names and types of each card Had to do some list\r\n * manipulation to get the enums into a modifiable list.\r\n */\r\n List< WeaponType > weaponEnums = new ArrayList< WeaponType >(\r\n Arrays.asList( WeaponCard.WeaponType.values() ) );\r\n List< CharacterName > characterEnums = new ArrayList< CharacterName >(\r\n Arrays.asList( CharacterCard.CharacterName.values() ) );\r\n List< RoomName > roomEnums = new ArrayList< RoomName >(\r\n Arrays.asList( RoomCard.RoomName.values() ) );\r\n\r\n //System.out.println( characterEnums.size() );\r\n\r\n // Card equivalents of the enums\r\n ArrayList< CharacterCard > characters = new ArrayList< CharacterCard >();\r\n ArrayList< RoomCard > rooms = new ArrayList< RoomCard >() ;\r\n ArrayList< WeaponCard > weapons = new ArrayList< WeaponCard >();\r\n\r\n for( CharacterName c : characterEnums )\r\n {\r\n characters.add( new CharacterCard( c ) );\r\n }\r\n\r\n for( RoomName r : roomEnums )\r\n {\r\n rooms.add( new RoomCard( r ) );\r\n }\r\n\r\n for( WeaponType w : weaponEnums )\r\n {\r\n weapons.add( new WeaponCard( w ) );\r\n }\r\n\r\n // Shuffle the ArrayLists\r\n Collections.shuffle( weapons );\r\n Collections.shuffle( characters );\r\n Collections.shuffle( rooms );\r\n\r\n //System.out.println( characters.get( 0 ).getCharacterName() );\r\n\r\n // Remove the top card from each card type and store as solution cards\r\n try\r\n {\r\n solutionCards = new SuggestHand( characters.remove( 0 ), rooms.remove( 0 ), weapons.remove( 0 ) );\r\n\r\n } catch( Exception e )\r\n {\r\n System.out.println( \"Error generating solution cards.\" );\r\n e.printStackTrace();\r\n System.exit( 0 );\r\n }\r\n\r\n // Combine all cards into one larger deck\r\n List< Card > deck = new ArrayList< Card >();\r\n deck.addAll( characters );\r\n\r\n deck.addAll( rooms );\r\n\r\n deck.addAll( weapons );\r\n\r\n\r\n // Shuffle the deck and assign to each player sequentially\r\n Collections.shuffle( deck );\r\n\r\n\r\n /*\r\n * Loops through the cards and players, assigning the cards to players\r\n * one by one.\r\n */\r\n for( Card card : deck )\r\n {\r\n players.get( counter % players.size() ).setCard( card );\r\n counter++;\r\n }\r\n\r\n // DEBUG Print statements to show the cards for each player\r\n// for( Player p : players )\r\n// {\r\n// System.out.println( p.PlayerNumber+ \" \" + p.getHand().toString() );\r\n// }\r\n\r\n // Return the three cards to be used as the solution cards.\r\n return solutionCards;\r\n\r\n }", "public void victoryCardFind();", "private static Weapon randomWeapon() {\r\n Random rand = new Random();\r\n int weaponType = rand.nextInt(7);\r\n switch (weaponType) {\r\n case 0: \r\n return new FryingPan();\r\n case 1:\r\n return new SubmachineGun();\r\n case 2:\r\n return new AssaultRifle();\r\n case 3:\r\n return new Pistol();\r\n case 4:\r\n return new Axe();\r\n case 5:\r\n return new Crowbar();\r\n default:\r\n return new Shotgun();\r\n }\r\n }", "public abstract Card giveFavor(int playerIndex);", "public Character pickPlayer()\n {\n System.out.println(\"\\tChoose your fighter!\\n\");\n for(int i = 0; i < characterList.size(); i++)\n {\n Character chara = characterList.get(i);\n System.out.println(\"\\t\" + (i + 1) + \") \" + chara.getFullName());\n }\n System.out.print(\"\\n>>> \");\n player = characterList.get(keyboard.nextInt() - 1);\n characterList.remove(player);\n return player;\n }", "@Override\n public SortedBag<Card> chooseAdditionalCards(List<SortedBag<Card>> options) {\n sendInstruction(MessageId.CHOOSE_ADDITIONAL_CARDS,\n Serdes.CARD_BAG_LIST_SERDE.serialize(options));\n return Serdes.CARD_BAG_SERDE.deserialize(receiveInstruction());\n }", "@Override\n\tpublic WeaponSelection reload(List<Weapon> canLoad) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"load\");\n\t\treturn getWeaponSelection(canLoad, message);\n\t}", "List<SupplyNeed> selectByExample(SupplyNeedExample example);", "private void triggerDropCard(double percentage) {\n if (isDropped(percentage)) {\n String name;\n int tar = rd.nextInt(7);\n switch (tar) { // 7 is the total type of building card\n case 0:\n name = \"Tower\";\n break;\n case 1:\n name = \"Barracks\";\n break;\n case 2:\n name = \"Campfire\";\n break;\n case 3:\n name = \"Trap\";\n break;\n case 4:\n name = \"VampireCastle\";\n break;\n case 5:\n name = \"ZombiePit\";\n break;\n case 6:\n name = \"Village\";\n break;\n default:\n return;\n }\n loadCard(name);\n }\n }", "public void selectCard( int n ) {\r\n\r\n if ( 0 <= n && n < NUM_CARDS ) {\r\n switch ( undoStack.size() ) {\r\n case 2:\r\n undo();\r\n undo();\r\n case 0:\r\n add( n );\r\n break;\r\n case 1:\r\n add( n );\r\n checkMatch();\r\n break;\r\n default:\r\n throw\r\n new RuntimeException(\r\n \"Internal Error: undoStack too big.\" );\r\n }\r\n announce( null );\r\n }\r\n }", "public void passSelectedCard(int index){\n\t\tSystem.out.println(\"PLAYER SELECTED CARD INDEX \" + index);\n\t\twaitingUser = false;\n\t\tplaySubRound(index);\n\n\t\ttodoThread();\n\t}", "public void chooseCard(String[][] cardsInfo) {\r\n \r\n // Why do we need two cards?!?!\r\n //System.out.println(\"Card is \" + cardsInfo[0][0]);\r\n //System.out.println(\"Card 2 is \" + cardsInfo[1][0]);\r\n\r\n System.out.println(\"\");\r\n if (getMinScore() > 0) {\r\n printScore(\"Your score so far is\");\r\n }\r\n\r\n System.out.println(\" Dealer offers a card.\");\r\n\t\tSystem.out.print(\" Twist or Stick? (T/S) \");\r\n\r\n int choice = 0;\r\n String[] chosenCard = cardsInfo[choice];\r\n\r\n switch (Character.toLowerCase(Keyboard.readChar())) {\r\n\r\n case 'q':\r\n case 'e':\r\n \r\n // This will ask the user if they want to quit.\r\n\t\t\t\tendGameSwitch = true;\r\n break;\r\n\t\t\t\r\n\t\t\tcase 't':\r\n\r\n // Adds to score, and offers another card.\r\n twist(chosenCard);\r\n System.out.println(\" Card was \" + chosenCard[0]);\r\n break;\r\n\r\n default:\r\n\r\n // Dosen't do much, but allows cards to be compared.\r\n \t\t\tstick();\r\n if (getMinScore() > 0) {\r\n printScore(\"Sticking with score of\");\r\n }\r\n break;\r\n }\r\n\t}", "@Override\n public PlayingCard chooseCard() throws InterruptedException {\n\n boolean validInput = false;\n int max = hand.getSize();\n String inputStr;\n int inputInt = 0; // not ideal; but compiler is happier\n Scanner sc = new Scanner(System.in);\n\n while (!validInput) {\n this.hand.showCards();\n System.out.println(\"Choose a card from the above\");\n\n inputStr = Game.cleanStringInput(sc.nextLine());\n\n // only supports 0 ~ 9\n if (inputStr.matches(\"\\\\d\")) {\n\n if (inputStr.matches(\"0\")) {\n surrender(sc);\n inputStr = \"1\"; // to throw away last card\n }\n\n // - 1 is to allow usage of 1 - 9 for card selection instead\n // of 0 - 8...this converts card \"1\" into index 0.\n inputInt = (Integer.parseInt(inputStr)) - 1;\n\n // must be LESS than max...if size = 1, then \"max index\" == 0\n if (inputInt < max && inputInt >= 0) {\n validInput = true;\n } else {\n System.out.println(\"OOPS! Enter between 1 and \"\n + (max) + \"!\"); // \"between 1 and 1\" is acceptable\n Thread.sleep(1000);\n\n } // end check for acceptable index\n } else {\n System.out.println(\"OOPS! Enter a single digit ONLY!\");\n Thread.sleep(1000);\n } // end check for digit entered\n } // end \"while-loop\" check for valid input\n\n // if we're here, we can safely return the selected card\n return (PlayingCard) hand.removeCard(inputInt);\n }", "Card getCard(UUID cardId);", "AbstractWeapon createWeaponController(WeaponCard weaponCard);", "@Override\n public void applyItem() {\n Player player;\n if (Battle.getRunningBattle().getTurn() % 2 == 1)\n player = Battle.getRunningBattle().getPlayer2();\n else\n player = Battle.getRunningBattle().getPlayer1();\n\n if (player.getInGameCards().size() == 0)\n return;\n Random random = new Random();\n int randomIndex = random.nextInt(player.getInGameCards().size());\n while (!(getPlayer().getInGameCards().get(randomIndex) instanceof Warrior)) {\n randomIndex = random.nextInt(getPlayer().getInGameCards().size());\n }\n\n Buff buff = new PoisonBuff(1, true);\n buff.setWarrior((Warrior) player.getInGameCards().get(randomIndex));\n Battle.getRunningBattle().getPassiveBuffs().add(buff);\n }", "List<Dish> selectByExample(DishExample example);", "public Skills getChosenSkill();", "public Board.Cards buyCard(Board.Cards card) {\n \t\tif (!affordCard())\n \t\t\treturn null;\n \n \t\t// out of cards\n \t\tif (card == null)\n \t\t\treturn null;\n \n \t\t// deduct resources\n \t\tuseResources(Type.WOOL, 1);\n \t\tuseResources(Type.GRAIN, 1);\n \t\tuseResources(Type.ORE, 1);\n \n \t\tif (card == Cards.VICTORY)\n \t\t\tvictory += 1;\n \t\telse\n \t\t\tnewCards.add(card);\n \n \t\tappendAction(R.string.player_bought_card);\n \n \t\treturn card;\n \t}", "public void fakeCards(){\n this.drawPile = new ArrayList<>();\n drawPile.add(new RemoveActionCard(\"Fernsprechgerät\", (float) 0.5, 4, new SpecialActions(0,0,1) ));\n drawPile.add(new MovingCard(\"Millionärin\", 4, 5, 4, 99, new COLOR[]{COLOR.SAND}));\n drawPile.add(new RemoveMoveSellCard(\"Propellerflugzeug\", 4, 4, 4, 99, new COLOR[]{COLOR.SAND, COLOR.RIVER, COLOR.JUNGLE,COLOR.ENDFIELDJUNGLE,COLOR.ENDFIELDRIVER}));\n drawPile.add(new MovingCard(\"Ureinwohner\", (float) 0.5, 5, 99, 1, new COLOR[]{COLOR.BASECAMP, COLOR.RUBBLE, COLOR.JUNGLE, COLOR.SAND, COLOR.RIVER,COLOR.ENDFIELDJUNGLE,COLOR.ENDFIELDRIVER}));\n drawPile.add(new ActionCard(\"Wissenschaftlerin\", (float) 0.5, 4, new SpecialActions(1,1,0)));\n drawPile.add(new MovingCard(\"Pionier\", (float) 0.5, 5, 5, 99, new COLOR[]{COLOR.JUNGLE,COLOR.ENDFIELDJUNGLE}));\n drawPile.add(new ActionCard(\"Kartograph\", (float) 0.5, 4, new SpecialActions(2,0,0)));\n drawPile.add(new ActionCard(\"Kartograph\", (float) 0.5, 4, new SpecialActions(2,0,0)));\n Collections.shuffle(drawPile);\n }", "public Weapon(){\n \n name = \"Claw\"; // will be treated as a sword\n type = 'R';\n advType = 'G';\n disType = 'B';\n mt = 4;\n hit = 85;\n crit = 0;\n wt = 1;\n isMagic = true;\n \n }", "private void triggerDropItem(double percentage) {\n if (isDropped(percentage)) {\n String name;\n int tar = rd.nextInt(6);\n switch (tar) { // 7 is the total type of building card\n case 0:\n name = \"Sword\";\n break;\n case 1:\n name = \"Stake\";\n break;\n case 2:\n name = \"Staff\";\n break;\n case 3:\n name = \"Shield\";\n break;\n case 4:\n name = \"Helmet\";\n break;\n case 5:\n name = \"Armour\";\n break;\n default:\n return;\n }\n loadItem(name);\n }\n }", "private static String displayItemFromBag(String[] inventory, String option){\r\n String itemToDoAction;\r\n int counter = 1;\r\n if(option.equals(\"Equip\")){\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Short Sword\") || inventory[i].equals(\"Leather Helmet\") || inventory[i].equals(\"Leather Chest Plate\")\r\n || inventory[i].equals(\"Long Sword\") || inventory[i].equals(\"Great Sword\") || inventory[i].equals(\"Iron Helmet\") \r\n ||inventory[i].equals(\"Iron Chest Plate\") || inventory[i].equals(\"Iron Boots\") || inventory[i].equals(\"Iron Gloves\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to equip? \\n(Type the name of the item) \");\r\n }else if(option.equals(\"Sell\")){\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Short Sword\") || inventory[i].equals(\"Leather Helmet\") || inventory[i].equals(\"Leather Chest Plate\")\r\n || inventory[i].equals(\"Long Sword\") || inventory[i].equals(\"Great Sword\") || inventory[i].equals(\"Iron Helmet\") \r\n ||inventory[i].equals(\"Iron Chest Plate\") || inventory[i].equals(\"Iron Boots\") || inventory[i].equals(\"Iron Gloves\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to sell? \\n(Type the name of the item) \");\r\n }else if(option.equals(\"Use\")){\r\n System.out.println(\"we here\");\r\n for(int i = 0; i < inventory.length; i++){\r\n if(inventory[i].equals(\"Healing Potion\") || inventory[i].equals(\"Greater Healing Potion\") || inventory[i].equals(\"Scroll of Fireball\")){\r\n System.out.println(\"\\t\" + counter + \") \" + inventory[i]);\r\n counter++;\r\n }\r\n }\r\n System.out.println(\"\\t\" + counter + \") Exit\");\r\n itemToDoAction = getUserInput(\"Which item would you like to use? \\n(Type the name of the item) \");\r\n }else{\r\n itemToDoAction = \"\";\r\n }\r\n return itemToDoAction;\r\n }", "public void cardsSelected(int button) {\n for (int i = 0; i < mCardsList.size(); i++) {\n if (mCardsList.get(i))\n mCardsList.set(i, false);\n }\n\n mCardsList.set(button, true);\n mClaimRouteView.setRadioButtons();\n mClaimRouteView.toggleChooseButton(true);\n }", "public static Item generate(){\n\n //this method lists a collection of new items. it then uses a random number generator\n //to pick one of the objects, and then returns the object so that the main method\n //can add it to the inventory.\n\n ItemType weapon = ItemType.weapon;\n Item IronSword = new Item(weapon, \"Iron Sword\", 8, 50, 10);\n Item GoldenSword = new Item(weapon, \"Golden Sword\", 10, 75, 15);\n Item AllumSword = new Item(weapon, \"Alluminum Sword\", 6, 35, 8);\n Item BowandQuiver = new Item(weapon, \"Bow & Quiver\", 4, 45, 7);\n Item BattleAxe = new Item(weapon, \"Battle Axe\", 12, 55, 13);\n\n ItemType armor = ItemType.armor;\n Item ChainChest = new Item(armor, \"Chain Mail Chestplate\", 8, 40, 30);\n Item IronChest = new Item(armor, \"Iron Chestplate\", 10, 50, 40);\n Item GoldenChest = new Item(armor, \"Golden Chestplate\", 12, 65, 50);\n Item ChainPants = new Item(armor, \"Chain Mail Pants\", 7, 40, 30);\n Item IronPants = new Item(armor, \"Iron Pants\", 9, 50, 40);\n Item GoldenPants = new Item(armor, \"Golden Pants\", 11, 65, 50);\n Item Helmet = new Item(armor, \"Helmet\", 5, 40, 20);\n\n ItemType other = ItemType.other;\n Item Bandage = new Item(other, \"Bandage\", 1, 2, 0);\n Item Wrench = new Item(other, \"Wrench\", 3, 10, 5);\n Item Bread = new Item(other, \"Bread Loaf\", 2, 4, 0);\n Item Water = new Item(other, \"Water Flask\", 3, 2, 0);\n\n Item Initializer = new Item(other, \"init\", 0, 0, 0);\n\t\tint ItemPick = RandomNum();\n Item chosen = Initializer;\n\n switch (ItemPick){\n case 1:\n chosen = IronSword;\n break;\n case 2:\n chosen = GoldenSword;\n break;\n case 3:\n chosen = AllumSword;\n break;\n case 4:\n chosen = BowandQuiver;\n break;\n case 5:\n chosen = BattleAxe;\n break;\n case 6:\n chosen = ChainChest;\n break;\n case 7:\n chosen = IronChest;\n break;\n case 8:\n chosen = GoldenChest;\n break;\n case 9:\n chosen = ChainPants;\n break;\n\t\t\t case 10:\n chosen = IronPants ;\n break;\n case 11:\n chosen = GoldenPants;\n break;\n case 12:\n chosen = Helmet;\n break;\n case 13:\n chosen = Bandage;\n break;\n case 14:\n chosen = Wrench;\n break;\n case 15:\n chosen = Bread;\n break;\n case 16:\n chosen = Water;\n break;\n }\n\n return chosen;\n }", "public static void giveKIT(Player p) {\r\n\t\tp.getInventory().clear();\r\n\t\tfor (String kitget : kit.keySet()) {\r\n\t\t\tString[] kitdojogador = kit.get(kitget).split(\":\");\r\n\t\t\tString kit1 = kitdojogador[0];\r\n\t\t\tString kit2 = kitdojogador[1];\r\n\t\t\tif (kit1.equalsIgnoreCase(\"PvP\") || kit2.equalsIgnoreCase(\"PvP\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.WOOD_SWORD));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Archer\") || kit2.equalsIgnoreCase(\"Minerador\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.BOW));\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.ARROW, 10));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Barbarian\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.WOOD_SWORD));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Beastmaster\")) {\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.BONE, 3));\r\n\t\t\t\tp.getInventory().addItem(new ItemStack(Material.MONSTER_EGG, 3, EntityType.WOLF.getTypeId()));\r\n\t\t\t}\r\n\t\t\tif (kit1.equalsIgnoreCase(\"Grandpa\")) {\r\n\t\t\t\tItemStack g = new ItemStack(Material.STICK);\r\n\t\t\t\tItemMeta gm =g.getItemMeta();\r\n\t\t\t\tgm.addEnchant(Enchantment.KNOCKBACK, 2, true);\r\n\t\t\t\tg.setItemMeta(gm);\r\n\t\t\t\tp.getInventory().addItem(g);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void showCombatInterface(Player player, int weapon) {\n\t\tString itemName = ItemAssistant.getItemName(weapon);\n\t\tfor (int i = 0; i < unarmedItemNames.length; i++) {\n\t\t\tif (itemName.toLowerCase().equals(unarmedItemNames[i])) {\n\t\t\t\tplayer.playerAssistant.setSidebarInterface(0, 5855); // punch, kick, block\n\t\t\t\tplayer.getPA().sendFrame126(itemName, 5857);\n\t\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\t\tCombatInterface.updateClickedCombatStyle(player);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tboolean doNotChange = false;\n\t\tif ((GameType.isPreEoc() && weapon == 19780)) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 4705);\n\t\t\tplayer.getPA().sendFrame246(426, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 4708);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"whip\")\n\t\t\t\t|| itemName.toLowerCase().contains(\"abyssal tentacle\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 12290); // flick, lash, deflect\n\t\t\tplayer.getPA().sendFrame246(12291, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 12293);\n\t\t\treAdjustCombatStyle(player, \"AGGRESSIVE\", ServerConstants.CONTROLLED);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"chinchompa\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 27500); // first param\n\t\t\tplayer.getPA().sendFrame126(itemName, 27503); // first param + 2\n\t\t\treAdjustCombatStyle(player, \"DEFENSIVE\", ServerConstants.CONTROLLED);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"dagger\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 2276); // stab, lunge, slash, block\n\t\t\tplayer.getPA().sendFrame246(2277, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 2279);\n\t\t}\n\t\telse if (itemName.toLowerCase().contains(\"bow\") || itemName.toLowerCase().contains(\"ballista\") || itemName.toLowerCase().contains(\"cannon\") || itemName.toLowerCase().contains(\"javelin\") || itemName.toLowerCase().contains(\"throwing\") || itemName.toLowerCase().contains(\"dragon thrownaxe\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 1764); // accurate, rapid, longrange\n\t\t\tplayer.getPA().sendFrame246(1765, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 1767);\n\t\t\treAdjustCombatStyle(player, \"DEFENSIVE\", ServerConstants.CONTROLLED);\n\t\t} else if (!itemName.toLowerCase().contains(\"saradomin sword\") && !itemName.toLowerCase().contains(\"blessed sword\") && !itemName.toLowerCase().contains(\"2h\") && (\n\t\t\t\titemName.toLowerCase().contains(\"rapier\") || itemName.toLowerCase().contains(\"sword\") && !itemName.toLowerCase().contains(\"godsword\") && !itemName.toLowerCase()\n\t\t\t\t .contains(\n\t\t\t\t\t\t \"longsword\"))\n\t\t\t\t|| itemName.toLowerCase().contains(\"toktz-xil-ek\") || itemName.toLowerCase().contains(\"toktz-xil-ak\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 2276); // stab, lunge, slash, block\n\t\t\tplayer.getPA().sendFrame246(2277, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 2279);\n\t\t} else if (itemName.toLowerCase().contains(\"staff\") || itemName.toLowerCase().contains(\"wand\") || itemName.toLowerCase().contains(\"staff of light\")\n\t\t\t\t|| itemName.toLowerCase().contains(\"trident\") || itemName.toLowerCase().contains(\"thammaron's sceptre\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 328); // bash, pound, focus.\n\t\t\tplayer.getPA().sendFrame246(329, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 331);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t}\n\t\telse if (itemName.toLowerCase().contains(\"dart\") || itemName.toLowerCase().contains(\"knife\") || itemName.toLowerCase().contains(\"blowpipe\") || itemName.toLowerCase()\n\t\t .contains(\n\t\t\t\t \"toktz-xil-ul\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 4446); // accurate, rapid, longrange\n\t\t\tplayer.getPA().sendFrame246(4447, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 4449);\n\t\t\treAdjustCombatStyle(player, \"DEFENSIVE\", ServerConstants.CONTROLLED);\n\t\t} else if (itemName.toLowerCase().contains(\"pickaxe\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 5570); // spike, impale, smash, block\n\t\t\tplayer.getPA().sendFrame246(5571, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 5573);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"axe\") || itemName.toLowerCase().contains(\"hatchet\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 1698); // chop, hack, smash, block\n\t\t\tplayer.getPA().sendFrame246(1699, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 1701);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"claws\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 7762);\n\t\t\tplayer.getPA().sendFrame246(7763, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 7765);\n\t\t} else if (itemName.toLowerCase().contains(\"halberd\") || itemName.toLowerCase().contains(\"scythe\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 8460); // jab, swipe, fend\n\t\t\tplayer.getPA().sendFrame246(8461, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 8463);\n\t\t\treAdjustCombatStyle(player, \"ACCURATE\", ServerConstants.AGGRESSIVE);\n\t\t} else if (itemName.toLowerCase().contains(\"spear\") || itemName.toLowerCase().contains(\"hasta\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 4679); // lunge, swipe, pound, block\n\t\t\tplayer.getPA().sendFrame246(4680, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 4682);\n\t\t\treAdjustCombatStyle(player, \"AGGRESSIVE ACCURATE\", ServerConstants.CONTROLLED);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"mace\") || itemName.toLowerCase().contains(\"barrelchest\") || itemName.toLowerCase().contains(\"flail\") || itemName.toLowerCase()\n\t\t .contains(\n\t\t\t\t \"cane\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 3796);\n\t\t\tplayer.getPA().sendFrame246(3797, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 3799);\n\t\t} else if (itemName.toLowerCase().contains(\"maul\") || itemName.toLowerCase().contains(\"hammer\") || itemName.toLowerCase().contains(\"tzhaar-ket-om\")\n\t\t || itemName.toLowerCase().contains(\"dinh's\") || itemName.contains(\"spade\") || itemName.contains(\"club\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 425); // war hamer equip.\n\t\t\tplayer.getPA().sendFrame246(426, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 428);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"godsword\") || itemName.toLowerCase().contains(\"2h\") || itemName.toLowerCase().contains(\"saradomin sword\")\n\t\t\t\t|| itemName.toLowerCase().contains(\"sara's blessed sword\")\n\t\t\t\t|| (GameType.isPreEoc() && weapon == 19780)) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 4705); // Godsword.\n\t\t\tplayer.getPA().sendFrame246(426, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 4708);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t} else {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 2423); // chop, slash, lunge, block\n\t\t\tplayer.getPA().sendFrame246(2424, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 2426);\n\t\t}\n\t\tswitch (weapon) {\n\t\t\tcase 20779:\n\t\t\t\tplayer.playerAssistant.setSidebarInterface(0, 425); // war hamer equip.\n\t\t\t\tplayer.getPA().sendFrame246(426, 200, weapon);\n\t\t\t\tplayer.getPA().sendFrame126(itemName, 428);\n\t\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\t\tdoNotChange = true;\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Whip is the only main weapon where the aggressive option is controlled, so make it easier by if i use whip and switch to another weapon, it puts the other weapon\n\t\t//on aggressive instead of longrange/lunge.\n\t\tif (player.wasWearingAggressiveSharedXpWeapon && !doNotChange) {\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t}\n\t\tplayer.wasWearingAggressiveSharedXpWeapon = false;\n\t\tCombatInterface.updateClickedCombatStyle(player);\n\t}", "private void select() {\n\t\tif (selected.equals(mealSelect) && !eating) {\n\t\t\tmakeMeal();\n\t\t} else if (selected.equals(snackSelect) && !eating) {\n\t\t\tmakeSnack();\n\t\t} else if (selected.equals(medicineSelect) && !eating){\n\t\t\tmakeMedicine();\n\t\t} else if (selected.equals(playSelect) && !eating){\n\t\t\tmakePlay();\n\t\t}\n\t\t\n\t}", "@Override\r\n\tprotected int giveCardProtected(ArrayList<Card> hand) {\n\t\treturn getRandomCard(hand);\r\n\t}", "static public void adjustRewardForSelect(ArrayList<RewardItem> rewardList) {\n for (int i = 0; i < rewardList.size(); i++) {\n RewardItem item = rewardList.get(i);\n if (toChangeCard != null) {\n if (item.type == RewardItem.RewardType.CARD) {\n boolean isExist = false;\n for (AbstractCard card : item.cards) {\n if (card.cardID.equals(toChangeCard.cardID)) {\n isExist = true;\n if (card.canUpgrade()) {\n card.upgrade();\n }\n break;\n }\n }\n if (!isExist) {\n boolean isChanged = false;\n // check same rarity\n for (AbstractCard card : item.cards) {\n if (card.rarity == toChangeCard.rarity) {\n if (card.upgraded) {\n toChangeCard.upgrade();\n }\n item.cards.remove(card);\n item.cards.add(toChangeCard);\n isChanged = true;\n break;\n }\n }\n if (!isChanged) {\n AbstractCard removed = item.cards.remove(0);\n if (removed.upgraded) {\n toChangeCard.upgrade();\n }\n item.cards.add(toChangeCard);\n }\n }\n }\n }\n }\n\n if (selectRelic != null) {\n if (AbstractDungeon.player.hasRelic(selectRelic)) {\n selectRelic = null;\n } else {\n boolean isExist = false;\n for (int i = 0; i < rewardList.size(); i++) {\n RewardItem item = rewardList.get(i);\n if (item.type == RewardItem.RewardType.RELIC) {\n if (item.relic.relicId.equals(selectRelic)) {\n isExist = true;\n }\n }\n\n }\n if (!isExist) {\n for (int i = 0; i < rewardList.size(); i++) {\n RewardItem item = rewardList.get(i);\n if (item.type == RewardItem.RewardType.RELIC) {\n rewardList.set(i, new RewardItem(RelicLibrary.getRelic(selectRelic)));\n }\n }\n }\n }\n clearHasRelicInPool();\n }\n }", "@Override\n public List<SpriteDefinition> getChosen () {\n return mySelected.getListView().getItems();\n }", "private Card murdererName(UI ui, Player currentPlayer) {\n CardPanel cardPanel = new CardPanel(ui.getBoard(), ui.getCmd(), \"characters\");\n ui.getLayers().add(cardPanel, Integer.valueOf(6));\n cardPanel.showPanel();\n ui.getInfo().addText(\"Enter the name of the character you want to question from the list below\"); // prompt\n\n // display all the characters to the player that they can select\n for (int i = 0; i < CHARACTER_NAMES.length; i++) {\n ui.getInfo().addText(CHARACTER_NAMES[i].toString().substring(0,1) + CHARACTER_NAMES[i].toString().substring(1).toLowerCase());\n }\n\n CharacterNames murderer = null;\n String murderersName;\n // check the input from the user whether it is a character name, help command, notes command or the wrong input\n do {\n murderersName = ui.getCmd().getCommand().toLowerCase();\n switch (murderersName) {\n case \"mustard\":\n case \"joey\":\n System.out.println(\"MERP\");\n murderer = CharacterNames.JOEY;\n System.out.println(\"DERP\");\n break;\n case \"scarlet\":\n case \"phoebe\":\n murderer = CharacterNames.PHOEBE;\n break;\n case \"white\":\n case \"monica\":\n murderer = CharacterNames.MONICA;\n break;\n case \"green\":\n case \"chandler\":\n murderer = CharacterNames.CHANDLER;\n break;\n case \"plum\":\n case \"ross\":\n murderer = CharacterNames.ROSS;\n break;\n case \"peacock\":\n case \"rachel\":\n murderer = CharacterNames.RACHEL;\n break;\n case \"notes\":\n currentPlayer.getPlayerNotes().showNotes(currentPlayer);\n break;\n case \"help\":\n ui.getInfo().addText(\"Enter the player from the list above to question!\");\n break;\n default:\n ui.getInfo().addText(\"That was an invalid entry, enter ther player from the list above to question!\");\n break;\n }\n } while (murderer == null); // while the player input was not a character\n\n cardPanel.removePanel();\n ui.getLayers().remove(cardPanel);\n return new Card(murderer.toString()); // return a card with the murderer selected by the user\n }", "public Card getCard(int index)\n\t{\n\t\treturn hand[index];\n\t}", "public ChooseCards(ArrayList<CardView> possibleCards, int num, ArrayList<CardView> pickedCards) {\n super(\"choose cards\");\n this.possibleCards = possibleCards;\n this.num = num;\n this.pickedCards = pickedCards;\n }" ]
[ "0.6823554", "0.63266", "0.63047075", "0.6288161", "0.62780464", "0.6247104", "0.62310743", "0.61971104", "0.61731976", "0.605939", "0.603188", "0.59692097", "0.59234357", "0.59008926", "0.58771133", "0.57878596", "0.5759624", "0.57526946", "0.57489336", "0.57244396", "0.5716487", "0.5646465", "0.5631808", "0.5616101", "0.5614942", "0.56093585", "0.5599548", "0.5591496", "0.5589342", "0.55887896", "0.55697715", "0.55682313", "0.55475175", "0.5533226", "0.5525296", "0.55214775", "0.55010575", "0.5497174", "0.5492985", "0.54886496", "0.5479382", "0.5471912", "0.54699534", "0.5424564", "0.5419107", "0.5418994", "0.5413053", "0.53987104", "0.5377465", "0.5376423", "0.5373939", "0.53695107", "0.5361334", "0.53593004", "0.533424", "0.53341323", "0.53200823", "0.5304607", "0.5291972", "0.5286893", "0.5285618", "0.5276133", "0.5272262", "0.5263889", "0.5246534", "0.5226239", "0.5223486", "0.5216359", "0.52134216", "0.520688", "0.5190832", "0.51898277", "0.51891875", "0.51874876", "0.5185556", "0.51773053", "0.5176684", "0.5169768", "0.51665735", "0.51629514", "0.5155675", "0.5148674", "0.5147834", "0.5140075", "0.51358443", "0.5131684", "0.5128108", "0.5127552", "0.5104562", "0.50991416", "0.5089278", "0.5086685", "0.50851303", "0.50692594", "0.50609314", "0.50529575", "0.5050764", "0.50493103", "0.50485134", "0.5046261" ]
0.66621506
1
select a weapon to reload
@Override public WeaponSelection reload(List<Weapon> canLoad) { JSONObject message = new JSONObject(); message.put("function", "select"); message.put("type", "load"); return getWeaponSelection(canLoad, message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void reloadWeapon() {\r\n Timer timer = new Timer();\r\n Colt.playReloadSound();\r\n timer.schedule(new FinishReload(), 2000);\r\n }", "public void toSelectingWeapon() {\n }", "public void equipSelectedWeapon() {\n }", "public void selectWeaponFromInventory(int weaponIndex) {\n }", "public void selectWeapon( final int weaponIndex ) throws RemoteException {\r\n if ( weaponIndex < weapons.length ) {\r\n playerState.weaponIndex = weaponIndex;\r\n playerState.weapon = weapons[ playerState.weaponIndex ];\r\n }\r\n }", "@Override\n\tpublic WeaponSelection shoot(List<Weapon> loaded) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"shoot\");\n\t\treturn getWeaponSelection(loaded, message);\n\t}", "public void switchWeapon() {\n\t\tif (type == 0) {\n\t\t\ttype = 1;\n\t\t\tthis.setImage(getFilename(type, held));\n\t\t\tsetFocus();\n\t\t} else {\n\t\t\ttype = 0;\n\t\t\tthis.setImage(getFilename(type, held));\n\t\t\tsetFocus();\n\t\t} // end else\n\t}", "public void reloadWeapon(int index) {\n\n Weapon weaponToReload = this.weaponList.get(index);\n\n if (weaponToReload == null)\n throw new IllegalArgumentException(\"No index found\");\n\n ArrayList<Color> cost = weaponToReload.getCost();\n\n\n //first I take the ammo from the player\n this.nBlueAmmo -= Collections.frequency(cost, Color.BLUE);\n this.nRedAmmo -= Collections.frequency(cost, Color.RED);\n this.nYellowAmmo -= Collections.frequency(cost, Color.YELLOW);\n\n //reload the weapon\n this.weaponList.get(index).reload();\n\n }", "public void setWeapon(int weapon)\n\t{\n\t\tthis.weapon = weapon;\n\t}", "public void pickUp(Item item) {\n this.curItem = item;\n this.curItem.setNonDamagablePlayer(this);\n if (item instanceof PickupableWeaponHolder) {\n this.weapon = ((PickupableWeaponHolder)(item)).getWeapon();\n }\n }", "public void reload()\n\t{\n\t\tammo = maxAmmo;\n\t}", "public void changeWeapon(String weaponName)\r\n\t{\r\n\t\tm_weapon.changeAttack(weaponName);\r\n\t}", "public void changeWeapon(Graphics graphics) {\r\n\t\tlevelManager.changeWeapon(graphics);\r\n\t}", "public void setCurrentWeapon(Pair<Byte,Short> weapon){\n currentWeapon = weapon;\n }", "@Test\n void reload() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setTurn(true);\n WeaponFactory wf = new WeaponFactory(\"machine gun\");\n Weapon w = new Weapon(\"machine gun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n w.setLoaded(false);\n p.getPh().getWeaponDeck().addWeapon(w);\n p.reload(w);\n assertTrue(p.getPh().getWeaponDeck().getWeapon(w.getName()).getLoaded());\n }", "public void setEquippedWeapon(String w)\n\t{\n\t\tstrEquippedWeapon = w;\n\t\t\n\t}", "static void weapon(char item)\r\n {\r\n \tString pClass = MainApp.playerClass;\r\n \tif(MainApp.alreadyEquipped == false)\r\n\t\t{\r\n\t\t\tif(pClass == \"Warrior\")\r\n\t\t\t{\r\n\t \t\tif(item == '0')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Warrior Equipped!\");\r\n\t \t\t}\r\n\t \t\t//System.out.print(\"Post Equip Warrior\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Archer\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '&')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Archer Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Archer\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Rogue\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '!')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Rogue Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Rogue\");\r\n\t\t\t}\r\n\t }\r\n }", "public String randWeapon() {\n\n\t\t// Generates a random number.\n\t\tRandom rand = new Random();\n\n\t\t// A random number between 0 and 2 is generated, and the value at that index in\n\t\t// the Choice array is then saved to the variable compChoice\n\t\tString compChoice = weapArray[rand.nextInt(3)];\n\n\t\t// Makes the users weapon equal to whichever weapon they inputed\n\t\tswitch (compChoice) {\n\n\t\tcase \"Rock\":\n\t\t\tweapon = new Rock();\n\t\t\tbreak;\n\t\tcase \"Paper\":\n\t\t\tweapon = new Paper();\n\t\t\tbreak;\n\t\tcase \"Scissors\":\n\t\t\tweapon = new Scissors();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn compChoice;\n\t}", "@Override\n public void useWeapon(ResponseInput responseMessage)\n {\n basicMode(((ResponseRocketLauncher) responseMessage).getTargetPlayerBasicMode(), ((ResponseRocketLauncher) responseMessage).getTargetSquareCoordinatesAsStringPlayerToMove(), ((ResponseRocketLauncher) responseMessage).getTargetSquareCoordinatesAsStringTargetToMove(), ((ResponseRocketLauncher) responseMessage).isWithFragWarhead() ) ;\n }", "public void changeGuns(int mode, EntityManager manager) {\r\n manager.setAmmoType(mode);\r\n firingMode = mode;\r\n shotTimeout = 0;\r\n this.setTexture(textureList.get(mode));\r\n switch (mode) {\r\n case 0:\r\n shotInterval = 300;\r\n break;\r\n case 1:\r\n shotInterval = 600;\r\n break;\r\n case 2:\r\n shotInterval = 10000;\r\n break;\r\n case 3:\r\n shotInterval = 3000;\r\n break;\r\n case 4:\r\n shotInterval = 300;\r\n break;\r\n case 5:\r\n shotInterval = 1500;\r\n break;\r\n }\r\n }", "private static Weapon randomWeapon() {\r\n Random rand = new Random();\r\n int weaponType = rand.nextInt(7);\r\n switch (weaponType) {\r\n case 0: \r\n return new FryingPan();\r\n case 1:\r\n return new SubmachineGun();\r\n case 2:\r\n return new AssaultRifle();\r\n case 3:\r\n return new Pistol();\r\n case 4:\r\n return new Axe();\r\n case 5:\r\n return new Crowbar();\r\n default:\r\n return new Shotgun();\r\n }\r\n }", "private Card murderWeapon(UI ui, Player currentPlayer) {\n CardPanel cardPanel = new CardPanel(ui.getBoard(), ui.getCmd(), \"weapons\");\n ui.getLayers().add(cardPanel, Integer.valueOf(6));\n cardPanel.showPanel();\n ui.getInfo().addText(\"Enter the weapon you think \" + murderer.getName() + \" killed Gunther in \" + location.getName() + \". Listed Below\"); // prompt\n\n // display all the characters to the player that they can select\n for (int i = 0; i < WEAPON_NAMES.length; i++) {\n ui.getInfo().addText(WEAPON_NAMES[i].toString().substring(0,1) + WEAPON_NAMES[i].toString().substring(1).toLowerCase());\n }\n\n WeaponTypes murderWeapon = null;\n String weapon;\n\n // check the input from the user whether it is a weapon, help command, notes command or the wrong input\n do {\n weapon = ui.getCmd().getCommand().toLowerCase();\n switch (weapon) {\n case \"rope\":\n murderWeapon = WeaponTypes.ROPE;\n break;\n case \"dagger\":\n murderWeapon = WeaponTypes.DAGGER;\n break;\n case \"wrench\":\n murderWeapon = WeaponTypes.WRENCH;\n break;\n case \"pistol\":\n murderWeapon = WeaponTypes.PISTOL;\n break;\n case \"candlestick\":\n murderWeapon = WeaponTypes.CANDLESTICK;\n break;\n case \"pipe\":\n murderWeapon = WeaponTypes.PIPE;\n break;\n case \"notes\":\n currentPlayer.getPlayerNotes().showNotes(currentPlayer);\n break;\n case \"help\":\n ui.getInfo().addText(\"Select a weapon from the list above for the questioning!\");\n break;\n default:\n ui.getInfo().addText(\"That was an invalid entry, enter a weapon from the list above for the questioning!\");\n break;\n }\n } while (murderWeapon == null); // while the player input was not a weapon\n\n cardPanel.removePanel();\n ui.getLayers().remove(cardPanel);\n return new Card(murderWeapon.toString()); // return a card with the murder weapon selected by the user\n }", "@Override\n\tpublic WeaponSelection chooseWeapon(List<Weapon> selectable) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"weapon\");\n\t\tJSONArray jArray = new JSONArray();\n\t\tselectable.forEach(s->jArray.add(s.getName()));\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\t\tJSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n\t\treturn parseWeaponSelection(selected);\n\t}", "public void refreshAttack(){\n\t\tattackFromComboBox.repaint();\n\t\tnumberOfArmies[0].repaint();\n\t\tnumberOfArmies[4].repaint();\n\t\tattackToComboBox.repaint();\n\t\tthis.repaint();\n\t}", "public void updateWeapon(int currentWeaponId) {\r\n\t\tcollectionManager.updateWeapon(currentWeaponId);\r\n\t}", "public Weapon useWeapon() {\n\t\tWeapon weapon = weaponList.get(weaponList.size() - 1);\n\t\tif(weaponList.size() > 1){\n\t\t\tweaponList.remove(weaponList.size() - 1);\n\t\t}\n\t\telse {\n\t\t}\n\t\treturn weapon;\n\t}", "public static void genWeaponList() {\r\n int i;\r\n\r\n auxItemVector.clear();\r\n \r\n if(currentChar == null) return;\r\n\r\n for (i = 0; i < currentChar.getItemsNumber(); i++) {\r\n if(currentChar.getItem(i).getType() == weapon)\r\n auxItemVector.add(currentChar.getItem(i));\r\n }\r\n }", "public List<WeaponCard> checkReload(Player player)\n {\n List<WeaponCard> reloadableWeapons = new LinkedList<>(); //This is the weaponcard list i will return\n /*\n * For each weapon i check if the player has enough ammo to reload that weapon.\n * After a player choose a weapon to reload i have to delete the ammo from the player and reiterate this method.\n */\n for (WeaponCard weaponCard: player.getWeaponCardList())\n {\n if (weaponCard.getBlueAmmoCost()<=player.getAmmoBlue() && weaponCard.getRedAmmoCost()<=player.getAmmoRed() && weaponCard.getYellowAmmoCost()<=player.getAmmoYellow() && !weaponCard.isLoaded())\n {\n reloadableWeapons.add(weaponCard);\n }\n }\n\n return reloadableWeapons;\n }", "@Override\n public void equip(@NotNull IWeapon weapon) {\n weapon.equipToMage(this);\n }", "private void select()\n\t{\n\t\tSoundPlayer.playClip(\"select.wav\");\n\t if(currentChoice == 0)\n\t\t{\n\t\t\tsuper.isFadingOut = true;\n\t\t\tSoundPlayer.animVolume(-40.0F);\n\t\t}\n\t\tif(currentChoice == 1)\n\t\t{\n\t\t\tbottomFadeOut = true;\n\t\t\t//gsm.setState(GameStateManager.CONTROLSTATE);\n\t\t}\n\t\tif(currentChoice == 2)\n\t\t{\n\t\t\tbottomFadeOut = true;\n\t\t\t//gsm.setState(GameStateManager.CREDITSTATE);\n\t\t}\n\t\tif(currentChoice == 3)\n\t\t{\n\t\t\tnew Timer().schedule(new TimerTask()\n\t\t\t{\n\t\t\t\tpublic void run()\n\t\t\t\t{\n\t\t\t\t\tSystem.exit(0);\t\t\n\t\t\t\t}\n\t\t\t}, 500);\n\t\t}\n\t}", "public void attack() {\n if (activeWeapon == null) {\n return;\n }\n attacking = true;\n }", "private void getWeaponItem(double x, double y, String option,\r\n\t\t\tBufferedImage itemimage, SpriteGroup items) {\r\n\t\tint weaponoption = Resources.getInt(option);\r\n\t\tItem newGun = new WeaponItem(player, new Sprite(itemimage),\r\n\t\t\t\tweaponoption, x, y);\r\n\t\titems.add(newGun);\r\n\t\tnewGun.setActive(true);\r\n\t}", "public void weaponAbility() {\n \tlogger.info(\"weapon abilities aren't implemented yet. Using slash ability\");\n \t//ability(map.getCurrentTurnHero().getWeaponAbility());\n \tability(new Slash());\n }", "public void equip();", "public boolean isSelectingWeapon() {\n return false;\n }", "private void setWeapons()\n {\n sewers.setWeapon(woodSword);\n promenade.setWeapon(woodSword);\n depths.setWeapon(rustedSword);\n forest.setWeapon(goldSword);\n bridge.setWeapon(silverSpear);\n ramparts.setWeapon(infantryBow);\n }", "public String getSelectedWeaponName() {\n return \"\";\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tLoaitietkiem ltk = (Loaitietkiem)comboBox.getSelectedItem();\n\t\t\t\tltkChoose = ltk;\n\t\t\t}", "@Override\n\tprotected void onActivityResult(int requestCode, int resultCode, Intent data) {\n\t\tif (data == null || resultCode != RESULT_OK)\n\t\t\treturn;\n\t\tString type = \"Weapon\";\n\t\tString id = \"\";\n\t\tBundle bundle = data.getExtras();\n\t\tif (bundle != null) {\n\t\t\ttype = bundle.getString(\"type\");\n\t\t\tid = bundle.getString(\"id\");\n\t\t}\n\t\tif (id.isEmpty())\n\t\t\treturn;\n\t\tItem newitem = null;\n\t\tswitch (requestCode) {\n\t\tcase ACT_RESULT_CHOOSE_EQUIPMENT:\n\t\t\tif (mEditingView == null)\n\t\t\t\treturn;\n\t\t\tString oldid = mEditingView.getEquipmentId();\n\n\t\t\t// Find first item with same id and replace it.\n\t\t\tList<Item> list = mDweller.mEquipment.getList();\n\t\t\tif (list != null) {\n\t\t\t\tfor (Item i : list) {\n\t\t\t\t\tif (!i.mId.equals(oldid))\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\ti.mId = id;\n\t\t\t\t\ti.mType = type;\n\t\t\t\t\tnewitem = i;\n\t\t\t\t\tconfigView(mEditingView, i, -1);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmEditingView = null;\n\t\t\tbreak;\n\t\tcase ACT_RESULT_CHOOSE_WEAPON:\n\t\t\tEquipmentButtonView weaponView = (EquipmentButtonView) findViewById(R.id.equiped_weapon);\n\t\t\tif (type.equals(\"Weapon\")) {\n\t\t\t\tmDweller.mEquipedWeapon.mId = id;\n\t\t\t\tconfigView(weaponView, mDweller.mEquipedWeapon, 1);\n\t\t\t\tnewitem = mDweller.mEquipedWeapon;\n\t\t\t}\n\t\t\tbreak;\n\t\tcase ACT_RESULT_CHOOSE_OUTFIT:\n\t\t\tEquipmentButtonView outfitView = (EquipmentButtonView) findViewById(R.id.equiped_outfit);\n\t\t\tif (type.equals(\"Outfit\")) {\n\t\t\t\tmDweller.mEquipedOutfit.mId = id;\n\t\t\t\tconfigView(outfitView, mDweller.mEquipedOutfit, 0);\n\t\t\t\tnewitem = mDweller.mEquipedOutfit;\n\t\t\t}\n\t\t\tbreak;\n\t\t}\n\n\t\tif (newitem == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\tnewitem.update();\n\t\t} catch (JSONException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void chooseSprite()\r\n\t{\r\n\t\t//Ensure pedestrian sprites exist\r\n\t\tif (sprites.isEmpty()) {\r\n\t\t\tSystem.err.println(\"ERROR: No pedestrian sprites have been loaded\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\t//Select a random sprite\r\n\t\tint index = (int) Math.floor( Math.random()*sprites.size() );\r\n\t\tspriteName = sprites.get(index);\r\n\t\tsetSprite(\"pedestrians/\"+spriteName);\r\n\t}", "public void useWeapon(Character victim) {\n Weapons weapons = this.getInventory().getFirstWeapon();\n if (weapons == null)\n this.hit(victim);\n else {\n int vStrength = victim.getStrength();\n int mStrength = this.getStrength() * Hero.HERO_BONUS_OVER_ALL_CHARS + weapons.getDamage();\n if (vStrength >= mStrength) return;\n int strDif = mStrength - vStrength;\n int vLife = victim.getLife();\n vLife -= strDif;\n victim.setLife(vLife);\n this.getInventory().removeItems(weapons);\n }\n }", "public RocketLauncher( Color color, int weaponID, boolean isLoaded) {\n super(color, weaponID, isLoaded);\n this.name = \"Lanciarazzi\";\n yellowAmmoCost = 0;\n blueAmmoCost = 0;\n redAmmoCost = 2;\n }", "public WeaponType getSelectedWeaponType() {\n return WeaponType.NULL;\n }", "public void updatAttackArmies(){\n\t\t\n\t\tfinal String s = attackToComboBox.getSelectedItem().toString();\n\t\tCountry country = MainPlayScreen.this.game.getBoard().getCountryByName(s);\n\t\t\t\n\t\tfinal int armies = MainPlayScreen.this.game.countryArmies.get(country);\n\t\tSystem.out.println(s + \" Defender Armies: \" + armies);\n\t\t\n\t\tif( armies == 1){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t}// end of if statement\n\t\t\n\t\telse if( armies == 2){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\t\n\t\t} // end of else if statement\n\t\t\n\t\telse{\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\tnumberOfArmies[5].addItem(3);\n\t\t\t\n\t\t}// end of else statement\n\t\tnumberOfArmies[5].repaint();\n\t}", "public boolean canReloadWeapon(CardWeapon cw){\n List<Color> priceTmp;\n priceTmp = new ArrayList<>(cw.getPrice());\n return controlPayment(priceTmp);\n }", "public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}", "public void changeActiveMonster(){\n //todo\n }", "@Override \n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tString newSelection =comboBox.getSelectedItem().toString(); \n\t\tSystem.out.println(newSelection);\n\t\t//check if it has actually changed.\n\t\tPath path = Paths.get(this.HotkeyFile);\n\t\tif (!newSelection.equals(path.getFileName().toString()))\n\t\t{\n\t\t\tSystem.out.println(\"New file chosen\");\n\t\t\n\t\t\t//reload new script to ahk program...\n\t\t\t//is ahk running?\n\t\t\ttry \n\t\t\t{\n\t\t\t\tif(HotKeyApp.isProcessRunning(this.AHKProcess))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"AHK Running\");\n\t\t\t\t\tHotKeyApp.killProcess(this.AHKProcess);\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"AHK Not Running\");\n\t\t\t\t\n\t\t\t\tDesktop dt = Desktop.getDesktop();\n\t\t\t dt.open(new File(path.getParent().toString(),newSelection));\n\t\t\t} \n\t\t\tcatch (Exception e) \n\t\t\t{\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }", "private WeaponSelection getWeaponSelection(List<Weapon> weapons, JSONObject message) {\n\t\tJSONArray jArray = createJSONWeaponList(weapons);\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\n\t\tJSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n\t\treturn parseWeaponSelection(selected);\n\t}", "public void chooseAttackStarter(){\n gameState = GameState.ATTACKERSELECTION;\n currentTerritoriesOfInterest = Player.getTerritoryStringArray(currentPlayer.getAttackStarters());\n notifyObservers();\n }", "protected void pickItem(int x ){\r\n this.level -=x;\r\n }", "public Weapon(){\n \n name = \"Claw\"; // will be treated as a sword\n type = 'R';\n advType = 'G';\n disType = 'B';\n mt = 4;\n hit = 85;\n crit = 0;\n wt = 1;\n isMagic = true;\n \n }", "public void grab() {\r\n\t\tString item = mapContents[currentPlayer.getCurrentRoom()];\r\n\t\tif (item == null) return;\r\n\t\t\r\n\t\t// If artifact, make sure has room or backpack\r\n\t\tif (item.startsWith(\"Artifact\")) {\r\n\t\t\tif (currentPlayer.count(\"Artifact\") <= currentPlayer.count(\"Backpack\")) {\r\n\t\t\t\tcurrentPlayer.pickup(item);\r\n\t\t\t\tattackLevel++;\r\n\t\t\t\taddEvent(\"``\"+currentName+\"`` picked up an Artifact **\"+item.substring(8)+\"** :star:\",true);\r\n\t\t\t\taddHistory(\"ARTIFACT \"+item.substring(8));\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = null;\r\n\t\t\t}\r\n\t\t// If monkey idol, make sure didn't already pick one up this turn\r\n\t\t} else if (item.startsWith(\"MonkeyIdol\") && !currentPlayer.getAlreadyPickedUpMonkeyIdol()) {\r\n\t\t\tcurrentPlayer.pickup(item);\r\n\t\t\tcurrentPlayer.setAlreadyPickedUpMonkeyIdol(true);\r\n\t\t\tint num = Integer.parseInt(item.substring(10));\r\n\t\t\tnum--;\r\n\t\t\tif (num == 0) {\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = null;\r\n\t\t\t} else {\r\n\t\t\t\tmapContents[currentPlayer.getCurrentRoom()] = \"MonkeyIdol\"+num;\r\n\t\t\t}\r\n\t\t\taddEvent(\"``\"+currentName+\"`` picked up a Monkey Idol **5** :star:\",true);\r\n\t\t\taddHistory(\"IDOL \"+item.substring(8));\r\n\t\t}\r\n\t\tupdateReactionsInfo();\r\n\t\tupdatePlayArea(currentPlayer, false);\r\n\t\tupdateMarketAndTreasures(false);\r\n\t\ttry {\r\n\t\t\tupdateBoard();\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void updateActiveWeapon() {\n activeWeaponText.setText(\"Weapon: \" + game.getPlayerComponent().getActiveWeapon().getWeaponType().getName());\n }", "private void use() {\n switch (choices.get(selection)) {\n case INFO : { \n AbstractInMenu newMenu = new ItemInfo(sourceMenu, item);\n this.sourceMenu.setMenu(newMenu);\n newMenu.setVisible(true);\n } break;\n case USE : {\n entity.use(item); \n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case EQUIP : {\n entity.equip(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case ACTIVE : {\n entity.setActiveItem(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case UNEQUIP : {\n entity.equip(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case UNACTIVE : {\n entity.setActiveItem(null);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break;\n case DROP : {\n entity.drop(item);\n sourceMenu.activate();\n sourceMenu.setState(true);\n } break; \n case PLACE : {\n entity.placeItem(item);\n entity.removeItem(item); \n sourceMenu.activate();\n sourceMenu.setState(true); \n } break;\n case CLOSE : { \n sourceMenu.activate();\n } break;\n case DESTROY : {\n entity.removeItem(item);\n sourceMenu.activate();\n sourceMenu.setState(true); \n } break;\n }\n }", "public void pickUpWeapon(CardWeapon weapon, CardWeapon weaponToWaste, List<CardPower> powerUp) throws InsufficientAmmoException, NoCardWeaponSpaceException {\n List <Color> tmp = new ArrayList<>(weapon.getPrice());\n List <CardPower> tmpPU = new ArrayList<>();\n if(this.weapons.size()== 3)\n if(weaponToWaste==null)\n throw new NoCardWeaponSpaceException();\n if(tmp.size() > 1)\n {\n tmp = tmp.subList(1, tmp.size());\n pay(tmp, powerUp);\n }\n if (weapons.size() == 3){\n this.position.getWeapons().add(weaponToWaste);\n this.weapons.remove(weaponToWaste);\n }\n this.weapons.add(weapon);\n weapon.setShooter(this);\n this.position.getWeapons().remove(weapon);\n if(game != null)\n game.notifyGrabWeapon(this,weapon, weaponToWaste);\n\n }", "@Override\n public void changed(ChangeListener.ChangeEvent event, Actor actor) {\n WeaponCreatorUi.this.setUi(\"menu\");\n \n }", "public void pickUpHerd() {\n rounds.get(currentRound).currentPlayerPickUpHerd();\n }", "public void equip(Hero h) {\n\t\tfor(Weapon w : h.getInventory().getWeaponList()) {\n\t\t\tif(w.getName().equals(this.getName())) {\n\t\t\t\tw.setEquipped(true);\n\t\t\t\tw.statsIncrease(h, StatType.STRENGTH, getWeaponDmg());\n\t\t\t} else {\n\t\t\t\tw.unequip(h);\n\t\t\t}\n\t\t}\n\t}", "public String getWeapon() {\n return weapon1;\n }", "public void selected(Guy g)\n {\n guy.pickingLocation = !guy.pickingLocation;\n }", "public void setWeapons() {\n\t\tca_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew CapAmerWeapons(Battleground.captainAmerica).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t\the_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew HawkeyeWeapons(Battleground.hawkeye).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t\tbw_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew BlackWidowWeapons(Battleground.blackWidow).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t\thulk_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew HulkWeapons(Battleground.hulk).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t\tthor_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew ThorWeapons(Battleground.thor).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t\tloki_weapons.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tnew LokiWeapons(Battleground.loki).setVisible(true);\n\t\t\t}\n\t\t}\n\t\t);\n\t}", "@Override\n public void poll() {\n if( state == State.attacking ) {\n if( !ctx.movement.running() && ctx.movement.energyLevel() >= 75) {\n stateText = \"Setting running\";\n ctx.movement.running(true);\n }\n stateText = \"\";\n if( isAttacking() ) {\n stateText = \"Attacking\";\n Item ammo = inventory.getFirst(ammoUsed);\n if( ammo != null && ammo.valid() ){\n inventory.clickItem(ammo);\n sleep(100);\n }\n } else {//TODO find out why it stops picking up arrows after some time\n if (!inventory.full() && (targetBone == null || !targetBone.valid() || !misc.pointOnScreen(targetBone.centerPoint())) ) {\n targetBone = getNextGroundBone();\n clickedGroundItem = false;\n }\n if (!inventory.full() && targetBone != null && targetBone.valid() && misc.pointOnScreen(targetBone.centerPoint())) {\n stateText = \"Picking up bones\";\n if( !ctx.players.local().inMotion() )\n clickedGroundItem = false;\n if (!clickedGroundItem ) {\n clickedGroundItem = groundItems.pickup(targetBone);\n }\n } else if( inventory.full() && inventory.contains(bones) ) {\n state = State.burying;\n } else {\n if( !clickedMonster || !target.valid() || target.health() <= 0 || target.interacting() != ctx.players.local() ) {\n target = getNextTarget();\n clickedMonster = false;\n }\n if (!misc.pointOnScreen(target.centerPoint())) {\n if (target.tile().matrix(ctx).onMap()) {\n stateText = \"Walking to monster\";\n movement.walkTile(target.tile());\n }\n } else {\n stateText = \"Attacking monster\";\n if( !clickedMonster ) {\n clickedMonster = npcs.attackMonster(target);\n }\n }\n }\n }\n }else if( state == State.burying){\n Item invBones = inventory.getFirst(bones);\n if( invBones!= null && invBones.valid()) {\n stateText = \"Clicking bones\";\n inventory.clickItem(invBones);\n }else {\n state = State.attacking;\n }\n }\n checkIfBeingAttacked();\n }", "public void rifleActualWeapon(){\n if(this.actualWeapon != null)\n {\n this.actualWeapon.getPreviousTargets().clear();\n this.actualWeapon.setLastTargetSquare(null);\n this.actualWeapon.setLastDirection(null);\n }\n\n }", "@Override\r\n\tpublic void activate() {\r\n\t\tif (handler.getWorld().getEntityManager().getCreatures().get(0).getInventory().remove(objectsType.activator)) {\r\n\t\t\tif (objectsType.equals(ObjectsType.Door0)) {\r\n\t\t\t\tobjectsType = ObjectsType.Door1;\r\n\t\t\t}\r\n\t\t\telse if (objectsType.equals(ObjectsType.CrackedWall)) {\r\n\t\t\t\tobjectsType = ObjectsType.BrokenWall;\r\n\t\t\t}\r\n\t\t\tbounds = objectsType.bounds;\r\n\t\t}\r\n\t}", "public void act() \r\n {\n if(getOneIntersectingObject(Player.class)!=null)\r\n {\r\n if(MenuWorld.gamemode == 1)\r\n //marcheaza regenerarea labirintului(trecere la nivelul urmator in Modul Contra Timp)\r\n TAworld.shouldRegen=true;\r\n else\r\n { \r\n //reseteaza variabilele care tin de modul de joc\r\n MenuWorld.gamemode=-1;\r\n MenuWorld.isPlaying=false;\r\n for(int i=0;i<4;i++)\r\n ItemCounter.gems_taken[i]=0;\r\n \r\n //arata fereastra de castig \r\n PMworld.shouldShowVictoryWindow=true;\r\n }\r\n \r\n }\r\n \r\n }", "public void allocateWeapons() {\n Collections.shuffle(this.getWeaponPieces());\n List<Room> rooms = this.board.getRooms();\n Collections.shuffle(rooms);\n int roomIndex = 0;\n for (WeaponPiece weapon : this.getWeaponPieces()) {\n Room room = rooms.get(roomIndex);\n if (room.getWeaponPiece() == null) {\n room.setWeaponPiece(weapon);\n roomIndex += 1;\n }\n }\n }", "public static void reloadCannon(ClientContext ctx) {\n GameObject cannon = ctx.objects.select().id(6).nearest().poll();\n\n if (cannon.inViewport()) {\n cannon.interact((\"Fire\"), cannon.name());\n sleep(3000);\n }\n }", "public void updateReloading() {\n if (game.getPlayerComponent().getActiveWeapon().isReloading()) {\n reloadingText.setText(\"Reloading\");\n reloadingText.setFill(Color.INDIANRED);\n } else {\n reloadingText.setText(\"Reloaded\");\n reloadingText.setFill(Color.LIMEGREEN);\n }\n }", "public void setAmmo(final boolean x) {\n int ammodif = 0;\n switch (Engine.currentWeapon) {\n\n case 2:\n ammodif = maxshotgunAmmo - shotgunAmmo;\n if (x) {\n if (ammodif < 10) {\n shotgunAmmo += ammodif;\n } else {\n shotgunAmmo += 10;\n }\n } else {\n shotgunAmmo--;\n if (shotgunAmmo == 0) {\n shotgunAmmo = 0;\n }\n\n }\n\n break;\n case 3:\n ammodif = maxrifleAmmo - rifleAmmo;\n if (x) {\n if (ammodif < 20) {\n rifleAmmo += ammodif;\n } else {\n rifleAmmo += 20;\n }\n } else {\n rifleAmmo--;\n if (rifleAmmo == 0) {\n rifleAmmo = 0;\n }\n }\n\n break;\n case 4:\n ammodif = maxgranadelauncherAmmo - granadeLauncherAmmo;\n if (x) {\n if (ammodif < 10) {\n granadeLauncherAmmo += ammodif;\n } else {\n granadeLauncherAmmo += 10;\n }\n } else {\n granadeLauncherAmmo--;\n if (granadeLauncherAmmo == 0) {\n granadeLauncherAmmo = 0;\n }\n }\n\n break;\n }\n }", "public void useSelectedAbility() {\n if (abilitySelected == AbilitySelected.MOVE\n && validMoveTile(selectionX, selectionY)) {\n // Move the hero\n AbstractHero hero = map.getCurrentTurnHero();\n moveToSelected();\n updateLiveTileEffectsOnCharacter(hero);\n gameChanged = true;\n minimapChanged = true;\n visionChanged = true;\n movementChanged = true;\n\n // Only next turn if it's not the beta tester\n if (hero.getActionPoints() == 0) {\n nextTurn();\n }\n } else if (abilitySelected == AbilitySelected.ABILITY1) {\n abilityOne();\n } else if (abilitySelected == AbilitySelected.ABILITY2) {\n abilityTwo();\n } else if (abilitySelected == AbilitySelected.WEAPON) {\n weaponAbility();\n } else if (abilitySelected == AbilitySelected.UTILITY) {\n utilityAbility();\n }\n }", "public void removeWeapon(Weapon w) {\n try {\n this.validChoice(w);\n weaponSpawnpoint.removeWeapon(w);\n } catch (WrongValueException wvE) {\n wvE.wrong();\n }\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t\tcontroller.newShot();\r\n\t\t\t\tint selected = clubList.getSelectedIndex();\r\n\t\t\t\tif (selected >= 0){\r\n\t\t\t\t\tString selectedClub = (String)clubList.getModel().getElementAt(selected);\r\n\t\t\t\t\tcontroller.selectClub(selectedClub);\r\n\t\t\t\t\tcontroller.startShot();\r\n\t\t\t\t\t\r\n\t\t\t\t\tUI.getInstance().show(PanelNames.END_SHOT);\r\n\t\t\t\t\tclubList.clearSelection();\r\n\t\t\t\t}\r\n\t\t\t}", "public void rotateWeaponBy( final int number ) throws RemoteException {\r\n final int newWeaponIndex = ( playerState.weaponIndex + number ) % weapons.length;\r\n selectWeapon( newWeaponIndex >= 0 ? newWeaponIndex : newWeaponIndex + weapons.length );\r\n }", "@Override\n public Type getItemType() {\n return Type.WEAPON;\n }", "public void chooseFortifyGivers(){\n gameState = GameState.FORTIFYGIVER;\n currentTerritoriesOfInterest = Player.getTerritoryStringArray(currentPlayer.getFortifyGivers());\n notifyObservers();\n }", "public void Skill() {\n\t\tBuilding ig = new Iglu(this.GetWater());\n\t\tthis.GetWater().GetBuilding().ReplaceBuilding(ig);\n\t}", "private void reload() {\n if (running == false) {\n agentsOnSpawn = new String[][]{{\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}, {\"random\", \"random\", \"random\"}};\n PlayerPanel.reset();\n playersAgentsMap.clear();\n agentList.clear();\n playerCount = 0;\n playerList.removeAll();\n iPlayerList.entrySet().forEach((pair) -> {\n IPlayer player = pair.getValue();\n try {\n player.setPoints(0);\n player.resetStrategy();\n addNewAgent(player, player.getStrategy());\n } catch (RemoteException ex) {\n Logger.getLogger(ServerFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n });\n\n }\n\n }", "@EventHandler\r\n\tpublic void onEquipmentChange(ArmourEquipEvent event) {\r\n\t\tif (event.getType() == ArmourType.CHESTPLATE) {\r\n\t\t\tmain.getServer().getScheduler().runTaskLater(main, new Runnable() {\r\n\t\t\t\tpublic void run() {\r\n\t\t\t\t\tmain.getPlayers().get(event.getPlayer().getUniqueId()).loadInventory();\r\n\t\t\t\t}\r\n\t\t\t}, 5);\r\n\t\t}\r\n\t}", "@POST(\"/UpdateWeapon\")\n\tWeapon updateWeapon(@Body Weapon weapon,@Body int id) throws GameNotFoundException;", "private void validChoice(Weapon w0) throws WrongValueException {\n for(Weapon w : getWeaponSpawnpoint().getWeapons()){\n if (w==w0) {\n return;\n }\n }\n throw new WrongValueException();\n }", "public void autoGrab(){\n \tif (getTrigger() == true){\n\t \tif(triggerTimer.get() >= TRIGGER_LOCKOUT){\n\t\t \tClawAct.set(true);\n\t\t \tisClosed = true;\n\t \t\tRobot.oi.armRumble(RUMBLE_DURATION);\n\t \t}\n \t}\n\n }", "private void ReiniciarSeleccion()\n {\n if(Estado!=TURNOENEMIGO && Estado!=HUYENDO && Estado!=FINTURNO)\n {\n if(input.isKeyPressed(Input.KEY_ESCAPE))\n {\n estadoAnterior=OPCIONESBASE;\n Estado=OPCIONESBASE;\n sonidoSelect.play(1, 0.2f);\n }/**/\n }/*if(Estado!=TURNOENEMIGO && Estado!=HUYENDO && Estado!=FINTURNO)*/\n }", "@Override\n\tpublic Powerup choosePowerup(List<Powerup> selectable) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"powerup\");\n\t\tJSONArray jArray = new JSONArray();\n\t\tselectable.forEach(s->jArray.add(s.toJSON()));\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\n\t\tString selected = this.getResponse();\n\n\t\tif (selected == null || selectable.isEmpty()) return null;\n\t\tList<Powerup> matching = selectable.stream().filter(p->p.toJSON().toString().equals(selected))\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn matching.isEmpty() ? null : matching.get(0);\n\t}", "public void giveWeapon(Weapon weapon) throws RuntimeException {\n if (weaponList.size() > 2)\n throw new RuntimeException(\"This player can't receive any more weapons\");\n weaponList.add(weapon);\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tEnvironmentVariables.addToTerrain(new GameObject (temp_terrain_object));\r\n\t\t\t\t//reset to default \r\n\t\t\t\ttemp_terrain_object.reset();\r\n\t\t\t\ttemp_terrain_object.setLock(true);\r\n\t\t\t\tresetUI();\r\n\t\t\t\ttemp_terrain_object.setMaterial(material_cb.getSelectedItem().toString());\r\n\t\t\t\tWindow.render();\r\n\t\t\t}", "public void fire(Vector2 dir, Vector2 weaponPos, Boolean multiplayer) {\n\t\t\n\t}", "@Override\n public void selectGolem(int id) {\n }", "public List<CardWeapon> hasToReload() {\n List<CardWeapon> toReload = new ArrayList<>();\n for (CardWeapon cw : weapons)\n if(!cw.isLoaded())\n toReload.add(cw);\n if(toReload.isEmpty())\n return null;\n return toReload;\n }", "public void reload() {\n\t\tammo = AMMO_CAPACITY;\n\t}", "protected abstract void chooseSprite();", "public void setWeaponDamage (int weaponDamage)\r\n\t{\r\n\t\tthis.weaponDamage = weaponDamage;\r\n\t}", "private void repaired() { //active\n activate();\n this.damageState = DamageState.DAMAGED;\n this.setCurrentLife(this.maxLife / REPAIR_LIFE_FACTOR);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n currentUser = (String) comboBox1.getSelectedItem();\n try {\n saveGame.setGameState(currentUser);\n } catch (IOException ex) {\n System.out.println(ex);\n }\n }", "public void triggerInteraction(Player p, Tile newTile) {\n\t\tTile playerTil = p.getTile();\n\t\tGameObject object = newTile.getGameObject();\n\t\tif (object instanceof Item) {\n\t\t\tif (!p.inventoryIsFull()) {\n\t\t\t\tif (object instanceof Key) {\n\t\t\t\t\tint keyCount = 0;\n\t\t\t\t\tfor (Item i : p.getInventory()) {\n\t\t\t\t\t\tif (i instanceof Key) {\n\t\t\t\t\t\t\tkeyCount++;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tif (keyCount >= PLAYER_KEY_LIMIT) {\n\t\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\t\"You already have 3 keys, Harambe does not appreciate your greed, sharpen up soldier!\",\n\t\t\t\t\t\t\t\tp);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tplayerTil.setGameObject(null);\n\t\t\t\tp.pickUpItem((Item) object);\n\t\t\t\tnewTile.setGameObject(p);\n\t\t\t\tp.setTile(newTile);\n\t\t\t\tp.setLocation(board.getLocationById(newTile.getLocationID()));\n\t\t\t}\n\t\t} else if (object instanceof Chest) {\n\t\t\tChest c = (Chest) object;\n\t\t\tfor (Item i : p.getInventory()) {\n\t\t\t\tif (i instanceof Key) {\n\t\t\t\t\tKey k = ((Key) i);\n\t\t\t\t\tif (k.getCode() == c.getCode()) {\n\t\t\t\t\t\tif (c.getContents() != null) {\n\t\t\t\t\t\t\tp.getInventory().remove(i);\n\t\t\t\t\t\t\tp.pickUpItem(c.getContents());\n\t\t\t\t\t\t\tc.setContents(null);\n\t\t\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\t\t\"With the chest you recognise a distinct glow, a Banana!\", p);\n\t\t\t\t\t\t\treturn;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\"You don't have a key with the correct code to open this chest soldier!\", p);\n\n\t\t} else if (object instanceof Door) {\n\t\t\tDoor door = (Door) object;\n\t\t\tp.getTile().setGameObject(null);\n\t\t\tp.setLocation(door.getLocationID());\n\t\t\tp.setTile(p.getLocation().getTileAtPosition(door.getDoorPosition()));\n\t\t\tp.getTile().setGameObject(p);\n\n\t\t} else if (object instanceof NPC) {\n\t\t\tif (!nightTime) {\n\t\t\t\tfor (Item i : p.getInventory()) {\n\t\t\t\t\tif (i instanceof Fish) {\n\t\t\t\t\t\tp.getInventory().remove(i);\n\t\t\t\t\t\tp.pickUpItem(new Banana(\"Banana\"));\n\t\t\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\t\t\"The Pretty Penguin was overwhelmed as you handed her the fish, in response she gave you a golden reward!\",\n\t\t\t\t\t\t\t\tp);\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\"The Pretty Penguin did not offer a response, consider offering her a present\", p);\n\t\t\t}else{\n\t\t\t\tserverController.broadcastPlayerMessage(\n\t\t\t\t\t\t\"Ssssh!, Harambe does not approve of your intentions to wake a sleeping woman\", p);\n\t\t\t}\n\t\t}\n\t}", "public void selectAgent(int selected) {\n this.selected = selected;\n }", "private void triggerDropItem(double percentage) {\n if (isDropped(percentage)) {\n String name;\n int tar = rd.nextInt(6);\n switch (tar) { // 7 is the total type of building card\n case 0:\n name = \"Sword\";\n break;\n case 1:\n name = \"Stake\";\n break;\n case 2:\n name = \"Staff\";\n break;\n case 3:\n name = \"Shield\";\n break;\n case 4:\n name = \"Helmet\";\n break;\n case 5:\n name = \"Armour\";\n break;\n default:\n return;\n }\n loadItem(name);\n }\n }", "public void selectSlot() {\n\t\t\r\n\t}", "public void equipWeaponToCharacter (IPlayerCharacter character) {\n if (lenInventory > 1){\n character.equip(this.weaponsInventory.get(this.pointInventory));\n }\n }" ]
[ "0.7143796", "0.7033036", "0.6934688", "0.6927594", "0.6874646", "0.6846469", "0.67511743", "0.6590335", "0.62399846", "0.61700535", "0.61237615", "0.6099305", "0.6089382", "0.6058182", "0.6022985", "0.5948493", "0.58921903", "0.5838828", "0.58279556", "0.58093435", "0.58041906", "0.57922053", "0.57839465", "0.57255095", "0.5669894", "0.5612429", "0.55963326", "0.55849606", "0.5565669", "0.55623734", "0.5531275", "0.55265737", "0.55259085", "0.55243933", "0.552364", "0.5518573", "0.548419", "0.54831016", "0.5480346", "0.5460233", "0.5459067", "0.545857", "0.54563904", "0.5454791", "0.5453352", "0.5446869", "0.54397273", "0.5439209", "0.54362744", "0.54261327", "0.54204047", "0.54177636", "0.5414625", "0.5410522", "0.538405", "0.53788966", "0.5373627", "0.53469074", "0.5342558", "0.5341464", "0.5340913", "0.5338981", "0.53371257", "0.5328328", "0.53245765", "0.5324556", "0.5322688", "0.5317275", "0.5317125", "0.53156656", "0.53073215", "0.5305648", "0.52993095", "0.52981424", "0.5297165", "0.5296319", "0.52917856", "0.52741116", "0.52723837", "0.52696687", "0.5268313", "0.52617663", "0.5259594", "0.52558017", "0.52488595", "0.52450365", "0.5236924", "0.52265483", "0.5215484", "0.5214572", "0.52084535", "0.52001137", "0.5188967", "0.51884913", "0.5187124", "0.51827306", "0.51815903", "0.5180049", "0.5172189", "0.5171883" ]
0.75014967
0
select a weapon and effect to shoot with
@Override public WeaponSelection shoot(List<Weapon> loaded) { JSONObject message = new JSONObject(); message.put("function", "select"); message.put("type", "shoot"); return getWeaponSelection(loaded, message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toSelectingWeapon() {\n }", "public void shoot() {\n\t\tgetWeapon().triggerMain();\n\t\tsetShooting(true);\n\t}", "public void equipSelectedWeapon() {\n }", "private void shoot()\n\t{\n\t\t//Speed movement of the bullet\n\t\tint speed = 0;\n\t\t//Damage dealt by the bullet\n\t\tint damage = 0;\n\t\t//Angle used to shoot. Used only by the vulcan weapon\n\t\tdouble angle = 0;\n\t\t\n\t\tif(weapon == PROTON_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 10;\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30, speed, damage, 0);\n\t\t\tSoundManager.getInstance().playSound(\"protonshoot\", false);\n\t\t}\t\n\t\telse if(weapon == VULCAN_WEAPON)\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 2;\n\t\t\tangle = 10;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getThreeBullets(getX() +27, getX()+37, getX()+47,\n\t\t\t\t\tgetY()-this.getHeight()+30, speed, damage, (int)angle);\n\t\t\tSoundManager.getInstance().playSound(\"vulcanshoot\", false);\n\t\t}\t\t\n\t\telse\n\t\t{\n\t\t\tspeed = 15;\n\t\t\tdamage = 15;\n\t\t\tangle = 0;\n\t\t\t\n\t\t\tbulletPool.getBulletPool(weapon).getBullet(getX()+37, getY()-this.getHeight()+30,\n\t\t\t\t\t\tspeed, damage, angle);\n\t\t\tSoundManager.getInstance().playSound(\"gammashoot\", false);\n\t\t}\t\n\t}", "public void weaponAbility() {\n \tlogger.info(\"weapon abilities aren't implemented yet. Using slash ability\");\n \t//ability(map.getCurrentTurnHero().getWeaponAbility());\n \tability(new Slash());\n }", "public void selectWeaponFromInventory(int weaponIndex) {\n }", "public Weapon(){\n \n name = \"Claw\"; // will be treated as a sword\n type = 'R';\n advType = 'G';\n disType = 'B';\n mt = 4;\n hit = 85;\n crit = 0;\n wt = 1;\n isMagic = true;\n \n }", "public void setWeapon(int weapon)\n\t{\n\t\tthis.weapon = weapon;\n\t}", "public void shootBullet( ){\n bulletsFired.add(new Bullet((short)(this.xPos + BOX_HEIGHT), (short)((this.getYPos() + (BOX_HEIGHT+15))), this.xPos, this.id, (byte) 0, (byte) 0, shootingDirection, currentWeapon.getKey()));\n\n byte weaponFired = currentWeapon.getKey();\n switch (weaponFired){\n case PISTOL_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n case MACHINEGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(MACHINEGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(MACHINEGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case SHOTGUN_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SHOTGUN_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SHOTGUN_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.shotgunSound);\n break;\n case SNIPER_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(SNIPER_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(SNIPER_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case UZI_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(UZI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(UZI_RANGE);\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.machineGunSound);\n break;\n case AI_WEAPON_ID: bulletsFired.get(bulletsFired.size()-1).setDmg(AI_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n System.out.println(\"Bullet sound \" + audioHandler.getSoundEffectVolume());\n audioHandler.updateSFXVolume(audioHandler.getSoundEffectVolume());\n audioHandler.playSoundEffect(audioHandler.pistolSound);\n break;\n default: bulletsFired.get(bulletsFired.size()-1).setDmg(DEFAULT_DMG);\n bulletsFired.get(bulletsFired.size()-1).setRange(DEFAULT_RANGE);\n\n }\n }", "void fire(WarParticipant target, WarParticipant attacker, int noOfShooters);", "public void attack(ItemWeapon w, Monster target) {\n\t\ttarget.takeDamage(w.getDamage()+level*20);\n\t}", "void shoot();", "public void fire(Vector2 dir, Vector2 weaponPos, Boolean multiplayer) {\n\t\t\n\t}", "public void attack() {\n if (activeWeapon == null) {\n return;\n }\n attacking = true;\n }", "static void weapon(char item)\r\n {\r\n \tString pClass = MainApp.playerClass;\r\n \tif(MainApp.alreadyEquipped == false)\r\n\t\t{\r\n\t\t\tif(pClass == \"Warrior\")\r\n\t\t\t{\r\n\t \t\tif(item == '0')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Warrior Equipped!\");\r\n\t \t\t}\r\n\t \t\t//System.out.print(\"Post Equip Warrior\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Archer\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '&')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Archer Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Archer\");\r\n\t\t\t}\r\n\t\t\tif(pClass == \"Rogue\")\r\n\t\t\t{\r\n\t\t\t\tif(item == '!')\r\n\t \t\t{\r\n\t \t\t\tMainApp.playerStats[0] += 5;\r\n\t \t\t\tMainApp.alreadyEquipped = true;\r\n\t \t\t\t//System.out.print(\"Rogue Equipped!\");\r\n\t \t\t}\r\n\t\t\t\t//System.out.print(\"Post Equip Rogue\");\r\n\t\t\t}\r\n\t }\r\n }", "public void shoot() {\n _shooterMotor1.set(_targetRPM);\n }", "public void selectWeapon( final int weaponIndex ) throws RemoteException {\r\n if ( weaponIndex < weapons.length ) {\r\n playerState.weaponIndex = weaponIndex;\r\n playerState.weapon = weapons[ playerState.weaponIndex ];\r\n }\r\n }", "public Weapon(WeaponType type, int level) {\n \tthis.effects = new ArrayList<>();\n this.type = type;\n this.level = level;\n this.effects.add(new AttackEffect(getWeaponDamage(), getWeaponSpeed(), getWeaponRange(), Target.SELF));\n }", "public void switchWeapon() {\n\t\tif (type == 0) {\n\t\t\ttype = 1;\n\t\t\tthis.setImage(getFilename(type, held));\n\t\t\tsetFocus();\n\t\t} else {\n\t\t\ttype = 0;\n\t\t\tthis.setImage(getFilename(type, held));\n\t\t\tsetFocus();\n\t\t} // end else\n\t}", "public void pickUp(Item item) {\n this.curItem = item;\n this.curItem.setNonDamagablePlayer(this);\n if (item instanceof PickupableWeaponHolder) {\n this.weapon = ((PickupableWeaponHolder)(item)).getWeapon();\n }\n }", "private void shoot(int mode, EntityManager manager) {\r\n switch (mode) {\r\n case 0:\r\n normal(manager);\r\n break;\r\n case 1:\r\n shotgun(manager);\r\n break;\r\n case 2:\r\n shield(manager);\r\n break;\r\n case 3:\r\n laser(manager);\r\n break;\r\n case 4:\r\n multi(manager);\r\n break;\r\n case 5:\r\n shrapnel(manager);\r\n break;\r\n }\r\n }", "public void pickUpWeapon(CardWeapon weapon, CardWeapon weaponToWaste, List<CardPower> powerUp) throws InsufficientAmmoException, NoCardWeaponSpaceException {\n List <Color> tmp = new ArrayList<>(weapon.getPrice());\n List <CardPower> tmpPU = new ArrayList<>();\n if(this.weapons.size()== 3)\n if(weaponToWaste==null)\n throw new NoCardWeaponSpaceException();\n if(tmp.size() > 1)\n {\n tmp = tmp.subList(1, tmp.size());\n pay(tmp, powerUp);\n }\n if (weapons.size() == 3){\n this.position.getWeapons().add(weaponToWaste);\n this.weapons.remove(weaponToWaste);\n }\n this.weapons.add(weapon);\n weapon.setShooter(this);\n this.position.getWeapons().remove(weapon);\n if(game != null)\n game.notifyGrabWeapon(this,weapon, weaponToWaste);\n\n }", "public void useWeapon(Character victim) {\n Weapons weapons = this.getInventory().getFirstWeapon();\n if (weapons == null)\n this.hit(victim);\n else {\n int vStrength = victim.getStrength();\n int mStrength = this.getStrength() * Hero.HERO_BONUS_OVER_ALL_CHARS + weapons.getDamage();\n if (vStrength >= mStrength) return;\n int strDif = mStrength - vStrength;\n int vLife = victim.getLife();\n vLife -= strDif;\n victim.setLife(vLife);\n this.getInventory().removeItems(weapons);\n }\n }", "public void changeWeapon(Graphics graphics) {\r\n\t\tlevelManager.changeWeapon(graphics);\r\n\t}", "@Override\n public void applySoundAtAttacker(int type, Entity target)\n {\n \t\tswitch (type)\n \t\t{\n \t\tcase 1: //light cannon\n \t\t\tthis.playSound(ModSounds.SHIP_LASER, ConfigHandler.volumeFire, this.getSoundPitch() * 0.85F);\n \t \n \t\t\t//entity sound\n \t\t\tif (this.rand.nextInt(10) > 7)\n \t\t\t{\n \t\t\t\tthis.playSound(this.getCustomSound(1, this), this.getSoundVolume(), this.getSoundPitch());\n \t }\n \t\tbreak;\n \t\tcase 2: //heavy cannon\n \t\t\tthis.playSound(ModSounds.SHIP_FIREHEAVY, ConfigHandler.volumeFire, this.getSoundPitch() * 0.85F);\n \t \n \t //entity sound\n \t if (this.getRNG().nextInt(10) > 7)\n \t {\n \t \tthis.playSound(this.getCustomSound(1, this), this.getSoundVolume(), this.getSoundPitch());\n \t }\n \t\tbreak;\n \t\tcase 3: //light aircraft\n \t\tcase 4: //heavy aircraft\n \t\t\tthis.playSound(ModSounds.SHIP_AIRCRAFT, ConfigHandler.volumeFire * 0.5F, this.getSoundPitch() * 0.85F);\n \t \tbreak;\n\t\tdefault: //melee\n\t\t\tif (this.getRNG().nextInt(2) == 0)\n\t\t\t{\n\t\t\t\tthis.playSound(this.getCustomSound(1, this), this.getSoundVolume(), this.getSoundPitch());\n\t }\n\t\tbreak;\n \t\t}//end switch\n \t}", "private void tankWillShoot(Graphics2D g2d, GameState state) {\n if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() > 0 && state.getGunType() % 2 == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfCannonBullet(tankObject.getNumOfCannonBullet() - 1);\n if (tankObject.getCannonLevel() == 1) {\n state.getMissiles().add(new Missile(state, 15));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (tankObject.getCannonLevel() == 2) {\n state.getMissiles().add(new Missile(state, 30));\n state.getMissiles().get(state.getMissiles().size() - 1).missileDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/heavygun.wav\", 0);\n state.setMouseClicked(false);\n }\n } else if (state.isMouseClicked() && tankObject.getNumOfCannonBullet() == 0 && state.getGunType() % 2 == 1) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n state.setMouseClicked(false);\n }\n for (Missile missile : state.getMissiles()) {\n missile.paint(g2d, state);\n }\n if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() > 0 && state.getGunType() % 2 == 0) {\n if (numOfRenderBullet1 == 0 && tankObject.getMachineGunLevel() == 1) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 20));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet2 == 0 && tankObject.getMachineGunLevel() == 2) {\n if (!state.getInfiniteMissilesCheatCode().isCheatCodeEntered())\n tankObject.setNumOfMachineGunBullet(tankObject.getNumOfMachineGunBullet() - 1);\n state.getBullets().add(new Bullet(state, 30));\n state.getBullets().get(state.getBullets().size() - 1).bulletDirection(state);\n AudioPlayer tankMissileSFX = new AudioPlayer(\"sound effects/lightgun.wav\", 0);\n state.setMouseClicked(false);\n }\n if (numOfRenderBullet1 <= 7) {\n numOfRenderBullet1++;\n }\n if (numOfRenderBullet1 == 7) {\n numOfRenderBullet1 = 0;\n }\n if (numOfRenderBullet2 <= 3) {\n numOfRenderBullet2++;\n }\n if (numOfRenderBullet2 == 3) {\n numOfRenderBullet2 = 0;\n }\n }\n else if (state.isMousePressed() && tankObject.getNumOfMachineGunBullet() == 0 && state.getGunType() % 2 == 0) {\n AudioPlayer emptyGunSFX = new AudioPlayer(\"sound effects/emptyGun.wav\", 0);\n }\n for (Bullet bullet : state.getBullets()) {\n bullet.paint(g2d, state);\n }\n }", "@Override\n\tpublic void OnAttackCommand() {\n\t\tsuper.OnAttackCommand();\n\t\tSoundManage.playSound(atkSound1);\n\t}", "private void getWeaponItem(double x, double y, String option,\r\n\t\t\tBufferedImage itemimage, SpriteGroup items) {\r\n\t\tint weaponoption = Resources.getInt(option);\r\n\t\tItem newGun = new WeaponItem(player, new Sprite(itemimage),\r\n\t\t\t\tweaponoption, x, y);\r\n\t\titems.add(newGun);\r\n\t\tnewGun.setActive(true);\r\n\t}", "@Override\n public void useWeapon(ResponseInput responseMessage)\n {\n basicMode(((ResponseRocketLauncher) responseMessage).getTargetPlayerBasicMode(), ((ResponseRocketLauncher) responseMessage).getTargetSquareCoordinatesAsStringPlayerToMove(), ((ResponseRocketLauncher) responseMessage).getTargetSquareCoordinatesAsStringTargetToMove(), ((ResponseRocketLauncher) responseMessage).isWithFragWarhead() ) ;\n }", "public void setEquippedWeapon(String w)\n\t{\n\t\tstrEquippedWeapon = w;\n\t\t\n\t}", "public void attack(){\n activity = CreatureActivity.ATTACK;\n createWeapon();\n endAttack = new CountDown(20); //100\n endAnimationAttack = new CountDown(100);\n }", "public void Skill() {\n\t\tBuilding ig = new Iglu(this.GetWater());\n\t\tthis.GetWater().GetBuilding().ReplaceBuilding(ig);\n\t}", "private void setWeapons()\n {\n sewers.setWeapon(woodSword);\n promenade.setWeapon(woodSword);\n depths.setWeapon(rustedSword);\n forest.setWeapon(goldSword);\n bridge.setWeapon(silverSpear);\n ramparts.setWeapon(infantryBow);\n }", "public void stopShooting() {\n\t\tgetWeapon().releaseMain();\n\t\tsetShooting(false);\n\t}", "public void shoot() {\n\r\n switch (shootstate) {\r\n case down:\r\n tempbutton = Components.shootsinglespeed;\r\n templimit = islimitshooterup();\r\n\r\n if (Components.shootsinglespeed && islimitshooterup() && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(singlespeed);\r\n Components.shootermotorleft2.setX(singlespeed);\r\n Components.shootermotorright.setX(-singlespeed);\r\n Components.shootermotorright2.setX(-singlespeed);\r\n\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n\r\n }\r\n shootpothigh = shootsinglepot;\r\n shootstate = movingup;\r\n } else if (Components.trusshp == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(trusshpspeed);\r\n Components.shootermotorleft2.setX(trusshpspeed);\r\n Components.shootermotorright.setX(-trusshpspeed);\r\n Components.shootermotorright2.setX(-trusshpspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = trusshppothigh;\r\n shootstate = movingup;\r\n }else if (Components.truss == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(trussspeed);\r\n Components.shootermotorleft2.setX(trussspeed);\r\n Components.shootermotorright.setX(-trussspeed);\r\n Components.shootermotorright2.setX(-trussspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = trusspothigh;\r\n shootstate = movingup;\r\n } else if (Components.pass == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(passspeed);\r\n Components.shootermotorleft2.setX(passspeed);\r\n Components.shootermotorright.setX(-passspeed);\r\n Components.shootermotorright2.setX(-passspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = passpot;\r\n shootstate = movingup;\r\n } else if (Components.longdistanceshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(longdistancespeed);\r\n Components.shootermotorleft2.setX(longdistancespeed);\r\n Components.shootermotorright.setX(-longdistancespeed);\r\n Components.shootermotorright2.setX(-longdistancespeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = longdistancepot;\r\n shootstate = movingup;\r\n }\r\n else if (Components.shoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(shooterspeed);\r\n Components.shootermotorleft2.setX(shooterspeed);\r\n Components.shootermotorright.setX(-shooterspeed);\r\n Components.shootermotorright2.setX(-shooterspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootpothigh = shootpot;\r\n shootstate = movingup;\r\n }else if (Components.slowmovingshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(slowmovingspeed);\r\n Components.shootermotorleft2.setX(slowmovingspeed);\r\n Components.shootermotorright.setX(-slowmovingspeed);\r\n Components.shootermotorright2.setX(-slowmovingspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n slowmovingpot = shootpot;\r\n shootstate = movingup;\r\n }\r\n else if (Components.fastmovingshoot == true && islimitshooterup() == true && Components.DownPickupLimit.get()) {\r\n try {\r\n Components.shootermotorleft.setX(fastmovingspeed);\r\n Components.shootermotorleft2.setX(fastmovingspeed);\r\n Components.shootermotorright.setX(-fastmovingspeed);\r\n Components.shootermotorright2.setX(-fastmovingspeed);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n fastmovingpot = shootpot;\r\n\r\n }\r\n case movingup:\r\n if (islimitshooterup() == false || Components.potvalue >= shootpothigh) {\r\n shootstate = stopped;\r\n oldTime = DS.getMatchTime();\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n break;\r\n\r\n case stopped:\r\n try {\r\n if (/*Components.shooterdown && */time - oldTime > .2 && islimitshooterdown() == true && Components.DownPickupLimit.get()) {\r\n\r\n Components.shootermotorleft.setX(shootdownspeed);\r\n Components.shootermotorleft2.setX(shootdownspeed);\r\n\r\n Components.shootermotorright.setX(-shootdownspeed);\r\n Components.shootermotorright2.setX(-shootdownspeed);\r\n\r\n shootstate = movingdown;\r\n }\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n break;\r\n\r\n case movingdown:\r\n if ((islimitshooterdown() == false) || (Components.potvalue < shootpotdown)) {\r\n\r\n try {\r\n Components.shootermotorleft.setX(0);\r\n Components.shootermotorleft2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n try {\r\n Components.shootermotorright.setX(0);\r\n Components.shootermotorright2.setX(0);\r\n } catch (CANTimeoutException ex) {\r\n ex.printStackTrace();\r\n }\r\n shootstate = down;\r\n }\r\n }\r\n }", "private Card murderWeapon(UI ui, Player currentPlayer) {\n CardPanel cardPanel = new CardPanel(ui.getBoard(), ui.getCmd(), \"weapons\");\n ui.getLayers().add(cardPanel, Integer.valueOf(6));\n cardPanel.showPanel();\n ui.getInfo().addText(\"Enter the weapon you think \" + murderer.getName() + \" killed Gunther in \" + location.getName() + \". Listed Below\"); // prompt\n\n // display all the characters to the player that they can select\n for (int i = 0; i < WEAPON_NAMES.length; i++) {\n ui.getInfo().addText(WEAPON_NAMES[i].toString().substring(0,1) + WEAPON_NAMES[i].toString().substring(1).toLowerCase());\n }\n\n WeaponTypes murderWeapon = null;\n String weapon;\n\n // check the input from the user whether it is a weapon, help command, notes command or the wrong input\n do {\n weapon = ui.getCmd().getCommand().toLowerCase();\n switch (weapon) {\n case \"rope\":\n murderWeapon = WeaponTypes.ROPE;\n break;\n case \"dagger\":\n murderWeapon = WeaponTypes.DAGGER;\n break;\n case \"wrench\":\n murderWeapon = WeaponTypes.WRENCH;\n break;\n case \"pistol\":\n murderWeapon = WeaponTypes.PISTOL;\n break;\n case \"candlestick\":\n murderWeapon = WeaponTypes.CANDLESTICK;\n break;\n case \"pipe\":\n murderWeapon = WeaponTypes.PIPE;\n break;\n case \"notes\":\n currentPlayer.getPlayerNotes().showNotes(currentPlayer);\n break;\n case \"help\":\n ui.getInfo().addText(\"Select a weapon from the list above for the questioning!\");\n break;\n default:\n ui.getInfo().addText(\"That was an invalid entry, enter a weapon from the list above for the questioning!\");\n break;\n }\n } while (murderWeapon == null); // while the player input was not a weapon\n\n cardPanel.removePanel();\n ui.getLayers().remove(cardPanel);\n return new Card(murderWeapon.toString()); // return a card with the murder weapon selected by the user\n }", "private void shoot() {\n }", "private void shoot() {\n }", "void doEffect(Skill castSkill, double power, Creature performer, Item target) {\n/* 87 */ if ((!target.isMailBox() && !target.isSpringFilled() && !target.isPuppet() && \n/* 88 */ !target.isUnenchantedTurret() && !target.isEnchantedTurret()) || (target\n/* 89 */ .hasDarkMessenger() && !target.isEnchantedTurret())) {\n/* */ \n/* 91 */ performer.getCommunicator().sendNormalServerMessage(\"The spell fizzles.\", (byte)3);\n/* */ return;\n/* */ } \n/* 94 */ if (target.isUnenchantedTurret() || target.isEnchantedTurret()) {\n/* */ \n/* 96 */ int spirit = Zones.getSpiritsForTile(performer.getTileX(), performer.getTileY(), performer.isOnSurface());\n/* 97 */ String sname = \"no spirits\";\n/* 98 */ int templateId = 934;\n/* 99 */ if (spirit == 4) {\n/* */ \n/* 101 */ templateId = 942;\n/* 102 */ sname = \"There are plenty of air spirits at this height.\";\n/* */ } \n/* 104 */ if (spirit == 2) {\n/* */ \n/* 106 */ templateId = 968;\n/* 107 */ sname = \"Some water spirits were closeby.\";\n/* */ } \n/* 109 */ if (spirit == 3) {\n/* */ \n/* 111 */ templateId = 940;\n/* 112 */ sname = \"Earth spirits are everywhere below ground.\";\n/* */ } \n/* 114 */ if (spirit == 1) {\n/* */ \n/* 116 */ sname = \"Some nearby fire spirits are drawn to your contraption.\";\n/* 117 */ templateId = 941;\n/* */ } \n/* 119 */ if (templateId == 934) {\n/* */ \n/* 121 */ performer.getCommunicator().sendAlertServerMessage(\"There are no spirits nearby. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* 125 */ if (target.isUnenchantedTurret()) {\n/* */ \n/* 127 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* 128 */ target.setTemplateId(templateId);\n/* 129 */ target.setAuxData(performer.getKingdomId());\n/* */ }\n/* 131 */ else if (target.isEnchantedTurret()) {\n/* */ \n/* 133 */ if (target.getTemplateId() != templateId) {\n/* */ \n/* 135 */ performer.getCommunicator().sendAlertServerMessage(\"The nearby spirits ignore your contraption. Nothing happens.\", (byte)3);\n/* */ \n/* */ return;\n/* */ } \n/* */ \n/* 140 */ performer.getCommunicator().sendSafeServerMessage(sname);\n/* */ } \n/* */ } \n/* */ \n/* 144 */ ItemSpellEffects effs = target.getSpellEffects();\n/* 145 */ if (effs == null)\n/* 146 */ effs = new ItemSpellEffects(target.getWurmId()); \n/* 147 */ SpellEffect eff = effs.getSpellEffect(this.enchantment);\n/* 148 */ if (eff == null) {\n/* */ \n/* 150 */ performer.getCommunicator().sendNormalServerMessage(\"You summon nearby spirits into the \" + target\n/* 151 */ .getName() + \".\", (byte)2);\n/* */ \n/* 153 */ eff = new SpellEffect(target.getWurmId(), this.enchantment, (float)power, 20000000);\n/* 154 */ effs.addSpellEffect(eff);\n/* 155 */ Server.getInstance().broadCastAction(performer\n/* 156 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 157 */ .getName() + \".\", performer, 5);\n/* 158 */ if (!target.isEnchantedTurret()) {\n/* 159 */ target.setHasCourier(true);\n/* */ \n/* */ }\n/* */ }\n/* 163 */ else if (eff.getPower() > power) {\n/* */ \n/* 165 */ performer.getCommunicator().sendNormalServerMessage(\"You frown as you fail to summon more spirits into the \" + target\n/* 166 */ .getName() + \".\", (byte)3);\n/* */ \n/* 168 */ Server.getInstance().broadCastAction(performer.getName() + \" frowns.\", performer, 5);\n/* */ }\n/* */ else {\n/* */ \n/* 172 */ performer.getCommunicator().sendNormalServerMessage(\"You succeed in summoning more spirits into the \" + this.name + \".\", (byte)2);\n/* */ \n/* */ \n/* 175 */ eff.improvePower(performer, (float)power);\n/* 176 */ if (!target.isEnchantedTurret())\n/* 177 */ target.setHasCourier(true); \n/* 178 */ Server.getInstance().broadCastAction(performer\n/* 179 */ .getName() + \" looks pleased as \" + performer.getHeSheItString() + \" summons some spirits into the \" + target\n/* 180 */ .getName() + \".\", performer, 5);\n/* */ } \n/* */ }", "@Test\n void doEffectheatseeker() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"heatseeker\");\n Weapon w4 = new Weapon(\"heatseeker\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w4);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w4);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w4.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(10));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w4.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n }", "public abstract void setEffects(Tank t);", "public void spitIntakeCargo(){\n shoot.set(SPIT_INTAKE);\n }", "public PickupWeaponBase(Vec2 position, WeaponBase weaponBarrel) {\n super(position, Vec2.ZERO, new Sprite(\"items/weaponBody\"));\n setSize(new Vec2(0.7, 0.7));\n setRenderLayer(RenderLayer.RenderLayerName.HIGH_BLOCKS);\n\n this.cli = weaponBarrel;\n\n collider = new CircleCollider(this, 30);\n collider.setTag(\"Item\");\n collider.addInteractionLayer(\"Walk\");\n\n }", "@Override\n\tpublic WeaponSelection chooseWeapon(List<Weapon> selectable) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"weapon\");\n\t\tJSONArray jArray = new JSONArray();\n\t\tselectable.forEach(s->jArray.add(s.getName()));\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\t\tJSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n\t\treturn parseWeaponSelection(selected);\n\t}", "public void equipWeaponToCharacter (IPlayerCharacter character) {\n if (lenInventory > 1){\n character.equip(this.weaponsInventory.get(this.pointInventory));\n }\n }", "private void shoot(float angle) {\n\t\tfloat arc = FIRING_ARC;\n\t\tif (weapon instanceof BanditTripleShot)\n\t\t\tarc *= 2;\n\t\t\t\n\t\tif (angle < FIRING_ARC && angle > - FIRING_ARC) {\n\t\t\t//System.out.println(\"BANDIT: shooting\");\n\t\t\tweapon.shoot();\n\t\t}\n\t}", "public void takeDamage(int damage);", "@Test\n void doEffectshotgun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"shotgun\");\n Weapon w9 = new Weapon(\"shotgun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w9);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w9.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(0));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && victim.getPlayerPosition() == Board.getSquare(0));\n\n s.add(Board.getSquare(1));\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 6 && victim.getPlayerPosition() == Board.getSquare(1));\n\n s.clear();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"base\", null, null, p, players, s); //A choice of yours is yours\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(1));\n players.clear();\n players.add(victim);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n players.clear();\n players.add(victim);\n s.clear();\n try{\n p.getPh().getWeaponDeck().getWeapon(w9.getName()).doEffect(\"alt\", null, null, p, players, null); //A choice of yours is wrong\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n }", "public void shootIntoRocket(){\n shoot.set(ROCKET_SHOOT);\n }", "public void attack(String spell, character opponent){\n Random rand = new Random();\n int prob;\n String attack;\n \n prob = rand.nextInt(2); //we need two random numbers to allow us to use the two attacks:\n if(prob==0){\n attack = \"punch\";\n opponent.setHealth(opponent.getHealth() - 10);\n System.out.println(getName() + \" has landed \" + attack);\n System.out.println(opponent.getName() + \" health now \" + opponent.getHealth());\n }\n \n else if(prob==1){\n attack = \"kick\";\n opponent.setHealth(opponent.getHealth() - 15);\n System.out.println(getName() + \" has landed \" + attack);\n System.out.println(opponent.getName() + \" health now \" + opponent.getHealth());\n }\n \n \n }", "public void throwItem() {\n this.curItem.setState(Item.THROWING);\n this.curItem.setX((int)(this.x));\n this.curItem.setY((int)(this.y));\n this.curItem.setXVel(Item.X_SPEED*this.dir);\n if (this.curItem instanceof PickupableWeaponHolder) {\n this.weapon = this.fist;\n }\n this.curItem = null;\n }", "public void equip();", "public void shoot(){\n // boss bullete attract to player\n int bulletPosX = PApplet.parseInt(posX + (speed * cos(angle)));\n int bulletPosY = (int)(posY + hei / 2);\n float bulletAngle = atan2(Main.player.posY - bulletPosY, Main.player.posX - bulletPosX);\n int bulletVelX = (int)(8 * cos(bulletAngle));\n int bulletVelY = (int)(8 * sin(bulletAngle));\n bossBullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,1,attack));\n }", "private void makeRobot(int lvl)\r\n {\r\n maxHealth = lvl*10;\r\n health = maxHealth;\r\n \r\n Equip tempWeapon = null;\r\n Equip tempArmor = null;\r\n if (type == SOLDIER)\r\n {\r\n tempWeapon = new Equip(\"rifle\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"leather armor\", Equip.ARMOR, lvl*2);\r\n }\r\n else if (type == ELF)\r\n {\r\n tempWeapon = new Equip(\"bow\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"magic armor\", Equip.ARMOR, lvl*2);\r\n }\r\n else if (type == KNIGHT)\r\n {\r\n tempWeapon = new Equip(\"sword\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"splendid shield\", Equip.ARMOR, lvl*2);\r\n }\r\n else if (type == MAGICIAN)\r\n {\r\n tempWeapon = new Equip(\"magic\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"magic armor\", Equip.ARMOR, lvl*2);\r\n }\r\n else\r\n {\r\n tempWeapon = new Equip(\"broom stick\", Equip.WEAPON, lvl*5);\r\n tempArmor = new Equip(\"straw\", Equip.ARMOR, lvl*2);\r\n }\r\n tempWeapon.changeOwner(this);\r\n tempArmor.changeOwner(this);\r\n tempWeapon.equipTo(this);\r\n tempArmor.equipTo(this);\r\n }", "public interface Weapon {\n\n /**\n * method which is used when one war participant attacks other\n *\n * @param target target war participant\n * @param attacker attacker war participant\n */\n void fire(WarParticipant target, WarParticipant attacker, int noOfShooters);\n\n}", "@Override\n public void equip(@NotNull IWeapon weapon) {\n weapon.equipToMage(this);\n }", "public void shoot(double x, double y) {\n if (magazineCounter > 0 && !reloading) {\n magazineCounter--;\n new WeaponProjectile(new Point2D(x, y), mouseLocation(), projectileSpeed, testing);\n }\n }", "public void shoot(Projectile p){\r\n\t\tp.facing = facing;\r\n\t\tp.x = x+(width/2)-(p.width/2);\r\n\t\tp.y = y+(height/2)-(p.height/2);\r\n\t\tp.fired = true;\r\n\t\tinAttackCooldown = true;\r\n\t}", "@Test\n void doEffectlockrifle() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl, false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"lock rifle\");\n Weapon w = new Weapon(\"lock rifle\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n RealPlayer victim1 = new RealPlayer('y', \"ciccia1\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n victim1.setPlayerPosition(Board.getSpawnpoint('b'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim1);\n try{\n p.getPh().getWeaponDeck().getWeapon(w.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(victim.getPb().countDamages() == 2 && victim.getPb().getMarkedDamages('b') == 1 && victim1.getPb().countDamages() == 0 && victim1.getPb().getMarkedDamages('b') == 1 );\n }", "@Test\n void doEffecttractorbeam() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"tractor beam\");\n Weapon w2 = new Weapon(\"tractor beam\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.getWeapons().add(w2);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w2.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSpawnpoint('b'));\n try {\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"base\", null, null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n assertTrue(players.get(0).getPb().countDamages() == 1 && players.get(0).getPlayerPosition() == Board.getSpawnpoint('b'));\n\n players.get(0).setPlayerPosition(Board.getSquare(1));\n s.clear();\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w2.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(players.get(0).getPb().countDamages() == 4 && players.get(0).getPlayerPosition() == p.getPlayerPosition());\n }", "private void handleShooting(SpaceWars game, GameGUI gui) {\r\n\t\tif (gui.isShotPressed()) {\r\n\t\t\tfire(game);\r\n\t\t}\r\n\t}", "public void shoot()\n {\n\n if(reload<=0)//if the tower has reloaded\n {\n int randomizer=Greenfoot.getRandomNumber(20)-10; \n MinigunBullet bullet = new MinigunBullet(this.getRotation()+randomizer, damage,this);\n getWorld().addObject(bullet, getX(), getY());\n bullet.move(30);\n reload=3;\n }\n else//reload\n {\n reload--;\n }\n\n }", "public void fireTurret() {\n\t\tif(!getCreator().hasEffect(\"TurretEffect\")) {\n\t\t\treturn;\n\t\t}\n\t\t//Fire based on what is ordained within the hero's current TurretEffect\n\t\tTurretEffect tE = (TurretEffect)getCreator().getEffect(\"TurretEffect\");\n\t\tTurretFireWrapper fW = tE.getFireFunctionWrapper();\n\t\tif(fW == null) {\n\t\t\treturn; //No active mode selected, so we just exit out. Note that this means that turrets will always fire based on the last active effect\n\t\t}\n\t\tfW.fire(getCreator(), getLoc(),range);\n\t\treturn;\n\t}", "@Test\n void doEffectmachinegun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"machine gun\");\n Weapon w14 = new Weapon(\"machine gun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w14);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w14.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia1\");\n victim2.setPlayerPosition(Board.getSquare(10));\n RealPlayer victim3 = new RealPlayer('g', \"ciccia2\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(victim2);\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w14.getName()).doEffect(\"base\", \"opt1\", null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) {\n System.out.println(\"ERROR\");\n }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1);\n\n players.clear();\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(10));\n victim3 = new RealPlayer('g', \"ciccia\");\n victim3.setPlayerPosition(Board.getSpawnpoint('y'));\n players.add(victim);\n players.add(victim2);\n players.add(victim);\n players.add(victim3);\n try {\n p.getPh().getWeaponDeck().getWeapon(w14.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 1 && victim3.getPb().countDamages() == 1);\n }", "private void createWeapons()\n {\n woodSword = new Weapon(\"wood sword\", \" | does 12 damage\", 10, true); \n rustedSword = new Weapon(\"rusted sword\", \" | does 17 damage\", 15, true);\n silverSword = new Weapon(\"silver sword\", \" | does 32 damage\", 30, true);\n goldSword = new Weapon(\"gold sword\", \" | does 22 damage\", 20, true);\n titaniumSword = new Weapon(\"titanium sword\", \" | does 52 damage\", 50, true);\n silverSpear = new Weapon(\"silver spear\", \" | does 25 damage\", 23, true);\n infantryBow = new Weapon(\"infantry bow\", \" | does 30 damage\", 28, true);\n }", "public void setWeaponDamage (int weaponDamage)\r\n\t{\r\n\t\tthis.weaponDamage = weaponDamage;\r\n\t}", "public void shootIntoCargoShip(){\n shoot.set(SHIP_SHOOT);\n }", "public void setCurrentWeapon(Pair<Byte,Short> weapon){\n currentWeapon = weapon;\n }", "@Override\n\t\t\tpublic void shoot() {\n\t\t\t}", "@Test\n void doEffectrailgun() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"railgun\");\n Weapon w11 = new Weapon(\"railgun\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w11);\n p.setPlayerPosition(Board.getSpawnpoint('r'));\n p.getPh().drawWeapon(wd, w11.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n try {\n p.getPh().getWeaponDeck().getWeapon(w11.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n try{\n p.getPh().getWeaponDeck().getWeapon(w11.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n try {\n p.getPh().getWeaponDeck().getWeapon(w11.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && victim2.getPb().countDamages() == 2);\n }", "public void procectileShoot(ItemStack it, Projectile a) {\r\n\t\tif(it==null) return;\r\n\t\t\r\n\t\tAttributeStorage storage = AttributeStorage.newTarget(it, SpellItems.itemUUID);\r\n\t\tif(!storage.getData(\"\").startsWith(\"si_customenchant_\")) return;\r\n\t\tString enchants = storage.getData(\"\").replace(\"si_customenchant_\", \"\");\r\n\t\t\r\n\t\tint pos = 0;\r\n\t\tfor(String st : enchants.split(\"|\")) {\r\n\t\t\tString[] info = st.split(\":\");\r\n\t\t\tCustomEnchant ce = getEnchantmentByName(info[0]);\r\n\t\t\tif(ce!=null) {\r\n\t\t\t\ta.setMetadata(\"spellitems_enchant_\"+pos, new FixedMetadataValue(SpellItems.instance, ce.getInternalName()));\r\n\t\t\t\tpos++;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void enemyAttack() {\n\t\t\n\t\tRandom rand = new Random();\t\n\t\t\n\t\tint roll = rand.nextInt(101);\n\t\t\n\t\tint sroll = rand.nextInt(101);\n\t\t\n\t\tevents.appendText(e.getName() + \" attacks!\\n\");\n\t\t\n\t\tif(roll <= p.getEV()) { // Player evades\n\t\t\t\n\t\t\tevents.appendText(\"You evaded \"+e.getName()+\"\\'s Attack!\\n\");\n\t\t\t\n\t\t}else if(roll > p.getEV()) { // Player is hit and dies if HP is 0 or less\n\t\t\t\n\t\t\tp.setHP(p.getHP() - e.getDMG());\n\t\t\t\n\t\t\tString newHp = p.getHP()+\"/\"+p.getMaxHP();\n\t\t\t\n\t\t\tString effect = e.getSpecial(); // Stats are afflicted\n\t\t\t\n\t\t\tif(sroll < 51){\n\t\t\t\t\n\t\t\tif(effect == \"Bleed\") { // Bleed Special\n\t\t\t\t\n\t\t\t\tp.setHP(p.getHP() - 100);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You bleed profusely. - 100 HP\\n\");\n\t\t\t\t\n\t\t\t\tnewHp = String.valueOf(p.getHP()+\"/\"+p.getMaxHP());\n\t\t\t}\n\t\t\tif(effect == \"Break\") { // Break Special \n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"You feel a bone break restricting movement. - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Fear\") { // Fear Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-40>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 40);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"A crippling fear rattles your resolve. - 40 DMG\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t}\n\t\t\tif(effect == \"Rend\") { // Rend Special \n\t\t\t\t\n\t\t\t\tif(p.getDMG()-30>0)\n\t\t\t\t\tp.setDMG(p.getDMG() - 30);\n\t\t\t\telse\n\t\t\t\t\tp.setDMG(0);\n\t\t\t\t\n\t\t\t\tif(p.getEV()-5>0)\n\t\t\t\t\tp.setEV(p.getEV() - 5);\n\t\t\t\telse\n\t\t\t\t\tp.setEV(0);\n\t\t\t\t\n\t\t\t\tevents.appendText(\"Morthar unleashes a pillar of flame! - 30 DMG and - 5 EV\\n\");\n\t\t\t\t\n\t\t\t\tString newDMG = String.valueOf(p.getDMG());\n\t\t\t\t\n\t\t\t\tString newEV = String.valueOf(p.getEV());\n\t\t\t\t\n\t\t\t\tgdmg.setText(newDMG);\n\t\t\t\t\n\t\t\t\tgev.setText(newEV);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\t\n\t\t\tif(p.getHP() <= 0) {\n\t\t\t\t\n\t\t\t\tp.setDead(true);\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(0+\"/\"+e.getMaxHP());\n\t\t\t\tplayerHPBar.setProgress((double)0);\n\t\t\t}else {\n\t\t\t\t\n\t\t\t\tcurrentHp.setText(newHp);\n\t\t\t\tplayerHPBar.setProgress((double)p.getHP()/p.getMaxHP());\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tif(p.isDead()) { // Game over if player dies\n\t\t\t\n\t\t\ttry {\n\t\t\t\tLoadGO();\n\t\t\t} catch (IOException e1) {\n\t\t\t\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tcombat = false;\n\t\t}\n\t}", "public void shoot(){\n int bulletPosX = posX;\n int bulletPosY = posY;\n int bulletVelX = 0;\n int bulletVelY = -9;\n //add the new bullets to the array of bullets\n bullets.add(new Bullet(bulletPosX,bulletPosY,bulletVelX,bulletVelY,0,attack));\n }", "@Test\n void doEffectcyberblade(){\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"cyberblade\");\n Weapon w20 = new Weapon(\"cyberblade\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w20);\n p.setPlayerPosition(Board.getSquare(6));\n p.getPh().drawWeapon(wd, w20.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n ArrayList<GenericSquare> s = new ArrayList<>();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", null, p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n RealPlayer victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt1\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(6));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(6));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"base\", \"opt2\", \"opt1\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n\n p.setPlayerPosition(Board.getSquare(6));\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(7));\n victim2 = new RealPlayer('v', \"ciccia\");\n victim2.setPlayerPosition(Board.getSquare(7));\n players.clear();\n players.add(victim);\n players.add(victim2);\n s.clear();\n s.add(Board.getSquare(7));\n try {\n p.getPh().getWeaponDeck().getWeapon(w20.getName()).doEffect(\"opt1\", \"base\", \"opt2\", p, players, s);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages()==2 && victim2.getPb().countDamages()==2 && p.getPlayerPosition()==Board.getSquare(7));\n }", "public void giveWeapon(Weapon weapon) throws RuntimeException {\n if (weaponList.size() > 2)\n throw new RuntimeException(\"This player can't receive any more weapons\");\n weaponList.add(weapon);\n }", "public static Weapon spawnWeapon()\r\n\t{\r\n\t\tfinal int numberOfWeapons = 5; //update as weapons are added\r\n\t\t\r\n\t\t//Create weapons in order to access attributes / randomly select a weapon\r\n\t\tSword sword = new Sword();\r\n\t\tStick stick = new Stick();\r\n\t\tBazooka bazooka = new Bazooka();\r\n\t\tAtomicBomb atomicBomb = new AtomicBomb();\r\n\t\tPotatoCannon potatoCannon = new PotatoCannon();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tWeapon[] weapons = new Weapon[] {sword, stick,bazooka,atomicBomb,potatoCannon}; //store weapons in an array to randomly grab one to use in Game\r\n\t\t\r\n\t\tint randomWeapon; //weapon chosen\t\t\r\n\t\tRandom rng = new Random (); //create generator based upon current number of weapons\r\n\t\trandomWeapon = rng.nextInt(numberOfWeapons); //get a weapon object at random from array\r\n\r\n\t\treturn (weapons[randomWeapon]); //we have no need to create separate instance\r\n\t}", "public void addWeapon(Weapon x){\n\t\tplayerWeapon=new Weapon(x);\n\t\tHealth+=x.gethealthStat();\n\t\tAttackForce+=x.getafStat();\n\t\tDefense+=x.getdefenseStat();\n\t}", "@Override\n\tpublic void shoot(Plateau p) {\n\t\tif(!noMunition()) {\n\t\t\tuseMunition();\n\t\t\t//complete\n\t\t}\n\t\t\n\t}", "public boolean isSelectingWeapon() {\n return false;\n }", "public void changeWeapon(String weaponName)\r\n\t{\r\n\t\tm_weapon.changeAttack(weaponName);\r\n\t}", "public void actionCombat(Party p1) {\n System.out.println(\"______________________________________________________________________________\\n\");\n System.out.println(this.Name + \" is attacking ...\");\n int choice = (int)(Math.random() * p1.getTeam().size());\n Character target = p1.getTeam().get(choice);\n System.out.println(this.Name + \" attacks \" + target.getName() + \"!\");\n\n if (this.SPEED - target.getSPEED() < 5) {\n int damage = Math.max(this.ATK - target.getDEF(), 0);\n System.out.println(this.Name + \" has inflicted \" + damage + \" damages to \" + target.getName() + \"!\");\n target.setActualHP(Math.max(0, target.getActualHP() - damage));\n if (target.getActualHP() == 0) {\n System.out.println(\"\\n\" + target.getName() + \" is down!\\n\");\n target.setIsDead(true);\n }\n }\n else {\n int n = 0;\n while ((target.actualHP != 0) && (n < 2)) {\n if (n == 1) {\n choice = (int)(Math.random() * p1.getTeam().size() + 1);\n target = p1.getTeam().get(choice);\n System.out.println(this.Name + \" attacks \" + target.getName() + \"!\");\n }\n int damage = Math.max(this.ATK - target.getDEF(), 0);\n System.out.println(this.Name + \" has inflicted \" + damage + \" damages to \" + target.getName() + \"!\");\n target.setActualHP(Math.max(0, target.getActualHP() - damage));\n if (target.getActualHP() == 0) {\n System.out.println(\"\\n\" + target.getName() + \" is down!\\n\");\n target.setIsDead(true);\n }\n if (n == 0) System.out.println(this.Name + \" attacks again ...\");\n n++;\n }\n }\n }", "public ShotgunWeapon() {\n description = \" Weapon: Shotgun has\";\n }", "@Override public void takeAction(Player[] players, Enemy[] enemies, char action)\n {\n \n if (action == 'a') //ATTACK!!!!\n {\n if(gun.isEmpty())\n { \n System.out.println(name+\"'s weapon is empty!\");\n gun.reload();\n }\n else\n {\n Enemy target = target(this, enemies, gun.getAccuracy());\n Attack(target);\n }\n } \n else if (action == 'd')//Hold this position!\n {\n this.defend();\n System.out.println(name+\" hunkers down!\");\n }\n else if (action == 'r')//Reloading! Cover me!\n {\n gun.reload();\n }\n else if (action == 'm')//Fall back! There's too many of them!\n {\n run();\n }\n else\n {\n System.out.println(\"Invalid command.\");\n }\n }", "public interface WeaponBehavior {\n\n int useWeapon(int strong);\n\n int getDamageValue(int strong);\n}", "@Test\n void doEffectelectroscythe() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n setPlayers(pl);\n WeaponFactory wf = new WeaponFactory(\"electroscythe\");\n Weapon w1 = new Weapon(\"electroscythe\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.getWeapons().add(w1);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w1.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSquare(0));\n Terminator t = new Terminator('y', Board.getSquare(0));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w1.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 2 && t.getPb().countDamages() == 2);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w1.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().countDamages() == 3 && t.getPb().countDamages() == 3);\n }", "void takeDamage(HeroDamage enemy1, HeroDamage enemy2);", "public static void showCombatInterface(Player player, int weapon) {\n\t\tString itemName = ItemAssistant.getItemName(weapon);\n\t\tfor (int i = 0; i < unarmedItemNames.length; i++) {\n\t\t\tif (itemName.toLowerCase().equals(unarmedItemNames[i])) {\n\t\t\t\tplayer.playerAssistant.setSidebarInterface(0, 5855); // punch, kick, block\n\t\t\t\tplayer.getPA().sendFrame126(itemName, 5857);\n\t\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\t\tCombatInterface.updateClickedCombatStyle(player);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t\tboolean doNotChange = false;\n\t\tif ((GameType.isPreEoc() && weapon == 19780)) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 4705);\n\t\t\tplayer.getPA().sendFrame246(426, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 4708);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"whip\")\n\t\t\t\t|| itemName.toLowerCase().contains(\"abyssal tentacle\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 12290); // flick, lash, deflect\n\t\t\tplayer.getPA().sendFrame246(12291, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 12293);\n\t\t\treAdjustCombatStyle(player, \"AGGRESSIVE\", ServerConstants.CONTROLLED);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"chinchompa\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 27500); // first param\n\t\t\tplayer.getPA().sendFrame126(itemName, 27503); // first param + 2\n\t\t\treAdjustCombatStyle(player, \"DEFENSIVE\", ServerConstants.CONTROLLED);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"dagger\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 2276); // stab, lunge, slash, block\n\t\t\tplayer.getPA().sendFrame246(2277, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 2279);\n\t\t}\n\t\telse if (itemName.toLowerCase().contains(\"bow\") || itemName.toLowerCase().contains(\"ballista\") || itemName.toLowerCase().contains(\"cannon\") || itemName.toLowerCase().contains(\"javelin\") || itemName.toLowerCase().contains(\"throwing\") || itemName.toLowerCase().contains(\"dragon thrownaxe\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 1764); // accurate, rapid, longrange\n\t\t\tplayer.getPA().sendFrame246(1765, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 1767);\n\t\t\treAdjustCombatStyle(player, \"DEFENSIVE\", ServerConstants.CONTROLLED);\n\t\t} else if (!itemName.toLowerCase().contains(\"saradomin sword\") && !itemName.toLowerCase().contains(\"blessed sword\") && !itemName.toLowerCase().contains(\"2h\") && (\n\t\t\t\titemName.toLowerCase().contains(\"rapier\") || itemName.toLowerCase().contains(\"sword\") && !itemName.toLowerCase().contains(\"godsword\") && !itemName.toLowerCase()\n\t\t\t\t .contains(\n\t\t\t\t\t\t \"longsword\"))\n\t\t\t\t|| itemName.toLowerCase().contains(\"toktz-xil-ek\") || itemName.toLowerCase().contains(\"toktz-xil-ak\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 2276); // stab, lunge, slash, block\n\t\t\tplayer.getPA().sendFrame246(2277, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 2279);\n\t\t} else if (itemName.toLowerCase().contains(\"staff\") || itemName.toLowerCase().contains(\"wand\") || itemName.toLowerCase().contains(\"staff of light\")\n\t\t\t\t|| itemName.toLowerCase().contains(\"trident\") || itemName.toLowerCase().contains(\"thammaron's sceptre\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 328); // bash, pound, focus.\n\t\t\tplayer.getPA().sendFrame246(329, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 331);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t}\n\t\telse if (itemName.toLowerCase().contains(\"dart\") || itemName.toLowerCase().contains(\"knife\") || itemName.toLowerCase().contains(\"blowpipe\") || itemName.toLowerCase()\n\t\t .contains(\n\t\t\t\t \"toktz-xil-ul\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 4446); // accurate, rapid, longrange\n\t\t\tplayer.getPA().sendFrame246(4447, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 4449);\n\t\t\treAdjustCombatStyle(player, \"DEFENSIVE\", ServerConstants.CONTROLLED);\n\t\t} else if (itemName.toLowerCase().contains(\"pickaxe\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 5570); // spike, impale, smash, block\n\t\t\tplayer.getPA().sendFrame246(5571, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 5573);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"axe\") || itemName.toLowerCase().contains(\"hatchet\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 1698); // chop, hack, smash, block\n\t\t\tplayer.getPA().sendFrame246(1699, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 1701);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"claws\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 7762);\n\t\t\tplayer.getPA().sendFrame246(7763, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 7765);\n\t\t} else if (itemName.toLowerCase().contains(\"halberd\") || itemName.toLowerCase().contains(\"scythe\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 8460); // jab, swipe, fend\n\t\t\tplayer.getPA().sendFrame246(8461, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 8463);\n\t\t\treAdjustCombatStyle(player, \"ACCURATE\", ServerConstants.AGGRESSIVE);\n\t\t} else if (itemName.toLowerCase().contains(\"spear\") || itemName.toLowerCase().contains(\"hasta\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 4679); // lunge, swipe, pound, block\n\t\t\tplayer.getPA().sendFrame246(4680, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 4682);\n\t\t\treAdjustCombatStyle(player, \"AGGRESSIVE ACCURATE\", ServerConstants.CONTROLLED);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"mace\") || itemName.toLowerCase().contains(\"barrelchest\") || itemName.toLowerCase().contains(\"flail\") || itemName.toLowerCase()\n\t\t .contains(\n\t\t\t\t \"cane\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 3796);\n\t\t\tplayer.getPA().sendFrame246(3797, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 3799);\n\t\t} else if (itemName.toLowerCase().contains(\"maul\") || itemName.toLowerCase().contains(\"hammer\") || itemName.toLowerCase().contains(\"tzhaar-ket-om\")\n\t\t || itemName.toLowerCase().contains(\"dinh's\") || itemName.contains(\"spade\") || itemName.contains(\"club\")) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 425); // war hamer equip.\n\t\t\tplayer.getPA().sendFrame246(426, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 428);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t} else if (itemName.toLowerCase().contains(\"godsword\") || itemName.toLowerCase().contains(\"2h\") || itemName.toLowerCase().contains(\"saradomin sword\")\n\t\t\t\t|| itemName.toLowerCase().contains(\"sara's blessed sword\")\n\t\t\t\t|| (GameType.isPreEoc() && weapon == 19780)) {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 4705); // Godsword.\n\t\t\tplayer.getPA().sendFrame246(426, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 4708);\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\tdoNotChange = true;\n\t\t} else {\n\t\t\tplayer.playerAssistant.setSidebarInterface(0, 2423); // chop, slash, lunge, block\n\t\t\tplayer.getPA().sendFrame246(2424, 200, weapon);\n\t\t\tplayer.getPA().sendFrame126(itemName, 2426);\n\t\t}\n\t\tswitch (weapon) {\n\t\t\tcase 20779:\n\t\t\t\tplayer.playerAssistant.setSidebarInterface(0, 425); // war hamer equip.\n\t\t\t\tplayer.getPA().sendFrame246(426, 200, weapon);\n\t\t\t\tplayer.getPA().sendFrame126(itemName, 428);\n\t\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t\t\tdoNotChange = true;\n\t\t\t\tbreak;\n\t\t}\n\n\t\t// Whip is the only main weapon where the aggressive option is controlled, so make it easier by if i use whip and switch to another weapon, it puts the other weapon\n\t\t//on aggressive instead of longrange/lunge.\n\t\tif (player.wasWearingAggressiveSharedXpWeapon && !doNotChange) {\n\t\t\treAdjustCombatStyle(player, \"CONTROLLED\", ServerConstants.AGGRESSIVE);\n\t\t}\n\t\tplayer.wasWearingAggressiveSharedXpWeapon = false;\n\t\tCombatInterface.updateClickedCombatStyle(player);\n\t}", "public void fight(String enemy)\n\t{\n\t\tScanner kbAlpha = new Scanner(System.in);\n\t\t\n\t\tString strInput;\t\t\t\t\t\t//player input\n\t\tchar cAttack;\t\t\t\t\t\t\t//player input attack button\n\t\trandom = new Random();\n\t\t\n\t\tcAttack = 'x';\n\t\t\n\t\tif (strEquippedWeapon.equals(\"Dagger\"))\n\t\t{\n\t\t\tthis.iMaxDmg = 5; \t\t\t\t\t//exclusive\n\t\t\tthis.iMinDmg = 2;\t\t\t\t\t//inclusive\n\t\t}\n\t\telse if (strEquippedWeapon.equals(\"Steampunk 4-Barrel Pistol\"))\n\t\t{\n\t\t\tthis.iMaxDmg = 8; \t\t\t\t\t//exclusive\n\t\t\tthis.iMinDmg = 3;\t\t\t\t\t//inclusive\t\t\t\n\t\t}\n\t\telse if (strEquippedWeapon.equals(\"Steampunk Mach. II Riflesword\"))\n\t\t{\n\t\t\tthis.iMaxDmg = 16; \t\t\t\t\t//exclusive\n\t\t\tthis.iMinDmg = 6;\t\t\t\t\t//inclusive\n\t\t}\n\t\t\n\t\tif (enemy.equals(\"alien1\"))\n\t\t{\n\t\t\tthis.iAlienHP = 15;\n\t\t\tthis.iAlienMaxDmg = 3;\t\t\t\t//exclusive\n\t\t\tthis.iAlienMinDmg = 1;\t\t\t\t//inclusive\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.inventory.add(\"Steampunk 4-Barrel Pistol\");\n\t\t\t\t\tsetEquippedWeapon(\"Steampunk 4-Barrel Pistol\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \", but you have killed\"\n\t\t\t\t\t\t+ \" the alien!\\nThe alien dropped his \" +\n\t\t\t\t\t\t\"weapon! You pick it up an examine it. It looks like\\nit is a \" +\n\t\t\t\t\t\t\"Steampunk 4-Barrel Pistol. This might be a better option than \" +\n\t\t\t\t\t\t\"the\\n\" + getEquippedWeapon() + \". You equip it.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you have killed\"\n\t\t\t\t\t\t\t+ \" the alien!\\nThe alien dropped his \" +\n\t\t\t\t\t\t\t\"weapon! You pick it up an examine it. It looks like\\nit is a \" +\n\t\t\t\t\t\t\t\"Steampunk 4-Barrel Pistol. This might be a better option than \" +\n\t\t\t\t\t\t\t\"the\\n\" + getEquippedWeapon() + \". You equip it.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"alien2\"))\n\t\t{\n\t\t\tthis.iAlienHP = 18;\n\t\t\tthis.iAlienMaxDmg = 5;\t\t\t\t//exclusive\n\t\t\tthis.iAlienMinDmg = 1;\t\t\t\t//inclusive\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.iHP += 10;\n\t\t\t\t\tthis.inventory.add(\"Manhole Cover Shield\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damge, but you \" +\n\t\t\t\t\t\t\"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. \" +\n\t\t\t\t\t\t\"Fantastic!\\nSearching the alien's corpse, you find a Manhole Cover\"\n\t\t\t\t\t\t+ \" Shield! This will\\nprotect you from some damage.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \"\n\t\t\t\t\t\t\t+ \"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. \" +\n\t\t\t\t\t\t\t\"Fantastic!\\nSearching the alien's corpse, you find a Manhole Cover\"\n\t\t\t\t\t\t\t+ \" Shield! This will\\nprotect you from some damage.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"alien3\"))\n\t\t{\n\t\t\tif (evaluateInventory(\"Manhole Cover Shield\"))\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 22;\n\t\t\t\tthis.iAlienMaxDmg = 7;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 2;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 22;\n\t\t\t\tthis.iAlienMaxDmg = 9;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 3;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.iHP += 15;\n\t\t\t\t\tthis.inventory.add(\"Edison Grenade\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \" +\n\t\t\t\t\t\t\"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t+ \"you find a health pack that increases your health by 15. The \"\n\t\t\t\t\t\t+ \"alien also\\ndropped an Edison Grenade! It looks like a bulb but \"\n\t\t\t\t\t\t+ \"probably does more\\nthan light up a room!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \" +\n\t\t\t\t\t\t\t\"killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t\t+ \"you find a health pack that increases your health by 15. The \"\n\t\t\t\t\t\t\t+ \"alien also\\ndropped an Edison Grenade! It looks like a bulb but \"\n\t\t\t\t\t\t\t+ \"probably does more\\nthan light up a room!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"alien4\"))\n\t\t{\n\t\t\tif(evaluateInventory(\"Manhole Cover Shield\"))\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 18;\n\t\t\t\tthis.iAlienMaxDmg = 6;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 1;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 18;\n\t\t\t\tthis.iAlienMaxDmg = 8;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 2;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.iHP += 10;\n\t\t\t\t\tthis.inventory.add(\"Steampunk Mach. II Riflesword\");\n\t\t\t\t\tsetEquippedWeapon(\"Steampunk Mach. II Riflesword\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you\"\n\t\t\t\t\t\t+ \" killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. The \"\n\t\t\t\t\t\t+ \"alien also\\ndropped a Steampunk Mach. II Riflesword! This weapon\"\n\t\t\t\t\t\t+ \" looks quite menacing.\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you\"\n\t\t\t\t\t\t\t+ \" killed the alien! Looking around on the floor,\\n\"\n\t\t\t\t\t\t\t+ \"you find a health pack that increases your health by 10. The \"\n\t\t\t\t\t\t\t+ \"alien also\\ndropped a Steampunk Mach. II Riflesword! This weapon\"\n\t\t\t\t\t\t\t+ \" looks quite menacing.\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Continue\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nAlien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\telse if (enemy.equals(\"boss\"))\n\t\t{\n\t\t\tif(evaluateInventory(\"Manhole Cover Shield\"))\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 50;\n\t\t\t\tthis.iAlienMaxDmg = 10;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 2;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tthis.iAlienHP = 50;\n\t\t\t\tthis.iAlienMaxDmg = 12;\t\t\t\t//exclusive\n\t\t\t\tthis.iAlienMinDmg = 4;\t\t\t\t//inclusive\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t+ \"______________\\n\\n\");\n\t\t\tSystem.out.print(\"Action: \");\n\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\n\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t{\n\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You have entered the fight! Attack!\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t}\n\t\t\t\n\t\t\tif (evaluateInventory(\"Edison Grenade\"))\n\t\t\t{\n\t\t\t\tthis.inventory.remove(\"Edison Grenade\");\n\t\t\t\tthis.iAlienHP -= 20;\n\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"You lob the Edison Grenade to start the battle and hide \"\n\t\t\t\t\t+ \"behind a cluster\\nof stalagmite. A few seconds later, the grenade\"\n\t\t\t\t\t+ \" explodes dealing 20\\ndamage to the boss alien!\\n\\nBoss Alien HP \" +\n\t\t\t\t\t\"left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\tSystem.out.print(\"____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You lob the Edison Grenade to start the battle and hide \"\n\t\t\t\t\t\t+ \"behind a cluster\\nof stalagmite. A few seconds later, the grenade\"\n\t\t\t\t\t\t+ \" explodes dealing 20 damage to the boss alien!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n____________________________________________________________\"\n\t\t\t\t\t\t+ \"______________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\twhile (this.iHP > 0 && this.iAlienHP > 0)\n\t\t\t{\n\t\t\t\tthis.iDmgDealt = random.nextInt(this.iMaxDmg - this.iMinDmg) + \n\t\t\t\t\tthis.iMinDmg;\n\t\t\t\tthis.iAlienHP -= this.iDmgDealt;\n\t\t\t\t\n\t\t\t\tthis.iDmgTaken = random.nextInt(this.iAlienMaxDmg - this.iAlienMinDmg) +\n\t\t\t\t\tthis.iAlienMinDmg;\n\t\t\t\tthis.iHP -= this.iDmgTaken;\n\t\t\t\t\n\t\t\t\tif (this.iHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tsetPlayerState(false);\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Oh no! You took \" + this.iDmgTaken + \" damage and died! \" +\n\t\t\t\t\t\t\"It looks like the aliens got the best\\nof you and humanity \" + \n\t\t\t\t\t\t\"is\\ndoomed... better luck next time!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if(this.iAlienHP <= 0)\n\t\t\t\t{\n\t\t\t\t\tthis.inventory.add(\"Platinum Key\");\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \"\n\t\t\t\t\t\t+ \"have killed the boss alien! He drops the\\n\" +\n\t\t\t\t\t\t\"Platinum Key!\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Pick up Platinum Key\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You took \" + this.iDmgTaken + \" damage, but you \"\n\t\t\t\t\t\t\t+ \"have killed the boss alien! He drops the\\n\" +\n\t\t\t\t\t\t\t\"Platinum Key!\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Pick up Platinum Key\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nBoss Alien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t\n\t\t\t\t\twhile (cAttack != 'a' && cAttack != 'A')\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"\\nInvalid choice.\\n\");\n\t\t\t\t\t\tSystem.out.print(\"________________________________________________________\"\n\t\t\t\t\t\t\t+ \"__________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"You inflict \" + this.iDmgDealt + \" damage. You take \" + \n\t\t\t\t\t\t\tthis.iDmgTaken + \" damage!\\n\\nBoss Alien HP left: \" + this.iAlienHP + \"\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"[A] Attack\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"HP: \" + getHP() + \"\\nWeapon: \" + getEquippedWeapon());\n\t\t\t\t\t\tSystem.out.print(\"\\n__________________________________________________________\"\n\t\t\t\t\t\t\t+ \"________________\\n\\n\");\n\t\t\t\t\t\tSystem.out.print(\"Action: \");\n\t\t\t\t\t\tstrInput = kbAlpha.nextLine();\n\t\t\t\t\t\tcAttack = strInput.charAt(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public final void receiveAttack(Weapon weapon) {\n this.availableLifePower = damageStrategy.processAttack(this, weapon);\n }", "public static void genWeaponList() {\r\n int i;\r\n\r\n auxItemVector.clear();\r\n \r\n if(currentChar == null) return;\r\n\r\n for (i = 0; i < currentChar.getItemsNumber(); i++) {\r\n if(currentChar.getItem(i).getType() == weapon)\r\n auxItemVector.add(currentChar.getItem(i));\r\n }\r\n }", "private static Weapon randomWeapon() {\r\n Random rand = new Random();\r\n int weaponType = rand.nextInt(7);\r\n switch (weaponType) {\r\n case 0: \r\n return new FryingPan();\r\n case 1:\r\n return new SubmachineGun();\r\n case 2:\r\n return new AssaultRifle();\r\n case 3:\r\n return new Pistol();\r\n case 4:\r\n return new Axe();\r\n case 5:\r\n return new Crowbar();\r\n default:\r\n return new Shotgun();\r\n }\r\n }", "public void changeGuns(int mode, EntityManager manager) {\r\n manager.setAmmoType(mode);\r\n firingMode = mode;\r\n shotTimeout = 0;\r\n this.setTexture(textureList.get(mode));\r\n switch (mode) {\r\n case 0:\r\n shotInterval = 300;\r\n break;\r\n case 1:\r\n shotInterval = 600;\r\n break;\r\n case 2:\r\n shotInterval = 10000;\r\n break;\r\n case 3:\r\n shotInterval = 3000;\r\n break;\r\n case 4:\r\n shotInterval = 300;\r\n break;\r\n case 5:\r\n shotInterval = 1500;\r\n break;\r\n }\r\n }", "@Test\n void doEffecthellion() {\n ArrayList<Player> pl = new ArrayList<>();\n AlphaGame g = new AlphaGame(1, pl,false, 8);\n WeaponFactory wf = new WeaponFactory(\"hellion\");\n Weapon w5 = new Weapon(\"hellion\", wf.getBooleans(), wf.getCosts(), wf.getRequestedNum(), wf.getApplier(), wf.getEffects(), wf.getDescriptions());\n WeaponDeck wd = new WeaponDeck();\n wd.addWeapon(w5);\n RealPlayer p = new RealPlayer('b', \"ciccia\");\n wd.addWeapon(w5);\n p.setPlayerPosition(Board.getSquare(0));\n p.getPh().drawWeapon(wd, w5.getName());\n RealPlayer victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n Terminator t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n ArrayList<Player> players = new ArrayList<>();\n players.add(victim);\n players.add(t);\n try{\n p.getPh().getWeaponDeck().getWeapon(w5.getName()).doEffect(\"base\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 1 && victim.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b') == 1);\n\n victim = new RealPlayer('y', \"ciccia\");\n victim.setPlayerPosition(Board.getSpawnpoint('b'));\n t = new Terminator('e', Board.getSpawnpoint('b'));\n t.setOwnerColor(victim.getColor());\n players.clear();\n players.add(victim);\n players.add(t);\n\n try{\n p.getPh().getWeaponDeck().getWeapon(w5.getName()).doEffect(\"alt\", null, null, p, players, null);\n }catch (WrongValueException | WrongPlayerException | WrongSquareException e) { }\n\n assertTrue(victim.getPb().getMarkedDamages('b') == 2 && victim.getPb().countDamages() == 1 && t.getPb().getMarkedDamages('b') == 2);\n }", "@Override\n public void onTypeAttack(Entity target) {\n if (target instanceof EntityLivingBase) {\n int time;\n switch (target.worldObj.difficultySetting) {\n case PEACEFUL:\n return;\n case EASY:\n time = 15;\n break;\n case NORMAL:\n time = 35;\n break;\n default:\n time = 75;\n }\n time *= 20;\n ((EntityLivingBase)target).addPotionEffect(new PotionEffect(Potion.resistance.id, time, -3));\n }\n }", "private void shoot() {\n\t\tif (playerList.size() > 0) {\n\t\t\tif (!someoneLose) {\n\t\t\t\tPlayer target = null;\n\t\t\t\tint remainingShips = SHIP_COUNT + 1;\n\t\t\t\tfor (Player player : playerList) {\n\t\t\t\t\tif (player.getRemainingShips() < remainingShips) {\n\t\t\t\t\t\ttarget = player;\n\t\t\t\t\t\tremainingShips = player.getRemainingShips();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSector targetSector = target.findFreeSector();\n\t\t\t\tlastTarget = targetSector.getMiddle();\n\t\t\t\tShootingThread st = new ShootingThread(chordImpl, targetSector.getMiddle());\n\t\t\t\tst.start();\n\t\t\t}\n\t\t}\n\t}", "private static void doEffect(Thing caster, Thing spell, Thing target) {\r\n \t\tint magicSkill=Spell.calcMagicSkill(caster,spell);\r\n \t\tint magicDefence=Spell.calcAntiMagic(target);\r\n \t\tint magicPower=Spell.calcMagicPower(caster,spell);\r\n \t\t\r\n \t\t// work out whether spell is effective\r\n \t\tboolean effective=true;\r\n \t\tboolean visible=target.isVisible(Game.hero());\r\n \t\tif ((magicDefence>0)&&spell.getStat(\"SpellUsage\")==Spell.SPELL_OFFENCE) {\r\n \t\t\tmagicSkill+=magicPower/5;\r\n \t\t\tGame.warn(\"Magic test: \"+magicSkill+\" vs. \"+magicDefence);\r\n \t\t\t\r\n \t\t\teffective=magicSkill>=(magicDefence*RPG.luckRandom(caster,target));\r\n \t\t}\r\n \t\t\r\n \t\tif ((caster!=null)&&target.getFlag(\"IsBeing\")&&(spell.getStat(\"SpellUsage\")==Spell.SPELL_OFFENCE)) {\r\n \t\t\tAI.notifyAttack(target,caster);\r\n \t\t}\r\n \t\t\r\n \t\tString hitname=spell.getString(\"HitName\");\r\n \t\tif (effective){\r\n \t\t\tif (hitname!=null) target.message(\"You are hit by the \"+hitname);\r\n \t\t\tEvent e=new Event(\"Effect\");\r\n \t\t\te.set(\"Strength\",magicPower);\r\n \t\t\te.set(\"Caster\",caster);\r\n \t\t\te.set(\"Target\",target);\r\n \t\t\tspell.handle(e);\r\n \t\t} else {\r\n \t\t\tif (visible) Game.message(target.getTheName()+\" \"+target.verb(\"resist\")+\" the \"+hitname);\r\n \t\t}\r\n \t}", "public void equip(Hero h) {\n\t\tfor(Weapon w : h.getInventory().getWeaponList()) {\n\t\t\tif(w.getName().equals(this.getName())) {\n\t\t\t\tw.setEquipped(true);\n\t\t\t\tw.statsIncrease(h, StatType.STRENGTH, getWeaponDmg());\n\t\t\t} else {\n\t\t\t\tw.unequip(h);\n\t\t\t}\n\t\t}\n\t}", "public void attack(RobotReference target) {\n if (target != null) {\n turnToVector(target.getLocation());\n pointGunToVector(target.getLocation());\n setAhead(60);\n fire(3);\n\n\n }\n }", "public void shoot(Point p, Graphics g, Player player){\r\n if(p.getX() > getXCoord()-20){ //not sure if -20 needed (it is to make cetner by the shoulder of arm)\r\n setFacing(1);\r\n } else{\r\n setFacing(0);\r\n }\r\n this.setAttackSpeedTimer(this.getAttackSpeedTimer() + 1);\r\n if(this.getAttackSpeedTimer() == this.getAttackSpeed()){\r\n\t\t Bullet bullet = new Bullet(this.getXCoord(), \r\n\t\t\t\t\t this.getYCoord(), this.getFacing(), g, findAngle(p), player);\r\n\t\t\t\t\t bullet.setAttack(50);\r\n\t\t bullet.setMouseY(this.getMouseY());\r\n\t\t bullet.setMouseX(this.getMouseX());\r\n\t\t bullet.setMouseAngle(this.getMouseAngle());\r\n\t \t bullet.setPlayerDirection(this.getPlayerDirection());\r\n\t\t this.addProjectile(bullet);\r\n\t\t this.setAttackSpeedTimer(0);\r\n\t\t //System.out.println(findAngle(p)*180/Math.PI);\r\n\t\t this.playSound();\r\n }\r\n }", "@Override\n\tpublic void onDamage(WorldObj obj, Items item) {\n\n\t\tif(is_stunned) {\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tint dmg = (int) item.type.ATK;\n\t\t\n\t\tOnScreenText.AddText(\"\"+dmg, bounds.x , bounds.y + 1.1f);\n\t\t\n\t\tvelX = obj.direction * 5;\n\t\tvelY = 5;\n\t\tgrounded = false;\n\t\t\n\t\tHP -= dmg;\n\t\t\n\n\t\tstun_counter = 0;\n\t\t\n\t\tif(HP <= 0 && !isDead) {\n\t\t\tonDeath();\n\t\t}\n\t\t\n\t}" ]
[ "0.7118549", "0.7037145", "0.68443006", "0.675274", "0.64771324", "0.6435424", "0.6428431", "0.6372801", "0.63582945", "0.6346749", "0.63402605", "0.6281745", "0.6260977", "0.6198667", "0.6181857", "0.61790496", "0.61668646", "0.6143513", "0.6143167", "0.61378986", "0.6137299", "0.60968167", "0.60354", "0.6002766", "0.59767485", "0.59634924", "0.59534127", "0.5941399", "0.5935316", "0.5928321", "0.5922652", "0.590237", "0.5897857", "0.5896205", "0.5894657", "0.5889351", "0.58809316", "0.58809316", "0.5878213", "0.5850691", "0.58499295", "0.5833227", "0.5830597", "0.5826785", "0.5818587", "0.5807", "0.58060443", "0.5799677", "0.5791299", "0.5789885", "0.5778756", "0.57707995", "0.5770485", "0.5769967", "0.5766807", "0.5762038", "0.5759485", "0.5756976", "0.5750032", "0.5747489", "0.57474035", "0.57457775", "0.5739508", "0.57364404", "0.57232815", "0.571967", "0.5714623", "0.5713616", "0.5709471", "0.5703354", "0.5689415", "0.5685687", "0.5681804", "0.5665664", "0.5664095", "0.56574214", "0.56559366", "0.565453", "0.5652752", "0.5652235", "0.5641152", "0.56354433", "0.5634369", "0.5630935", "0.5627011", "0.5626196", "0.56184816", "0.5617307", "0.5605809", "0.56042606", "0.56026244", "0.560233", "0.5596277", "0.5585016", "0.55752206", "0.55717665", "0.55699867", "0.5565439", "0.55579025", "0.5552279" ]
0.6983048
2
Completes the message and parses client response
private WeaponSelection getWeaponSelection(List<Weapon> weapons, JSONObject message) { JSONArray jArray = createJSONWeaponList(weapons); message.put("list", jArray); this.sendInstruction(message); JSONObject selected = (JSONObject) JSONValue.parse(this.getResponse()); return parseWeaponSelection(selected); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void endResponse() throws IOException {\n out.println();\n //out.println(\"--End\");\n out.flush();\n endedLastResponse = true;\n }", "public void endResponse()\n\t\t\t{\n\t\t\t\tsend(\"</response>\", false);\n\t\t\t}", "@Override\n public void onCompleted() {\n System.out.println(\"Sending final response as client is done\");\n //as client done, setting the result to response observer object\n responseObserver.onNext(LongGreetResponse.newBuilder().setResult(result).build());\n //complete the response\n responseObserver.onCompleted();\n }", "private void clientResponse(String msg) {\n JSONObject j = new JSONObject();\n j.put(\"statuscode\", 200);\n j.put(\"sequence\", ++sequence);\n j.put(\"response\", new JSONArray().add(msg));\n output.println(j);\n output.flush();\n }", "void sendFinishMessage();", "@Override\n\tpublic void complete(ReceiveResponseBean receiveResponseBean) {\n\n\t}", "public String receiveResponse()\n\t{\n\t\t\n\t}", "private void getMessage() throws Exception {\n\t\tGetTimestamp(\"Getting Message: \");\n\t\tString msg = \"\";\n\t\tString decmsg = \"\";\n\t\tbyte[] result;\n\t\ttry {\n\t\t\tmsg = br.readLine();\n\t\t\tJSONObject RESPONSE = new JSONObject();\n\t\t\tRESPONSE.put(\"payload\", msg);\n\t\t\tSystem.out.println(RESPONSE);\n\t\t\tdecmsg = decrypt(serversharedkey, msg);\n\t\t\tSystem.out.println(\"Decrypted Message from client is \" + decmsg);\n\n\t\t} catch (IOException ex) {\n\t\t\tLogger.getLogger(ServerTCP.class.getName()).log(Level.SEVERE, null, ex);\n\t\t}\n\t\tif (decmsg.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"Client has signed out!\");\n\t\t\tcloseConnection();\n\n\t\t} else {\n\t\t\tsendMessage();\n\t\t}\n\n\t}", "public ResultMessage finish() {\n\t\treturn null;\r\n\t}", "private void parseCompleteReqMessage() {\r\n byte result = _partialMessage.get(0);\r\n byte opCode = _partialMessage.get(1);\r\n byte numberOfParams = _partialMessage.get(2);\r\n\r\n /* cursor of bytes within 'message'. Parameters start at position 2 */\r\n int messageIndex = 3;\r\n int availableChars = (int) _partialMessage.size();\r\n\r\n List<String> paramList = new ArrayList<>();\r\n String param;\r\n\r\n for (byte i = 0; (i < numberOfParams) && (messageIndex < availableChars); i++) {\r\n param = \"\";\r\n\r\n /* collect data up to terminator */\r\n while ((messageIndex < availableChars) &&\r\n (_partialMessage.get(messageIndex) != '\\0')) {\r\n param += (char)((byte)(_partialMessage.get(messageIndex)));\r\n ++ messageIndex;\r\n }\r\n\r\n /* skip after terminator */\r\n if (messageIndex < availableChars) {\r\n ++ messageIndex;\r\n }\r\n\r\n paramList.add( param);\r\n }\r\n\r\n _replyDispatcher.onReplyReceivedForRequest(opCode, result, paramList);\r\n }", "public void startResponse()\n\t\t\t{\n\t\t\t\tsend(\"<response>\", false);\n\t\t\t}", "public void endMessage()\n\t{\n\t}", "@Override\r\n\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\r\n\t\t}", "public void readResponse()\n\t{\n\t\tDataObject rec = null;\n\t\tsynchronized(receive)\n\t\t{\n\t\t\trec = receive.get();\n\t\t}\n\t\tAssertArgument.assertNotNull(rec, \"Received packet\");\n\t\tpublishResponse(rec);\n\t}", "@Override\n\t\t\t\t\t\t public void run() {\n\t\t\t\t\t\t\t getResponse();\n\t\t\t\t\t\t }", "public abstract HTTPResponse finish();", "public String response() {\n\t\treturn message;\n\t}", "@Override\r\n\tpublic void newLineRecieved() {\n\t\tString response = grblPort.readNextLine();\r\n\t\tresponse.trim();\r\n\t\tSystem.out.println(\"Recieve: \" + response);\r\n\t\t//System.out.println(\"HAHAHAH\");\r\n\t\tif (response.contains(\"ok\") && grblPort.ok == false){\t\t\t\r\n\t\t\tgrblPort.ok = true;\t\t\r\n\t\t\tSystem.out.println(\"Got ACK\");\r\n\t\t\tif (!sendLines.isEmpty()){//If there is more stuff in the buffer, keep on sending it.\r\n\t\t\t\tsendLines.remove(0);\r\n\t\t\t\tgrblPort.sendDataLine(sendLines.get(0)); \t\t\r\n\t \t}\r\n\t\t}\r\n\t\tif (response.contains(\"error\")){\r\n\t\t\tSystem.out.println(\"ERROR...ERROR...ERROR...ERROR...ERROR...ERROR...ERROR...ERROR...ERROR\");\r\n\t\t\tgrblPort.sendDataLine(sendLines.get(0)); \r\n\t\t}\r\n\t\tif (response.contains(\"<\")&&response.contains(\">\")){\r\n\t\t\tif (!sendLines.isEmpty()){//If there is more stuff in the buffer, keep on sending it.\r\n\t\t\t//\tgrblPort.sendDataLine(sendLines.remove(0)); \t\t\r\n\t \t}\r\n\t\t\tresponse = response.replaceAll(\"<\", \"\");\r\n\t\t\tresponse = response.replaceAll(\">\", \"\");\r\n\t\t\tString data[] = response.split(\",\");\r\n\t\t\tfor (String string : data) {\r\n\t\t\t\tstring = string.toUpperCase();\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"************************************* \"+data[0]);\r\n\t\t\tswitch (data[0].toUpperCase()) {\r\n\t\t\tcase \"IDLE\":\r\n\t\t\t\tmachineState = MachineState.IDLE;\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"RUN\":\r\n\t\t\t\tmachineState = MachineState.RUNNING;\r\n\t\t\t\treturn;\r\n\t\t\t\t//break;\r\n\t\t\tcase \"QUEUE\":\r\n\t\t\t\tmachineState = MachineState.QUEUE;\r\n\t\t\t\treturn;\r\n\t\t\tdefault:\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}", "public ResponseMessageDefinition endResponseHeader() {\n return response;\n }", "public void getServerResponse() {\n\t\twhile (true) {\n\t\t\ttheMessage = readObject.readMessage();\n\t\t\tif (theMessage != null) {\n\t\t\t\tSystem.out.println(\"Server response is: \" + theMessage.getChoice());\n\t\t\t\tswitchBoard(theMessage.getChoice(), theMessage);\n\t\t\t}\n\t\t}\n\t}", "protected void finish() {\n writerServerTimingHeader();\n\n try {\n\n // maybe nobody ever call getOutputStream() or getWriter()\n if (bufferedOutputStream != null) {\n\n // make sure the writer flushes everything to the underlying output stream\n if (bufferedWriter != null) {\n bufferedWriter.flush();\n }\n\n // send the buffered response to the client\n bufferedOutputStream.writeBufferTo(getResponse().getOutputStream());\n\n }\n\n } catch (IOException e) {\n throw new IllegalStateException(\"Could not flush response buffer\", e);\n }\n\n }", "public void answer(Message response) throws IOException {\n out.writeObject(response);\n out.flush();\n }", "private String readVoidMessage() {\n JSONTokener tokener = new JSONTokener(this.inputStream);\n if(tokener.more()) {\n return TokenerHandler.getNextJSONStringNonContinuous(tokener);\n } else {\n throw new LostConnectionException();\n }\n }", "@Override\n public void onCompleted() {\n System.out.println(\"Server has completed sending us response\");\n // on completed will be called right after onNext\n // Whenever server is done sending data latch is going down by 1\n latch.countDown();\n }", "private void processNextMessage(ByteBuf buf) throws IgniteClientException {\n var unpacker = new ClientMessageUnpacker(buf);\n\n if (protocolCtx == null) {\n // Process handshake.\n pendingReqs.remove(-1L).complete(unpacker);\n return;\n }\n\n var type = unpacker.unpackInt();\n\n if (type != ServerMessageType.RESPONSE)\n throw new IgniteClientException(\"Unexpected message type: \" + type);\n\n Long resId = unpacker.unpackLong();\n\n int status = unpacker.unpackInt();\n\n ClientRequestFuture pendingReq = pendingReqs.remove(resId);\n\n if (pendingReq == null)\n throw new IgniteClientException(String.format(\"Unexpected response ID [%s]\", resId));\n\n if (status == 0) {\n pendingReq.complete(unpacker);\n } else {\n var errMsg = unpacker.unpackString();\n var err = new IgniteClientException(errMsg, status);\n pendingReq.completeExceptionally(err);\n }\n }", "@Override\n\tpublic void replyOperationCompleted() { ; }", "protected void doConsumeResponse() throws Exception {\n if (response.getEntity() != null)\n response_data = EntityUtils.toByteArray(response.getEntity());\n }", "private synchronized String receiveResponse() {\n\t\t\n\t\tlog.debug(\"Waiting for response from the device.\");\n\t\t\n\t\t//Initialize the buffers\n\t\tStringBuffer recievedData = new StringBuffer();\n\t\tchar currentChar = ' ';\n\n\t\ttry {\n\t\t\tdo {\n\t\t\t\t\n\t\t\t\t//If there are bytes available, read them\n\t\t\t\tif (this.inputStream.available() > 0) {\n\t\t\t\t\t\n\t\t\t\t\t//Append the read byte to the buffer\n\t\t\t\t\tcurrentChar = (char)this.inputStream.read();\n\t\t\t\t\trecievedData.append(currentChar);\n\t\t\t\t}\n\t\t\t} while (currentChar != ASCII_COMMAND_PROMPT); //Continue until we reach a prompt character\n\n\t\t} catch (IOException ioe) {\n\t\t\tlog.error(\"Exception when receiving data from the device:\", ioe);\n\t\t}\n\n\t\tString recievedString = recievedData.toString();\n\t\t\n\t\t//Remove the echoed command if ECHO_COMMAND is true\n\t\tif (echoCommand) {\n\t\t\trecievedString = recievedString.replace(this.lastCommand, \"\");\n\t\t}\n\t\t\n\t\t//Remove extra characters and trim the string\n\t\trecievedString = recievedString.replace(\"\\r\", \"\");\n\t\trecievedString = recievedString.replace(\">\", \"\");\n\t\trecievedString = recievedString.trim();\n\t\n\t\tlog.info(\"Received string from device: \" + recievedString);\n\t\t\n\t\t//Return the received data\n\t\treturn recievedString;\n\t\n\t}", "protected void buildResponse() {\r\n appendResponse(\"<?xml version=\\\"1.0\\\" standalone=\\\"no\\\"?>\\r\\n\");\r\n appendResponse(\"<!DOCTYPE RETS SYSTEM \\\"RETS-20021015.dtd\\\">\\r\\n\");\r\n appendResponse(\"<RETS ReplyCode=\\\"\");\r\n appendResponse(replyCode);\r\n appendResponse(\"\\\" ReplyText=\\\"\");\r\n appendResponse(replyText);\r\n appendResponse(\"\\\"\");\r\n\r\n if (getReplyCode() != REPLY_CODE_SUCCESS) {\r\n cat.debug(\"*****ERROR\");\r\n appendResponse(\" />\");\r\n } else {\r\n appendResponse(\" >\\n\");\r\n\r\n fillContent();\r\n\r\n appendResponse(\"</RETS>\\r\\n\");\r\n }\r\n\r\n cat.debug(\"RESPONSE ::\" + this.response.toString());\r\n }", "com.google.protobuf.ByteString getResponseMessage();", "public String getResponseMessage() { return responseMessage; }", "public void responseReceived(Connection conn, Object msg) {\n\t\tthis.endConnection = conn;\n\t\tthis.endMsg = msg;\n\t\tif (((UpdateForcedPlayerPositionOk) endMsg).uuid.equals(uuid)) {\n\t\t\tdetachFromParent();\n\t\t\tserver().setUpdatePos(uuid, true);\n\t\t\tSystem.out.println(\"Response received for \" + this);\n\t\t}\n\t}", "public String finish() throws IOException {\n StringBuffer response = new StringBuffer();\n\n writer.append(LINE_FEED).flush();\n writer.append(\"--\" + boundary + \"--\").append(LINE_FEED);\n writer.close();\n\n // checks server's status code first\n int status = httpConn.getResponseCode();\n if (status == HttpURLConnection.HTTP_OK) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n httpConn.getInputStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n response.append(line);\n }\n reader.close();\n httpConn.disconnect();\n } else {\n httpConn.disconnect();\n throw new IOException(\"Server returned non-OK status: \" + status);\n }\n\n return response.toString();\n }", "@Override\n public void onCompleted() {\n builder.setMessage(\"All request data received completely!\");\n responseObserver.onNext(builder.build());\n responseObserver.onCompleted();\n }", "public String finish() throws IOException {\n StringBuffer response = new StringBuffer();\n\n writer.append(LINE_FEED).flush();\n writer.append(\"--\" + boundary + \"--\").append(LINE_FEED);\n writer.close();\n\n // checks server's status code first\n int status = httpConn.getResponseCode();\n if (status == HttpURLConnection.HTTP_OK) {\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n httpConn.getInputStream()));\n String line = null;\n while ((line = reader.readLine()) != null) {\n response.append(line);\n }\n reader.close();\n httpConn.disconnect();\n } else {\n throw new IOException(\"Server returned non-OK status: \" + status);\n }\n\n return response.toString();\n }", "@Override\n\t\t\tpublic void onCompleted() {\n\t\t\t\tSystem.out.println(\"Completed Operations\");\n\t\t\t\tconnected_clients.remove(responseObserver);\n\t\t\t}", "@Override\n\tpublic void completed(Void arg0, Void arg1) {\n\t\tif(this.count < max){\n\t\t\tthis.count += 1;\n\t\t\tString msg = \"[\"+client.name+\"] hello this my \"+count+\"rd mssage-\"+System.currentTimeMillis();\n\t\t\tclient.writeProtocolMessage(msg,this);\n\t\t}\n\t}", "public void run() {\n\t\t\n\t\ttry {\n\t\tString reqS = \"\";\n\t\t\n\t\twhile(br.ready() || reqS.length() == 0) //reading the request from the client.\n\t\t\treqS += (char) br.read();\n\t\t\n\t\tSystem.out.println(reqS); //to see what the request message looks like (testing if the input is read in correctly)\n\t\trequest req = new request(reqS);\n\t\t\n\t\tresponse res = new response(req);\n\t\t\n\t\tpw.write(res.response.toCharArray());\n\t\t\n\t\tpw.close();\n\t\tbr.close();\n\t\ts.close();\n\t\t}\n\t\tcatch(Exception e){\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t}", "public void sendFinished(LinkLayerMessage message) {\n\t\t\n\t}", "@Override\n\t\t\t\tpublic void finished(Response response) {\n\t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n\t\t\t\t}", "private void __getReply() throws IOException\n {\n __getReply(true); // tagged response\n }", "public int onEnd() {\n\t\t\t\tflushMessageQueue();\n\t\t\t\treturn 0;\n\t\t\t}", "private static void readResponse(ClientResponse response)\r\n\t{\r\n\t// Response\r\n\tSystem.out.println();\r\n\tSystem.out.println(\"Response: \" + response.toString());\r\n\r\n\t}", "private void receiveAndDispatchMessage() {\n String response = null;\n try {\n while((response = bufferedReader.readLine()) != null) {\n System.out.println(\"received message from server: \" + response);\n String messageKind = \"\";\n if(response.contains(\":\")) {\n messageKind = response.substring(0, response.indexOf(\":\"));\n } else {\n messageKind = response;\n }\n Bundle bundle = new Bundle();\n bundle.putString(\"response\", response);\n switch (messageKind) {\n case ClientMessageKind.SIGNUPDENIED:\n case ClientMessageKind.SIGNUPOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNUPACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNUPACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.SIGNINDENIED:\n case ClientMessageKind.SIGNINOK:\n if(resultReceiverMap.keySet().contains(ActivityNames.COMMONSIGNINACTIVITY)) {\n resultReceiverMap.get(ActivityNames.COMMONSIGNINACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERLOC:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMDRIVER:\n if(resultReceiverMap.keySet().contains(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.CHATFROMPASSENGER:\n if(resultReceiverMap.keySet().contains(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERDEST:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.STARTRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n } else if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.ENDRIDE:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERENDSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERENDSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERCANCEL:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEPASSENGERPROFILEDENIED:\n case ClientMessageKind.UPDATEPASSENGERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.UPDATEDRIVERPROFILEDENIED:\n case ClientMessageKind.UPDATEDRIVERPROFILEOKAY:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERUPDATEPROFILEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERUPDATEPROFILEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.DRIVERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.PASSENGERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.PASSENGERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n case ClientMessageKind.PASSENGERREQUESTLOC:\n if(resultReceiverMap.containsKey(ActivityNames.DRIVERSTARTSERVICEACTIVITY)) {\n resultReceiverMap.get(ActivityNames.DRIVERSTARTSERVICEACTIVITY).send(\n ResultCode.RESULTCODE,\n bundle\n );\n }\n break;\n default:\n break;\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "private void returnResponse(Message message) {\n boolean needToRespond = false;\n synchronized (lock) {\n if (!answered) {\n answered = true;\n needToRespond = true;\n }\n }\n if (needToRespond) {\n // Stop the timer!\n cancelTimer();\n returnResponse(listener, responseQueue, message, id);\n }\n }", "public ResponseMessageDefinition endHeader() {\n // name and type is mandatory\n StringHelper.notEmpty(name, \"name\");\n StringHelper.notEmpty(dataType, \"dataType\");\n return response;\n }", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "@Override\n \t\t\t\tpublic void finished(Response response) {\n \t\t\t\t\tLog.w(\"myApp\", response.getResult() + \" \" + response.getError());\n \t\t\t\t}", "private void onRecognizeAsyncTaskComplete(OcrResult result){\n \t\n \tif(result != null){\n \tLog.v(TAG, \"Recognize complete (\" + result + \"): \" + result.getText());\n\t \tLog.v(TAG,\"recognize: (6) Bitmap is \" + result.getBitmap());\n try {\n \tif(currentRequest == MSG_RECOGNIZE_TXT){\n \t\tcurrentClient.get().send(Message.obtain(null, MSG_RESULT_TXT, currentRequest, mState.ordinal(), result.getText()));\t\n \t} else {\n \t\tcurrentClient.get().send(Message.obtain(null, MSG_RESULT, currentRequest, mState.ordinal(), result));\n \t}\n } catch (RemoteException e) {\n // The client is dead. \n \t\tLog.e(TAG,\"sendMessage: The client is dead. Message was: \" + result + \" (\" + MSG_RESULT + \")\");\n } catch (NullPointerException e) {\n // The reply to client is does not exist. \n \t\tLog.e(TAG,\"sendMessage: client was null. Message was: \" + result + \" (\" + MSG_RESULT + \")\");\n }\n \n \t} else {\n \t\t// We did not receive an OCR result\n \tLog.i(TAG, \"Recognize complete: No result\");\n \t\tsendMessage(currentClient, MSG_ERROR, currentRequest, getString(R.string.error_failed_recognition));\n \t}\n\n \t// Go back to IDLE (or if the baseApi no longer exists go to UNINITIALIZED\n \tmState = (baseApi != null) ? State.IDLE : State.UNINITIALIZED;\n\t\t\n \t// We're done with the current client. Remove any references to the object.\n currentClient = null;\n }", "@Override\n public void completed(Integer result, String attachment)\n {\n }", "protected void responseBodyConsumed() {\n\n // make sure this is the initial invocation of the notification,\n // ignore subsequent ones.\n responseStream = null;\n responseConnection.setLastResponseInputStream(null);\n\n if (shouldCloseConnection(responseConnection)) {\n responseConnection.close();\n }\n\n doneWithConnection = true;\n if (!inExecute) {\n ensureConnectionRelease();\n }\n }", "private String getResponse(){\n\t\tString msg;\n\t\tsynchronized (this){\n\t\t\twhile(!validResponse) {\n\t\t\t\ttry {\n\t\t\t\t\twait();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\tmsg = response;\n\t\t\tvalidResponse = false;\n\t\t\tnotifyAll();\n\t\t}\n\t\treturn msg;\n\t}", "public void DONE() throws SystemException {\r\n\t\t\r\n\t\t// Instance check.\r\n\t\tisResponseInstance();\r\n\t\tcommandResponder.done();\r\n\t}", "public void parseResponse();", "private void responseToServer() throws ReversiException {\n try {\n while (!done) {\n int msg = fromServer.readInt();\n report(\"Msg from server: \" + msg);\n switch (msg) {\n case ENTERROOM:\n othersEnterRoom();\n break;\n case ASSIGN:\n assign();\n break;\n case TURN:\n turn();\n break;\n case DRAWBLACK:\n drawBlack();\n break;\n case DRAWWHITE:\n drawWhite();\n break;\n case READY:\n ready();\n break;\n case INVALIDTRY:\n invalidTry();\n break;\n case INVALID:\n invalidMove();\n break;\n case WIN:\n win();\n break;\n case RESIGN:\n resign();\n break;\n case NEWGAME:\n startGame();\n break;\n case QUIT:\n othersQuit();\n break;\n case DONE:\n doQuit();\n break;\n case RETRIEVE:\n retrieve();\n break;\n case CHAT:\n showMessage();\n break;\n default:\n report(\"uncaught: \" + msg);\n }\n }\n } catch (IOException e){\n\n throw new ReversiException(\"Quit, unsolved exception catch.\");\n\n }\n }", "JsonNode readNextResponse() {\n try {\n String responseLine = this.stdout.readLine();\n if (responseLine == null) {\n throw new JsiiException(\"Child process exited unexpectedly!\");\n }\n final JsonNode response = JsiiObjectMapper.INSTANCE.readTree(responseLine);\n JsiiRuntime.notifyInspector(response, MessageInspector.MessageType.Response);\n return response;\n } catch (IOException e) {\n throw new JsiiException(\"Unable to read reply from jsii-runtime: \" + e.toString(), e);\n }\n }", "private void showFinishMsg() {}", "void complete(Messages.AuthResult authResult);", "public void handleFinish()\n {\n }", "public KineticMessage getResponseMessage() {\n return this.response;\n }", "private String parseAndRespond() {\n\t\tList<String> commands = new ArrayList<String>();\n\t\twhile (input.hasNext()) {\n\t\t\tString inputToken = input.next();\n\t\t\tcommands.add(inputToken);\n\t\t\tcommands.get(commands.size()-1).chars().forEach(p -> System.out.println(p));\n\t\t\t\n\t\t\t/* trap telnet control c */\n\t\t\tString telnetControlC = IntStream.of(65533,65533,65533,65533,6).collect(StringBuilder::new,\n\t\t\t\t\tStringBuilder::appendCodePoint, StringBuilder::append).toString();\n\t\t\tif (inputToken.contains(telnetControlC)) { \n\t\t\t\tSystem.out.println(\"Caught you CTRL+C evil!\");\n\t\t\t\treturn EXIT;\n\t\t\t}\n\t\t\tif (commands.get(commands.size()-1).equals(\".\")) {\n\t\t\t\tcommands.remove(commands.size()-1);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tif (commands.get(commands.size()-1).equals(EXIT)) return EXIT;\n\t\t\t\n\t\t}\n\t\t\n\t\tString response = \"\";\n\t\t/* I'm not sure if I want to trap an error or let it percolate up yet */\n\t\t\n//\t\ttry {\n\t\t\tresponse = commandInterpreter.interpretCommands(commands);\n//\t\t} catch (IOException e) {\n//\t\t\tlogger.log(Level.WARNING, \"Error interpreting commands\", e);\n//\t\t\tresponse = \"Error occured!\";\n//\t\t}\n\t\toutput.format(\"%s\\n>\",response);\n\t\toutput.flush();\n\t\t\n\n\t\treturn \"\";\n\n\t}", "@Override\n public void finish() {\n // Send the result or an error and clear out the response\n if (this.mAccountAuthenticatorResponse != null) {\n if (this.mResultBundle != null) {\n this.mAccountAuthenticatorResponse.onResult(this.mResultBundle);\n } else {\n this.mAccountAuthenticatorResponse.onError(AccountManager.ERROR_CODE_CANCELED, \"canceled\");\n }\n // Clear out the response\n this.mAccountAuthenticatorResponse = null;\n }\n super.finish();\n }", "@Override\n\t\t\t\t\t\t\tpublic void onComplete(String response, Object state) {\n\t\t\t\t\t\t\t\tString json = response;\n\t\t\t\t\t\t\t\tLog.d(\"arv\", \"arv\"+json);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}", "@Override\n public void handleMessage(Message msg) {\n Toast.makeText(context, \"complete!!!\", Toast.LENGTH_LONG);\n }", "public void complete(Message message) {\n if (message.header(\"exception\") == null) {\n messageFuture.complete(function.apply(message));\n } else {\n LOGGER.error(\"cid [{}] remote service invoke respond with error message {}\", correlationId, message);\n messageFuture.completeExceptionally(message.data());\n }\n futures.remove(this.correlationId);\n }", "public interface AsyncResponse {\n void processFinish(RoadInfo output);\n }", "private void handleCompleteCommand(Command command) {\n if (command.getCommandStatus() == CommandStatus.COMPLETE) {\n List<Frame> frames = commandToFrames(command);\n frames.forEach(frame -> connection.addFrameToSend(frame));\n } else {\n //throw exception\n }\n }", "void requestFinish();", "public com.google.protobuf.ByteString getResponseMessage() {\n return responseMessage_;\n }", "@Override\n\tpublic void completed(Void arg0, Void arg1) {\n\t\tif(this.count < max){\n\t\t\tthis.count += 1;\n\t\t\tString msg = \"[\"+client.name+\"] hello this my \"+count+\"rd mssage\";\n\t\t\tclient.writeMessage(msg,this);\n\t\t}\n\t}", "public ClientResponse getResponse() {\n return r;\n }", "public void endTransmission()\n\t\t\t{\n\t\t\t\t//Send close of transmission\n\t\t\t\tsend(\"</transmission>\", false);\n\t\t\t\t\n\t\t\t\t//Set connected to false so that server does not keep listening on this conn\n\t\t\t\tconnected = false;\n\t\t\t\ttry {\n\t\t\t\t\toutput.flush();\n\t\t\t\t\toutput.close();\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t/**\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t\toutput.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} */\n\t\t\t\t\n\t\t\t}", "@Override\r\n\tpublic void completed(Integer result, SessionState sessionState) {\n\t\tByteBuffer inputBuffer = ByteBuffer.allocate(2048);\r\n\t\tClientReadCompletionHandler clientReadCompletionHandler = new ClientReadCompletionHandler(socketChannel,\r\n\t\t\t\tinputBuffer);\r\n\t\tsocketChannel.read(inputBuffer, sessionState, clientReadCompletionHandler);\r\n\t}", "public void informDone(Object content){\n\n\t\tif( isParticipant() && ( getState() == RequestProtocolState.SENDING_RESULT ) ){\n\t\t\tsendMessage(content, Performative.INFORM, getInitiator());\n\t\t\tsetFinalStep();\n\t\t}\n\t\telse if( isInitiator() ){\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.14\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.15\")); //$NON-NLS-1$\n\t\t}\n\t}", "private void getResponse() {\n response = new Response();\n\n getResponseCode();\n getResponseMessage();\n getResponseBody();\n\n LOG.info(\"--- RESPONSE ---\");\n LOG.info(\"Code: \" + response.getResponseCode());\n LOG.info(\"Message: \" + response.getResponseMessage());\n LOG.info(\"Body: \" + response.getResponseBody());\n LOG.info(\"*************************************\");\n }", "public EndTurnResponse(String username, String message){\n //single player end game\n super(username, MessageType.ENDTURNUPDATE);\n this.message = message;\n this.gameOver=true;\n this.isSinglePlayer = true;\n }", "void finish(Channel channel, Object msg);", "@Override\n\t\tpublic void onComplete(String response, Object state) {\n\t\t\tLog.d(\"arvi\", \"arvi1111\");\n\t\t}", "private void finishRequest(String message, Request baseRequest, HttpServletResponse response) throws IOException {\n ByteArrayISO8859Writer writer = new ByteArrayISO8859Writer(1500);\n writer.write(message);\n writer.flush();\n\n response.setContentLength(writer.size());\n\n OutputStream outputStream = response.getOutputStream();\n writer.writeTo(outputStream);\n\n outputStream.close();\n writer.close();\n baseRequest.getConnection().getEndPoint().close();\n }", "void complete() {\n try {\n try {\n subscriber.onComplete();\n } catch (Throwable e) {\n Exceptions.handleUncaught(Conformance.onCompleteThrew(e));\n }\n } finally {\n // no need to remove ourselves from psm.\n terminate();\n }\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tthis.sendMessage(Response.WELCOME_MESSAGE);\n\t\t\t// Get new command from client\n\t\t\twhile (true) {\n\t\t\t\tthis.executeCommand();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// If a exception is catch we just close the client connection\n\t\t\ttry {\n\t\t\t\tthis.close();\n\t\t\t} catch (IOException e1) {\n\t\t\t\t/// just throw the exception of the close\n\t\t\t\tthrow new RuntimeException(e1);\n\t\t\t}\n\t\t}\n\t}", "public Message getResponseData();", "private void closeMessage() {\n setContentLengthHeader();\n setCookieHeader();\n }", "void onSendMessageComplete(String message);", "public void tractaResposta(String s) throws IOException {\n if (s.equals(\"OK\")){\n ResponseSuccess = true;\n }else{\n KOMessage = diStream.readUTF();\n ResponseSuccess = false;\n }\n }", "@Override\n public void onNext(LongGreetResponse value) {\n System.out.println(\"Received a response from the server\");\n System.out.println(value.getResult());\n // on next will be called only once because of Client Streaming\n }", "@Override\n public void onCompleted() {\n System.out.println(\n \"\\n\\tServer is finished!\"\n );\n\n this.latch.countDown();\n }", "public com.google.protobuf.ByteString getResponseMessage() {\n return responseMessage_;\n }", "@Override\n\t\t\tpublic void onSuccess(List<ClientMessageDecorator> result) {\n\t\t\t\tfor (int i = result.size()-1; i >= 0; i--) {\n\t\t\t\t\taddMessage(result.get(i), false);\n\t\t\t\t}\n\t\t\t}", "public void handleResponse(byte[] result, Command originalCommand);", "public void run() {\n\t\ttry {\n\t\t\tout = new PrintWriter(client.getOutputStream(), true);\n\t\t\tin = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\t\ts.getMessage(this, inputLine);\n\t\t\t\tSystem.out.println(inputLine);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Couldn't get I/O for the connection to host\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t}", "public void getCompleteResponse(int channel, IccIoResult lastResponse, ByteArrayOutputStream responseBuilder, AsyncResultCallback<IccIoResult> resultCallback, Handler handler) {\n IccIoResult iccIoResult = lastResponse;\n ByteArrayOutputStream resultBuilder = responseBuilder == null ? new ByteArrayOutputStream() : responseBuilder;\n if (iccIoResult.payload != null) {\n try {\n resultBuilder.write(iccIoResult.payload);\n } catch (IOException e) {\n }\n }\n if (iccIoResult.sw1 != 97) {\n iccIoResult.payload = resultBuilder.toByteArray();\n resultCallback.onResult(iccIoResult);\n return;\n }\n TransmitApduLogicalChannelInvocation transmitApduLogicalChannelInvocation = this.mTransmitApdu;\n ApduCommand apduCommand = new ApduCommand(channel, 0, 192, 0, 0, iccIoResult.sw2, \"\");\n final int i = channel;\n final ByteArrayOutputStream byteArrayOutputStream = resultBuilder;\n final AsyncResultCallback<IccIoResult> asyncResultCallback = resultCallback;\n final Handler handler2 = handler;\n AnonymousClass3 r2 = new AsyncResultCallback<IccIoResult>() {\n public void onResult(IccIoResult response) {\n ApduSender.this.getCompleteResponse(i, response, byteArrayOutputStream, asyncResultCallback, handler2);\n }\n };\n transmitApduLogicalChannelInvocation.invoke(apduCommand, r2, handler);\n }", "public void endGameMessage() {\n gameArena.addText(endGameMsg);\n }", "@Override\n\t\t\t\t\tpublic void onComplete() {\n\t\t\t\t\t}", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onComplete() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void processResponse(ChannelSession chnl, TransportBuffer buffer)\n { \n if (buffer.length() < 40)\n return;\n \n outputString.delete(0, outputString.length());\n \n // If message, display which channel Session this is on\n for (int i = 0; i < channelSessions.size(); ++i)\n {\n if (channelSessions.get(i).channelInfo().channel() == ((EDFChannelSession)chnl).channelInfo().channel())\n {\n outputString.append(\"\\n<Realtime Channel \" + i + \"> \");\n break;\n }\n }\n \n // clear decode iterator\n dIter.clear();\n \n outputString.append(\"SEQ NO: \" + ((EDFChannelSession)chnl).channelInfo().readArgs().seqNum() + \" \");\n \n // set buffer and version info\n dIter.setBufferAndRWFVersion(buffer, chnl.channel().majorVersion(), chnl.channel()\n .minorVersion());\n\n int ret = responseMsg.decode(dIter);\n if (ret != CodecReturnCodes.SUCCESS)\n {\n System.out.println(\"\\nDecodeMsg(): Error \" + ret + \" on SessionData Channel=\"\n + chnl.channel().selectableChannel() + \" Size \"\n + (buffer.data().limit() - buffer.data().position()));\n closeChannel();\n System.exit(TransportReturnCodes.FAILURE);\n }\n\n ChannelInfo channelInfo = ((EDFChannelSession) chnl).channelInfo();\n\n for (ChannelInfo chanInfo : ((EDFChannelSession)chnl).channels())\n {\n if (chanInfo.connectOptions().unifiedNetworkInfo().address() == channelInfo.connectOptions().unifiedNetworkInfo().address() &&\n chanInfo.connectOptions().unifiedNetworkInfo().serviceName() == channelInfo.connectOptions().unifiedNetworkInfo().serviceName())\n {\n \n if ( channelInfo.readArgs().seqNum() > chanInfo.gapInfo().start + 1 && chanInfo.gapInfo().start != 0)\n {\n gapDetected = true;\n chanInfo.gapInfo().start = chanInfo.gapInfo().start + 1;\n chanInfo.gapInfo().end = channelInfo.readArgs().seqNum() - 1;\n }\n else\n {\n chanInfo.gapInfo().start = channelInfo.readArgs().seqNum();\n chanInfo.gapInfo().end = channelInfo.readArgs().seqNum();\n }\n \n // Check if address and port are on this gapInfo, if not, put it on based on channel's info\n if (chanInfo.gapInfo().address.data() == null)\n {\n chanInfo.gapInfo().address.data(channelInfo.connectOptions().unifiedNetworkInfo().address());\n chanInfo.gapInfo().port = Integer.valueOf(channelInfo.connectOptions().unifiedNetworkInfo().serviceName());\n }\n\n break;\n }\n }\n \n\n\n processResponse(chnl, responseMsg, dIter, outputString);\n }", "public int getResponse() {return response;}", "protected void handleSuccessMessage(Response response) {\n\t\tonRequestResponse(response);\n\t}", "@Override\n public void result(Message[] messages) {\n synchronized (semaphore) {\n responseMessages[0] = messages;\n notified = true;\n semaphore.notifyAll();\n }\n }", "public void processReq(){\n //Using auto cloable for reader ;)\n try( BufferedReader reader = new BufferedReader(new InputStreamReader(clientSock.getInputStream()))){\n String mess = reader.readLine();\n String returnMess = getData(mess);\n\n PrintWriter writer = new PrintWriter(clientSock.getOutputStream());\n writer.println(returnMess);\n writer.flush();\n\n //Close sockets\n clientSock.close();\n sock.close();\n } catch (IOException e) {\n System.err.println(\"ERROR: Problem while opening / close a stream\");\n }\n }" ]
[ "0.64204776", "0.6367694", "0.6345734", "0.63350725", "0.6275108", "0.6161082", "0.6087877", "0.60663384", "0.60558015", "0.60492814", "0.6019498", "0.59491277", "0.59113634", "0.58994496", "0.58835834", "0.588142", "0.5838772", "0.58381844", "0.5829782", "0.5822082", "0.58029044", "0.58026105", "0.57906795", "0.577316", "0.5716616", "0.570913", "0.5704231", "0.569715", "0.56787187", "0.5647471", "0.5639936", "0.56330436", "0.5628233", "0.5612287", "0.5609282", "0.56000876", "0.5593799", "0.55841494", "0.55796283", "0.5566456", "0.55642444", "0.555931", "0.5558485", "0.55374247", "0.55359584", "0.55284214", "0.55198896", "0.55198896", "0.5499448", "0.5499051", "0.54965085", "0.54847026", "0.54679406", "0.54663813", "0.54542637", "0.5450837", "0.5448247", "0.5442971", "0.54297554", "0.5416322", "0.5415865", "0.54157555", "0.5411121", "0.54080856", "0.5406987", "0.5399341", "0.5397219", "0.5394053", "0.5391455", "0.53903264", "0.538793", "0.5380702", "0.538009", "0.53746575", "0.5367641", "0.536742", "0.53643876", "0.5361686", "0.53523195", "0.535086", "0.53501946", "0.534746", "0.5337604", "0.5337519", "0.53300625", "0.53294474", "0.53237474", "0.53193516", "0.53185356", "0.53184474", "0.53174514", "0.5314345", "0.53113896", "0.5309754", "0.5301045", "0.5301045", "0.53000367", "0.5292241", "0.5289516", "0.5282257", "0.52794737" ]
0.0
-1
creats a JSONArray with weapons in a given list
private JSONArray createJSONWeaponList(List<Weapon> weapons) { JSONArray jArray = new JSONArray(); weapons.forEach(s -> jArray.add(s.getName())); return jArray; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private HashMap<String, Weapon> readWeapons() {\n JSONObject weaponsData = getAssetJson(\"weapons.json\").getJSONObject(\"weapons\");\n HashMap<String, Weapon> weapons = new HashMap<>();\n\n for(String categoryName : weaponsData.keySet()) {\n Weapon.CATEGORY category = Weapon.CATEGORY.fromName(categoryName);\n JSONObject categoryWeaponsData = weaponsData.getJSONObject(categoryName);\n final String categoryPath = Weapon.BASE_PATH + categoryName + \"/\";\n\n for(String weaponId : categoryWeaponsData.keySet()) {\n JSONObject weaponData = categoryWeaponsData.getJSONObject(weaponId);\n\n weapons.put(\n weaponId,\n new Weapon(\n weaponId,\n weaponData.getString(NAME_KEY),\n category,\n weaponData.getInt(\"cost\"),\n resourceHandler.getImageResource(categoryPath + weaponId + \".png\")\n )\n );\n }\n }\n\n return weapons;\n }", "public void setWeaponCardsAndPieces() {\n List<WeaponCard> weaponCards = new ArrayList<>(); // empty list for the new weapon cards\n List<WeaponPiece> weaponPieces = new ArrayList<>(); // empty list for the new weapon pieces\n\n Data data = new Data(\"data.json\"); // read data from data.json\n JSONObject weaponData = (JSONObject) data.getJsonData().get(\"Weapons\"); // get the weapon data from the data\n for (int i = 0; i < 6; i++) { // for loop 0 to 5\n String weaponName = String.valueOf(weaponData.get(String.valueOf(i))); // get the weapon name\n //Make and add weaponCard and WeaponPiece to their specified lists.\n weaponCards.add(new WeaponCard(weaponName));\n weaponPieces.add(new WeaponPiece(weaponName));\n }\n //Assign the lists into their class variables\n this.weaponCards = weaponCards;\n this.weaponPieces = weaponPieces;\n }", "public static void genWeaponList() {\r\n int i;\r\n\r\n auxItemVector.clear();\r\n \r\n if(currentChar == null) return;\r\n\r\n for (i = 0; i < currentChar.getItemsNumber(); i++) {\r\n if(currentChar.getItem(i).getType() == weapon)\r\n auxItemVector.add(currentChar.getItem(i));\r\n }\r\n }", "private void createWeapons()\n {\n woodSword = new Weapon(\"wood sword\", \" | does 12 damage\", 10, true); \n rustedSword = new Weapon(\"rusted sword\", \" | does 17 damage\", 15, true);\n silverSword = new Weapon(\"silver sword\", \" | does 32 damage\", 30, true);\n goldSword = new Weapon(\"gold sword\", \" | does 22 damage\", 20, true);\n titaniumSword = new Weapon(\"titanium sword\", \" | does 52 damage\", 50, true);\n silverSpear = new Weapon(\"silver spear\", \" | does 25 damage\", 23, true);\n infantryBow = new Weapon(\"infantry bow\", \" | does 30 damage\", 28, true);\n }", "public Vector<EntityWeapon> getWeaponList();", "public Weapon[] getWeapons(){\n\t\tSystem.out.println(\"Creating Weapons...\");\n\t\tfor(int i=0; i<boardWeapons.length; i++){\n\t\t\tSystem.out.println(boardWeapons[i].getName());\n\t\t}\n\t\treturn boardWeapons;\n\t}", "public static Data<Weapon> weaponList(){\n\t\tData<Weapon> res = new Data<Weapon>();\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Epée bâtarde\",Type.CAC_1M, TypeDamage.T, TypeMaterial.STEEL,35,3), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Hache d’armes\",Type.CAC_1M, TypeDamage.T, TypeMaterial.STEEL,10,3), 4));\n\t\tres.add(new Tuple<Weapon, Integer>(new Munition(\"Bolas\",TypeDamage.C,\"_\",5,1), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Gourdin\",Type.CAC_1M,TypeDamage.C, TypeMaterial.WOOD,0,1.5), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arc long composite\", new Munition(\"Flèche\",0.075),TypeDamage.P,TypeMaterial.WOOD,100,1.5), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arc court composite\", new Munition(\"Flèche\",0.075),TypeDamage.P,TypeMaterial.WOOD,75,1), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Dague\", Type.CAC_LIGHT ,TypeDamage.P_T,TypeMaterial.STEEL,2,0.5), 4));\n\t\tres.add(new Tuple<Weapon, Integer>(new Munition(\"Fléchette\", TypeDamage.P, \"_\",0.5,0.25), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Hache d’armes naine\", Type.CAC_1M ,TypeDamage.T, TypeMaterial.STEEL,15,3), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Cimeterre à deux mains\", Type.CAC_2M,TypeDamage.T, TypeMaterial.STEEL,75,4), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Gantelet\", Type.CAC_LIGHT, TypeDamage.C, TypeMaterial.STEEL,2,0.5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Coutille\", Type.CAC_2M, TypeDamage.T, TypeMaterial.STEEL,8,5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Grande hache\", Type.CAC_2M,TypeDamage.T,TypeMaterial.STEEL,20,6), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Massue\",Type.CAC_2M ,TypeDamage.C, TypeMaterial.WOOD,5,4), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Epée à deux mains\", Type.CAC_2M, TypeDamage.T, TypeMaterial.STEEL,50,4), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Hallebarde\", Type.CAC_2M ,TypeDamage.P_T, TypeMaterial.STEEL,10,6), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Hachette\", Type.CAC_LIGHT ,TypeDamage.T, TypeMaterial.STEEL,6,1.5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arbalète lourde\", new Munition(\"Carreau\",0.05),TypeDamage.P, TypeMaterial.STEEL,50,4), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Fléau d’armes lourd\", Type.CAC_2M,TypeDamage.C, TypeMaterial.STEEL,15,5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Masse d’armes lourde\", Type.CAC_1M,TypeDamage.C, TypeMaterial.STEEL,12,4), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Lance d’arçon\", Type.CAC_2M, TypeDamage.P, TypeMaterial.STEEL,10,5), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arbalète légère\", new Munition(\"Carreau\",0.05),TypeDamage.P, TypeMaterial.STEEL,35,2), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Fléau d’armes léger\", Type.CAC_1M, TypeDamage.C, TypeMaterial.STEEL,8,2.5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Marteau léger\", Type.CAC_LIGHT ,TypeDamage.C, TypeMaterial.STEEL,1,2), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Masse d’armes légère\", Type.CAC_LIGHT,TypeDamage.C, TypeMaterial.STEEL,5,2), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Pic de guerre léger\", Type.CAC_LIGHT ,TypeDamage.P, TypeMaterial.STEEL,4,1.5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arc long\", new Munition(\"Flèche\",0.075),TypeDamage.P, TypeMaterial.WOOD,75,1.5), 4));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Pique\", Type.CAC_2M,TypeDamage.P, TypeMaterial.WOOD,5,4.5), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Epée longue\", Type.CAC_1M, TypeDamage.T, TypeMaterial.STEEL,15,2), 7));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Morgenstern\", Type.CAC_1M, TypeDamage.C_P,TypeMaterial.STEEL,8,3), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Nunchaku\", Type.CAC_LIGHT, TypeDamage.C, TypeMaterial.WOOD,2,1), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Bâton\", Type.CAC_2M, TypeDamage.C, TypeMaterial.WOOD,0,2), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Rapière\", Type.CAC_1M, TypeDamage.P ,TypeMaterial.STEEL,20,1), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Sai\", Type.CAC_LIGHT, TypeDamage.C_P ,TypeMaterial.STEEL,1,0.5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Matraque\", Type.CAC_LIGHT, TypeDamage.C ,TypeMaterial.WOOD,1,1), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Cimeterre\", Type.CAC_1M, TypeDamage.T ,TypeMaterial.STEEL,15,2), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Faux\", Type.CAC_2M, TypeDamage.C_P ,TypeMaterial.STEEL,18,5), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Arc court\", new Munition(\"Flèche\",0.075),TypeDamage.P, TypeMaterial.WOOD,30,1), 4));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Epieu\", Type.CAC_1M, TypeDamage.P ,TypeMaterial.STEEL,1,1.5), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Epée courte\", Type.CAC_1M, TypeDamage.P ,TypeMaterial.STEEL,10,1), 5));\n\t\tres.add(new Tuple<Weapon, Integer>(new Munition(\"Shuriken\",TypeDamage.P,\"_\",1,0.25), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Serpe\", Type.CAC_LIGHT, TypeDamage.T ,TypeMaterial.STEEL,6,1), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Fronde\", new Munition(\"Bille\",0.25),TypeDamage.C,null,0,0), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Lance\", Type.CAC_2M, TypeDamage.P, TypeMaterial.STEEL,2,3), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Trident\", Type.CAC_1M,TypeDamage.P, TypeMaterial.STEEL,15,2), 1));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Marteau de guerre\", Type.CAC_1M,TypeDamage.C, TypeMaterial.STEEL,12,2.5), 3));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Fouet\", Type.CAC_1M, TypeDamage.T, TypeMaterial.STEEL,1,1), 1));\n\t\t//Cas des armes a choisir manuellement.\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Autre arme de corps à corps légère\", Type.CAC_LIGHT, TypeDamage.NOTHING, null,0,0), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Autre arme de corps à corps à une main\", Type.CAC_1M, TypeDamage.NOTHING, null,0,0), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new MeleeWeapon(\"Autre arme de corps à corps à deux mains\", Type.CAC_2M, TypeDamage.NOTHING, null,0,0), 2));\n\t\tres.add(new Tuple<Weapon, Integer>(new RangeWeapon(\"Autre arme à distance\", new Munition(\"Autre munition\",0), TypeDamage.NOTHING,null,0,0), 2));\n\t\t\n\t\treturn res;\n\t}", "public JSONArray transforme(ArrayList<String> liste){\n\n JSONArray jliste = new JSONArray();\n for (int i = 0; i < liste.size(); i++) {\n Log.i(\"QUESTION \"+i,liste.get(i));\n jliste.put(liste.get(i));\n }\n Log.i(\"JLISTE\",jliste.toString());\n return jliste;\n }", "private JSONArray foodsToJson() {\n JSONArray jsonArray = new JSONArray();\n\n for (Food f : units) {\n jsonArray.put(f.toJson());\n }\n\n return jsonArray;\n }", "@POST(\"/MakeWeaponList\")\n\tpublic Map<Integer, Weapon> makeWeaponList(@Body int id) throws GameNotFoundException;", "public void generateTutorialWeapons() {\n this.loot.add(new Weapon(\"Weathered Longsword\", \"A weathered longsword - it'll do.\", 3, 1));\n this.loot.add(new Weapon(\"Weathered Battle Axe\", \"A weathered battle axe - it'll do.\", 2, 2));\n this.loot.add(new Weapon(\"Weathered Bow\", \"A weathered bow - it'll do.\", 3, 2));\n }", "private Set<BoardObject> createWeapons(){\r\n\t\tSet<BoardObject> weaps = new HashSet<BoardObject>();\r\n\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/revolver1.png\"), new Coordinate(3,12), \"Revolver\"));\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/candlestick3.png\"), new Coordinate(2,3), \"Candlestick\"));\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/knife1.png\"), new Coordinate(12,3), \"Knife\"));\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/leadpipe1.png\"), new Coordinate(20,3), \"LeadPipe\"));\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/rope1.png\"), new Coordinate(20,10), \"Rope\"));\r\n\t\tweaps.add(new BoardObject(getImage(\"xboardObjects/spanner1.png\"), new Coordinate(20,16), \"Wrench\"));\r\n\t\treturn weaps;\r\n\t}", "public void setWeapons(ArrayList<WeaponClient> weapons) {\n this.weapons = weapons;\n }", "@Test\n public void encodeWeaponsTest() {\n Weapon weapon1 = new LockRifle();\n Weapon weapon2 = new Electroscythe();\n Weapon weapon3 = new MachineGun();\n ArrayList<Weapon> weaponsList = new ArrayList<>();\n weaponsList.add(weapon1);\n weaponsList.add(weapon2);\n weaponsList.add(weapon3);\n ArrayList<String> weaponsListLite = Encoder.encodeWeaponsList(weaponsList);\n String[] weaponsArrayLite = Encoder.encodeWeaponsIntoArray(weaponsList);\n ArrayList<String> expectedListLite = new ArrayList<>();\n expectedListLite.add(\"LOCK RIFLE\");\n expectedListLite.add(\"ELECTROSCYTHE\");\n expectedListLite.add(\"MACHINE GUN\");\n String[] expectedArrayLite = new String[]{\"LOCK RIFLE\", \"ELECTROSCYTHE\", \"MACHINE GUN\"};\n Assert.assertEquals(expectedListLite, weaponsListLite);\n for (int i = 0; i < weaponsArrayLite.length; i++) {\n Assert.assertEquals(weaponsArrayLite[i], expectedArrayLite[i]);\n }\n }", "public void generateVehicles(JSONObject resp) throws JSONException {\n birds = new ArrayList<Vehicle>();\n JSONArray items = resp.getJSONArray(\"birds\");\n double lat = 0;\n double lng = 0;\n String id = \"\";\n int bat = 0;\n System.out.println(items.toString());\n System.out.println(\"parsing.....\");\n for(int i=0;i<items.length();++i){\n JSONObject current = (JSONObject) items.get(i);\n //Vehicle(String vendor,String id, int battery, double lat, double lng, double startPrice, double minutePrice)\n //birds.add(new Vehicle(\"bird\",items.get(i).getString(\"id\");\n if(current.getString(\"captive\").equals(\"false\")) {\n JSONObject loc = current.getJSONObject(\"location\");\n lat = loc.getDouble(\"latitude\");\n lng = loc.getDouble(\"longitude\");\n bat = Integer.parseInt(current.getString(\"battery_level\"));\n id = current.getString(\"id\");\n\n Vehicle veh = new Vehicle(\"bird\",id,bat,lat,lng,\"$1 to unlock $0.27 / 1 min\");\n veh.setType(\"scooter\");\n System.out.print(veh);\n\n birds.add(veh);\n }\n }\n/* for(int i=0;i<birds.size();++i){\n System.out.println(birds.get(i));\n }\n */\n\n }", "public ArrayList<Weapon> getWeaponList() {\n return new ArrayList<>(weaponList);\n }", "static Weapon[] getWeapons() throws FileNotFoundException{\n\t\tString[] weaponData = readFile(\"Data/Weapons.txt\");\n\t\tWeapon[] weapons = new Weapon[weaponData.length];\n\t\t\n\t\tfor (int i = 0; i < weaponData.length; i++){\n\t\t\tString[] thisWeaponData = weaponData[i].split(\"/\");\n\t\t\tweapons[i] = new Weapon(\n\t\t\t\t\tthisWeaponData[0],\n\t\t\t\t\tInteger.parseInt(thisWeaponData[1]),\n\t\t\t\t\tInteger.parseInt(thisWeaponData[2]),\n\t\t\t\t\tInteger.parseInt(thisWeaponData[3]),\n\t\t\t\t\tInteger.parseInt(thisWeaponData[4]),\n\t\t\t\t\tInteger.parseInt(thisWeaponData[5]),\n\t\t\t\t\tInteger.parseInt(thisWeaponData[6]),\n\t\t\t\t\tInteger.parseInt(thisWeaponData[7]),\n\t\t\t\t\tDouble.parseDouble(thisWeaponData[8]),\n\t\t\t\t\tDouble.parseDouble(thisWeaponData[9]),\n\t\t\t\t\tDouble.parseDouble(thisWeaponData[10]),\n\t\t\t\t\tInteger.parseInt(thisWeaponData[11]));\n\t\t}\n\t\t\n\t\treturn weapons;\n\t}", "public static JSONObject getalacarteItems() throws JSONException{\n\t\tJSONObject jsonalacarteItemList = new JSONObject();\n\t\tJSONArray jArray = new JSONArray();\n\t\ttry {\n\t\t\tSQL:{\n\t\t\tConnection connection = null;\n\t\t\tPreparedStatement preparedStatement = null;\n\t\t\tResultSet resultSet = null;\n\t\t\tString sql = \"SELECT * FROM food_alacarte_items\";\n\n\t\t\ttry {\n\t\t\t\tconnection = DBConnection.createConnection();\n\t\t\t\tpreparedStatement = connection.prepareStatement(sql);\n\t\t\t\tresultSet = preparedStatement.executeQuery();\n\t\t\t\twhile(resultSet.next()){\n\t\t\t\t\tJSONObject jsonObject = new JSONObject();\n\t\t\t\t\tjsonObject.put(\"alacarteItemId\", resultSet.getString(\"alacarte_item_id\"));\n\t\t\t\t\tjsonObject.put(\"alacarteItemName\", resultSet.getString(\"alacarte_item_name\"));\n\t\t\t\t\tjsonObject.put(\"alacarteItemPrice\", resultSet.getString(\"alacarte_item_price\"));\n\t\t\t\t\tjArray.put(jsonObject);\n\t\t\t\t}\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO: handle exception\n\t\t\t\tSystem.out.print(e);\n\t\t\t}finally{\n\t\t\t\tif(connection!=null){\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t\tjsonalacarteItemList.put(\"alacarte_item_list\", jArray);\n\t\treturn jsonalacarteItemList;\n\t}", "public void allocateWeapons() {\n Collections.shuffle(this.getWeaponPieces());\n List<Room> rooms = this.board.getRooms();\n Collections.shuffle(rooms);\n int roomIndex = 0;\n for (WeaponPiece weapon : this.getWeaponPieces()) {\n Room room = rooms.get(roomIndex);\n if (room.getWeaponPiece() == null) {\n room.setWeaponPiece(weapon);\n roomIndex += 1;\n }\n }\n }", "private org.json.simple.JSONArray createJsonArrayList() {\n org.json.simple.JSONArray list = new org.json.simple.JSONArray();\n for (VoteOption v : voteOptions) {\n list.add(v.getText());\n }\n return list;\n }", "public void makeArray(){\n for (int i = 0; i<length; i++){\n departements[i] = wallList.get(i).getName();\n }\n }", "public void createPlayerListArray(int numberOfPlayers) throws IOException {\n //Generate string from JSON data\n String jsonFile = \"data/players.json\";\n //Instantiate new Gson class\n Gson gson = new Gson();\n FileReader fileReader = new FileReader(jsonFile);\n JsonReader jsonReader = new JsonReader(fileReader);\n ReadJson[] data = gson.fromJson(jsonReader, ReadJson[].class);\n\n for (int i = 0; i < numberOfPlayers; i++) {\n\n String firstName = data[i].getFirst_name();\n String lastName = data[i].getLast_name();\n\n this.playersList.add(new Player(firstName, lastName));\n //shuffle the arrayList for randomness\n Collections.shuffle(playersList);\n\n }\n }", "private void createJSON(){\n json = new JSONObject();\n JSONArray userID = new JSONArray();\n JSONArray palabras = new JSONArray();\n JSONArray respuesta = new JSONArray();\n\n @SuppressLint(\"SimpleDateFormat\") DateFormat formatForId = new SimpleDateFormat(\"yyMMddHHmmssSSS\");\n String id = formatForId.format(new Date()) + \"_\" + android_id;\n userID.put(id);\n global.setUserID(id);\n\n for (int i = 0; i < global.getWords().size() && i < 7; i++){\n palabras.put(global.getWords().get(i));\n }\n\n respuesta.put(url);\n\n try {\n json.put(\"userID\", userID);\n json.put(\"palabras\", palabras);\n json.put(\"respuesta\", respuesta);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "public List<CardWeapon> getWeapons() {\n return weapons;\n }", "public static JSONArray getJSONArray(List<Movie> movies) {\n JSONArray result = new JSONArray();\n try {\n for (Movie movie : movies) {\n result.put(movie.toJSONObject());\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n return result;\n }", "public ArrayList<Pair<Byte, Short>> getWeapons() {\n return weapons;\n }", "public void creatList()\n\t{\n\t\tbowlers.add(new Bowler(\"A\",44));\n\t\tbowlers.add(new Bowler(\"B\",25));\n\t\tbowlers.add(new Bowler(\"C\",2));\n\t\tbowlers.add(new Bowler(\"D\",10));\n\t\tbowlers.add(new Bowler(\"E\",6));\n\t}", "public ArrayList<Weapon> getWeapons() {\n return weapons;\n }", "private JSONObject changeAdsJsonObject(){\n JSONObject jsonObject=new JSONObject();\n JSONArray jsonArray=new JSONArray();\n\n try {\n for (int i = 0; i < adsInfoList.size(); i++) {\n AdsClickBean adsClickBean=adsInfoList.get(i);\n JSONObject object=new JSONObject();\n object.put(\"adNum\",adsClickBean.getAdNum());\n object.put(\"clickCount\",adsClickBean.getClickCount());\n object.put(\"shareCount\",0);\n object.put(\"shareAppNum\",0);\n object.put(\"shareClickNum\",0);\n object.put(\"incomeDay\",0);\n object.put(\"times\",adsClickBean.getTimes());\n jsonArray.put(object);\n }\n jsonObject.put(\"list\",jsonArray);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n return jsonObject;\n }", "private void getProfession(JSONArray j) {\n for (int i = 0; i < j.length(); i++) {\n try {\n //Getting json object\n JSONObject json = j.getJSONObject(i);\n\n //Adding the name of the student to array list\n Profession.add(json.getString(\"category\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "public ItemStack createItem(ItemType type, int damage,List<Text> lore);", "public String[] listAIResponseFromJSON(JSONArray listAIResponseArr) {\n\n //just going to do this manually since I don't know how Gson does arrays of only strings\n\n //this is the only function I could find that changes an unkeyed JSONArray into usable objects:\n List<Object> allAITypesObjList = listAIResponseArr.toList();\n //I don't want to deal with something as vague as a list<object>, so change it into an arrayList<String>:\n\n //ArrayList<String> allAITypes = new ArrayList<>();\n String[] allAITypes = new String[50]; //there is no way there will ever be more than 50 ai types\n\n //iterate through the List<Object> and copy its strings into allAITypes\n for (int a = 0; a < allAITypesObjList.size(); a++)\n {\n String currAITypeString = allAITypesObjList.get(a).toString();\n //allAITypes.add(currAITypeString);\n allAITypes[a] = currAITypeString;\n }\n\n return allAITypes;\n }", "boolean sellWeaponsForUser(int uid, List<Integer> wIds);", "private ArrayList<Entidad> GetArrayItems(){\n // ArrayList<Entidad> listItems = new ArrayList<>();\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n listItems.add(new Entidad(\"Agree\", \"Disagree\", \"Level: \", \"Bajo\", 0,0,0,0, 0,0,0, \" Spotify\",\"\", 0, false, false, false, null, \"\", 1,0,0,0,0,\"\"));\n\n return listItems;\n }", "private void convertJSONArrayToArrayList(JSONArray jsonArray){\n facilityArrayList.clear();\n for(int i = 0; i < jsonArray.length(); i++){\n try {\n if(jsonArray.getJSONObject(i).getString(\"type\").equals(\"Facility\")){\n Element element = new Element();\n element.setId(jsonArray.getJSONObject(i).getJSONObject(\"elementId\").getString(\"id\"));\n element.setName(jsonArray.getJSONObject(i).getString(\"name\"));\n element.setType(jsonArray.getJSONObject(i).getString(\"type\"));\n element.setActive(jsonArray.getJSONObject(i).getBoolean(\"active\"));\n element.setLocationUtil(new LocationUtil(\n jsonArray.getJSONObject(i).getJSONObject(\"location\").getDouble(\"lat\"),\n jsonArray.getJSONObject(i).getJSONObject(\"location\").getDouble(\"lng\")));\n element.getElementAttributes().put(\"description\", jsonArray.getJSONObject(i).getJSONObject(\"elementAttributes\").getJSONObject(\"Info\").getString(\"description\"));\n element.getElementAttributes().put(\"type\", jsonArray.getJSONObject(i).getJSONObject(\"elementAttributes\").getJSONObject(\"Info\").get(\"type\"));\n element.getElementAttributes().put(\"status\", jsonArray.getJSONObject(i).getJSONObject(\"elementAttributes\").getJSONObject(\"Info\").get(\"status\"));\n element.getElementAttributes().put(\"mus_group\", jsonArray.getJSONObject(i).getJSONObject(\"elementAttributes\").getJSONObject(\"Info\").get(\"mus_group\"));\n facilityArrayList.add(element);\n }\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n\n }\n }", "private void DrawFruit(game_service game) {\r\n\r\n\t\tfru=new ArrayList<Fruit>();\r\n\t\tList<String> f= game.getFruits();\r\n\t\tString FJ=f.toString(); \r\n\r\n\t\ttry {\r\n\t\t\tJSONArray j =new JSONArray(FJ);\r\n\t\t\tint i=0; \r\n\t\t\tint c=0;\r\n\t\t\twhile(i<j.length()) {\r\n\t\t\t\tString help=\"\";\r\n\t\t\t\tJSONObject n=(JSONObject) j.get(i);\r\n\t\t\t\tJSONObject jf = n.getJSONObject(\"Fruit\");\r\n\t\t\t\tString s=jf.getString(\"pos\");\r\n\t\t\t\tString p[]=new String[3];\r\n\t\t\t\tfor (int k = 0; k < s.length(); k++) {\r\n\t\t\t\t\tif(s.charAt(k)!=',') {\r\n\t\t\t\t\t\thelp=help+s.charAt(k);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(c<3&&s.charAt(k)==',') {\r\n\t\t\t\t\t\tp[c]=help; \r\n\t\t\t\t\t\tc++;\r\n\t\t\t\t\t\thelp=\"\";\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tp[c]=help; \r\n\t\t\t\tc=0;\r\n\t\t\t\tdouble x=Double.parseDouble(p[0]);\r\n\t\t\t\tdouble y=Double.parseDouble(p[1]);\r\n\t\t\t\tdouble z=Double.parseDouble(p[2]);\r\n\t\t\t\tPoint3D p1=new Point3D(x,y,z);\r\n\t\t\t\tdouble value=jf.getDouble(\"value\");\r\n\t\t\t\tint type=jf.getInt(\"type\");\r\n\t\t\t\tFruit fr=new Fruit(value,p1,type,findEdgeFruit(p1, type));\r\n\t\t\t\tfru.add(fr);\r\n\t\t\t\ti++;\r\n\t\t\t\tif(KMLbool) {\r\n\r\n\t\t\t\t\tString objType = \"\";\r\n\t\t\t\t\tif(fr.type == 1)\r\n\t\t\t\t\t\tobjType=\"Apple\";\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tobjType=\"Banana\";\r\n\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\tKML_Logger.write(KmlName, fr.p.x(), fr.p.y(), objType, game.timeToEnd());\r\n\r\n\t\t\t\t\t} catch (FileNotFoundException e) {\r\n\r\n\t\t\t\t\t\te.printStackTrace();\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\r\n\t\t}catch(Exception error) {\r\n\t\t\terror.printStackTrace();\r\n\r\n\t\t\tSystem.out.println(\"catch\");\r\n\r\n\t\t}\r\n\t\tfor (Fruit f1: fru) {\r\n\t\t\tString fruit_icon = \"\"; \r\n\t\t\tif(f1.type==1)\r\n\t\t\t\tfruit_icon=\"./apple.png\";\r\n\t\t\tif(f1.type==-1)\r\n\t\t\t\tfruit_icon=\"./banana.png\";\r\n\r\n\r\n\t\t\tStdDraw.picture(f1.p.x(), f1.p.y(), fruit_icon);\r\n\t\t}\r\n\t}", "public WeaponList(Weapon weapon1, MainGame mainGame, GameState gameState, boolean testing) {\n\t\tthis.weaponList = new ArrayList<Weapon>();\n\t\tweaponList.add(weapon1);\n\t\tthis.mainGame = mainGame;\n\t\tthis.gameState = gameState;\n\t\t\n\t\tif (!testing) {\n\t\t\ttry {\n\t\t\t\tinitImages();\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(\"exception\");\n\t\t\t}\n\t\t} \n\t}", "public ArrayList<WeaponClient> getWeapons() {\n return weapons;\n }", "private static ArrayList<Galaxy> createGalaxies() {\n ArrayList<Galaxy> galaxies = new ArrayList<>();\n try {\n String bareJSON = new String(Files.readAllBytes(Paths.get(\"Galaxies.json\")));\n JSONArray jarray = new JSONArray(bareJSON);\n\n for(int i = 0; i<jarray.length(); i++) {\n JSONObject JSONgalaxy = jarray.getJSONObject(i);\n\n //System.out.println(\"Galaxyname = \" + JSONgalaxy.getString(\"galaxy\").charAt(0));\n Galaxy galaxy = new Galaxy(JSONgalaxy.getString(\"galaxy\").charAt(0));\n galaxies.add(galaxy);\n\n JSONArray stars = JSONgalaxy.getJSONArray(\"stars\");\n for (int y = 0; y<stars.length(); y++) {\n int number = y+1;\n char colour = stars.getJSONObject(y).getString(\"colour\").charAt(0);\n galaxy.addStar(new Star(colour, number, galaxy));\n }\n setStarNeighbours(galaxy, stars);\n }\n setGalaxyNeighbours(galaxies, jarray);\n } catch (FileNotFoundException fnf) {\n System.out.println(\"File not found\");\n } catch (IOException ieo) {\n System.out.println(\"Could not read file.\");\n }\n return galaxies;\n }", "private static ArrayList<String> ingredientParse (JSONArray array) {\n\n ArrayList<String> list = new ArrayList<>();\n\n for (int index = 0; index < array.length(); index++) {\n try {\n JSONObject ingredientObject = array.getJSONObject(index);\n double quantity = ingredientObject.optDouble(JSON_QUANTITY);\n String measure = ingredientObject.optString(JSON_MEASURE);\n String ingredient = ingredientObject.optString(JSON_INGREDIENT);\n list.add(quantity + \" \" + measure + \" \" + ingredient + \"\\n\");\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n return list;\n }", "private static String[] populateShopKeeperInventory(String[] shopKeeperInventory){\r\n shopKeeperInventory[0] = \"Healing Potion\";\r\n shopKeeperInventory[1] = \"Greater Healing Potion\";\r\n shopKeeperInventory[2] = \"Long Sword\";\r\n shopKeeperInventory[3] = \"Great Sword\";\r\n return shopKeeperInventory;\r\n }", "public static void writeToJSON(ArrayList<Shapes> list, String path) {\n // set json array\n JSONArray collective_shapes = new JSONArray();\n\n for (int i = 0; i < list.size(); i++) {\n // set json objects\n JSONObject obj = new JSONObject();\n JSONObject cubic_values = new JSONObject();\n JSONObject sphere_values = new JSONObject();\n JSONObject cilinder_values = new JSONObject();\n\n try {\n if (list.get(i).shapeName().contains(\"cubic\")) {\n // put cubic values inside new json object\n cubic_values.put(\"id\", list.get(i).id());\n cubic_values.put(\"length\", list.get(i).length());\n cubic_values.put(\"width\", list.get(i).width());\n cubic_values.put(\"height\", list.get(i).height());\n // put values inside collective object\n obj.put(\"cubic\", cubic_values);\n }\n if (list.get(i).shapeName().contains(\"sphere\")) {\n // put sphere values inside new json object\n sphere_values.put(\"id\", list.get(i).id());\n sphere_values.put(\"radius\", list.get(i).radius());\n // put values inside collective object\n obj.put(\"sphere\", sphere_values);\n }\n\n if (list.get(i).shapeName().contains(\"cilinder\")) {\n // put cilinder values inside new json object\n cilinder_values.put(\"id\", list.get(i).id());\n cilinder_values.put(\"height\", list.get(i).height());\n cilinder_values.put(\"radius\", list.get(i).radius());\n // put values inside collective object\n obj.put(\"cilinder\", cilinder_values);\n }\n } catch (JSONException e) {\n StringWriter errors = new StringWriter();\n e.printStackTrace(new PrintWriter(errors));\n JOptionPane.showMessageDialog(new JFrame(), errors.toString(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n\n // add empty array\n collective_shapes.add(obj);\n }\n\n // try to write file to selected path else error\n try (FileWriter file = new FileWriter(path)) {\n file.write(collective_shapes.toJSONString());\n file.flush();\n\n } catch (IOException e) {\n // check errors and set show message dialog\n StringWriter errors = new StringWriter();\n e.printStackTrace(new PrintWriter(errors));\n JOptionPane.showMessageDialog(new JFrame(), errors.toString(), \"Error\", JOptionPane.ERROR_MESSAGE);\n }\n }", "private void setWeapons()\n {\n sewers.setWeapon(woodSword);\n promenade.setWeapon(woodSword);\n depths.setWeapon(rustedSword);\n forest.setWeapon(goldSword);\n bridge.setWeapon(silverSpear);\n ramparts.setWeapon(infantryBow);\n }", "private static void addEffectArray(List<Tuple<JsonValue, JsonValue>> list, JsonArray code, JsonArray payload){\n\t if(payload != null){\n\t for(int i = 0; i < code.size(); i++){\n\t list.add(new Tuple<JsonValue, JsonValue>(code.get(i), payload.get(i)));\n\t }\n\t } else {\n\t for(JsonValue singleCode : code){\n\t list.add(new Tuple<JsonValue, JsonValue>(singleCode, null));\n\t }\n\t }\n\t}", "private Object JSONArray(String estado) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void getArbeitspaketArray(ObservableList<ArbeitspaketTableData> paketList) {\r\n\t\t// Initialisieren des Arrays\r\n\t\tpakete = new Arbeitspaket[paketList.size()];\r\n\r\n\t\tfor (int i = 0; i < paketList.size(); i++) {\r\n\t\t\t// herauslesen der externen ID, damit diese nicht verloren geht (Konstruktor\r\n\t\t\t// nimmt nur einen Parameter für die ID entgegen und setzt die interne und\r\n\t\t\t// externe ID auf diesen Wert)\r\n\t\t\tString idExtern = paketList.get(i).getIdExtern();\r\n\r\n\t\t\t// automatisches Setzen der Vorgangsdauer, da diese in der Tabelle nicht\r\n\t\t\t// angegeben wird\r\n\t\t\tint vorgangsdauer = paketList.get(i).getFez() - paketList.get(i).getFaz() + 1;\r\n\r\n\t\t\t// setzen der einzelnen Werte der Arbeitspakte\r\n\t\t\tpakete[i] = new Arbeitspaket(paketList.get(i).getIdIntern(), paketList.get(i).getFaz(),\r\n\t\t\t\t\tpaketList.get(i).getFez(), paketList.get(i).getSaz(), paketList.get(i).getSez(), vorgangsdauer,\r\n\t\t\t\t\tpaketList.get(i).getMitarbeiteranzahl(), paketList.get(i).getAufwand());\r\n\r\n\t\t\t// Da die externe ID auf die interne ID gesetzt wurde, wird diese nun wieder auf\r\n\t\t\t// die vorher herausgelesene externe ID gesetzt\r\n\t\t\tpakete[i].setIdExtern(idExtern);\r\n\t\t}\r\n\t}", "protected void putItems() {\n\t\tlevelSetup[0][5].putItem(new Dynamite());\n\t\tlevelSetup[6][6].putItem(new Flint());\n\t\tlevelSetup[6][3].putItem(new ManaPotion());\n\t\tlevelSetup[5][0].putItem(new ManaPotion());\n\t\tlevelSetup[2][1].putItem(new HealthPotion());\n\t\tlevelSetup[3][6].putItem(new HealthPotion());\n\t\tlevelSetup[4][2].putItem(new Spinach());\n\t}", "private void getDatas(JSONArray j){\n for(int i=0;i<j.length();i++){\n try {\n //Getting json object\n JSONObject json = j.getJSONObject(i);\n\n //Adding the data to array list\n mNames.add(json.getString(\"name\"));\n mIds.add(json.getString(\"exhibition_id\"));\n\n String r = json.getString(\"rate\");\n if(r.equals(\"-1\"))\n mRates.add(\"目前還沒有評分\");\n else\n mRates.add(r);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "public static Weapon spawnWeapon()\r\n\t{\r\n\t\tfinal int numberOfWeapons = 5; //update as weapons are added\r\n\t\t\r\n\t\t//Create weapons in order to access attributes / randomly select a weapon\r\n\t\tSword sword = new Sword();\r\n\t\tStick stick = new Stick();\r\n\t\tBazooka bazooka = new Bazooka();\r\n\t\tAtomicBomb atomicBomb = new AtomicBomb();\r\n\t\tPotatoCannon potatoCannon = new PotatoCannon();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tWeapon[] weapons = new Weapon[] {sword, stick,bazooka,atomicBomb,potatoCannon}; //store weapons in an array to randomly grab one to use in Game\r\n\t\t\r\n\t\tint randomWeapon; //weapon chosen\t\t\r\n\t\tRandom rng = new Random (); //create generator based upon current number of weapons\r\n\t\trandomWeapon = rng.nextInt(numberOfWeapons); //get a weapon object at random from array\r\n\r\n\t\treturn (weapons[randomWeapon]); //we have no need to create separate instance\r\n\t}", "private void convertJSONtoArrayList(JSONArray players) {\n try {\n for (int i = 0; i < players.length(); i++) {\n JSONObject employee = players.getJSONObject(i);\n taskList.add(new MainTask(\n employee.getInt(\"id\"),\n employee.optString(\"description\", \"no name\"),\n employee.getInt(\"roomNumber\"),\n employee.optString(\"buildingName\", \"no email\"),\n employee.optString(\"comment\"),\n employee.getBoolean(\"isComplete\")\n ));\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }", "private static Inventory[] createInventoryList() {\n Inventory[] inventory = new Inventory[3];\r\n \r\n Inventory potion = new Inventory();\r\n potion.setDescription(\"potion\");\r\n potion.setQuantityInStock(0);\r\n inventory[Item.potion.ordinal()] = potion;\r\n \r\n Inventory powerup = new Inventory();\r\n powerup.setDescription(\"powerup\");\r\n powerup.setQuantityInStock(0);\r\n inventory[Item.powerup.ordinal()] = powerup;\r\n \r\n Inventory journalclue = new Inventory();\r\n journalclue.setDescription(\"journalclue\");\r\n journalclue.setQuantityInStock(0);\r\n inventory[Item.journalclue.ordinal()] = journalclue;\r\n \r\n return inventory;\r\n }", "private void getSubCategory(JSONArray j) {\n for (int i = 0; i < j.length(); i++) {\n try {\n //Getting json object\n JSONObject json = j.getJSONObject(i);\n\n sub_cat.add(json.getString(\"subcategory\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "public List<IWeapon> getWeaponsInventory(){\n return weaponsInventory;\n }", "public int getWeapons() {\n return weapons;\n }", "public void giveWeapon(Weapon weapon) throws RuntimeException {\n if (weaponList.size() > 2)\n throw new RuntimeException(\"This player can't receive any more weapons\");\n weaponList.add(weapon);\n }", "@SideOnly(Side.CLIENT)\n/* 34: */ public void getSubItems(Item itemId, CreativeTabs table, List list)\n/* 35: */ {\n/* 36:35 */ for (int i = 0; i < 13; i++)\n/* 37: */ {\n/* 38:36 */ ItemStack is = new ItemStack(itemId);\n/* 39:37 */ is.stackTagCompound = new NBTTagCompound();\n/* 40:38 */ is.stackTagCompound.setShort(\"Shield\", (short)i);\n/* 41:39 */ list.add(is);\n/* 42: */ }\n/* 43: */ }", "@Override\n\tpublic WeaponSelection chooseWeapon(List<Weapon> selectable) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"weapon\");\n\t\tJSONArray jArray = new JSONArray();\n\t\tselectable.forEach(s->jArray.add(s.getName()));\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\t\tJSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n\t\treturn parseWeaponSelection(selected);\n\t}", "private void decode(JSONArray roo2) {\n\t\tint l = roo2.length();\n\t\tif (l == 0) {\n\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\"Sorry, no rooms available\", Toast.LENGTH_SHORT).show();\n\t\t\treturn;\n\t\t}\n\t\trName = new String[l];\n\t\trBed = new String[l];\n\t\trICH = new String[l];\n\t\trRate = new String[l];\n\t\trRoomLeft = new String[l];\n\t\trOcc = new String[l];\n\n\t\tfor (int i = 0; i < l; i++) {\n\t\t\tJSONObject obj;\n\t\t\ttry {\n\t\t\t\tobj = roo2.getJSONObject(i);\n\t\t\t\tLog.i(\"fail\", \"0\" + l);\n\n\t\t\t\trName[i] = new String(obj.getString(\"rtype\"));\n\t\t\t\trBed[i] = new String(obj.getBoolean(\"isExtraBedType\") + \"\");\n\t\t\t\trICH[i] = new String(obj.getBoolean(\"isICHRoom\") + \"\");\n\t\t\t\tLog.i(\"fail\", \"1\" + l);\n\t\t\t\trRate[i] = new String(obj.getString(\"rdiscountPriceWithTax\"));\n\t\t\t\trRoomLeft[i] = new String(obj.getString(\"totalnoofrooms\"));\n\t\t\t\trOcc[i] = new String(obj.getString(\"roccupants\"));\n\t\t\t\tLog.i(\"fail\", \"2\" + l);\n\t\t\t\tsetUpList();\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "private void updateList() {\r\n\t\tthis.dlm.removeAllElements();\r\n\t\tfor (Enumeration<String> e = this.tableWeapon.getKey(); e\r\n\t\t\t\t.hasMoreElements();) {\r\n\t\t\tString nameWeapon = e.nextElement();\r\n\t\t\tWeapon weapon = this.tableWeapon.getWeapon(nameWeapon);\r\n\t\t\tif (weapon.getDamagesMinimum() >= this.getSpinnerDamageMinimumMin()\r\n\t\t\t\t\t&& weapon.getDamagesMinimum() <= this\r\n\t\t\t\t\t\t\t.getSpinnerDamageMinimumMax()\r\n\t\t\t\t\t&& weapon.getType() == this.getValueType()\r\n\t\t\t\t\t&& weapon.getDamagesMaximum() >= this\r\n\t\t\t\t\t\t\t.getSpinnerDamageMaximumMin()\r\n\t\t\t\t\t&& weapon.getDamagesMaximum() <= this\r\n\t\t\t\t\t\t\t.getSpinnerDamageMaximumMax()\r\n\t\t\t\t\t&& weapon.getPrice() >= this.getSpinnerPriceMin()\r\n\t\t\t\t\t&& weapon.getPrice() <= this.getSpinnerPriceMax())\r\n\t\t\t\tthis.dlm.addElement(nameWeapon);\r\n\t\t}\r\n\t}", "public static void putCraftableItemInArrayList() {\n\n craftableItem.addItemToCraftableList(campfire);\n craftableItem.addItemToCraftableList(raft);\n craftableItem.addItemToCraftableList(axe);\n craftableItem.addItemToCraftableList(spear);\n }", "ArrayList<Ability> getAbilities() throws RemoteException;", "private static String[] getNewArray(HashMap listas){\n ArrayList<String> result = new ArrayList<String>();\n for (int i = 0; i< listas.size(); i++ ){\n String key = \"L\" + i;\n ArrayList<String> itemsList = (ArrayList<String>) listas.get(key);\n result.addAll(itemsList);\n }\n return result.toArray(new String[0]);\n }", "@SuppressWarnings(\"unchecked\")\n\tprivate static void writePurchaseListFromFile(){\n\t\tJSONArray purchaseListJSON = new JSONArray();\n\n\t\tfor (Purchase purchase : Main.purchaseList) {\n\n\t\t\t// Write the customer JSON\n\t\t\tJSONObject purchaseDetails = new JSONObject();\n\n\t\t\tJSONObject customerDetails = new JSONObject();\n\t\t\tcustomerDetails.put(\"name\", purchase.getCustomer().getName());\n\t\t\tcustomerDetails.put(\"surname\", purchase.getCustomer().getSurname());\n\t\t\tcustomerDetails.put(\"username\", purchase.getCustomer().getUsername());\n\t\t\tcustomerDetails.put(\"password\", purchase.getCustomer().getPassword());\n\t\t\tcustomerDetails.put(\"account\", \"customer\");\n\t\t\t// The account key value can only be \"customer\", because only a customer is in purchase list\n\n\t\t\t// Write the wine JSON\n\t\t\tJSONObject wineDetails = new JSONObject();\n\t\t\twineDetails.put(\"name\", purchase.getWine().getName());\n\t\t\twineDetails.put(\"year\", purchase.getWine().getYear());\n\t\t\twineDetails.put(\"description\", purchase.getWine().getDescription());\n\t\t\twineDetails.put(\"vine\", purchase.getWine().getVine());\n\t\t\twineDetails.put(\"quantity\", purchase.getWine().getQuantity());\n\t\t\twineDetails.put(\"price\", purchase.getWine().getPrice());\n\n\t\t\tpurchaseDetails.put(\"quantity\", purchase.getQuantity());\n\t\t\tpurchaseDetails.put(\"amount\", purchase.getAmount());\n\t\t\tpurchaseDetails.put(\"date\", purchase.getDate().toString());\n\t\t\tpurchaseDetails.put(\"shipped\", purchase.isShipped());\n\t\t\tpurchaseDetails.put(\"customer\", customerDetails);\n\t\t\tpurchaseDetails.put(\"wine\", wineDetails);\n\n\t\t\tpurchaseListJSON.add(purchaseDetails);\n\n\t\t}\n\n\t\t// Write JSON file\n\t\ttry (FileWriter file = new FileWriter(\"purchaseList.json\")) {\n\t\t\tfile.write(purchaseListJSON.toJSONString());\n\t\t\tfile.flush();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private static JSONObject addObject(JSONArray bookList,Book book){\r\n bookList.add(book.toJson()); \r\n JSONObject bookObject = new JSONObject();\r\n bookObject.put(\"books\", bookList);\r\n return bookObject;\r\n }", "private void LoopData() {\n\t\tfor (int i = 0; i < drawable.length; i++) {\n\t\t\titems_list items_list = new items_list();\n\t\t\titems_list.setDrawable(getResources().getDrawable(drawable[i]));\n\t\t\titems_list.setLek(string[i]);\n\t\t\tlists.add(items_list);\n\t\t}\n\n\t}", "protected static String createJsonArray(List<String> originalList) {\n StringBuilder sb = new StringBuilder();\n sb.append(\"[\");\n for (int i = 0; i < originalList.size(); i++) {\n sb.append(originalList.get(i));\n if (i < (originalList.size() - 1)) {\n sb.append(\", \");\n }\n }\n sb.append(\"]\");\n return sb.toString();\n }", "public abstract ArrayList<GameObject> fight();", "private WeaponSelection getWeaponSelection(List<Weapon> weapons, JSONObject message) {\n\t\tJSONArray jArray = createJSONWeaponList(weapons);\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\n\t\tJSONObject selected = (JSONObject) JSONValue.parse(this.getResponse());\n\n\t\treturn parseWeaponSelection(selected);\n\t}", "private static String[] populateBlueMoonGuild(String[] questList){\r\n questList[0] = \"Kill Skeletons\";\r\n return questList;\r\n }", "private void createItems()\n {\n Item belt, nappies, phone, money, cigarretes, \n jacket, cereal, shoes, keys, comics, bra, \n bread, bowl, computer;\n\n belt = new Item(2,\"Keeps something from falling\",\"Belt\");\n nappies = new Item(7,\"Holds the unspeakable\",\"Nappies\");\n phone = new Item(4, \"A electronic device that holds every answer\",\"Iphone 10\");\n money = new Item(1, \"A form of currency\",\"Money\");\n cigarretes = new Item(2,\"It's bad for health\",\"Cigarretes\");\n jacket = new Item(3,\"Keeps you warm and cozy\", \"Jacket\");\n cereal = new Item(3, \"What you eat for breakfast\",\"Kellog's Rice Kripsies\");\n shoes = new Item(5,\"Used for walking\", \"Sneakers\");\n keys = new Item(2, \"Unlock stuff\", \"Keys\");\n comics = new Item(2, \"A popular comic\",\"Batman Chronicles\");\n bra = new Item(3,\"What is this thing?, Eeeewww\", \"Bra\");\n bread = new Item(6,\"Your best source of carbohydrates\",\"Bread\");\n bowl = new Item(4,\"where food is placed\",\"Plate\");\n computer = new Item(10,\"A computational machine\",\"Computer\");\n\n items.add(belt);\n items.add(nappies);\n items.add(phone);\n items.add(money);\n items.add(cigarretes);\n items.add(jacket);\n items.add(cereal);\n items.add(shoes);\n items.add(keys);\n items.add(comics);\n items.add(bra);\n items.add(bread);\n items.add(bowl);\n items.add(computer);\n }", "public static void createItems(){\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"breadly\"), BREADLY);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"hard_boiled_egg\"), HARD_BOILED_EGG);\n\n\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"ender_dragon_spawn_egg\"), ENDER_DRAGON_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"wither_spawn_egg\"), WITHER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"illusioner_spawn_egg\"), ILLUSIONER_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"giant_spawn_egg\"), GIANT_SPAWN_EGG);\n Registry.register(Registry.ITEM, new Identifier(nameSpace, \"spawn_spawn_egg\"), SPAWN_SPAWN_EGG);\n }", "private void chooseAddItemsToJcb() {\n if (animalFamilyType.contains(\"Terr\")) {\n addItemJcb(terAnimals);\n } else if (animalFamilyType.contains(\"Air\")) {\n addItemJcb(airAnimals);\n } else if (animalFamilyType.contains(\"Water\")) {\n addItemJcb(waterAnimals);\n }\n }", "public List<Velocity> getVelocitiesForLevel() {\n List<Velocity> listOfVelocities = new ArrayList<>();\n String velocities = this.map.get(\"ball_velocities\");\n // create an array of velocities\n String[] listOfVelocitiesString = velocities.split(\" \");\n int size = listOfVelocitiesString.length;\n // run over all of the possible velocities\n for (int i = 0; i < size; i++) {\n // in every velocity split it to speed and angel\n String[] oneVel = listOfVelocitiesString[i].split(\",\");\n Velocity v = Velocity.fromAngleAndSpeed(Integer.parseInt(oneVel[0]), Integer.parseInt(oneVel[1]));\n // add the veloctiy to the list of velocities\n listOfVelocities.add(v);\n }\n return listOfVelocities;\n }", "@Override\n\tpublic void movefrut(game_service game) throws JSONException {\n\t\tthis.fru = new ArrayList<fruit>();\n\t\tfor (String fruit1 : game.getFruits()) {\n\t\t\tfru.add(new fruit(fruit1));\n\t\t}\n\t}", "public void add(Weapon weapon) {\n\t\tif (weaponList.size() < 2) {\n\t\t\tweaponList.add(weapon);\n\t\t}\n\t}", "public static void main(String[] args) throws IOException, SQLException, ClassNotFoundException, InstantiationException, IllegalAccessException, FileNotFoundException, UnsupportedEncodingException, URISyntaxException, ParserConfigurationException, SAXException, XPathExpressionException, Exception {\n\n JSONArray a = new JSONArray();\n JSONObject obj1 = new JSONObject();\n obj1.put(\"c1\", \"cat\");\n obj1.put(\"rel\", \"isA\");\n obj1.put(\"c2\", \"animal\");\n a.add(obj1);\n JSONObject obj2 = new JSONObject();\n obj2.put(\"c1\", \"animal\");\n obj2.put(\"rel\", \"likes\");\n obj2.put(\"c2\", \"animal\");\n a.add(obj2);\n JSONObject obj3 = new JSONObject();\n obj3.put(\"c1\", \"dog\");\n obj3.put(\"rel\", \"isA\");\n obj3.put(\"c2\", \"animal\");\n a.add(obj3);\n JSONObject obj4 = new JSONObject();\n obj4.put(\"c1\", \"wolf\");\n obj4.put(\"rel\", \"isA\");\n obj4.put(\"c2\", \"animal\");\n a.add(obj4);\n\n System.out.println(a);\n\n /* JSONArray b = new JSONArray();\n obj1 = new JSONObject();\n obj1.put(\"c1\", \"cat\");\n obj1.put(\"rel\", \"isA\");\n obj1.put(\"c2\", \"animal\");\n b.add(obj1);\n obj2 = new JSONObject();\n obj2.put(\"c1\", \"cat\");\n obj2.put(\"rel\", \"likes\");\n obj2.put(\"c2\", \"fish\");\n b.add(obj2);\n obj3 = new JSONObject();\n obj3.put(\"c1\", \"dog\");\n obj3.put(\"rel\", \"isA\");\n obj3.put(\"c2\", \"animal\");\n b.add(obj3);\n obj4 = new JSONObject();\n obj4.put(\"c1\", \"wolf\");\n obj4.put(\"rel\", \"isA\");\n obj4.put(\"c2\", \"animal\");\n b.add(obj4);\n JSONObject obj5 = new JSONObject();\n obj5.put(\"c1\", \"wolf\");\n obj5.put(\"rel\", \"likes\");\n obj5.put(\"c2\", \"meat\");\n b.add(obj5);\n FileWriter file = new FileWriter(\"C:\\\\Users\\\\George\\\\Desktop\\\\animals.json\");\n file.write(b.toJSONString());\n file.flush();\n file.close();*/\n\n // System.out.println(a);\n // System.out.println(b);\n /* d.Graphs(a, b);\n List<String> urls = new ArrayList<String>();\n List<String> urls_temp = new ArrayList<String>();\n */\n // String bingAppId = \"a1Q3b3YdomwYyknyDHIykZx0A5Xc5n445mYiXoCfXC8=\";\n // BingCrawler bc = new BingCrawler(bingAppId, \"en\");\n // List<String> urls = bc.crawlImages(phrase);\n\n /* \n urls_temp = HTMLUtilities.linkExtractor(\"http://www.dmoz.org/search?q=\" + phrase + \"&cat=Kids_and_Teens&all=yes\", \"UTF-8\", 1);\n for (String url : urls_temp) {\n urls.add(StringEscapeUtils.unescapeHtml4(url));\n }*/\n // HashSet<String> p=d.FactRetriever(\"haswikipediaurl\",\"relation\");\n // HashSet<String> kl = d.FindConcepts(\"love\",2, \"concept\");//.Relations(s, 2, \"relation\");\n // System.out.println(kl.size());*/\n // System.out.println(list.toString());\n /* HashSet<String> p=d.Relations(s, 3, \"equivalence\");//.Facts(\"haswikipediaurl\",\"relation\");//.Concepts(\"vouzon\",3,\"relation\");//.ConceptFinder(\"love\",3, \"supersumption\");//FactRetriever(\"vouzon\",\"subject\"); // \n //ConceptGraphAbstraction(\"love\");//.FactRetriever(\"vouzon\", \"subject\");//.ConceptGraphPolymerismEngine(\"automobile\"); \n for(String j:p){\n System.out.println(j);\n }\n for (String g : urls) {\n System.out.println(g);\n }*/\n }", "Items(){\r\n\t\tname=new String[]{\r\n\t\t\t\t\"\",\r\n\t\t\t\t//Parts to the vaccine[1-3]\r\n\t\t\t\t\"Mysterious Vial\", \"Piece of alien meteorite\",\"Alien X\",\r\n\t\t\t\t//Keys[4-6]\r\n\t\t\t\t\"Mysterious Key\",\"Office Key\",\"Captian's Key\",\r\n\t\t\t\t//suit[7,8]\r\n\t\t\t\t\"Hazmat Suit\",\"Gas Mask\",\r\n\t\t\t\t//vials[9-11]\r\n\t\t\t\t\"Blue Vial\",\"Pink Vial\", \"Gold Vial\",\r\n\t\t\t\t//other[12,13]\r\n\t\t\t\t\"X Files\", \"Demon's Bane Flower\",\"Reinforced Armor\"\r\n\t\t};\r\n\t\tdescription=new String[]{\r\n\t\t\t\t\"\",\r\n\t\t\t\t//vaccine parts[2-4]\r\n\t\t\t\t\"A special vial coated with a mysterious substance\",\r\n\t\t\t\t\"Part of an alien meteorite that the crew excavated\",\r\n\t\t\t\t\"A powerful allergen that instantly kills one’s immune system and their whole well-being, mutating them into something inhuman\",\r\n\t\t\t\t//keys\r\n\t\t\t\t\"A metal key that must open a door\",\r\n\t\t\t\t\"Looks like a normal key\",\r\n\t\t\t\t\"A metal key used to unlock something\",\r\n\t\t\t\t//Suit\r\n\t\t\t\t\"A full-body suit designed to keep harmful toxins away from the wearer. The face mask is missing, however\",\r\n\t\t\t\t\"A mask that goes over the wearer’s head and filters out all harmful substances in the air\",\r\n\t\t\t\t//Vials\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows light blue\",\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows bright pink\",\r\n\t\t\t\t\"A vial similar to the ones in the DNA Library, it glows golden yellow\",\r\n\t\t\t\t//other\r\n\t\t\t\t\"Recorded documentation of all experiments and research done while in space. Most importantly it contains reports on events leading up to the virus spreading throughout the ship\",\r\n\t\t\t\t\"A beautiful flower that seems to survive unattached to the ground, the veins running through its petals give a faint glow as a heavenly scent fills the room\",\r\n\t\t\t\t\"A set of fine leather armor with metal plates reinforcing vulnerable areas\"\r\n\t\t};\r\n\t}", "public void addPreferedWeapon() {\n\t\tfor(int i = 0; i < killers.size(); i++) {\n\t\t\t\n\t\t\tList<String> list = new ArrayList<>();\n\t\t\t\n\t\t\tfor(String key : killers.get(i).getWeapons().keySet()) {\n\t\t\t\tlist.add(killers.get(i).getWeapons().get(key) + \";\" + key);\n\t\t\t}\n\t\t\t\n\t\t\tComparator<String> comp = (s1, s2) -> {\n\t\t\t\treturn s1.compareTo(s2);\n\t\t\t};\n\t\t\t\n\t\t\tCollections.sort(list, Collections.reverseOrder(comp));\n\t\t\tList<String> list2 = new ArrayList<>();\n\t\t\t\n\t\t\tif(!list.isEmpty()) {\n\t\t\t\tint control = extractNumberFromText(list.get(0));\n\t\t\t\t\n\t\t\t\tlist.forEach(s -> {\n\t\t\t\t\tif(extractNumberFromText(s) == control)\n\t\t\t\t\t\tlist2.add(s);\n\t\t\t\t});\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\tkillers.get(i).setWeaponMoreUsed(list2);\n\t\t}\n\t}", "public static JSONObjectList createJSONObjectList(List<RequirementForm> reqList)\r\n{\r\n\tJSONObjectList jsonlist = new JSONObjectList();\r\n int length = reqList.size();\r\n for (int i = 0; i < length; i++) {\r\n JSONObject uc =createJSONObject(reqList.get(i));\r\n\r\n jsonlist.getListobject().add(uc);\r\n\r\n }\r\n \r\n return jsonlist;\r\n}", "public static ArrayList<Level> createLevels(Context context) {\n\n //Create an array list to store the levels\n ArrayList<Level> levelsArrayList = new ArrayList<>();\n\n //Initialize our level string resources\n String[] levelNameArray = context.getResources().getStringArray(R.array.level_name);\n String[] levelEarningsArray = context.getResources().getStringArray(R.array.level_earnings);\n String[] levelRequiredToUnlockArray = context.getResources().getStringArray(R.array.required_to_unlock_level);\n int[] levelScoreNeededToUnlock = context.getResources().getIntArray(R.array.score_required_to_unlock);\n\n //Failed question icons\n TypedArray failedQuestionIconsArray = context.getResources().obtainTypedArray(R.array.failed_question_icon);\n\n\n //Store the number of levels into numLevels variable\n int numLevels = levelNameArray.length;\n //Create levels\n for (int i = 0; i < numLevels; i++) {\n levelsArrayList.add(new Level(levelNameArray[i], levelEarningsArray[i], levelRequiredToUnlockArray[i], levelScoreNeededToUnlock[i], extractQuestions(context, levelNameArray[i].toLowerCase()), failedQuestionIconsArray.getResourceId(i, R.drawable.ic_block)));\n }\n\n //Always recycle your TypedArrays\n failedQuestionIconsArray.recycle();\n\n //Return an ArrayList with levels\n return levelsArrayList;\n }", "public void initialiseGodList() {\n PlayerCreator playerCreator = new PlayerCreator();\n for (int i = 0; i < playerCreator.getArrayGods().size(); i++)\n godListNames.add(playerCreator.getArrayGods().get(i).getGodName());\n }", "public static List<Ship> extractShipsFromJson(String jsonString) {\n List<Ship> ships = new ArrayList<>();\n\n try {\n JSONArray shipsArray = new JSONArray(jsonString);\n\n for (int i = 0; i < shipsArray.length(); i++){\n JSONObject currentShip = shipsArray.getJSONObject(i);\n\n\n int id = currentShip.getInt(\"id\");\n String name = currentShip.getString(\"name\");\n int speed = currentShip.getInt(\"speed\");\n String type = currentShip.getString(\"type\");\n int maxCargoWeight = currentShip.getInt(\"maxCargoWeight\");\n\n Ship ship = new Ship(id, name, speed, type, maxCargoWeight);\n ships.add(ship);\n }\n\n } catch (JSONException e) {\n System.out.println(\"Problem parsing the character JSON results\");\n }\n return ships;\n }", "protected MList readList(JSONObject json) throws JSONException, TypeException {\n System.err.println(\"readList json = \" + json);\n\n\t// Read the size\n\tint listSize = json.getInt(\"size\");\n\n\t// Read the type\n String typeStr = json.getString(\"type\");\n ProbeAttributeType type = decodeType(typeStr);\n\n\t// Allocate a list of the right type\n\tMList list = new DefaultMList(type);\n\n JSONArray array = json.getJSONArray(\"list\");\n\n\t// now add all the values to the list\n\tfor (int e=0; e < listSize; e++) {\n\t // decode a value, \n\t Object value = decodeValue(type, array.get(e));\n\n\t list.add(value);\n\t}\n\n\treturn list;\n }", "void getStates(JSONArray j) {\n for (int i = 0; i < j.length(); i++) {\n try {\n //Getting json object\n JSONObject json = j.getJSONObject(i);\n\n //Adding the name of the student to array list\n states.add(json.getString(\"name\"));\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }", "public static Recipes[] ParseRecipeJson(String jsonresponse) throws JSONException {\n JSONArray recipesArray = new JSONArray(jsonresponse);\n Recipes[] recipe = new Recipes[recipesArray.length()];\n\n for (int i = 0; i < recipesArray.length(); i++) {\n recipe[i] = new Recipes();\n JSONObject currentRecipe = recipesArray.getJSONObject(i);\n\n recipe[i].setRecipeId(currentRecipe.getString(\"id\"));\n recipe[i].setRecipeItemName(currentRecipe.getString(\"name\"));\n recipe[i].setRecipeServings(currentRecipe.getString(\"servings\"));\n\n// PARSES INGREDIENTS ARRAY\n JSONArray ingredientsArray = currentRecipe.getJSONArray(\"ingredients\");\n ArrayList<String> ingredientsList = new ArrayList<>();\n ArrayList<String> ingredientsQtyList = new ArrayList<>();\n ArrayList<String> ingredientsMeasureList = new ArrayList<>();\n for (int j = 0; j < ingredientsArray.length(); j++) {\n\n JSONObject currentIngredients = ingredientsArray.getJSONObject(j);\n ingredientsList.add(currentIngredients.getString(\"ingredient\"));\n ingredientsQtyList.add(currentIngredients.getString(\"quantity\"));\n ingredientsMeasureList.add(currentIngredients.getString(\"measure\"));\n }\n\n recipe[i].setRecipeIngredient(ingredientsList);\n recipe[i].setIngredientQuantity(ingredientsQtyList);\n recipe[i].setIngredientMeasure(ingredientsMeasureList);\n\n// PARSES INGREDIENTS ARRAY\n JSONArray stepsArray = currentRecipe.getJSONArray(\"steps\");\n ArrayList<String> stepId = new ArrayList<>();\n ArrayList<String> shortDescription = new ArrayList<>();\n ArrayList<String> description = new ArrayList<>();\n ArrayList<String> videoURL = new ArrayList<>();\n ArrayList<String> thumbnailURL = new ArrayList<>();\n for (int k = 0; k < stepsArray.length(); k++) {\n\n JSONObject currentStep = stepsArray.getJSONObject(k);\n stepId.add(currentStep.getString(\"id\"));\n shortDescription.add(currentStep.getString(\"shortDescription\"));\n description.add(currentStep.getString(\"description\"));\n videoURL.add(currentStep.getString(\"videoURL\"));\n thumbnailURL.add(currentStep.getString(\"thumbnailURL\"));\n }\n\n recipe[i].setStepId(stepId);\n recipe[i].setShortDescription(shortDescription);\n recipe[i].setDescription(description);\n recipe[i].setVideoUrl(videoURL);\n recipe[i].setThumbnilUrl(thumbnailURL);\n }\n return recipe;\n }", "@GET\n //@Path(\"/{usuario}-{clave}\")\n @Produces(MediaType.APPLICATION_JSON)\n @Consumes(MediaType.APPLICATION_JSON)\n public Response ConsultaItemsWS(@QueryParam(\"tipo\") String tipo, \n @QueryParam(\"cod_int\") String codigoIterno,\n @QueryParam(\"cod_alt\") String codigoAlterno,\n @QueryParam(\"descripcion\") String Descripcion,\n @QueryParam(\"linea\") String Linea\n ){\n String datos =\"[]\";\n JSONObject json = new JSONObject();\n JSONArray itemSelectedJson = new JSONArray();\n datos=item.ConsultaItems(tipo, codigoIterno, codigoAlterno, Descripcion, Linea);\n \n JsonParser parser = new JsonParser();\n\n // Obtain Array\n JsonArray gsonArr = parser.parse(datos).getAsJsonArray();\n json = new JSONObject();\n \n /*json.put(\"data\", gsonArr);\n json.put(\"mensaje\", \"ok\");\n json.put(\"codigo_error\", 1);\n itemSelectedJson.add(json);*/\n String datosJSON=\"{ \\\"data\\\":\"+gsonArr+\",\\\"mensaje\\\":\\\"ok\\\",\\\"codigo_error\\\":1}\";\n \n System.out.println(\"datosJSON: \"+datosJSON);\n //return Response.ok(itemSelectedJson.toString()).build();\n return Response.ok(datosJSON).build();\n }", "public void updatAttackArmies(){\n\t\t\n\t\tfinal String s = attackToComboBox.getSelectedItem().toString();\n\t\tCountry country = MainPlayScreen.this.game.getBoard().getCountryByName(s);\n\t\t\t\n\t\tfinal int armies = MainPlayScreen.this.game.countryArmies.get(country);\n\t\tSystem.out.println(s + \" Defender Armies: \" + armies);\n\t\t\n\t\tif( armies == 1){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t}// end of if statement\n\t\t\n\t\telse if( armies == 2){\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\t\n\t\t} // end of else if statement\n\t\t\n\t\telse{\n\t\t\tnumberOfArmies[5].removeAllItems();\n\t\t\tnumberOfArmies[5].addItem(1);\n\t\t\tnumberOfArmies[5].addItem(2);\n\t\t\tnumberOfArmies[5].addItem(3);\n\t\t\t\n\t\t}// end of else statement\n\t\tnumberOfArmies[5].repaint();\n\t}", "protected void createFighter( ArrayList <Luchador> list, ArrayList <ObjetoEquipable> inventory) throws Exception {\n ListaLuchadores.crearLuchador (list, inventory);\r\n }", "public int weaponCount(){\n\t\treturn weaponList.size();\n\t}", "public HashMap<String, List<String>> getItemMap() {\r\n\r\n\t\thelmet_abilities.add(Game_constants.INTELLIGENCE);\r\n\t\thelmet_abilities.add(Game_constants.WISDOM);\r\n\t\thelmet_abilities.add(Game_constants.ARMOR_CLASS);\r\n\r\n\t\tarmor_abilities.add(Game_constants.ARMOR_CLASS);\r\n\r\n\t\tshield_abilities.add(Game_constants.ARMOR_CLASS);\r\n\r\n\t\tring_abilities.add(Game_constants.ARMOR_CLASS);\r\n\t\tring_abilities.add(Game_constants.STRENGTH);\r\n\t\tring_abilities.add(Game_constants.CONSTITUTION);\r\n\t\tring_abilities.add(Game_constants.WISDOM);\r\n\t\tring_abilities.add(Game_constants.CHARISMA);\r\n\r\n\t\tbelt_abilities.add(Game_constants.CONSTITUTION);\r\n\t\tbelt_abilities.add(Game_constants.STRENGTH);\r\n\r\n\t\tboots_abilities.add(Game_constants.ARMOR_CLASS);\r\n\t\tboots_abilities.add(Game_constants.DEXTERITY);\r\n\r\n\t\tweapon_abilities.add(Game_constants.ATTACK_BONUS);\r\n\t\tweapon_abilities.add(Game_constants.DAMAGE_BONUS);\r\n\r\n\t\titem_map.put(Game_constants.HELMET, helmet_abilities);\r\n\t\titem_map.put(Game_constants.ARMOR, armor_abilities);\r\n\t\titem_map.put(Game_constants.SHIELD, shield_abilities);\r\n\t\titem_map.put(Game_constants.RING, ring_abilities);\r\n\t\titem_map.put(Game_constants.BELT, belt_abilities);\r\n\t\titem_map.put(Game_constants.BOOTS, boots_abilities);\r\n\t\titem_map.put(Game_constants.WEAPON_MELEE, weapon_abilities);\r\n\t\titem_map.put(Game_constants.WEAPON_RANGE, weapon_abilities);\r\n\r\n\t\treturn item_map;\r\n\r\n\t}", "public static ArrayList<String> getArray(String jsonFile, String jsonName,String jsonNames, String jsonKey, Context context)\n {\n String jsonCategorias = Common.loadJSONFromAsset(context,jsonFile);\n JSONObject obj_categorias;\n JSONObject obj_categoria;\n\n\n ArrayList<String> lista = new ArrayList<String>();\n\n ///////////////\n try {\n\n obj_categorias = new JSONObject(jsonCategorias);\n JSONArray res = obj_categorias.getJSONArray(jsonName);\n\n for (int i = 0; i < res.length(); i++) {\n obj_categoria = res.getJSONObject(i).getJSONObject(jsonNames);\n\n String name = obj_categoria.getString(jsonKey);\n lista.add(name);\n\n }\n\n\n\n }\n\n catch (Exception e)\n {\n Log.d(\"Utils\",\"Can not read json file categories\");\n //return null;\n\n }\n\n ///////\n return lista;\n\n }", "private void WriteProductArray(JsonWriter writer, List<Product> products2)\n\t\t\tthrows IOException {\n\t\twriter.beginArray();\n\t\tfor (Product p : products2) {\n\t\t\tWriteProduct(writer, p);\n\t\t}\n\t\twriter.endArray();\n\n\t}", "public void populatePalicoWeaponList()\r\n\t{\r\n\t\tpalicoWeapons = FXCollections.observableArrayList();\r\n\t\tselect(\"SELECT * FROM Palico_Weapon\");\r\n\t}", "public void parseProductFromJson(String jsonData) { \r\n\t\t \r\n Type typeList = new TypeToken<ArrayList<Product>>(){}.getType(); \r\n Gson gson = new Gson(); \r\n ArrayList<Product> products = gson.fromJson(jsonData, typeList); \r\n for(Product product:products) { \r\n System.out.println(\"name---------->\" + product.getpName()); \r\n System.out.println(\"price---------->\" + product.getpPrice()); \r\n } \r\n }", "@Override\n public void onResponse(JSONArray response) {\n List<Movie> tmp = new ArrayList<>();\n for (int i = 0; i < response.length(); i++) {\n try {\n JSONObject mov = response.getJSONObject(i);\n// Toast.makeText(MainActivity.this, mov.toString(), Toast.LENGTH_LONG).show();\n tmp.add(new Movie(mov.getString(\"title\"), \"15_12_2018\", mov.getString(\"Image\")));\n Toast.makeText(MainActivity.this, \"added!\", Toast.LENGTH_SHORT).show();\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n// tmp.add(new MovieInfo(\"Harry Potter and test\", \"15_12_2018\", Arrays.asList(\"13:00\",\"16:00\",\"18:00\",\"21:00\",\"22:00\",\"23:00\")));\n populateMovieList(tmp, \"15_12_2018\"); //TODO: REMOVE\n }", "public List<Integer> getPurchasedWeapons() {\r\n\t\treturn collectionManager.getPurchasedWeapons();\r\n\t}", "public List<JsonObject> notasDeVentas(){\n String nv[][]= pedidoMaterialRepository.buscarNotaVenta();\n List<JsonObject> js = new ArrayList<JsonObject>();\n \n for (int i=0;i<nv.length;i++){\n \n JsonObject jo = new JsonObject();\n jo.put(\"notaDeVenta\", nv[i][0]);\n jo.put(\"descripcion\", nv[i][1]);\n jo.put(\"cliente\", nv[i][2]);\n js.add(jo);\n }\n \n return js;\n }", "public static void JSONArrayRequest(Context context) {\n RequestQueue requestQueue = Volley.newRequestQueue(context);\n\n // Nueva petición JSONObject\n JsonArrayRequest jsonObjectRequest = new JsonArrayRequest(\n AppConfig_Server.URL_BASE + AppConfig_Server.URL_GET_HISTORY,\n new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n VolleyLog.d(TAG, response.toString());\n listSelected = parseJsonArray(response);\n HystoricFragment.myAdapter.notifyDataSetChanged();\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n VolleyLog.d(TAG, \"Error Respuesta en JSON: \" + error.getMessage());\n }\n }\n );\n\n // Añadir petición a la cola\n requestQueue.add(jsonObjectRequest);\n }", "public static ArrayList<Weapon> getWeaponFromBDD(Context myContext, \n\t\t\tString whereClause, String[] whereArgs) {\n\t\t\n\t\tSQLiteDatabase db;\n\t\tSQLiteOpenHelperClass dbHelper;\n\t\tArrayList<Weapon> myWeapons = new ArrayList<Weapon>();\n\t\t\n\t\tdbHelper = new SQLiteOpenHelperClass(\n\t\t\t\tmyContext, \n\t\t\t\t\"myDB\", \n\t\t\t\tnull, \n\t\t\t\t1);\n\t\n\t\tdb = dbHelper.getWritableDatabase();\n\t\t\n\t\tCursor c = db.query(\n\t\t\t\tWeaponContract.TABLE, WeaponContract.COLS, whereClause\n\t\t\t\t, whereArgs, null, null, null);\n\t\t\n\t\tc.moveToFirst();\n\t\tdo {\n\t\t\tint valueID = c.getInt(c.getColumnIndex(WeaponContract.COL_ID));\n\t\t\t\n\t\t\tint valueHealth = c.getInt(c.getColumnIndex(\n\t\t\t\t\tWeaponContract.COL_HEALTHVALUE));\n\t\t\t\n\t\t\tint valueArmor = c.getInt(c.getColumnIndex(\n\t\t\t\t\tWeaponContract.COL_ARMORVALUE));\n\t\t\t\n\t\t\tint valueAttack = c.getInt(c.getColumnIndex(\n\t\t\t\t\tWeaponContract.COL_ATTACKVALUE));\n\t\t\t\n\t\t\tint valuePrice = c.getInt(c.getColumnIndex(\n\t\t\t\t\tWeaponContract.COL_PRICE));\n\t\t\t\n\t\t\tint isBuy = c.getInt(c.getColumnIndex(\n\t\t\t\t\tShieldContract.COL_ISBUY));\n\t\t\t\n\t\t\tint isEquip = c.getInt(c.getColumnIndex(\n\t\t\t\t\tShieldContract.COL_ISEQUIP));\n\t\t\t\n\t\t\t//On ajoute l'arme dans la collection\n\t\t\tmyWeapons.add(new Weapon(valueID, valueHealth, valueAttack, \n\t\t\t\t\tvalueArmor, valuePrice, isBuy, isEquip));\n\t\t} while ( c.moveToNext() );\n\t\t\n\t\treturn myWeapons;\n\t}", "public JSONArray() {\n\t\tthis.rawArrayList = new ArrayList<Object>();\n\t}" ]
[ "0.6027258", "0.59584117", "0.5937051", "0.59283394", "0.579138", "0.56842506", "0.5660165", "0.55887294", "0.5568918", "0.5563778", "0.5542684", "0.55288714", "0.55271226", "0.5467656", "0.5340235", "0.53031355", "0.5293616", "0.52430177", "0.5239771", "0.5232196", "0.52209294", "0.51753974", "0.51290214", "0.5125042", "0.5097798", "0.50942475", "0.5074789", "0.5066801", "0.5032058", "0.5015546", "0.5000497", "0.49828488", "0.49669835", "0.49460366", "0.4936319", "0.4933922", "0.49155897", "0.49140432", "0.49132213", "0.48831698", "0.4870032", "0.48557946", "0.48451868", "0.48385018", "0.4835263", "0.4835019", "0.4825192", "0.4825048", "0.4817617", "0.48127264", "0.48075446", "0.48049283", "0.47903293", "0.4789557", "0.4783187", "0.4779097", "0.47454694", "0.4742747", "0.4730165", "0.47282633", "0.47033963", "0.46980968", "0.46977517", "0.4689255", "0.4678759", "0.46775922", "0.4669759", "0.4667941", "0.46627077", "0.465657", "0.4656508", "0.46465936", "0.46376052", "0.46315816", "0.46267086", "0.4619707", "0.46194467", "0.46109265", "0.4610194", "0.46101138", "0.46059558", "0.4602419", "0.45885843", "0.45800242", "0.45793268", "0.4575853", "0.45719358", "0.45705402", "0.45653275", "0.45642084", "0.45609173", "0.4557224", "0.455037", "0.4537524", "0.4536691", "0.45366028", "0.45329833", "0.45251533", "0.4524181", "0.45197526" ]
0.79027367
0
select a turn action in a given list
@Override public TurnAction selectAction() { JSONObject message = new JSONObject(); message.put("function", "select"); message.put("type", "action"); this.sendInstruction(message); String selected = this.getResponse(); return TurnAction.valueOf(selected); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void selected(String action);", "public void selectAction(){\r\n\t\t\r\n\t\t//Switch on the action to be taken i.e referral made by health care professional\r\n\t\tswitch(this.referredTo){\r\n\t\tcase DECEASED:\r\n\t\t\tisDeceased();\r\n\t\t\tbreak;\r\n\t\tcase GP:\r\n\t\t\treferToGP();\r\n\t\t\tbreak;\r\n\t\tcase OUTPATIENT:\r\n\t\t\tsendToOutpatients();\r\n\t\t\tbreak;\r\n\t\tcase SOCIALSERVICES:\r\n\t\t\treferToSocialServices();\r\n\t\t\tbreak;\r\n\t\tcase SPECIALIST:\r\n\t\t\treferToSpecialist();\r\n\t\t\tbreak;\r\n\t\tcase WARD:\r\n\t\t\tsendToWard();\r\n\t\t\tbreak;\r\n\t\tcase DISCHARGED:\r\n\t\t\tdischarge();\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t\r\n\t\t}//end switch\r\n\t}", "public void select(int action) {\n\t\tselected = true;\n\t\tthis.action = action;\n\t}", "private static void selectActions()\n\t{\n\t\t// One Player\n\t\tif (!isMultiplayer)\n\t\t{\n\t\t\tprintBorder();\n\t\t\tSystem.out.print(\"ROUND NUMBER \" + roundNumber + \"!\\n\" + playerOneName + \" has \" + playerOneHealth + \" health left, and \" + opponentName + \" has \" + opponentHealth + \" health left.\\nEnter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\tfighterInput = input.nextInt();\n\t\t\t\n\t\t\t// Test crashes with floats or letters\n\t\t\twhile (fighterInput < 1 || fighterInput > 3)\n\t\t\t{\n\t\t\t\tprintBorder();\n\t\t\t\tSystem.out.print(\"What are you trying to do???\\nYou can only enter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\t\tfighterInput = input.nextInt();\n\t\t\t}\n\t\t\t// Assigns index value of action array\n\t\t\tfighterAction = actionArray[fighterInput - 1];\n\t\t\n\t\t\t// Opponent rolls action\n\t\t\topponentAction = actionArray[(int) (Math.random() * 3)];\n\t\t\t}\n\t\t\t\t\n\t\t\n\t\t// Two Player\n\t\telse\n\t\t{\n\t\t\t// Player1 picks action and test input\n\t\t\tprintBorder();\n\t\t\tSystem.out.print(\"Round Number \" + roundNumber + \"!\\n\" + playerOneName + \" has \" + playerOneHealth + \" health left, and \" + opponentName + \" has \" + opponentHealth + \" health left.\\n\\n\" + playerOneName + \" enter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\tfighterInput = input.nextInt();\n\t\t\twhile (fighterInput < 1 || fighterInput > 3 )\n\t\t\t{\n\t\t\t\tprintBorder();\n\t\t\t\tSystem.out.print(\"What are you trying to do???\\nYou can only enter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\t\tfighterInput = input.nextInt(); // Throws error if input is not an int\n\t\t\t}\n\t\t\tfighterAction = actionArray[fighterInput - 1];\n\t\t\n\t\t\t// Prints lines to hide player one’s action\n\t\t\tfor(int i = 0; i < 50; i++) System.out.println();\n\t\n\t\t\t// Player2 picks action\n\t\t\tSystem.out.print(opponentName + \" enter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\tfighterInput = input.nextInt();\n\t\t\twhile (fighterInput < 1 || fighterInput > 3 )\n\t\t\t{\n\t\t\t\tprintBorder();\n\t\t\t\tSystem.out.print(\"What are you trying to do???\\nYou can only enter 1 to kick, 2 to punch, 3 to block: \");\n\t\t\t\tfighterInput = input.nextInt();\n\t\t\t}\n\t\t\topponentAction = actionArray[fighterInput - 1];\n\t\t\t}\n\t}", "public void toSelectingAction() {\n }", "void determineNextAction();", "@Override\n protected Action selectAction(State state, Set<Action> actions){\n //Call the preSelectAction method from the DefaultProtocol so that, if necessary,\n //unwanted processes are killed and SUT is put into foreground.\n Action retAction = preSelectAction(state, actions);\n if (retAction == null)\n //if no preSelected actions are needed, then implement your own strategy\n retAction = RandomActionSelector.selectAction(actions);\n return retAction;\n }", "@Override\r\n\t\t\tpublic void actionActivated(GameAction action) {\r\n\t\t\t\tif(selectAction == null) {\r\n\t\t\t\t\tif(action.getCode().equals(CollectorSelect)) {\r\n\t\t\t\t\t\tselectAction = (SelectMagicCollector) action;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t\tif(selectAction != null) {\r\n\t\t\t\t\t\towningCard.getOwningPlayer().getGameZone(SummonZone).deavtivateAll();\r\n\t\t\t\t\t\towningCard.getOwningPlayer().getGameZone(CollectorZone).deavtivateAll();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void actionExecuted(GameAction action) {\r\n\t\t\t\tif(action != selectAction) return;\r\n\t\t\t\tattackedCollector = action.getCard().getCollector();\r\n\t\t\t}", "public void chooseAction(Match match, String nickname) {\n try {\n int choice;\n Boolean ok = true;\n System.out.println(\"Digita: \\n- 1 se vuoi posizionare un dado sul tuo schema; \\n- 2 se vuoi utilizzare una carta utensile; \\n- 3 se vuoi visualizzare le informazioni degli altri giocatori; \\n- 4 se vuoi terminare il tuo turno; \\n- 5 se vuoi uscire dalla partita.\");\n\n do {\n choice = scanner.nextInt();\n\n switch (choice) {\n\n case 5: {\n System.out.println(\"Sei sicuro che vuoi uscire dalla partita? Digita 0 se sei sicuro.\");\n choice = scanner.nextInt();\n if (choice==0) {\n System.out.println(\"Uscendo dalla partita...\");\n controller.stopPlayer();\n }\n break;\n }\n\n case 1: {\n handleUseDice(match, false);\n break;\n }\n\n case 2: {\n handleUseToolCard(match); //TODO: metodi per le carte utensili\n break;\n }\n\n case 3: {\n printOtherPlayersInfo(match, nickname);\n break;\n }\n\n case 4: {\n endTurn();\n break;\n }\n\n default: {\n ok = false;\n System.out.println(\"Scelta non valida\");\n break;\n }\n }\n } while (!ok);\n } catch (NullPointerException e) {\n } catch (NumberFormatException e) {\n System.out.println(\"Digita un carattere valido\");\n } catch (IndexOutOfBoundsException e) {\n } catch (InputMismatchException e) {\n }\n }", "private Action selectRandomAction() {\n int fuel;\n String car, driver;\n Tire tire;\n TirePressure pressure;\n\n // Possible tire pressures\n List<TirePressure> tirePressures = Arrays.asList(\n TirePressure.FIFTY_PERCENT,\n TirePressure.SEVENTY_FIVE_PERCENT,\n TirePressure.ONE_HUNDRED_PERCENT\n );\n\n // Possible fuel levels (note that this is an arbitrary discretization)\n List<Integer> fuelLevels = new ArrayList<>();\n int fuelInterval = ProblemSpec.FUEL_MAX / FUEL_DISCRETE_INTERVALS;\n\n for (int i = 0; i < FUEL_DISCRETE_INTERVALS; i++) {\n fuelLevels.add(fuelInterval * i);\n }\n\n List<ActionType> validActionTypes = problemSpec.getLevel().getAvailableActions();\n ActionType actionType = getRandomElement(validActionTypes);\n Action action;\n\n // Pick a random action from A1-A8 and then randomize the parameters\n switch (actionType.getActionNo()) {\n case 1:\n action = new Action(actionType);\n break;\n case 2:\n car = getRandomElement(problemSpec.getCarOrder());\n action = new Action(actionType, car);\n break;\n case 3:\n driver = getRandomElement(problemSpec.getDriverOrder());\n action = new Action(actionType, driver);\n break;\n case 4:\n tire = getRandomElement(problemSpec.getTireOrder());\n action = new Action(actionType, tire);\n break;\n case 5:\n fuel = getRandomElement(fuelLevels);\n action = new Action(actionType, fuel);\n break;\n case 6:\n pressure = getRandomElement(tirePressures);\n action = new Action(actionType, pressure);\n break;\n case 7:\n car = getRandomElement(problemSpec.getCarOrder());\n driver = getRandomElement(problemSpec.getDriverOrder());\n action = new Action(actionType, car, driver);\n break;\n default:\n // A8\n tire = getRandomElement(problemSpec.getTireOrder());\n fuel = getRandomElement(fuelLevels);\n pressure = getRandomElement(tirePressures);\n action = new Action(actionType, tire, fuel, pressure);\n }\n\n return action;\n\n }", "public abstract Action takeTurn();", "public abstract List<Instruction> getPossibleActions();", "public void onClick(View v) {\n\n switch (v.getId()) {\n\n case R.id.battleText:\n\n if(mPager.getCurrentItem() == 0) {\n\n if(!battleOver) {\n\n gameMaster.advance();\n\n //new CallBackendTask(CallBackendTask.START_BATTLERESULTS, this).execute(\"http://91.155.202.223:7500/api/battleresult\", Guser.getToken());\n\n } else {\n\n Intent intent = new Intent(this, MainActivity.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\n finish();\n startActivity(intent);\n overridePendingTransition(0,0);\n }\n\n } else {\n\n pushText(\"Select an action to use before advancing the turn...\");\n }\n\n return;\n\n case R.id.eslot1:\n\n if(mPager.getCurrentItem() != 0) {\n\n setSelectedTarget(1);\n }\n else\n return;\n\n break;\n\n case R.id.eslot2:\n\n if(mPager.getCurrentItem() != 0) {\n\n setSelectedTarget(2);\n }\n else\n return;\n\n break;\n\n case R.id.eslot3:\n\n if(mPager.getCurrentItem() != 0) {\n\n setSelectedTarget(3);\n }\n else\n return;\n\n break;\n\n case R.id.eslot4:\n\n if(mPager.getCurrentItem() != 0) {\n\n setSelectedTarget(4);\n }\n else\n return;\n\n break;\n\n default:\n\n return;\n }\n\n if(gameMaster.getTargets(gameMaster.getP(selectedSlot).getSelectedAction()) == 1)\n\n highlightEnemy(gameMaster.getSelectedTarget(selectedSlot), true);\n\n else {\n\n highlightEnemy(1, false);\n highlightEnemy(2, false);\n highlightEnemy(3, false);\n highlightEnemy(4, false);\n }\n }", "TurnAction createTurnAction();", "public void chooseActionCards(View view) {\n\t\tIntent intent = new Intent(this, ActionCards.class);\n\t\tstartActivity(intent);\n\t}", "public void choosedAction(int action) {\r\n countActions[action]++;\r\n }", "@Override\n\tpublic Action playTurn(Actions actions, Action lastAction, GameMap map, Display display) {\n\t\tAction action = behaviours[rng.nextInt(behaviours.length)].getAction(this, map);\n\t\tif (action!=null)\n\t\t\treturn action;\n\t\treturn new DoNothingAction(); \n\t}", "public Action getAction(int index) { return actions.get(index); }", "@Override\n\tpublic Powerup choosePowerup(List<Powerup> selectable) {\n\t\tJSONObject message = new JSONObject();\n\t\tmessage.put(\"function\", \"select\");\n\t\tmessage.put(\"type\", \"powerup\");\n\t\tJSONArray jArray = new JSONArray();\n\t\tselectable.forEach(s->jArray.add(s.toJSON()));\n\t\tmessage.put(\"list\", jArray);\n\t\tthis.sendInstruction(message);\n\n\t\tString selected = this.getResponse();\n\n\t\tif (selected == null || selectable.isEmpty()) return null;\n\t\tList<Powerup> matching = selectable.stream().filter(p->p.toJSON().toString().equals(selected))\n\t\t\t\t.collect(Collectors.toList());\n\t\treturn matching.isEmpty() ? null : matching.get(0);\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic void chooseAction(String actionSet, String action) {\n\t\topen();\n\n\t\tnew DefaultCombo().setSelection(actionSet);\n\t\tnew DefaultTreeItem(new TreeItemRegexMatcher(action + \".*\")).doubleClick();\n\t}", "@Override\n public Action chooseAction(List<Class<? extends Action>> possibleActions)\n {\n // if receive a offer from opponent\n if (null != lastOffer) {\n\n // check whether choose acceptance\n Action action = acceptanceStrategy.handleOfferFromOpponent(lastOffer);\n\n if (null != action) {\n return action;\n }\n }\n\n // if we offer first or we can not accept offer from opponent, deliver to offering strategy\n return offeringStrategy.offer(opponentModelInterface);\n }", "public void setButtonSelection(String action);", "public void setActionTrackSelected(GralUserAction action){ actionSelectTrack = action; }", "public SetPlayerTurnAction() {}", "com.rpg.framework.database.Protocol.CharacterAction getActions(int index);", "com.rpg.framework.database.Protocol.CharacterAction getActions(int index);", "public abstract ActionInMatch act();", "public int showPossibleActions(String[] string);", "public void userFlightChoice(int index);", "public static List<Action> getActions (List<Action> list) {\n\n // This can be fairly easy with lambda (but lambdas are not supported in Java 7)\n Predicate<Action> condition = new Predicate<Action>()\n {\n @Override\n public boolean test(Action action) {\n return action.isValid();\n }\n };\n\n Supplier<List<Action>> supplier = new Supplier<List<Action>>() {\n @Override\n public List<Action> get() {\n return new ArrayList<Action>();\n }\n };\n\n List<Action> filtered = list.stream()\n .filter( condition ).collect(Collectors.toCollection(supplier));\n return filtered;\n }", "public void setSelectedAction(Action action) { \n // Make sure the selected action is in the list\n if (actions.contains(action)) {\n selectedAction = action;\n repaint();\n } \n }", "private void optionSelected(MenuActionDataItem action){\n \t\tString systemAction = action.getSystemAction();\n \t\tif(!systemAction.equals(\"\")){\n \t\t\t\n \t\t\tif(systemAction.equals(\"back\")){\n \t\t\t\tonBackPressed();\n \t\t\t}else if(systemAction.equals(\"home\")){\n \t\t\t\tIntent launchHome = new Intent(this, CoverActivity.class);\t\n \t\t\t\tstartActivity(launchHome);\n \t\t\t}else if(systemAction.equals(\"tts\")){\n \t\t\t\ttextToSearch();\n \t\t\t}else if(systemAction.equals(\"search\")){\n \t\t\t\tshowSearch();\n \t\t\t}else if(systemAction.equals(\"share\")){\n \t\t\t\tshowShare();\n \t\t\t}else if(systemAction.equals(\"map\")){\n \t\t\t\tshowMap();\n \t\t\t}else\n \t\t\t\tLog.e(\"CreateMenus\", \"No se encuentra el el tipo de menu: \" + systemAction);\n \t\t\t\n \t\t}else{\n \t\t\tNextLevel nextLevel = action.getNextLevel();\n \t\t\tshowNextLevel(this, nextLevel);\n \t\t\t\n \t\t}\n \t\t\n \t}", "private void executeAction(ElevatorAction first) {\n\n\t}", "public void toSelectingAttackTarget() {\n }", "public final void invoke(List<ActionItem> list) {\n String str;\n Entity access$getEntity$p;\n String str2;\n Intrinsics.checkNotNullParameter(list, \"it\");\n String entityType = CancelFollowItemDialog.access$getEntity$p(this.this$0).getEntityType();\n if (entityType != null) {\n int hashCode = entityType.hashCode();\n if (hashCode != -567451565) {\n if (hashCode == 110546223 && entityType.equals(\"topic\")) {\n str = CancelFollowItemDialog.access$getEntity$p(this.this$0).getTitle();\n access$getEntity$p = CancelFollowItemDialog.access$getEntity$p(this.this$0);\n if (access$getEntity$p instanceof Feed) {\n str2 = ((Feed) access$getEntity$p).getFeedType();\n } else {\n str2 = access$getEntity$p.getEntityType();\n }\n CancelFollowItemDialog cancelFollowItemDialog = this.this$0;\n Intrinsics.checkNotNull(str);\n Intrinsics.checkNotNullExpressionValue(str2, \"type\");\n MultiItemDialogFragmentKt.addItem(list, new CancelFollowItemDialog.CancelFollowActionItem(cancelFollowItemDialog, str, str2));\n }\n } else if (entityType.equals(\"contacts\")) {\n Entity access$getEntity$p2 = CancelFollowItemDialog.access$getEntity$p(this.this$0);\n Objects.requireNonNull(access$getEntity$p2, \"null cannot be cast to non-null type com.coolapk.market.model.Contacts\");\n str = ((Contacts) access$getEntity$p2).getFollowUid();\n access$getEntity$p = CancelFollowItemDialog.access$getEntity$p(this.this$0);\n if (access$getEntity$p instanceof Feed) {\n }\n CancelFollowItemDialog cancelFollowItemDialog = this.this$0;\n Intrinsics.checkNotNull(str);\n Intrinsics.checkNotNullExpressionValue(str2, \"type\");\n MultiItemDialogFragmentKt.addItem(list, new CancelFollowItemDialog.CancelFollowActionItem(cancelFollowItemDialog, str, str2));\n }\n }\n str = CancelFollowItemDialog.access$getEntity$p(this.this$0).getId();\n access$getEntity$p = CancelFollowItemDialog.access$getEntity$p(this.this$0);\n if (access$getEntity$p instanceof Feed) {\n }\n CancelFollowItemDialog cancelFollowItemDialog = this.this$0;\n Intrinsics.checkNotNull(str);\n Intrinsics.checkNotNullExpressionValue(str2, \"type\");\n MultiItemDialogFragmentKt.addItem(list, new CancelFollowItemDialog.CancelFollowActionItem(cancelFollowItemDialog, str, str2));\n }", "String getAction();", "String getAction();", "public ActionUtilisateur choisirUneAction() ;", "com.cantor.drop.aggregator.model.CFTrade.TradeAction getAction();", "@OnClick(R.id.converter_sale_or_purchase_cv)\n public void chooseAction() {\n mDialog = new DialogList(mContext,\n mActionDialogTitle, mListForActionDialog, null,\n new RecyclerViewAdapterDialogList.OnItemClickListener() {\n @Override\n public void onClick(int position) {\n if (position == 0) {\n mAction = ConstantsManager.CONVERTER_ACTION_PURCHASE;\n } else {\n mAction = ConstantsManager.CONVERTER_ACTION_SALE;\n }\n mPreferenceManager.setConverterAction(mAction);\n mDialog.getDialog().dismiss();\n setLang();\n }\n });\n ((ImageView) mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done))\n .setImageResource(R.drawable.ic_tr);\n mDialog.getDialog().getWindow().findViewById(R.id.dialog_list_done)\n .setBackground(getResources().getDrawable(R.drawable.ic_tr));\n }", "public void act(){\n\t\tTile[] possibleMoves = game.getAllNeighbours(currentPosition);\r\n\t\tTile targetTile = possibleMoves[rng.nextInt(4)];\r\n\t\tmove(targetTile);\r\n\t}", "public interface ChoiceAction {\n}", "@Override\n public Action getRandomAction(Agent r, Maze m) {\n ArrayList<Action> actions = m.getValidActions(r);\n Random rand = new Random();\n return actions.get(rand.nextInt(actions.size()));\n }", "public void selectTDList(ActionEvent actionEvent) {\n // we will have to update the viewer so that it is displaying the list that was just selected\n // it will go something like...\n // grab the list that was clicked by the button (again, using the relationship between buttons and lists)\n // and then displayTODOs(list)\n }", "public Action chooseAction(Map<Direction, Occupant> neighbors) {\n // Rule 1\n Deque<Direction> emptyNeighbors = new ArrayDeque<>();\n Deque<Direction> plipNeighbors = new ArrayDeque<>();\n boolean anyPlip = false;\n for (Direction key : neighbors.keySet()) {\n Occupant value = neighbors.get(key);\n if (value.name().equals(\"empty\")) {\n emptyNeighbors.add(key);\n }\n if (value.name().equals(\"plip\")) {\n plipNeighbors.add(key);\n anyPlip = true;\n }\n }\n if (emptyNeighbors.isEmpty()) {\n return new Action(Action.ActionType.STAY);\n }\n\n // Rule 2\n if (anyPlip) {\n int i = HugLifeUtils.randomInt(1, emptyNeighbors.size());\n while (i > 1) {\n Direction removeres = plipNeighbors.removeFirst();\n plipNeighbors.addLast(removeres);\n i -= 1;\n }\n Direction result = plipNeighbors.getFirst();\n return new Action(Action.ActionType.ATTACK,result);\n }\n\n // Rule 3\n if (energy >= 1.0) {\n int i = HugLifeUtils.randomInt(1, emptyNeighbors.size());\n while (i > 1) {\n Direction removeres = emptyNeighbors.removeFirst();\n emptyNeighbors.addLast(removeres);\n i -= 1;\n }\n Direction result = emptyNeighbors.getFirst();\n return new Action(Action.ActionType.REPLICATE,result);\n }\n\n // Rule 4\n int i = HugLifeUtils.randomInt(1, emptyNeighbors.size());\n while (i > 1) {\n Direction removeres = emptyNeighbors.removeFirst();\n emptyNeighbors.addLast(removeres);\n i -= 1;\n }\n Direction result = emptyNeighbors.getFirst();\n return new Action(Action.ActionType.MOVE,result);\n }", "public int parseMonsterChoice(List<Monster> list) {\n\t\tSystem.out.println(\"Which monster would you like to attack?\");\n\t\tprintMonsters(list);\n\t\treturn parseChoice(list,1);\n\t}", "@Override\n public void setNewAction(Mossa.Action action) {\n jumpMove.setDisable(false);\n Platform.runLater(() -> {\n submitAction.setDisable(true);\n\n });\n switch (action) {\n case BUILD:\n lightBuild();\n if (!inTurno) {\n lightMyPawns();\n inTurno = true;\n firstAction = true;\n } else {\n c = table.getTableCell(table.getXYPawn(getID(), currentPawn, true),\n table.getXYPawn(getID(), currentPawn, false));\n firstAction = false;\n lightAvailable(c, bt[table.getXYPawn(getID(), currentPawn, true)][table.getXYPawn(getID(), currentPawn, false)]);\n\n }\n currentMove = new Mossa();\n currentMove.setAction(action);\n\n break;\n case MOVE:\n lightMove();\n currentMove = new Mossa();\n currentMove.setAction(action);\n if (!inTurno) {\n effetto = true;\n lightMyPawns();\n inTurno = true;\n firstAction = true;\n } else {\n firstAction = false;\n c = table.getTableCell(table.getXYPawn(getID(), currentPawn, true),\n table.getXYPawn(getID(), currentPawn, false));\n lightAvailable(c, bt[table.getXYPawn(getID(), currentPawn, true)][table.getXYPawn(getID(), currentPawn, false)]);//prima era true\n\n }\n }\n }", "public ActionList getActions();", "public GameAction runTurnAction() {\r\n // Is the game over? If so return\r\n if (this.isGameOver) {\r\n return this.currentAction;\r\n }\r\n \r\n // Get the next game action for this turn\r\n GameAction currentTurnAction = this.turnActions.get(turnActionLocation);\r\n \r\n // Clear out the return values for this gameAction\r\n currentTurnAction.clearActionReturnValues();\r\n \r\n // Set the currentAction (used for setting return values)\r\n this.currentAction = currentTurnAction;\r\n \r\n // Process the next action for this turn\r\n this.processGameAction(currentTurnAction);\r\n \r\n // Increment the turn action location or loop back to 0\r\n this.turnActionLocation++;\r\n \r\n // Check to make sure we haven't gone over the turn list size\r\n if (this.turnActionLocation >= this.turnActions.size()) {\r\n turnActionLocation = 0;\r\n }\r\n\r\n // Return any necessary values to the caller as a gameAction\r\n return currentTurnAction;\r\n }", "@Override\n public void chooseAction(){\n healthDecay = getHealth() - 5;\n //now scan for Nazguls\n\n if(healthDecay == 0){\n death(this);\n }\n int scan_result = scan();\n\n if(scan_result == 1){\n move();\n }\n\n if(scan_result == 0 && healthDecay < 75){\n stay();\n }\n\n if(scan_result == 0 && hobbitCounter == 15){\n replicate();\n hobbitCounter = 0;\n }\n\n else{\n move();\n \n }\n hobbitCounter = hobbitCounter + 1;\n }", "@Override public void doAction(int option)\r\n{\r\n switch(option)\r\n {\r\n case 1: //view the map\r\n viewMap();\r\n break;\r\n case 2: //view/print a list\r\n viewList();\r\n break;\r\n case 3: // Move to a new location\r\n moveToNewLocation();\r\n break;\r\n case 4: // Manage the crops\r\n manageCrops();\r\n break;\r\n case 5: // Return to Main Menu\r\n System.out.println(\"You will return to the Main Menu now\");\r\n \r\n }\r\n}", "public List<GamePlayer> getActionAccept() {\n return actionAccept;\n }", "@Override\n\tpublic int getAction() {\n\t\tint bstar = -1;\n\t\tdouble bstarval = Double.NEGATIVE_INFINITY;\n\t\tfor (int b : actions) {\n\t\t\t// now we need to look at each possible state transition\n\t\t\tdouble newStateSum = 0;\n\t\t\t// which means for every possible next state\n\t\t\tfor (int newX = 0; newX < beliefs.length; newX++) {\n\t\t\t\tfor (int newY = 0; newY < beliefs[0].length; newY++) {\n\t\t\t\t\tint[] newState = new int[]{newX,newY};\n\t\t\t\t\t// we need to look at every possible previous state\n\t\t\t\t\tdouble stateSum = 0;\n\t\t\t\t\tfor (int x = 0; x < beliefs.length; x++) {\n\t\t\t\t\t\tfor (int y = 0; y < beliefs[0].length; y++) {\n\t\t\t\t\t\t\tstateSum += beliefs[x][y] * // belief in CURRENT state if we were to make the observation, times\n\t\t\t\t\t\t\t\t\t\tworld.transitionProbability(newX, newY, x, y, b) * // probability of getting into the new state\n\t\t\t\t\t\t\t\t\t\tworld.getReward(newState);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tnewStateSum += stateSum;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (newStateSum > bstarval) {\n\t\t\t\tbstar = b;\n\t\t\t\tbstarval = newStateSum;\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"(EntropicExplorer) Choosing action: \" + world.actionToString(bstar) + \" (value = \" + bstarval + \")\");\n\t\tlastAction = bstar;\n\t\tadvanceBeliefs(bstar);\n\t\treturn bstar;\n\t}", "public void mousePressed(MouseEvent event) { \n\t\t\t\t\n\t\tswitch(imgName) // Exécute une action différente en fonction du nom du bouton\n\t\t{\n\t\t\tcase \"endTurn\":\n\t\t\t\tGUI.getPlayer().setRoundCompleted(true);\n\t\t\t\tbreak;\n\t\t\tcase \"roads\":\n\t\t\t\tif(GUI.getPlayer().getNbRoad() > 0)\n\t\t\t\t{\n\t\t\t\t\tif(!this.isSelected) \n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(true);\t\n\t\t\t\t\t\tBoardView.setAction(6);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(false);\t\n\t\t\t\t\t\tBoardView.setAction(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"bonusTools\":\n\t\t\tcase \"bonusDefense\":\n\t\t\t\tif(GUI.getPlayer().getDiceBonus() == 5)\n\t\t\t\t{\n\t\t\t\t\tif(imgName == \"bonusTools\")\n\t\t\t\t\t\tGUI.getPlayer().setNbBonus(0, GUI.getPlayer().getNbBonus(0) + 1);\n\t\t\t\t\telse\n\t\t\t\t\t\tGUI.getPlayer().setNbBonus(1, GUI.getPlayer().getNbBonus(1) + 1);\n\t\t\t\t\t\n\t\t\t\t\tGUI.getPlayer().setDiceBonus(0);\n\t\t\t\t}\n\t\t\t\telse if(GUI.getPlayer().getNbBonus((imgName == \"bonusTools\") ? 0 : 1) > 0)\n\t\t\t\t{\n\t\t\t\t\tif(!this.isSelected) \n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(true);\n\t\t\t\t\t\tif(imgName == \"bonusTools\")\n\t\t\t\t\t\t\tBoardView.setAction(7);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tBoardView.setAction(8);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tthis.setSelected(false);\t\n\t\t\t\t\t\tBoardView.setAction(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase \"hand\":\n\t\t\t\tif(!this.isSelected) \n\t\t\t\t{\n\t\t\t\t\tthis.setSelected(true);\t\n\t\t\t\t\tGUI.getDrawHandView().display();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tthis.setSelected(false);\t\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\tif(GUI.getPlayer().getActions().size() >= GUI.getPlayer().getNbActionsAllowed() && !GameManager.devMode)\n\t\t\t\t\treturn;\n\t\t\t\t\n\t\t\t\tif(!this.isSelected)\n\t\t\t\t{\n\t\t\t\t\tthis.setSelected(true);\t\n\t\t\t\t\t\n\t\t\t\t\tswitch(imgName)\n\t\t\t\t\t{\n\t\t\t\t\t\tcase \"tile\":\n\t\t\t\t\t\t\tGUI.getDrawTileView().display();\n\t\t\t\t\t\t\tBoardView.setAction(1);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(1);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"road\":\n\t\t\t\t\t\t\tGUI.getPlayer().setNbRoad(GUI.getPlayer().getNbRoad() + 1);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(2);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"monster\":\n\t\t\t\t\t\t\tBoardView.setAction(3);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(3);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"architect\":\n\t\t\t\t\t\t\tBoardView.setAction(4);\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(4);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase \"goal\":\n\t\t\t\t\t\t\tGUI.getDrawGoalView().display();\n\t\t\t\t\t\t\tGUI.getPlayer().addAction(5);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tdefault:\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(!GameManager.devMode)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(GUI.getPlayer().getDiceBonus() != 3)\n\t\t\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tif(GUI.getPlayer().getActions().size() > 1)\n\t\t\t\t\t\t\t\tthis.setVisible(false);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\tthis.setSelected(false);\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void listAction () {//GEN-END:|13-action|0|13-preAction\n // enter pre-action user code here\nString __selectedString = getList ().getString (getList ().getSelectedIndex ());//GEN-BEGIN:|13-action|1|17-preAction\nif (__selectedString != null) {\nif (__selectedString.equals (\"S\\u00F6k text\")) {//GEN-END:|13-action|1|17-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSeatchform ());//GEN-LINE:|13-action|2|17-postAction\n // write post-action user code here\n} else if (__selectedString.equals (\"Tidigare s\\u00F6kningar\")) {//GEN-LINE:|13-action|3|18-preAction\n // write pre-action user code here\nswitchDisplayable (null, getSearchList ());//GEN-LINE:|13-action|4|18-postAction\n // write post-action user code here\n}//GEN-BEGIN:|13-action|5|13-postAction\n}//GEN-END:|13-action|5|13-postAction\n // enter post-action user code here\n}", "public final java_cup.runtime.Symbol CUP$parser$do_action(\n int CUP$parser$act_num,\n java_cup.runtime.lr_parser CUP$parser$parser,\n java.util.Stack CUP$parser$stack,\n int CUP$parser$top)\n throws java.lang.Exception\n {\n /* Symbol object for return from actions */\n java_cup.runtime.Symbol CUP$parser$result;\n\n /* select the action based on the action number */\n switch (CUP$parser$act_num)\n {\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 65: // ListId ::= Id _SYMB_4 ListId \n {\n CPP.Absyn.ListId RESULT = null;\n\t\tString p_1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.ListId p_3 = (CPP.Absyn.ListId)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_3; p_3.addFirst(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(26/*ListId*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 64: // ListId ::= Id \n {\n CPP.Absyn.ListId RESULT = null;\n\t\tString p_1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.ListId(); RESULT.addLast(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(26/*ListId*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 63: // Type ::= _SYMB_29 \n {\n CPP.Absyn.Type RESULT = null;\n\t\t RESULT = new CPP.Absyn.Type_void(); \n CUP$parser$result = new java_cup.runtime.Symbol(25/*Type*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 62: // Type ::= _SYMB_22 \n {\n CPP.Absyn.Type RESULT = null;\n\t\t RESULT = new CPP.Absyn.Type_double(); \n CUP$parser$result = new java_cup.runtime.Symbol(25/*Type*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 61: // Type ::= _SYMB_26 \n {\n CPP.Absyn.Type RESULT = null;\n\t\t RESULT = new CPP.Absyn.Type_int(); \n CUP$parser$result = new java_cup.runtime.Symbol(25/*Type*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 60: // Type ::= _SYMB_21 \n {\n CPP.Absyn.Type RESULT = null;\n\t\t RESULT = new CPP.Absyn.Type_bool(); \n CUP$parser$result = new java_cup.runtime.Symbol(25/*Type*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 59: // ListExp ::= Exp _SYMB_4 ListExp \n {\n CPP.Absyn.ListExp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.ListExp p_3 = (CPP.Absyn.ListExp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_3; p_3.addFirst(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(24/*ListExp*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 58: // ListExp ::= Exp \n {\n CPP.Absyn.ListExp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.ListExp(); RESULT.addLast(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(24/*ListExp*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 57: // ListExp ::= \n {\n CPP.Absyn.ListExp RESULT = null;\n\t\t RESULT = new CPP.Absyn.ListExp(); \n CUP$parser$result = new java_cup.runtime.Symbol(24/*ListExp*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 56: // Exp10 ::= Exp11 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(23/*Exp10*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 55: // Exp7 ::= Exp8 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(22/*Exp7*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 54: // Exp6 ::= Exp7 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(21/*Exp6*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 53: // Exp5 ::= Exp6 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(20/*Exp5*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 52: // Exp1 ::= Exp2 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(19/*Exp1*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 51: // Exp ::= Exp1 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(18/*Exp*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 50: // Exp2 ::= Exp3 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(17/*Exp2*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 49: // Exp2 ::= Id _SYMB_6 Exp2 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tString p_1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EAss(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(17/*Exp2*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 48: // Exp3 ::= Exp4 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(16/*Exp3*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 47: // Exp3 ::= Exp3 _SYMB_20 Exp4 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EOr(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(16/*Exp3*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 46: // Exp4 ::= Exp5 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(15/*Exp4*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 45: // Exp4 ::= Exp4 _SYMB_19 Exp5 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EAnd(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(15/*Exp4*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 44: // Exp8 ::= Exp9 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(14/*Exp8*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 43: // Exp8 ::= Exp9 _SYMB_18 Exp9 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.ENEq(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(14/*Exp8*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 42: // Exp8 ::= Exp9 _SYMB_17 Exp9 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EEq(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(14/*Exp8*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 41: // Exp9 ::= Exp10 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(13/*Exp9*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 40: // Exp9 ::= Exp10 _SYMB_16 Exp10 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EGtEq(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(13/*Exp9*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 39: // Exp9 ::= Exp10 _SYMB_15 Exp10 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.ELtEq(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(13/*Exp9*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 38: // Exp9 ::= Exp10 _SYMB_14 Exp10 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EGt(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(13/*Exp9*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 37: // Exp9 ::= Exp10 _SYMB_13 Exp10 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.ELt(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(13/*Exp9*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 36: // Exp11 ::= Exp12 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(12/*Exp11*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 35: // Exp11 ::= Exp11 _SYMB_12 Exp12 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EMinus(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(12/*Exp11*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 34: // Exp11 ::= Exp11 _SYMB_11 Exp12 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EPlus(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(12/*Exp11*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 33: // Exp12 ::= Exp13 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(11/*Exp12*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 32: // Exp12 ::= Exp12 _SYMB_10 Exp13 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EDiv(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(11/*Exp12*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 31: // Exp12 ::= Exp12 _SYMB_9 Exp13 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.ETimes(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(11/*Exp12*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 30: // Exp13 ::= Exp14 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(10/*Exp13*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 29: // Exp13 ::= _SYMB_8 Id \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tString p_2 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EPreDecr(p_2); \n CUP$parser$result = new java_cup.runtime.Symbol(10/*Exp13*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 28: // Exp13 ::= _SYMB_7 Id \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tString p_2 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EPreIncr(p_2); \n CUP$parser$result = new java_cup.runtime.Symbol(10/*Exp13*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 27: // Exp14 ::= Exp15 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; \n CUP$parser$result = new java_cup.runtime.Symbol(9/*Exp14*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 26: // Exp14 ::= Id _SYMB_8 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tString p_1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t RESULT = new CPP.Absyn.EPostDecr(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(9/*Exp14*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 25: // Exp14 ::= Id _SYMB_7 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tString p_1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t RESULT = new CPP.Absyn.EPostIncr(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(9/*Exp14*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 24: // Exp14 ::= Id _SYMB_0 ListExp _SYMB_1 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tString p_1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tCPP.Absyn.ListExp p_3 = (CPP.Absyn.ListExp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t RESULT = new CPP.Absyn.EApp(p_1,p_3); \n CUP$parser$result = new java_cup.runtime.Symbol(9/*Exp14*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 23: // Exp15 ::= _SYMB_0 Exp _SYMB_1 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tCPP.Absyn.Exp p_2 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t RESULT = p_2; \n CUP$parser$result = new java_cup.runtime.Symbol(8/*Exp15*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 22: // Exp15 ::= Id \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tString p_1 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EId(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(8/*Exp15*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 21: // Exp15 ::= _DOUBLE_ \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tDouble p_1 = (Double)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EDouble(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(8/*Exp15*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 20: // Exp15 ::= _INTEGER_ \n {\n CPP.Absyn.Exp RESULT = null;\n\t\tInteger p_1 = (Integer)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.EInt(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(8/*Exp15*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 19: // Exp15 ::= _SYMB_24 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\t RESULT = new CPP.Absyn.EFalse(); \n CUP$parser$result = new java_cup.runtime.Symbol(8/*Exp15*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 18: // Exp15 ::= _SYMB_28 \n {\n CPP.Absyn.Exp RESULT = null;\n\t\t RESULT = new CPP.Absyn.ETrue(); \n CUP$parser$result = new java_cup.runtime.Symbol(8/*Exp15*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 17: // ListStm ::= ListStm Stm \n {\n CPP.Absyn.ListStm RESULT = null;\n\t\tCPP.Absyn.ListStm p_1 = (CPP.Absyn.ListStm)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tCPP.Absyn.Stm p_2 = (CPP.Absyn.Stm)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; p_1.addLast(p_2); \n CUP$parser$result = new java_cup.runtime.Symbol(7/*ListStm*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 16: // ListStm ::= \n {\n CPP.Absyn.ListStm RESULT = null;\n\t\t RESULT = new CPP.Absyn.ListStm(); \n CUP$parser$result = new java_cup.runtime.Symbol(7/*ListStm*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 15: // Stm ::= _SYMB_25 _SYMB_0 Exp _SYMB_1 Stm _SYMB_23 Stm \n {\n CPP.Absyn.Stm RESULT = null;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tCPP.Absyn.Stm p_5 = (CPP.Absyn.Stm)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Stm p_7 = (CPP.Absyn.Stm)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.SIfElse(p_3,p_5,p_7); \n CUP$parser$result = new java_cup.runtime.Symbol(6/*Stm*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 14: // Stm ::= _SYMB_2 ListStm _SYMB_3 \n {\n CPP.Absyn.Stm RESULT = null;\n\t\tCPP.Absyn.ListStm p_2 = (CPP.Absyn.ListStm)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t RESULT = new CPP.Absyn.SBlock(p_2); \n CUP$parser$result = new java_cup.runtime.Symbol(6/*Stm*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 13: // Stm ::= _SYMB_30 _SYMB_0 Exp _SYMB_1 Stm \n {\n CPP.Absyn.Stm RESULT = null;\n\t\tCPP.Absyn.Exp p_3 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.Stm p_5 = (CPP.Absyn.Stm)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.SWhile(p_3,p_5); \n CUP$parser$result = new java_cup.runtime.Symbol(6/*Stm*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 12: // Stm ::= _SYMB_27 Exp _SYMB_5 \n {\n CPP.Absyn.Stm RESULT = null;\n\t\tCPP.Absyn.Exp p_2 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t RESULT = new CPP.Absyn.SReturn(p_2); \n CUP$parser$result = new java_cup.runtime.Symbol(6/*Stm*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 11: // Stm ::= Type Id _SYMB_6 Exp _SYMB_5 \n {\n CPP.Absyn.Stm RESULT = null;\n\t\tCPP.Absyn.Type p_1 = (CPP.Absyn.Type)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tString p_2 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-3)).value;\n\t\tCPP.Absyn.Exp p_4 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t RESULT = new CPP.Absyn.SInit(p_1,p_2,p_4); \n CUP$parser$result = new java_cup.runtime.Symbol(6/*Stm*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 10: // Stm ::= Type ListId _SYMB_5 \n {\n CPP.Absyn.Stm RESULT = null;\n\t\tCPP.Absyn.Type p_1 = (CPP.Absyn.Type)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.ListId p_2 = (CPP.Absyn.ListId)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t RESULT = new CPP.Absyn.SDecls(p_1,p_2); \n CUP$parser$result = new java_cup.runtime.Symbol(6/*Stm*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 9: // Stm ::= Exp _SYMB_5 \n {\n CPP.Absyn.Stm RESULT = null;\n\t\tCPP.Absyn.Exp p_1 = (CPP.Absyn.Exp)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t RESULT = new CPP.Absyn.SExp(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(6/*Stm*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 8: // ListArg ::= Arg _SYMB_4 ListArg \n {\n CPP.Absyn.ListArg RESULT = null;\n\t\tCPP.Absyn.Arg p_1 = (CPP.Absyn.Arg)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-2)).value;\n\t\tCPP.Absyn.ListArg p_3 = (CPP.Absyn.ListArg)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_3; p_3.addFirst(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(5/*ListArg*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 7: // ListArg ::= Arg \n {\n CPP.Absyn.ListArg RESULT = null;\n\t\tCPP.Absyn.Arg p_1 = (CPP.Absyn.Arg)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.ListArg(); RESULT.addLast(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(5/*ListArg*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 6: // ListArg ::= \n {\n CPP.Absyn.ListArg RESULT = null;\n\t\t RESULT = new CPP.Absyn.ListArg(); \n CUP$parser$result = new java_cup.runtime.Symbol(5/*ListArg*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 5: // Arg ::= Type Id \n {\n CPP.Absyn.Arg RESULT = null;\n\t\tCPP.Absyn.Type p_1 = (CPP.Absyn.Type)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tString p_2 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.ADecl(p_1,p_2); \n CUP$parser$result = new java_cup.runtime.Symbol(4/*Arg*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 4: // ListDef ::= ListDef Def \n {\n CPP.Absyn.ListDef RESULT = null;\n\t\tCPP.Absyn.ListDef p_1 = (CPP.Absyn.ListDef)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tCPP.Absyn.Def p_2 = (CPP.Absyn.Def)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = p_1; p_1.addLast(p_2); \n CUP$parser$result = new java_cup.runtime.Symbol(3/*ListDef*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 3: // ListDef ::= \n {\n CPP.Absyn.ListDef RESULT = null;\n\t\t RESULT = new CPP.Absyn.ListDef(); \n CUP$parser$result = new java_cup.runtime.Symbol(3/*ListDef*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 2: // Def ::= Type Id _SYMB_0 ListArg _SYMB_1 _SYMB_2 ListStm _SYMB_3 \n {\n CPP.Absyn.Def RESULT = null;\n\t\tCPP.Absyn.Type p_1 = (CPP.Absyn.Type)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-7)).value;\n\t\tString p_2 = (String)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-6)).value;\n\t\tCPP.Absyn.ListArg p_4 = (CPP.Absyn.ListArg)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-4)).value;\n\t\tCPP.Absyn.ListStm p_7 = (CPP.Absyn.ListStm)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\t RESULT = new CPP.Absyn.DFun(p_1,p_2,p_4,p_7); \n CUP$parser$result = new java_cup.runtime.Symbol(2/*Def*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 1: // Program ::= ListDef \n {\n CPP.Absyn.Program RESULT = null;\n\t\tCPP.Absyn.ListDef p_1 = (CPP.Absyn.ListDef)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-0)).value;\n\t\t RESULT = new CPP.Absyn.PDefs(p_1); \n CUP$parser$result = new java_cup.runtime.Symbol(1/*Program*/, RESULT);\n }\n return CUP$parser$result;\n\n /*. . . . . . . . . . . . . . . . . . . .*/\n case 0: // $START ::= Program EOF \n {\n Object RESULT = null;\n\t\tCPP.Absyn.Program start_val = (CPP.Absyn.Program)((java_cup.runtime.Symbol) CUP$parser$stack.elementAt(CUP$parser$top-1)).value;\n\t\tRESULT = start_val;\n CUP$parser$result = new java_cup.runtime.Symbol(0/*$START*/, RESULT);\n }\n /* ACCEPT */\n CUP$parser$parser.done_parsing();\n return CUP$parser$result;\n\n /* . . . . . .*/\n default:\n throw new Exception(\n \"Invalid action number found in internal parse table\");\n\n }\n }", "public BlackjackClientState do_action(int action) {\n switch (action) {\n case 0:\n player_stand = true;\n break;\n case 1:\n player_cards.add(deck.get_card());\n break;\n\n }\n return get_state();\n }", "public InputAction makeChoice() {\n int choice = (int) Math.floor(Math.random() * 12);\n if(choice < 6) {\n return new InputAction(player, InputAction.ActionType.WORK, null);\n } else {\n DirectionType direction = directionByNumber.get(choice);\n return new InputAction(player, InputAction.ActionType.EXPLORE, direction);\n }\n }", "static public BasicAction createActionForEachRnd(List list,\n\t\t\t\t\t\t String methodName) {\n BasicAction ba = null;\n try {\n ba = ByteCodeBuilder.generateBasicActionForListRnd(list, methodName);\n } catch (GeneratorException ex) {\n SimUtilities.showError(\"Error creating action for list: \" + methodName,\n\t\t\t ex);\n System.exit(0);\n }\n\n return ba;\n }", "java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();", "java.util.List<com.rpg.framework.database.Protocol.CharacterAction> \n getActionsList();", "public PurchasedPermitTileAction map(PurchasedPermitTileActionDTO selectedActionDTO);", "abstract public void cabMultiselectPrimaryAction();", "@Test\n public void subsetActionsHasMatchingEnabledListEntry() {\n DroolsRulesServiceFactoryFromFile reader = buildDefaultReader();\n\n EngineConfigDTO engine = new EngineConfigDTO();\n List<String> enabledActionServices = new ArrayList<>();\n enabledActionServices.add(DEFAULT_IACTION_SERVICE_1.getName());\n engine.setEnabledActionServices(enabledActionServices);\n Map<String, IActionService> services = reader.configureActions(engine);\n\n assertEquals(1, services.size());\n IActionService service = services.get(DEFAULT_IACTION_SERVICE_1.getName());\n assertTrue(service != null);\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tif (getSelected() == null)\n\t\t\t{\n\t\t\t\tprintMsg(\"Select cards to play.\\n\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tgame.makeMove(activePlayer, getSelected());\n\t\t\t}\n\t\t}", "public void performAction(String s) {\n try {\n CommandToClient command = CommandToClient.valueOf(Parser.getCommand(s));\n s = s.substring(5);\n switch (command) {\n case START:\n gameFrame.startGame();\n break;\n case ATEMP:\n gameFrame.attempt(s);\n break;\n case LAUNC:\n gameFrame.resultOfAttempt(s);\n break;\n case TOCOL:\n // will announce that boat has been sank\n System.out.println(\"You sank the \" + SetOfBoats.getNames()[Integer.parseInt(s)]);\n break;\n case WINNE:\n // will announce that game is won\n System.out.println(\"You have won!\");\n break;\n case PRINT:\n gameFrame.printWG();\n default:\n System.out.println(\"Incorrect command : \" + s);\n }\n\n } catch (CommandException e) {\n System.out.println(\"Command \" + s + \" not valid\");\n e.printStackTrace();\n }\n }", "private ArrayList<String> getPossibleActions() {\n\t\t\n\t\tRandom r = new Random();\n\t\tArrayList<String> possibleActions = new ArrayList<String>();\n\t\tfor (String actionTitle : getAllActions()) {\n\t\t\tif (r.nextDouble() < 0.3) {\n\t\t\t\tpossibleActions.add(actionTitle);\n\t\t\t}\n\t\t}\n\t\treturn possibleActions;\n\t}", "@Override\n\tpublic int selectAttack(int difficulty, int id, int[] allyIdList) {\n\t\treturn 0;\n\t}", "private void action(String action) {\n\n\t\tSystem.out.println(name + \" is \" + action);\n\n\t\ttry {\n\t\t\tThread.sleep(((long)(Math.random() * 150)));\n\t\t} catch (InterruptedException e) {\n\t\t\tThread.currentThread().interrupt();\n\t\t}\n\t}", "public void chooseSeat(ActionEvent actionEvent) {\n for (int i = 0; i < 20; i++) {\n if (actionEvent.getSource().toString().trim().equals(seatsArray.get(i).toString().trim())) {\n if (chosenBtn != null)\n chosenBtn.setStyle(\"\"); //For changing the colour back to clear if they choose another seat\n this.chosenBtn = seatsArray.get(i);\n seatNum = this.chosenBtn.getId();\n seatsArray.get(i).setStyle(\"-fx-background-color: LIGHTBLUE\");\n }\n }\n }", "@Override\n public void performAction(UI client) {\n client.chooseCards(possibleCards, num, pickedCards);\n }", "private void onTrainActionSelected() {\n\t\tArrayList<Myo> connectedDevices = Hub.getInstance()\n\t\t\t\t.getConnectedDevices();\n\t\tif (connectedDevices.isEmpty()) {\n\t\t\treturn;\n\t\t}\n\n\t\t// Get the Myo to train. In this case, we will train the first Myo in\n\t\t// the Hub's\n\t\t// connected devices list.\n\t\tMyo myo = connectedDevices.get(0);\n\n\t\t// Launch the TrainActivity for the specified Myo.\n\t\tIntent intent = new Intent(this, TrainActivity.class);\n\t\tintent.putExtra(TrainActivity.EXTRA_ADDRESS, myo.getMacAddress());\n\t\tstartActivity(intent);\n\t}", "void chooseCards(List<SortedBag<Card>> options,\n ChooseCardsHandler handler);", "@Override\npublic Action actionChoosed(Player joueur) {\n WarPlayer player = this.castPlayer(joueur);\n int index = ((WarStrategy)(player.getStrategy())).skipOrDeploy();\n Action action = new SkipAction(player);\n if (index == 0) {\n Army army = this.inputArmy(player);\n Tile tile = ((WarStrategy)player.getStrategy()).inputTileStrategy();\n if(army != null && tile != null) {\n if (army.getArmySize() > 3 && tile.equals(new MountainTile(0, 0, 1, 0))) {\n System.out.println(\" Army of size \" + army.getArmySize() + \" can't be deployed on a mountain tile ! \");\n player.addWarrior(army.getArmySize());\n } else {\n action = new WarActionDeploy(player, this.board, tile.getPosX(), tile.getPosY(), army);\n }\n } else if (army != null && tile == null) {\n player.addWarrior(army.getArmySize());\n }\n }\n return action;\n}", "public static Collection<Action> actions(String... ids) {\n/* 216 */ List<Action> result = new ArrayList<>();\n/* 217 */ for (String id : ids) {\n/* 218 */ if (id.startsWith(\"---\")) result.add(ActionUtils.ACTION_SEPARATOR); \n/* 219 */ Action action = action(id);\n/* 220 */ if (action != null) result.add(action); \n/* */ } \n/* 222 */ return result;\n/* */ }", "static public BasicAction createActionForEach(List list, String methodName)\n {\n\n BasicAction ba = null;\n try {\n ba = ByteCodeBuilder.generateBasicActionForList(list, methodName);\n } catch (GeneratorException ex) {\n SimUtilities.showError(\"Error creating action for list: \" + methodName,\n\t\t\t ex);\n System.exit(0);\n }\n\n return ba;\n }", "public int doAction(GameBoard gameBoard, PlayerMove playerMove, List<Player> roundPlayerOrder, Turn turn){\n\n this.playerMove = playerMove;\n switch (playerMove.getTypeOfChoice()){\n case PICK:\n return pickExecution(playerMove, gameBoard);\n\n case PASS:\n return 0;\n\n default:\n return 3000;\n }\n }", "String[] getActions();", "public void clickEvent(int index){\n t.stop();\n Timer(15);\n if (cards.get(index).getTurned() == false) {\n if (wait == 1) {\n setTurned(c1, false);\n setTurned(c2, false);\n wait = 0;\n }\n setTurned(index, true);\n if (state == 2) {\n state = 1;\n c2 = index;\n if (cards.get(c1).getImgAnime().contains((cards.get(c2).getImgAnime()))) {\n if (activePlayer == 1) {\n if(cards.get(index).getNumber() == 1){\n p1Points += 3;\n }\n else {\n p1Points++;\n }\n points(activePlayer, p1Points);\n activePlayer = 1;\n changePlayer(activePlayer);\n } else {\n if(cards.get(index).getNumber() == 1){\n p2Points += 3;\n }\n else {\n p2Points++;\n }\n points(activePlayer, p2Points);\n activePlayer = 2;\n changePlayer(2);\n\n }\n checkFinished();\n } else {\n wait = 1;\n if (activePlayer == 1) {\n activePlayer = 2;\n changePlayer(activePlayer);\n } else {\n activePlayer = 1;\n changePlayer(activePlayer);\n }\n }\n } else {\n state = 2;\n c1 = index;\n }\n }\n }", "private WeightedSampler<String> getPossibleActions(int team) {\n if (this.b.getCurrentPlayerTurn() != team || this.b.getWinner() != 0) {\n return null;\n }\n Player p = this.b.getPlayer(team);\n WeightedSampler<String> poss = new WeightedRandomSampler<>();\n // playing cards & selecting targets\n List<Card> hand = p.getHand();\n for (Card c : hand) {\n if (p.canPlayCard(c)) {\n double totalWeight = PLAY_CARD_TOTAL_WEIGHT + PLAY_CARD_COST_WEIGHT_MULTIPLIER * c.finalStats.get(Stat.COST);\n List<List<List<TargetList<?>>>> targetSearchSpace = new LinkedList<>();\n this.getPossibleListTargets(c.getBattlecryTargetingSchemes(), new LinkedList<>(), targetSearchSpace);\n if (targetSearchSpace.isEmpty()) {\n targetSearchSpace.add(List.of());\n }\n if (c instanceof BoardObject) {\n double weightPerPos = totalWeight / (p.getPlayArea().size() + 1);\n // rip my branching factor lol\n for (int playPos = 0; playPos <= p.getPlayArea().size(); playPos++) {\n for (List<List<TargetList<?>>> targets : targetSearchSpace) {\n poss.add(new PlayCardAction(p, c, playPos, targets).toString().intern(), weightPerPos / targetSearchSpace.size());\n }\n }\n } else {\n // spells don't require positioning\n for (List<List<TargetList<?>>> targets : targetSearchSpace) {\n poss.add(new PlayCardAction(p, c, 0, targets).toString().intern(), totalWeight / targetSearchSpace.size());\n }\n }\n }\n }\n this.b.getMinions(team, false, true).forEachOrdered(m -> {\n // unleashing cards & selecting targets\n if (p.canUnleashCard(m)) {\n List<List<List<TargetList<?>>>> targetSearchSpace = new LinkedList<>();\n this.getPossibleListTargets(m.getUnleashTargetingSchemes(), new LinkedList<>(), targetSearchSpace);\n if (targetSearchSpace.isEmpty()) {\n targetSearchSpace.add(List.of());\n }\n for (List<List<TargetList<?>>> targets : targetSearchSpace) {\n poss.add(new UnleashMinionAction(p, m, targets).toString().intern(), UNLEASH_TOTAL_WEIGHT / targetSearchSpace.size());\n }\n }\n // minion attack\n if (m.canAttack()) {\n double totalWeight = ATTACK_TOTAL_WEIGHT + ATTACK_WEIGHT_MULTIPLIER * m.finalStats.get(Stat.ATTACK);\n double weight = totalWeight / m.getAttackableTargets().count();\n m.getAttackableTargets().forEachOrdered(target -> {\n double bonus = target instanceof Leader ? ATTACK_TARGET_LEADER_MULTIPLIER : 1;\n double overkillMultiplier = Math.pow(ATTACK_WEIGHT_OVERKILL_PENALTY, Math.max(0, m.finalStats.get(Stat.ATTACK) - target.health));\n poss.add(new OrderAttackAction(m, target).toString().intern(), overkillMultiplier * bonus * weight);\n });\n }\n });\n // ending turn\n poss.add(new EndTurnAction(team).toString().intern(), END_TURN_WEIGHT);\n return poss;\n }", "public void mostrarTurnos(String act, String sig);", "List<Action> build();", "public static List<Action> getActions(\n List<org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.list.Action> actions,\n short version, BigInteger datapathid)\n\n {\n List<Action> actionsList = new ArrayList<>();\n Action ofAction;\n\n for (int actionItem = 0; actionItem < actions.size(); actionItem++) {\n ofAction = null;\n ActionBuilder actionBuilder = new ActionBuilder();\n\n org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.action.Action action = actions.get(\n actionItem).getAction();\n\n if (action instanceof OutputActionCase)\n ofAction = salToOFOutputAction(action, actionBuilder, version);\n else if (action instanceof GroupActionCase)\n ofAction = SalToOFGroupAction(action, actionBuilder);\n else if (action instanceof CopyTtlOutCase)\n ofAction = SalToOFCopyTTLIOut(actionBuilder);\n else if (action instanceof CopyTtlInCase)\n ofAction = SalToOFCopyTTLIIn(actionBuilder);\n else if (action instanceof SetMplsTtlActionCase)\n ofAction = SalToOFSetMplsTtl(action, actionBuilder);\n else if (action instanceof DecMplsTtlCase)\n ofAction = SalToOFDecMplsTtl(actionBuilder);\n else if (action instanceof PushVlanActionCase)\n ofAction = SalToOFPushVlanAction(action, actionBuilder);\n else if (action instanceof PopVlanActionCase)\n ofAction = SalToOFPopVlan(actionBuilder);\n else if (action instanceof PushMplsActionCase)\n ofAction = SalToOFPushMplsAction(action, actionBuilder);\n else if (action instanceof PopMplsActionCase)\n ofAction = SalToOFPopMpls(action, actionBuilder);\n else if (action instanceof SetQueueActionCase)\n ofAction = SalToOFSetQueue(action, actionBuilder);\n else if (action instanceof SetNwTtlActionCase)\n ofAction = SalToOFSetNwTtl(action, actionBuilder);\n else if (action instanceof DecNwTtlCase)\n ofAction = SalToOFDecNwTtl(actionBuilder);\n else if (action instanceof SetFieldCase)\n ofAction = SalToOFSetField(action, actionBuilder, version, datapathid);\n else if (action instanceof PushPbbActionCase)\n ofAction = SalToOFPushPbbAction(action, actionBuilder);\n else if (action instanceof PopPbbActionCase)\n ofAction = SalToOFPopPBB(actionBuilder);\n else if (action instanceof ExperimenterActionCase)\n ofAction = SalToOFExperimenter(action, actionBuilder);\n\n // 1.0 Actions\n else if (action instanceof SetVlanIdActionCase)\n ofAction = SalToOFSetVlanId(action, actionBuilder, version);\n else if (action instanceof SetVlanPcpActionCase)\n ofAction = SalToOFSetVlanpcp(action, actionBuilder, version);\n else if (action instanceof StripVlanActionCase)\n ofAction = SalToOFStripVlan(actionBuilder, version);\n else if (action instanceof SetDlSrcActionCase)\n ofAction = SalToOFSetDlSrc(action, actionBuilder, version);\n else if (action instanceof SetDlDstActionCase)\n ofAction = SalToOFSetDlDst(action, actionBuilder, version);\n else if (action instanceof SetNwSrcActionCase)\n ofAction = SalToOFSetNwSrc(action, actionBuilder, version);\n else if (action instanceof SetNwDstActionCase)\n ofAction = SalToOFSetNwDst(action, actionBuilder, version);\n else if (action instanceof SetTpSrcActionCase)\n ofAction = SalToOFSetTpSrc(action, actionBuilder, version);\n else if (action instanceof SetTpDstActionCase)\n ofAction = SalToOFSetTpDst(action, actionBuilder, version);\n else if (action instanceof SetNwTosActionCase)\n ofAction = SalToOFSetNwTos(action, actionBuilder, version);\n\n if (ofAction != null) {\n actionsList.add(ofAction);\n }\n }\n return actionsList;\n }", "public Action getAction(String name) { return actions.get(name); }", "public interface OnActionSelectedListener {\n\t\t\tpublic void onActionSelected(Tweet tweet, String action);\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\t\r\n\t\t\t\tcontroller.newShot();\r\n\t\t\t\tint selected = clubList.getSelectedIndex();\r\n\t\t\t\tif (selected >= 0){\r\n\t\t\t\t\tString selectedClub = (String)clubList.getModel().getElementAt(selected);\r\n\t\t\t\t\tcontroller.selectClub(selectedClub);\r\n\t\t\t\t\tcontroller.startShot();\r\n\t\t\t\t\t\r\n\t\t\t\t\tUI.getInstance().show(PanelNames.END_SHOT);\r\n\t\t\t\t\tclubList.clearSelection();\r\n\t\t\t\t}\r\n\t\t\t}", "TherapyAction selectByPrimaryKey(String guid);", "public List<ActionValue> getActions(State state);", "GameState requestActionGamePiece();", "public void takeAction(BoardGameController.BoardBugAction action)\n {\n\n }", "public AcquirePermitTile map(AcquirePermitTileDTO selectedActionDTO);", "public void play() {\n\t\tthis.initializeTurn();\n\t\twhile(this.getAction() > 0) {\n\t\t\tint choix = RandomInt.randomInt(1,6, this.rand);\n\t\t\tif(choix == 1) {\n\t\t\t\t//add building, preference of Machine\n\t\t\t\tint max = 0;\n\t\t\t\tint maxi = 0;\n\t\t\t\tboolean find = false;\n\t\t\t\tfor(int i = 0; i < this.getBoard().getFiveBuildingCards().size(); i++) {\n\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i) != null) {\n\t\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i) instanceof Machine) {\n\t\t\t\t\t\t\tmaxi = i;\n\t\t\t\t\t\t\tfind = true;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(this.getBoard().getFiveBuildingCards().get(i).getPoint() > max && !find) {\n\t\t\t\t\t\t\tmax = this.getBoard().getFiveBuildingCards().get(i).getPoint();\n\t\t\t\t\t\t\tmaxi = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tthis.addBuilding(this.getBoard().getFiveBuildingCards().get(maxi));\n\t\t\t\tDesignString.printBorder(\"Ouverture d'un chantier\");\n\t\t\t}\n\t\t\telse if(choix == 2 || choix == 3) {\n\t\t\t\t//add worker, preference of the lowest one\n\t\t\t\tint min = 999;\n\t\t\t\tint mini = 0;\n\t\t\t\tfor(int i = 0; i < this.getBoard().getFiveWorkerCards().size(); i++) {\n\t\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(i) != null) {\n\t\t\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(i).getCost() < min && this.getBoard().getFiveWorkerCards().get(i).getCost() >= this.getCoin()) {\n\t\t\t\t\t\t\tmin = this.getBoard().getFiveWorkerCards().get(i).getCost();\n\t\t\t\t\t\t\tmini = i;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(this.getBoard().getFiveWorkerCards().get(mini).getCost() >= this.getCoin()) {\n\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tDesignString.printBorder(\"Recrutement d'un ouvrier\");\n\t\t\t\t\tthis.hireWorker(this.getBoard().getFiveWorkerCards().get(mini));\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if(choix == 4 || choix == 5 || choix == 6) {\n\t\t\t\t//worker to building. Preference to the started building. If it can't play, preference to action to coin\n\t\t\t\tIBuilding building = null;\n\t\t\t\tIWorker worker = null;\n\t\t\t\tif(this.getWorkerCards().size() > 0) {\n\t\t\t\t\tif(this.getStartedBuilding().size() > 0) {\n\t\t\t\t\t\tchoix = RandomInt.randomInt(0,2,this.rand);\n\t\t\t\t\t\tif(choix%2 == 0) {\n\t\t\t\t\t\t\tint max = 0;\n\t\t\t\t\t\t\tint maxi = 0;\n\t\t\t\t\t\t\tfor(int i = 0; i < this.getStartedBuilding().size(); i++) {\n\t\t\t\t\t\t\t\tif(this.getStartedBuilding().get(i) != null) {\n\t\t\t\t\t\t\t\t\tif(this.getStartedBuilding().get(i).getWorkerOn().size() > max) {\n\t\t\t\t\t\t\t\t\t\tmax = this.getStartedBuilding().get(i).getWorkerOn().size();\n\t\t\t\t\t\t\t\t\t\tmaxi = i;\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\tbuilding = this.getStartedBuilding().get(maxi);\n\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\n\t\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\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\tif(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t\twhile(building == null) {\n\t\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\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\tif(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if(this.getBuildingsCards().size() > 0) {\n\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\twhile(building == null) {\n\t\t\t\t\t\t\tbuilding = this.getBuildingsCards().get(RandomInt.randomInt(0,this.getBuildingsCards().size()-1, this.rand));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\twhile(worker != null && worker.getCost() > this.getCoin() && this.getAction() > 0) {\n\t\t\t\t\t\t\tworker = this.getWorkerCards().get(RandomInt.randomInt(0,this.getWorkerCards().size()-1, this.rand));\n\t\t\t\t\t\t\tchoix = RandomInt.randomInt(1,5,this.rand);\n\t\t\t\t\t\t\tif(choix == 1) {\n\t\t\t\t\t\t\t\tDesignString.printBorder(\"Échange action vers écus\");\n\t\t\t\t\t\t\t\tthis.actionToCoins(RandomInt.randomInt(1,this.getAction(), this.rand));\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(this.getAction() >= this.getRemoveBuilding(building)) {\n\t\t\t\t\t\t\tDesignString.printBorder(\"Envoi d'un ouvrier sur un chantier\");\n\t\t\t\t\t\t\tthis.workerToBuilding(worker, building);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static Action action(String id) {\n/* 205 */ return actions.get(id);\n/* */ }", "public static void getBattleChoice() {\n \t\tMainGame.display.disp(\"What do you want to do?:\");\r\n \t\tMainGame.display.Enable(MainGame.display.attack, MainGame.display.defend, MainGame.display.heal);\r\n \t}", "@Override\n public List<String> doAction(){\n destination.setCloakTurns(destination.getCloakTurns() + 3);\n destination.getOwner().getResources().getTechResource().useTech(Constants.CLOAK_COST);\n //Message \"(Player) cloaked (destination) for three more turns.\"\n return Arrays.asList((destination.getOwner().getName() + \" cloaked \" + destination.getName() + \" for three more turns.\"));\n }", "int getAction();", "@Override\n\tpublic Action getAction(int i) {\n\t\treturn this.actions.get(i);\n\t}", "void gameSelected(boolean isAdmin, boolean isRunning);", "void selectPlayerFrom(List<Player> players, String title, Consumer<Player> callback);" ]
[ "0.65993613", "0.62833476", "0.6242347", "0.6209014", "0.61974", "0.5964571", "0.590535", "0.58608764", "0.5808802", "0.577856", "0.5776629", "0.57755345", "0.57676196", "0.5757782", "0.57442415", "0.566433", "0.5661582", "0.56566054", "0.5655516", "0.56385857", "0.5625875", "0.56125057", "0.5604188", "0.55952287", "0.5595072", "0.55769646", "0.5576458", "0.55653536", "0.55206597", "0.54907775", "0.5487246", "0.5472877", "0.5466895", "0.5447093", "0.5438863", "0.54287136", "0.54231673", "0.54231673", "0.5422901", "0.54099566", "0.5364868", "0.5356739", "0.53436106", "0.5324172", "0.53226954", "0.5321334", "0.5319319", "0.53189445", "0.53064156", "0.5304057", "0.52923656", "0.5291842", "0.5288652", "0.5285247", "0.52787274", "0.5274787", "0.52714014", "0.5265603", "0.526349", "0.52630496", "0.5252925", "0.5252925", "0.52505064", "0.52408516", "0.52219075", "0.52117676", "0.5207311", "0.51844037", "0.5177618", "0.51770294", "0.5165654", "0.5165153", "0.51581395", "0.51505905", "0.51492286", "0.5148031", "0.51439726", "0.5137825", "0.51371753", "0.51368994", "0.51343775", "0.5132727", "0.5128725", "0.51262605", "0.51237965", "0.51189274", "0.51127785", "0.51058394", "0.5103025", "0.50988", "0.509293", "0.50922835", "0.50896144", "0.5085359", "0.5080664", "0.50772274", "0.5073124", "0.5071013", "0.50698966", "0.50382745" ]
0.6846896
0
Updates the client match view
@Override public void updateMatch(AdrenalinaMatch toGetUpdateFrom) { JSONObject message = new JSONObject(); message.put("function", "update"); message.put("type", "match"); message.put("match", toGetUpdateFrom.toJSON()); this.sendInstruction(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateView(ClientView view);", "public void updateMatch(Match match){\n setMatch(match);\n Platform.runLater( () -> {\n firstPage.setMatch(match);\n firstPage.refreshPlayersInLobby();\n });\n if(mainPage != null) {\n Platform.runLater( () -> {\n mainPage.setMatch(match);\n senderRemoteController.setMatch(match);\n this.match = match;\n mainPage.refreshPlayersPosition();\n mainPage.refreshPoints();\n if(match.getPlayer(senderRemoteController.getNickname()).getStatus().getSpecialAbility().equals(AbilityStatus.FRENZY)){\n mainPage.setFrenzyMode(true);\n mainPage.frenzyButtonBoosted();\n System.out.println(\"[FRENZY]: Started FINAL FRENZY\");\n System.out.println(\"[FRENZY]: Current Player: \"+match.getCurrentPlayer().getNickname()+ \" in status \"+match.getCurrentPlayer().getStatus().getTurnStatus());\n\n }\n if (match.getPlayer(senderRemoteController.getNickname()).getStatus().getSpecialAbility().equals(AbilityStatus.FRENZY_LOWER)){\n mainPage.setFrenzyMode(true);\n mainPage.frenzyButtonLower();\n }\n });\n }\n //questo metodo viene chiamato piu volte.\n }", "void updateView();", "void updateView();", "private void refreshView() {\n this.view.updateRobots();\n }", "public interface EditMatchInfoView extends RestView {\n\n void onUpdatedMatch(Match match);\n}", "private void updateView(){\n \n camera.updateView();\n }", "private void updateMatches(){\n getContext().getContentResolver().delete(MatchesContract.BASE_CONTENT_URI, null, null);\n\n // Fetch new data\n new FetchScoreTask(getContext()).execute();\n }", "@Override\n public void updateView(UserInteraction userInteraction) {\n userInteraction.getGame().setPlayers(this.players);\n userInteraction.getGame().setDevelopmentCardTable(this.table);\n userInteraction.getGame().setMarket(this.market);\n userInteraction.getGame().setFaithTrack(this.faithTrack);\n if(this.players.get(1).getNickname().equals(\"Lorenzo il Magnifico\"))\n userInteraction.getGame().setGameType(GameType.SINGLEPLAYER);\n else\n userInteraction.getGame().setGameType(GameType.MULTIPLAYER);\n userInteraction.setMessage(this);\n\n this.displayAction(userInteraction);\n }", "@Override\n public void updateView(Message msg)\n {\n \n }", "public void updateConicalView();", "@Override\n public void send(Gui view) {\n view.update(this);\n }", "void onModelChanged(MatchSnapshot matchSnapshot);", "void updateView () {\n updateScore();\n board.clearTemp();\n drawGhostToBoard();\n drawCurrentToTemp();\n view.setBlocks(board.getCombined());\n view.repaint();\n }", "void updateViewFromModel();", "public void updateView() {\n if (mData.isEmpty()) {\n Logger.d(TAG, \"The mData is empty\");\n return;\n }\n Set<View> viewSet = mData.keySet(); // keySet() returns [] if map is\n // empty\n Iterator<View> viewIterator = viewSet.iterator();\n if (viewIterator == null) {\n Logger.d(TAG, \"The viewIterator is null\");\n return;\n }\n while (viewIterator.hasNext()) {\n View view = viewIterator.next();\n if (view == null) {\n Logger.d(TAG, \"The view is null\");\n } else {\n Object obj = mData.get(view);\n if (obj == null) {\n Logger.d(TAG, \"The value is null\");\n } else {\n if (obj instanceof ChatsStruct) {\n ChatsStruct chatStruct = (ChatsStruct) obj;\n updateChats(view, chatStruct);\n } else if (obj instanceof InvitationStruct) {\n InvitationStruct inviteStruct = (InvitationStruct) obj;\n updateInvitations(view, inviteStruct);\n } else {\n Logger.d(TAG, \"Unknown view type\");\n }\n }\n }\n }\n }", "public void updateWindow() {\n MatchDAO ma = new MatchDAO();\n ArrayList<User> u = ma.getTopFiveMostMatchedUsers();\n view.updateWindow(ma.getLastMonthMatches(), ma.getLastWeekMatches(), ma.getLastDayMatches(), u);\n }", "@Override\n public void updateView(Intent intent)\n {\n \n }", "public void enterPlayerView(){\n\t\tplayerSeen=true;\r\n\t\tplayerMapped=true;\r\n\t}", "private void handleView(View view) throws AppiaEventException {\n \t\tSystem.out.println(\"Received a new View\");\n \n \t\t//Get the parameters\n \t\tVsGroup[] allGroups = VsClientManagement.getAllGroups();\n \n \t\t//Update the view\n \t\tvs = view.vs;\t\t\n \n \t\t//We start from scratch\n \t\tUpdateManager.cleanUpdateViews();\n \n \t\t//We seize the oportunity to put the future clients and future dead clients in the view\n \t\tfor(VsGroup group : allGroups){\n\t\t\tVsClientManagement.setFutureClientsIntoPresent(group.getGroupId());\n\t\t\tVsClientManagement.setFutureDeadsIntoPresent(group.getGroupId());\n\n \t\t\tVsClientManagement.clearFutureClients(group.getGroupId());\n \t\t\tVsClientManagement.clearFutureDead(group.getGroupId());\n \t\t}\n \n \t\t//I have received a new view, must send the other servers my views clients (and me)\n \t\tVsGroup[] allGroupsWithOnlyMyClients = VsClientManagement.getAllGroupsWithOnlyMyClients(listenAddress);\n \n \t\tUpdateProxyEvent updateProxy = new UpdateProxyEvent(allGroupsWithOnlyMyClients, myEndpt);\n \t\tsendToOtherServers(updateProxy);\n \t\tsendToMyself(updateProxy);\t\t\n \t}", "public void viewAccepted(View new_view) {\n this.view=new_view;\n log.trace(\"[Relayer \" + channel.getAddress() + \"] view: \" + new_view);\n\n Map<String,List<Address>> tmp=extract(new_view);\n Set<String> down=new HashSet<>(routes.keySet());\n Set<String> up=new HashSet<>();\n\n down.removeAll(tmp.keySet());\n\n routes.keySet().retainAll(tmp.keySet()); // remove all sites which are not in the view\n\n for(Map.Entry<String,List<Address>> entry: tmp.entrySet()) {\n String key=entry.getKey();\n List<Address> val=entry.getValue();\n\n List<Route> newRoutes;\n if(routes.containsKey(key))\n newRoutes=new ArrayList<>(routes.get(key));\n else {\n newRoutes=new ArrayList<>();\n if(up != null)\n up.add(key);\n }\n\n // Remove routes not in the view anymore:\n newRoutes.removeIf(route -> !val.contains(route.siteMaster()));\n\n // Add routes that aren't yet in the routing table:\n val.stream().filter(addr -> !contains(newRoutes, addr))\n .forEach(addr -> newRoutes.add(new Route(addr, channel, relay, log).stats(stats)));\n\n if(newRoutes.isEmpty()) {\n routes.remove(key);\n down.add(key);\n up.remove(key);\n }\n else\n routes.put(key, Collections.unmodifiableList(newRoutes));\n }\n if(!down.isEmpty())\n relay.sitesChange(true, down.toArray(new String[0]));\n if(!up.isEmpty())\n relay.sitesChange(false, up.toArray(new String[0]));\n }", "@Override\n\tpublic void updateClient() {\n\t\t\n\t}", "@Override\n public void send(VirtualView view) {\n view.update(this);\n }", "@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}", "public void updateArticleView(ServerObj serverObj){\n View v = getView();\n// String[] data = Ipsum.Articles;\n// article.setText(data[position]);\n// currentPosition = position;\n currentServerObj=serverObj;\n LinearLayout containerOfContents= (LinearLayout) v.findViewById(R.id.container_of_contents);\n containerOfContents.removeAllViews();\n ContentsViewBuilder contentsViewBuilder=new ContentsViewBuilder(activity);\n Log.d(\"myPavilion\",\"serverObj\"+serverObj.getJson());\n View contentsView=contentsViewBuilder.getView(serverObj.getContentsObj());\n containerOfContents.addView(contentsView);\n\n }", "public void UpdateView(){\n\t\tStageArray[CurrentStage].Update();\r\n\t\t//updateUI will activate the Draw function\r\n\t\tStageArray[CurrentStage].updateUI();\r\n\t\t//this completely refreshes totalGUI and removes and mouse listener it had\r\n\t\tif(CardMain.frame.getContentPane()!=StageArray[CurrentStage]){\r\n\t\t\tCardMain.frame.setContentPane(StageArray[CurrentStage]);\r\n\t\t}\r\n\t}", "public void updateViews() {\n updateViews(null);\n }", "private void updateView() {\n model.inlezenHighscore();\n for (int i = 0; i < 10; i++) {\n view.getNaamLabels(i).setText(model.getNaam(i));\n view.getScoreLabels(i).setText(model.getScores(i));\n }\n }", "@Override\n public void updateContent() {\n lmDriver.getTournaments();\n\n // Show all tournaments in the scene\n table.createTable();\n\n // Disable buttons\n btnJoin.disableProperty().bind(Bindings.isEmpty(tblTournaments.getSelectionModel().getSelectedItems()));\n btnWithdraw.disableProperty().bind(Bindings.isEmpty(tblTournaments.getSelectionModel().getSelectedItems()));\n btnShowInfo.disableProperty().bind(Bindings.isEmpty(tblTournaments.getSelectionModel().getSelectedItems()));\n\n // Clear list\n listLeaderboard.getItems().clear();\n\n // Update global leaderboard\n ArrayList<String> leaderboard = lmDriver.getGlobalLeaderboard();\n\n if (leaderboard.size() == 0) {\n listLeaderboard.getItems().add(\"There are no values yet.\");\n } else {\n listLeaderboard.getItems().add(\"Position Score Player\");\n for (String row : leaderboard) {\n listLeaderboard.getItems().add(row);\n }\n }\n }", "private void showMatchView() {\n mMatchShadowView.animate().alpha(1);\n\n // Only show if it is not already visible\n if (mMatchView.getVisibility() != View.VISIBLE) {\n mMatchView.setVisibility(View.INVISIBLE);\n mMatchView.setTranslationY(-mMatchView.getHeight());\n mMatchView.setVisibility(View.VISIBLE);\n // Clear the listener from the hiding animation\n mMatchView.animate().translationY(0).setListener(null);\n }\n }", "public void updateClient()\n\t{\n\t\t// TODO\n\t}", "@FXML\n private void fastMatch() {\n if (Client.getUser().getState() != Type.UserState.IDLE) {\n JOptionPane.showMessageDialog(null, \"您已经在房间中\");\n return;\n }\n Room match = null;\n for (Room room : Client.roomsMap.values()) {\n if (room.hasSeat()) {\n match = room;\n Client.getUser().setRoom(match.getId());\n Client.getUser().setState(Type.UserState.READY);\n Client.updateUser();\n match.setState(Type.RoomState.READY);\n if (match.getPlayer1() == null || match.getPlayer1().isEmpty()) {\n match.setPlayer1(Client.getUser().getAccount());\n Client.updateRoom(room, Type.UpdateRoom.PLAYER1IN);\n } else {\n match.setPlayer2(Client.getUser().getAccount());\n Client.updateRoom(room, Type.UpdateRoom.PLAYER2IN);\n }\n break;\n }\n }\n if (match != null) {\n client.gotoGame(match);\n } else {\n int res = JOptionPane.showConfirmDialog(null, \"暂时找不到匹配的房间哦,是否要自己创建一个呢?\", \"未找到匹配的房间\", JOptionPane.YES_NO_OPTION);\n if (res == JOptionPane.YES_OPTION) {\n client.gotoCreateRoom();\n }\n }\n }", "private void updateView(GL2 gl) {\r\n gl.glLoadIdentity();\r\n final float eyeX = (float) camera.getEye().get(0);\r\n final float eyeY = (float) camera.getEye().get(1);\r\n final float eyeZ = (float) camera.getEye().get(2);\r\n final float refX = (float) camera.getRef().get(0);\r\n final float refY = (float) camera.getRef().get(1);\r\n final float refZ = (float) camera.getRef().get(2);\r\n final float upX = (float) camera.getUp().get(0);\r\n final float upY = (float) camera.getUp().get(1);\r\n final float upZ = (float) camera.getUp().get(2);\r\n glu.gluLookAt(eyeX, eyeY, eyeZ, refX, refY, refZ, upX, upY, upZ);\r\n }", "@Override\r\n\tpublic String update() {\n\t\tSystem.out.println(\"updateView.\");\r\n\t\t\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\t\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\t\r\n\t\t\t\trequest.put(\"Id\", bean.getId());\r\n\t\t\t\trequest.put(\"lineName\", bean.getLineName());\r\n\t\t\t\trequest.put(\"lineLink\", bean.getLineLink());\r\n\t\t\t\t//request.put(\"lineImg\", bean.getLineImg());\r\n\t\t\t\treturn \"update\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn \"go_preload\";\r\n\t}", "@Override\n public void update(Observable o, Object remoteView) {\n RemoteView remote = (RemoteView) remoteView;\n this.mapView = remote.getMapView();\n this.playerHand = remote.getPlayerHands().get(this.playerId);\n this.playerBoardViews = remote.getPlayerBoardViews();\n this.playerPosition = remote.getMapView().getPlayerPosition(remote.getPlayerBoardViews().get(this.playerId).getColor());\n }", "@Override\n public void updateView() throws Exception{\n Connection conn = null;\n PreparedStatement pr = null;\n ResultSet rs = null;\n try {\n String query = \"Update [view] set viewed = viewed + 1\";\n conn = getConnection();\n pr = conn.prepareStatement(query);\n pr.executeUpdate();\n } catch (Exception ex) {\n throw ex;\n } finally {\n closeResultSet(rs);\n closePreparedStatement(pr);\n closeConnection(conn);\n }\n }", "public void updateViews() {\n textView.setText(contactName);\n\n }", "public void updateView() {\n\t\tif(columns_view != null){\n\t\t\tint rowCount = newModel.getRowCount();\n\t\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\t newModel.removeRow(i);\n\t\t\t}\n\t\t\t\n\t\t\tint columns_size = columns_view.size();\n\t\t\tfor(int i =0 ; i < columns_size;i++){\n\t\t\t\tString index = Integer.toString(i);\n\t\t\t\tString name = \"Obs \" + index;\n\t\t\t\tif(columns_view.get(i) == model.bird){\n\t\t\t\t\tname = \"Bird\";\n\t\t\t\t}\n\t\t\t\tString obstacle_x = Integer.toString(columns_view.get(i).x);\n\t\t\t\tString obstacle_y = Integer.toString(columns_view.get(i).y);\n\t\t\t\tString obstacle_width = Integer.toString(columns_view.get(i).width);\n\t\t\t\tString obstacle_height = Integer.toString(columns_view.get(i).height);\n\t\t\t\tnewModel.addRow(new Object[]{name,obstacle_x,obstacle_y,obstacle_width,obstacle_height});\n\t\t\t}\n\t\t\t//System.out.println(\"this is view1 updateview\");\n\t\t\t//System.out.println(\"columns size\" + columns_view.size());\n\t\t}\n\t\t\n\t}", "@Override\n public void updateWindow(MessageToVirtualView update) {\n if(!update.isModelRep())\n {\n JOptionPane.showMessageDialog(lobbyWindowFrame,update.getMessage().getMessage());\n }\n }", "public void updateMatch(Match match) {\n\t\tmatchDao.update(match);\r\n\t}", "public void refresh() {\r\n\t\tmainGUI.getPlayerFrame().setMyTurn(\r\n\t\t\t\tclient.getID() == island.getCurrentPlayer().getID());\r\n\t\ttradingMenu.update();\r\n\t\tsupplyPanel.update();\r\n\t\tcardMenu.update();\r\n\t\trefreshOpponents();\r\n\t}", "private void changeView(){\r\n\t\t\tm.changeView(Views.GAME, gameType, game);\r\n\t}", "@Override\n\tpublic void onViewChanged(JFrame frame) {\n\t\tupdateCourses();\n\t}", "private void displayNewClient(final MeshDisplayClient clientToDisplay) {\n \tMeshDisplayControllerApplictaion appObject = (MeshDisplayControllerApplictaion)LiveMeshEventControllerActivity.this.getApplicationContext();\n \tMeshDisplayControllerEngine meshDisplayEngine = appObject.getAppMeshDisplayControllerEngine();\n\t\tif(clientToDisplay.id.equalsIgnoreCase(meshDisplayEngine.getReservedControllerName()) ) {\n\t\t\treturn;\n\t\t}\n\t\teventDisplayArea = (ViewGroup)findViewById(R.id.mainEventDisplayArea);\n\t\tLayoutInflater inflater = (LayoutInflater)getApplicationContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView clientPhoneView = inflater.inflate(R.layout.client_display_layout, null);\n\t\t\n\t\t//Create offset for display to stop it landing on top of the last one - should update to remove any\n\t\t//hard coded values\n\t\tint offsetMultiplier = clientDisplayMap.size();\n\t\tint viewWidth = 150; //clientPhoneView.getWidth();\n\t\tint viewHeight = 220; //clientPhoneView.getHeight();\n\t\tint topMargin = 50;\n\t\tint eventDisplayWidth = eventDisplayArea.getWidth();\n\t\tint eventDisplayHeight = eventDisplayArea.getHeight();\n\t\tint leftMargin = 50 + (viewWidth*(1+offsetMultiplier));\n\t\t\n\t\t//If the top row is full just add everything in the next row in approx the same location and\n\t\t//the user can drag them to where they want them\n\t\tif (leftMargin > (eventDisplayWidth - viewWidth)) {\n\t\t\tint randomAdjuster = 20 + (int)(Math.random() * ((50 - 20) + 1));\n\t\t\tleftMargin = 50 + randomAdjuster;\n\t\t\ttopMargin = 50 + viewHeight + 20 + randomAdjuster;\n\t\t}\n\n\t RelativeLayout.LayoutParams layoutParams = new RelativeLayout.LayoutParams(150, 220);\n\t layoutParams.leftMargin = leftMargin;\n\t layoutParams.topMargin = topMargin;\n\t layoutParams.bottomMargin = -250;\n\t layoutParams.rightMargin = -250;\n\t clientPhoneView.setLayoutParams(layoutParams);\n\t \n\t //Set the client id display\n\t TextView clientIdTextView = (TextView)clientPhoneView.findViewById(id.clientIDTextView);\n\t clientIdTextView.setText(clientToDisplay.id);\n\t \n\t //Set the text to display in the edit text and set the edit text listener\n\t EditText displayEditText = (EditText)clientPhoneView.findViewById(id.clientDisplayEditText);\n\t displayEditText.setText(clientToDisplay.textToDisplay);\n\t displayEditText.addTextChangedListener(new TextWatcher(){\n\t public void afterTextChanged(Editable s) {\n\t \t//New text entered - create a new task to send the text to the server\n\t \tLog.d(\"LiveMeshEventControllerActivity displayEditText.addTextChangedListener\", \"Text changed: \" + s.toString());\n\t \tString newText = s.toString();\n\t \tif (TextUtils.isEmpty(newText)) {\n\t \t\tnewText = \"%20\";\n\t \t}\n\t \tLog.d(\"LiveMeshEventControllerActivity displayEditText.addTextChangedListener\", \"newText: \" + s.toString());\n\t \tsetTextTask = new SetTextForDeviceTask();\n\t \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\n\t \t\tsetTextTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, clientToDisplay.id, newText);\n\t \t} else {\n\t \t\tsetTextTask.execute(clientToDisplay.id, newText);\n\t \t}\n\n\t }\n\t public void beforeTextChanged(CharSequence s, int start, int count, int after){}\n\t public void onTextChanged(CharSequence s, int start, int before, int count){}\n\t });\n\n\t clientPhoneView.setOnTouchListener(this);\n\t eventDisplayArea.addView(clientPhoneView);\n\t clientDisplayMap.put(clientToDisplay.id, clientPhoneView);\n\t}", "private void updateView(Connect4MoveMessage message) {\n\t\tif(message.getColor() == message.YELLOW) {\n\t\t\tSystem.out.println(message.getColor());\n\t\t\tchangeColor(message.getRow(),message.getColumn(),Color.YELLOW);\n\t\t} else if (message.getColor() == message.RED) {\n\t\t\tSystem.out.println(message.getColor());\n\t\t\tchangeColor(message.getRow(),message.getColumn(),Color.RED);\n\t\t}else {\n\t\t\tchangeColor(message.getRow(),message.getColumn(),Color.WHITE);\n\t\t}\n\t\t\n\t}", "@Override\r\n\tpublic void updateView(List<Pays> models) {\n\t}", "public void showMatchFailedView() {\n mMatchStatus = MATCH_STATUS_MATCH_FAILED;\n postInvalidate();\n }", "public void updateView(GameScreen game) {\n Vector2 playerPos = game.getCurrentPlayer().getPosition();\n\n Vector2 gameBounds = game.getBounds();\n\n Vector2 viewSize = getSize();\n\n float gWidth = gameBounds.x;\n float gHeight = gameBounds.y;\n\n float cHalfWidth = viewSize.x / 2;\n float cHalfHeight = viewSize.y / 2;\n\n if (playerPos.x > -gWidth + cHalfWidth\n && playerPos.x < gWidth - cHalfWidth) {\n pos = new Vector2(playerPos.x, pos.y);\n }\n if (playerPos.y > -gHeight + cHalfHeight\n && playerPos.y < gHeight - cHalfHeight) {\n pos = new Vector2(pos.x, playerPos.y);\n }\n view.setCenter(pos.toVector2f());\n }", "public DisplayClientsView(DisplayClientsController controller) {\r\n\t\tthis.controller = controller;\r\n\t\tinitGUI();\r\n\t}", "public void emitChangeView() {\n \n int view = getCurrentViewNumber();\n Object lpid = getLocalServerID();\n \n JDSUtility.debug(\"[emitChangeView()] s\" + lpid + \", at time \" + getClockValue() + \", is going to emit a change view message for (v + 1 = \" + (view + 1) + \")\");\n\n /* the replica makes sure that no timer is currently working. If the view change was trigged by a suspect of failure of the primary then probably it's \n been already true. */\n revokeSendBatch();\n revokeViewChange();\n\n /* an exponetial timeout has to be considered to guarantee liveness when the end-to-end delay is too long (it's prevent uncessary view-changes)*/\n PBFTTimeoutDetector ttask = (PBFTTimeoutDetector) getViewTimer().getTask();\n long timeout = (Long) ttask.get(\"TIMEOUT\");\n ttask.put(\"TIMEOUT\", 2 * timeout);\n\n /* the replica moves to the next view. After that, this replica isn't accepting any message from view v < v+1. */\n setCurrentViewNumber(view +1);\n \n /* clean-up the sets P (prepare set) and Q (pre-prepare set)*/\n preprepareset.clear();\n prepareset.clear();\n\n long lcwm = getLCWM();\n long hcwm = getHCWM();\n\n /* compute Q (pre-prepare set) and P (prepare set) */\n for(long seqn = lcwm + 1; seqn <=hcwm; seqn++){\n /*If I have a prepare then its digests will be added to pre-prepared and prepared sets */\n PBFTPrepare pr = getPrepareInfo().get(lpid, seqn);\n if(pr != null){\n PBFTPrePrepare pp = new PBFTPrePrepare(view, pr.getSequenceNumber(), null);\n pp.getDigests().addAll(pr.getDigests());\n preprepareset.add(pp);\n \n prepareset.add(new PBFTPrepare(pp, null));\n\n for(String digest: pp.getDigests()){\n getRequestInfo().assign(digest, RequestState.WAITING);\n getRequestInfo().assign(digest, (Long)null);\n }\n\n continue;\n }\n\n /*If I have a pre-prepare then its digests will be added to pre-prepared set*/\n PBFTPrePrepare ppr = getPrePrepareInfo().get(seqn);\n if(ppr != null){\n PBFTPrePrepare pp = new PBFTPrePrepare(view, ppr.getSequenceNumber(), null);\n pp.getDigests().addAll(ppr.getDigests());\n preprepareset.add(pp);\n \n for(String digest: pp.getDigests()){\n getRequestInfo().assign(digest, RequestState.WAITING);\n getRequestInfo().assign(digest, (Long)null);\n }\n } \n }\n\n \n try{\n doRollback();\n }catch(Exception e){\n e.printStackTrace();\n }\n\n /* update the controls for sequence number execution */\n getStateLog().setNextPrePrepareSEQ(lcwm + 1);\n getStateLog().setNextExecuteSEQ (lcwm + 1);\n\n PBFTChangeView cv = createChangeViewMessage();\n \n try {\n /* gets the root of the checkpoint partition tree */\n PartEntry centry = rStateManager.getPart(0, 0);\n\n /* adds the pair (last stable sequence number and state digest) to compose checkpoint set C */\n if(centry != null){\n cv.addCheckpoint(centry.getPartCheckpoint(), centry.getDigest());\n }else{\n cv.addCheckpoint(lcwm, \"\");\n }\n } catch (Exception ex) {\n Logger.getLogger(PBFTServer.class.getName()).log(Level.SEVERE, null, ex);\n cv.getCheckpointSet().clear();\n cv.addCheckpoint(lcwm, \"\");\n }\n\n /* add the pre-prepare set to current change-view message*/\n cv.getPrePrepareSet().clear();\n cv.getPrePrepareSet().addAll(preprepareset);\n\n /* add the prepare set to current change-view message*/\n cv.getPrepareSet().clear();\n cv.getPrepareSet().addAll(prepareset);\n\n /*emit the change view message to group of replicas */\n emit(cv, getLocalGroup().minus(getLocalProcess()));\n\n getChangeViewInfo().setMinimumViewNumber(view);\n getChangeViewInfo().put(cv);\n\n if(isPrimary()){\n getNewViewConstructor().addChangeView(cv);\n }else{\n finalizeNewViewConstructor();\n }\n\n getChangeViewInfo().gc(view);\n getChangeViewACKInfo().gc(view);\n getNewViewConstructor().gc(view);\n getNewViewInfo().gc(view);\n getPrePrepareInfo().gc(view);\n getPrepareInfo().gc(view);\n getPrePreparebackupInfo().gc(view);\n getCommitInfo().gc(view);\n\n\n emitChangeViewACK();\n\n\n uncertanty = true; \n }", "private void updateView()\n {\n System.out.println(this);\n repaint();\n }", "private void setupNewMatch() {\n\t\tif (!startupSettings.getKeepMatchStartSettings()) {\n\t\t\tcurrentMatchSettings.setMakerFactory(startView.setupMaker(globalSettings.getMakers()));\n\t\t\tcurrentMatchSettings.setBreakerFactory(startView.setupBreaker(globalSettings.getBreakers()));\n\t\t\tcurrentMatchSettings.resetLengthAttempts();\n\t\t\tif (startView.askNewLengthsAndAttempts()) {\n\t\t\t\tcurrentMatchSettings\n\t\t\t\t\t\t.setAttempts(startView.askNewAttempts(currentMatchSettings.getLowTresholdAttempts()));\n\t\t\t\tcurrentMatchSettings.setSequenceLength(startView.askNewLength(\n\t\t\t\t\t\tcurrentMatchSettings.getLowTresholdLength(), currentMatchSettings.getHighTresholdLength()));\n\t\t\t}\n\t\t}\n\t\tsetCurrentMatch(this.matchBuilder());\n\t}", "void updateModelFromView();", "protected abstract void update(View view, Render render, int pass);", "private void findMatches() {\n this.user.getMatches().clear();\n final String HOST_MATCH = HOST_URL + \"/match/\" + user.getId() + \"/?page=0\" + HomeView.MATCH_LIMIT;\n RequestQueue que = Volley.newRequestQueue(this);\n JsonObjectRequest req = new JsonObjectRequest(Request.Method.GET, HOST_MATCH, null,\n new Response.Listener<JSONObject>() {\n @Override\n public void onResponse(JSONObject response) {\n try { //String id, String firstName, String lastName, String email) {\n MatchView.parseEdges(response.getJSONArray(\"matches\"), toBeMatched);\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.d(\"HomeView\", \"Could not find matches\");\n }\n });\n que.add(req);\n }", "public void updateConnectedPlayers(ArrayList<Player> connectedPlayers) throws RemoteException{\n match.setPlayers(connectedPlayers);\n for (int i=0;i<match.getPlayers().size();i++){\n System.out.println(\"[LOBBY]: Player \"+ match.getPlayers().get(i).getNickname()+ \" is in lobby\");\n }\n System.out.println(\"[LOBBY]: Refreshing Lobby..\");\n Platform.runLater(() -> firstPage.refreshPlayersInLobby());// Update on JavaFX Application Thread\n }", "void setPlayerView(View v);", "public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }", "public Connect4View() {\n\t\tgame = new TilePane();\n\t\tcontroller = new SingleController(game);\n\t\tcontroller.getModel().addObserver(this);\n\t\tgameFinished = false;\n\t}", "private void updateReceivedView() {\n mReceivedCoins = Data.getReceivedCoins();\n mRecyclerViewCol.setVisibility(View.INVISIBLE);\n mRecyclerViewRec.setVisibility(View.VISIBLE);\n mReceivedAdapter.notifyDataSetChanged();\n }", "@FXML\n\tpublic void UpdateClientAdm(ActionEvent event) {\n\t\tClient clientToUpdate = restaurant.returnClient(LabelUpdateClientNameAdm.getText());\n\t\tif (!txtUpdateClientNamesAdm.getText().equals(\"\") && !txtUpdateClientSurnamesAdm.getText().equals(\"\")\n\t\t\t\t&& !txtUpdateClientAdressAdm.getText().equals(\"\") && !txtUpdateClientPhoneAdm.getText().equals(\"\")\n\t\t\t\t&& !txtUpdateClientObservationsAdm.getText().equals(\"\") && !txtUpdateClientIdAdm.getText().equals(\"\")) {\n\n\t\t\ttry {\n\t\t\t\tclientToUpdate.setNames(txtUpdateClientNamesAdm.getText());\n\t\t\t\tclientToUpdate.setSurnames(txtUpdateClientSurnamesAdm.getText());\n\t\t\t\tclientToUpdate.setAdress(txtUpdateClientAdressAdm.getText());\n\t\t\t\tclientToUpdate.setPhoneNumber(txtUpdateClientPhoneAdm.getText());\n\t\t\t\tclientToUpdate.setObservations(txtUpdateClientObservationsAdm.getText());\n\t\t\t\tclientToUpdate.setIdNumber(txtUpdateClientIdAdm.getText());\n\n\t\t\t\trestaurant.saveClientsData();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"Cliente actualizado satisfactoriamente\");\n\t\t\t\tdialog.setTitle(\"Proceso Satisfactorio\");\n\t\t\t\tdialog.show();\n\n\t\t\t\ttxtUpdateClientNamesAdm.setText(\"\");\n\t\t\t\ttxtUpdateClientSurnamesAdm.setText(\"\");\n\t\t\t\ttxtUpdateClientAdressAdm.setText(\"\");\n\t\t\t\ttxtUpdateClientPhoneAdm.setText(\"\");\n\t\t\t\ttxtUpdateClientObservationsAdm.setText(\"\");\n\t\t\t\ttxtUpdateClientIdAdm.setText(\"\");\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\tDialog<String> dialog = createDialog();\n\t\t\t\tdialog.setContentText(\"No se pudo guardar la actualización de los datos\");\n\t\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\t\tdialog.show();\n\t\t\t}\n\n\t\t\ttry {\n\t\t\t\tFXMLLoader optionsFxml = new FXMLLoader(getClass().getResource(\"Administrator-Options-window.fxml\"));\n\t\t\t\toptionsFxml.setController(this);\n\t\t\t\tParent opWindow = optionsFxml.load();\n\t\t\t\tmainPaneLogin.getChildren().setAll(opWindow);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tDialog<String> dialog = createDialog();\n\t\t\tdialog.setContentText(\"Todos los campos deben ser llenados\");\n\t\t\tdialog.setTitle(\"Error al guardar datos\");\n\t\t\tdialog.show();\n\t\t}\n\t}", "public void startMatch(View view) {\n \t\n \t//checks if all data was entered\n \tif(this.dataEntered()){\n \t\t\n \t\t/*\n \t\t * this resets the DataHandler class, which stores all the data from the match\n \t\t * we do this in case the user finishes a match and then starts a new one\n \t\t * this way data from different matches does not overlap\n \t\t */\n \t\t\n \t\tDataHandler.clear();\n \t\t\n \t\t//creates a new intent, needed to change activities\n\t\t\tIntent intent = new Intent(this, MatchActivity.class);\n\t\t\t\n\t\t\t//finds all views\n\t\t\tEditText txtmatch = (EditText) this.findViewById(R.id.te_match_num);\n\t\t\tEditText txtteam = (EditText) this.findViewById(R.id.te_team_num);\n\t\t\tRadioButton btnRed = (RadioButton) this.findViewById(R.id.btn_red);\n\t\t\t\n\t\t\t/*\n\t\t\t * we only need to reference button red, because if \n\t\t\t * btnRed.isChecked() is false, then the alliance \n\t\t\t * color must be blue\n\t\t\t */\n\t\t\t\n\t\t\t//gets the match and team numbers\n\t\t\tString matchNum = txtmatch.getText().toString();\n\t\t\tString teamNum = txtteam.getText().toString();\n\t\t\t\n\t\t\t/*\n\t\t\t * uses the TeamNumber reference class to check if the \n\t\t\t * team number entered is an actual team number. First\n\t\t\t * the string teamNum has to be converted to an integer,\n\t\t\t * hence the Integer.parseInt(teamNum)\n\t\t\t */\n\t\t\t\n\t\t\tif(!TeamNumbers.isATeamNumber(Integer.parseInt(teamNum))){\n\t\t\t\t\n\t\t\t\t//if the team number is not valid, a message prompts the user to try again\n\t\t\t\tToast.makeText(this,\"That is not a valid team number.\",Toast.LENGTH_SHORT).show();\n\t\t\t\treturn;\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t//gets whether btnRed is selected or not\n\t\t\tboolean isRed = btnRed.isChecked();\n\t\t\t\n\t\t\t/*\n\t\t\t * This puts the extras into our original intent.\n\t\t\t * Extras are just data that you want to be transferred\n\t\t\t * over to a different activity. intent.putExtra() takes\n\t\t\t * both an string id and the actual value you want to\n\t\t\t * transfer. The id serves as a way to identify the \n\t\t\t * different variables.\n\t\t\t */\n\t\t\t\n\t\t\tintent.putExtra(EXTRA_MATCH_NUM,matchNum);\t\t//match number\n\t\t\tintent.putExtra(EXTRA_TEAM_NUM,teamNum);\t\t\t//team number\n\t\t\tintent.putExtra(EXTRA_IS_RED,isRed);\t\t\t\t//if alliance is red\n\t\t\t\n\t\t\t//sends the user to the match activity\n\t\t\tstartActivity(intent);\n\t\t\t\n \t}else\n \t\t\n \t\t//if not all data is entered, prompts the user to try again\n \t\tToast.makeText(this,\"Please enter all the team's information.\",Toast.LENGTH_SHORT).show();\n \t\n\t}", "public void setMatchID(int id){\r\n\t\tmatchID = id;\r\n\t}", "@Override\n public void update(Observable observable) {\n Client c = (Client)observable;\n JLabel l = labels.get(c.getID());\n selectColor(l, c);\n }", "public GameController(Match match)\n {\n this.match = match;\n gameMode = GameMode.NORMAL;\n\n MatchSettings settings = MatchSettings.getInstance();\n\n remainingSkulls = new AtomicInteger(settings.getSkullNumber());\n startTimerSeconds = settings.getStartTimerSeconds();\n deaths = Collections.synchronizedList(new ArrayList<>());\n map = Map.createMap(settings.getMapNumber());\n\n createDecks();\n }", "private void updateViewsWithRecievedData() {\n\n //check if user has rated the data\n if (dataModel.getUser_has_rated().equalsIgnoreCase(\"true\")) {\n //user has rated\n ratingBar.setRating(Float.parseFloat(Integer.toString(dataModel.getUser_rating())));\n isRated = true;\n }\n //check if user has liked post\n if (dataModel.getUser_has_liked().equalsIgnoreCase(\"true\")) {\n //user has liked post, change imageview background\n likes_imv.setBackgroundColor(getColor(R.color.colorAccent));\n isLiked = true;\n }\n\n tv_title.setText(dataModel.getTitle() + \"\\n\" + dataModel.getArtist_actors());\n tv_views.setText(HelperMethods.getStringViewsFromInt(dataModel.getViews(), \"\"));\n tv_likes.setText(HelperMethods.getStringViewsFromInt(dataModel.getLikes(), \"likes\"));\n tv_synopsis.setText(dataModel.getSynop_desc());\n tv_artists.setText(dataModel.getArtist_actors());\n tv_contacts.setText(dataModel.getContacts());\n\n }", "protected void refreshView() {\r\n\t\tFacesContext context = FacesContext.getCurrentInstance();\r\n\t\tApplication application = context.getApplication();\r\n\t\tViewHandler viewHandler = application.getViewHandler();\r\n\t\tUIViewRoot viewRoot = viewHandler.createView(context, context.getViewRoot().getViewId());\r\n\t\tcontext.setViewRoot(viewRoot);\r\n\t\tcontext.renderResponse();\r\n\t}", "@Override\n public void setMatch(Match match) {\n if (this.match != null) {\n this.match.removeObserver(this);\n }\n this.match = match;\n this.match.addObserver(this);\n }", "public static void updateGUI(Client client) {\n\n int currentwhoHasBall = client.whoHasBall();\n int[] ids = client.getPlayersID();\n boolean currentPlayerHasBall = client.playerID == currentwhoHasBall;\n if (whoHasBall != currentwhoHasBall || storedIDs.length != ids.length) {\n\n SwingUtilities.invokeLater(() -> {\n clientGUI.label.setText(\"Waiting for player: \" + currentwhoHasBall + \" to pass\");\n clientGUI.button.setEnabled(false);\n clientGUI.dropDown.removeAllItems();\n for (int id : ids) {\n String inputString = \"Player: \" + id;\n clientGUI.dropDown.addItem(inputString);\n }\n if (currentPlayerHasBall) {\n clientGUI.label.setText(\"You have the ball, select the player you wish to pass to\");\n clientGUI.button.setEnabled(true);\n }\n });\n whoHasBall = currentwhoHasBall;\n storedIDs = ids;\n }\n }", "private void tileViewUpdate(TileView tv) {\n\n\t\tswapTileWithBlank(tv);\n\n\t\t// int i = 0;\n\t\t// for (Tile tile : tiles) {\n\t\t// Log.v(\"log_tag\", \"current location= \" + (i++) + \" \"\n\t\t// + tile.getCurrentLocation());\n\t\t// }\n\n\t}", "public UpdateVehicleCharges() {\n initComponents();\n view();\n \n \n }", "private void updateSessionListView() {\n FastLap[] temp = lapMap.values().toArray(new FastLap[lapMap.size()]);\n SessionAdapter adapter = new SessionAdapter(getApplicationContext(), temp);\n mSessionFragment.update(adapter);\n //Log.d(TAG, \"sessionListView UI updated...\");\n }", "@Override\n\t\tpublic void viewAccepted(View joiner) {\n\t\t}", "@Override\r\n\tpublic void updateView(int parseInt, int parseInt2, String string) {\n\r\n\t}", "private void updateView() {\n\t\tpbrLoading.setVisibility(View.GONE);\n\t\tif (isPlaying()) {\n\t\t\tgifVoiceLoader.setVisibility(View.VISIBLE);\n\t\t\timgPlay.setVisibility(View.GONE);\n\t\t} else {\n\t\t\tgifVoiceLoader.setVisibility(View.GONE);\n\t\t\timgPlay.setVisibility(View.VISIBLE);\n\t\t}\n\t\timgPlay.setImageResource(getPlayImageResId());\n\t\tgifVoiceLoader.setGifImageResourceID(getVoiceLoderGif());\n\t\ttxtButtonCaption.setText(getText() + \" s\");\n\n\t}", "public void updateContent(){\r\n\t\tthis.initRecords();\r\n\t\tlist.show(records);\r\n\t}", "@Override\n\tprotected void refreshView() {\n\t\t\n\t}", "public UpdateRecordListener(MainView view) {\n\t\t// TODO Auto-generated constructor stub\n\t\tthis.view = view;\n\t}", "@Override\n public String getViewInteractionString() {\n return UPDATE;\n }", "private void updateView() {\r\n if (this.nodes == null || this.nodes.length > 1\r\n || !this.nodes[0].exists()) {\r\n this.titleBorder.setTitle(\"-\");\r\n this.jzvStat.setStat(null);\r\n this.taUpdate.setText(\"\");\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled(false);\r\n this.jbNewChild.setEnabled(false);\r\n this.jbDelete.setEnabled(this.nodes != null);\r\n } else {\r\n this.titleBorder.setTitle(this.nodes[0].getPath());\r\n this.jzvStat.setStat(this.nodes[0].getStat());\r\n byte[] data = this.nodes[0].getData();\r\n this.taUpdate.setText(new String(data == null ? \"null\".getBytes()\r\n : data));\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled( !this.taUpdate.getText().trim().equals(\"\") );\r\n this.jbNewChild.setEnabled( !this.jtfChildName.getText().trim().equals(\"\") );\r\n this.jbDelete.setEnabled(true);\r\n }\r\n this.repaint();\r\n }", "public void update()\n {\n reinit(viewer.getScene().getActors());\n\n list.invalidate();\n invalidate();\n repaint();\n }", "@Override\r\n\tprotected void userDefinedViewUpdate() {\r\n\t\tvideoUtil.captureVideoImage();\r\n\t\tgetModel()._readFromViewAfterUpdate();\r\n\t}", "private void syncCardsWithViews()\n\t{\n\t\t\n\t\t// Remove all cards from all views\n\t\tremoveCardsFromViews();\n\t\t\n\t\t// Add all cards to all views\n\t\taddCardsToViews();\n\t\t\n\t\t// Repaint everything\n\t\trepaintViews();\n\t\t\n\t}", "Call<Void> updateMatchDate(\n String idMatch,\n String date,\n StateChangedListener listener\n );", "@Override\n\tpublic void refreshView() {\n\n\t}", "public void update() {\n\n\t\tdisplay();\n\t}", "private void handleMatches(MatchContainer matchContainer) {\n Log.d(TAG, \"handleMatches method\");\n GamePieceFactory gamePieceFactory = levelManager.getGamePieceFactory();\n do {\n currentLevelScore += matchContainer.getMatchPoints();\n controller.updateScoreBoardView(matchContainer.getMatchPoints());\n gameBoard.highlightTile(matchContainer);\n controller.playSound(matchContainer);\n controller.controlGameBoardView(ONE_SECOND);\n boardManipulator.removeFromBoard(matchContainer, gamePieceFactory);\n boardManipulator.updateBoard(gamePieceFactory);\n matchContainer = matchFinder.findMatches();\n } while (matchContainer.hasMatches());\n checkForLevelUp();\n }", "void updateControls();", "private void viewChange() {\n currentView = (TextView) findViewById(R.id.currView);\n currentView.setText(counters.get(counterPosition).toString());\n }", "@Override\n public void refreshView() {\n WSDLActivityConfigurationBean configuration = activity.getConfiguration();\n description.setText(\"VPH-Share service \" + configuration.getWsdl());\n }", "public void update() {\n\t\tthis.editorView.update();\n\t}", "public void updateView(String message) {\n output.setText(message);\n \n }", "private void updateViews() {\n\n\t\tsetContentView(R.layout.activity_members);\n\n\t\t\n\t\tif(cOrg.size()==0 && cProg.size()==0 && cCoord.size()==0){\n\t\t\tTextView view = (TextView) findViewById(R.id.no_results);\n\t\t\tview.setText(this.getString(R.string.NO_INFO));\t\t\t\n\t\t}else{\n\t\t\t\n\t membersView = (ExpandableListView) findViewById(R.id.members_view);\n\t \n\t headers = new ArrayList<String>();\n\t \n\t Map<String, List<Member>> resultsMap = new LinkedHashMap<String, List<Member>>();\n\t \n\t if(cProg.size()>0){\n\t \theaders.add(this.getString(R.string.PROG_COM));\n\t \tresultsMap.put(this.getString(R.string.PROG_COM), cProg);\n\t }\n\t \n\t if(cOrg.size()>0){\n\t \theaders.add(this.getString(R.string.ORG_COM));\n\t \tresultsMap.put(this.getString(R.string.ORG_COM), cOrg);\n\t }\n\t \n\t if(cCoord.size()>0){\n\t \theaders.add(this.getString(R.string.COORD_COM));\n\t \tresultsMap.put(this.getString(R.string.COORD_COM), cCoord);\n\t }\n\t \n\t final MembersListViewAdapter membersViewAdapter = new MembersListViewAdapter(this, headers, resultsMap);\n\t membersView.setAdapter(membersViewAdapter);\n\t \n\t membersView.setOnChildClickListener(new OnChildClickListener() {\n\t\n\t \tpublic boolean onChildClick(ExpandableListView parent, View v,\n\t int groupPosition, int childPosition, long id) {\n\t \t\n\t final Member m = (Member) membersViewAdapter.getChild(\n\t groupPosition, childPosition);\n\t \n\t final Long idElement = m.getId();\n\n\t Intent intent = new Intent(MembersActivity.this, MemberActivity.class);\n\t intent.putExtra(MEMBER_ID, idElement);\n\t \t\t\t\t \n\t \t\t\tstartActivity(intent);\n\t\n\t return true;\n\t }\n\t });\n\t\t}\n\t\t\t\n\t}", "public void update_routing_window() {\n Log2(\"update_routing_window\\n\");\n Iterator<RouteEntry> iter= null;\n if (main_rtab!=null) {\n iter= main_rtab.iterator();\n }\n\n // update window\n for (int i= 0; i<tableObj.getRowCount(); i++) {\n if ((main_rtab != null) && iter.hasNext()) {\n RouteEntry next= iter.next();\n tableObj.setValueAt(\"\"+next.dest,i,0);\n tableObj.setValueAt(\"\"+next.next_hop,i,1);\n tableObj.setValueAt(\"\"+next.next_hop_area,i,2);\n tableObj.setValueAt(\"\"+next.dist,i,3);\n } else {\n tableObj.setValueAt(\"\",i,0);\n tableObj.setValueAt(\"\",i,1);\n tableObj.setValueAt(\"\",i,2);\n tableObj.setValueAt(\"\",i,3);\n }\n }\n }", "public void replaceView(){\n ((GameView) observers.get(0)).dispose();\n observers.remove(0);\n this.addObserver(new GameView(this));\n }", "@Override\n\tprotected void RefreshView() {\n\t\t\n\t}", "public void update(){\r\n\t\tupdateTurnLabel();\r\n\t\tupdateCanvas();\r\n\t}", "public void searchCliente(JTextField txt, TextAutoCompleter match){\n match.removeAllItems(); // Remover todos los elementos del Autocompletador. \n cl = clientes();//Inserta todos los clientes en el vector. \n cl.forEach(item -> { //Agrega al autocompletador nombre e ID de los clientes \n match.addItem(item.getNombreCliente()+ \" \" + item.getApellidoPaterno() + \" \" + String.valueOf(item.getID_Cliente()));\n match.addItem(String.valueOf(item.getID_Cliente()));\n });\n }", "@Override\n public\n void\n updateView()\n {\n // Stop responding to events.\n setAllowEvents(false);\n\n getAccountChooser().displayElements(getAccounts());\n getPanel().removeAll();\n\n // Get new reference to account incase the type or collection has changed.\n setAccount(getProperAccountReference());\n\n if(getAccount() != null)\n {\n setRegisterPanel(new RegisterPanel(getAccount()));\n\n getAccountChooser().setSelectedItem(getAccount().getIdentifier());\n getFilter().updateFormats();\n\n // Build panel.\n getPanel().setFill(GridBagConstraints.BOTH);\n getPanel().add(getRegisterPanel(), 0, 0, 1, 1, 100, 100);\n\n displayTransactions(null);\n }\n\n // Resume responding to events.\n setAllowEvents(true);\n }", "public static void updateViewSettings() {\n\t\tif(isSensorNetworkAvailable()) {\n\t\t\tinformationFrame.update(selectedSensor);\n\t\t\tviewPort.getGraphicsPainter().repaint();\n\t\t}\n\t}" ]
[ "0.73181516", "0.67359877", "0.6251066", "0.6251066", "0.6224087", "0.6165555", "0.60889447", "0.6013109", "0.6008025", "0.5987322", "0.5981707", "0.5941554", "0.5766093", "0.57660735", "0.57492477", "0.57451344", "0.5703543", "0.56585497", "0.5653496", "0.56470656", "0.5646183", "0.56215984", "0.56169075", "0.56018674", "0.5566849", "0.55609566", "0.5560711", "0.55559546", "0.5520395", "0.5515475", "0.54941785", "0.54929864", "0.5473315", "0.54642487", "0.54426026", "0.54194117", "0.53992766", "0.5396846", "0.538335", "0.53691316", "0.5365879", "0.5360217", "0.5359338", "0.5335711", "0.53098994", "0.5294438", "0.5293505", "0.5292656", "0.52775675", "0.5275404", "0.5271646", "0.52593595", "0.5258064", "0.5246336", "0.5237789", "0.52313787", "0.5229347", "0.5203931", "0.5198486", "0.51856124", "0.51845545", "0.5182808", "0.51798654", "0.51667315", "0.51618075", "0.51525736", "0.5122239", "0.51182544", "0.5106128", "0.5101939", "0.50987256", "0.5093996", "0.5091471", "0.5082989", "0.5082018", "0.5073444", "0.5066436", "0.5064307", "0.50632143", "0.5055141", "0.5053638", "0.50532967", "0.5040221", "0.5038937", "0.50388753", "0.5037676", "0.50256795", "0.5022878", "0.5014904", "0.50110495", "0.5007067", "0.5000557", "0.49911356", "0.49857137", "0.49853298", "0.4985174", "0.49803042", "0.49748862", "0.49745044", "0.49697173" ]
0.54102516
36
Updates the client lobby view
public void updateLobby(Lobby toGetUpdateFrom) { JSONObject message = new JSONObject(); message.put("function", "update"); message.put("type", "lobby"); message.put("lobby", toGetUpdateFrom.toJSON()); this.sendInstruction(message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void updateView(ClientView view);", "public void updateConnectedPlayers(ArrayList<Player> connectedPlayers) throws RemoteException{\n match.setPlayers(connectedPlayers);\n for (int i=0;i<match.getPlayers().size();i++){\n System.out.println(\"[LOBBY]: Player \"+ match.getPlayers().get(i).getNickname()+ \" is in lobby\");\n }\n System.out.println(\"[LOBBY]: Refreshing Lobby..\");\n Platform.runLater(() -> firstPage.refreshPlayersInLobby());// Update on JavaFX Application Thread\n }", "public void updateLobby(Set<String> players) {\r\n lobbyFrame.updateList(players);\r\n }", "@Override\n\tpublic void updateClient() {\n\t\t\n\t}", "public void setLobby(Lobby l){\r\n\t\tthis.lobby = l;\r\n\t}", "public void setLobby(Lobby lobby)\r\n\t{\r\n\t\treceiver.setLobby(lobby);\t\r\n\t}", "public void updateClient()\n\t{\n\t\t// TODO\n\t}", "@Override\n public void updateView(Message msg)\n {\n \n }", "private void refreshView() {\n this.view.updateRobots();\n }", "public void update(DroitsMembre client) {\n\n\t}", "public void newLobby(ClientHandler firstClient, String nickname, int number) {\n clientToNames.put(firstClient, nickname);\n namesToClient.put(nickname, firstClient);\n nicknames.add(nickname);\n firstClient.setNickname(nickname);\n view.setNamesToClient(nickname, firstClient, false);\n\n firstClient.registerObserver(this);\n view.registerObserver(this);\n\n System.out.println(nickname + \" has joined the lobby number \" + lobbyID);\n\n playersNumber = number;\n\n System.out.println(\"The lobby number \"+ lobbyID +\" will contain \" + playersNumber + \" players\");\n\n view.waitingRoom(firstClient);\n\n firstClient.send(new InitialSetup());\n }", "public void updateArticleView(ServerObj serverObj){\n View v = getView();\n// String[] data = Ipsum.Articles;\n// article.setText(data[position]);\n// currentPosition = position;\n currentServerObj=serverObj;\n LinearLayout containerOfContents= (LinearLayout) v.findViewById(R.id.container_of_contents);\n containerOfContents.removeAllViews();\n ContentsViewBuilder contentsViewBuilder=new ContentsViewBuilder(activity);\n Log.d(\"myPavilion\",\"serverObj\"+serverObj.getJson());\n View contentsView=contentsViewBuilder.getView(serverObj.getContentsObj());\n containerOfContents.addView(contentsView);\n\n }", "public void updateClientBadges()\n\t{\n\t\tString data = \"\";\n\t\tfor(int i = 0; i < m_badges.length; i++)\n\t\t\tdata += m_badges[i];\n\t\tServerMessage message = new ServerMessage(ClientPacket.BADGES_PACKET);\n\t\tmessage.addInt(0);\n\t\tmessage.addString(data);\n\t\tgetSession().Send(message);\n\t}", "public interface View {\n /**\n * Prints that Client lost the connection to Server and quits the application\n */\n void serverLostConnection();\n\n /**\n * Asks User for Server's IP address and Port\n */\n void askServerInfo();\n\n /**\n * Asks User for setting up a Username\n */\n void askUsername();\n\n /**\n * Asks user for Game modality: single player, create a multi player lobby or join to a lobby\n */\n void askMenu();\n\n /**Prints to the lobby members that a Player joined it\n * @param username the new Joiner's username\n */\n void notifyPlayerJoined(String username);\n\n /**\n * runs the waitStartGameString() method\n */\n void askStartGame();\n\n /**\n * Wait for Lobby Owner digit \"START\"/\"start\" and then calls LightController method to start the MultiPlayer Game\n */\n void waitStartGameString();\n\n /**\n * Notifies the Lobby Owner that Server successfully created the Lobby\n */\n void showCreatorWaitingRoom();\n\n /**Notifies the User that successfully joined to the Lobby and prints the list of members\n * @param usernames the Lobby Member's username ArrayList\n */\n void showWaitingRoom(ArrayList<String> usernames);\n\n /**\n * Shows to disconnected User that LightController is trying to reconnect to Server\n */\n void showReconnectionToGame();\n\n /**\n * Shows to User to wait it's turn in a Multi Player Game session\n */\n void waitingForMyTurn();\n\n /**Prints the available Lobby list in Server with their relatives ID\n * @param lobbies a Lobby ArrayList\n */\n void askLobbyID(ArrayList<Lobby> lobbies);\n\n /**Notifies to all others Users that a Player is disconnected\n * @param username the disconnected Player's username\n */\n void notifyPlayerDisconnected(String username);\n\n /**Notifies to all others Users that a Player is reconnected\n * @param username the reconnected Player's username\n */\n void notifyPlayerReconnected(String username);\n\n /**Notifies to all others Users that the Lobby Creator is disconnected\n */\n void notifyCreatorDisconnected();\n\n /**Asks to User to choose 2 of 4 LightLeaderCard received by LightController\n * and eventually 0 to 2 LightResources\n * @param quartet the 4-length LightLeaderCards ArrayList\n * @param numResources the number of Resources user has to choose\n * @param faithPoints true if User's Player has earned a FaithPoint\n */\n void askStartItems(ArrayList<LightLeaderCard> quartet, int numResources, boolean faithPoints);\n\n /**Asks User to do an action in the turn\n */\n void askTurn();\n\n /**\n * Prints the menu to calls LightController method to ask for a LeaderCard activation\n */\n void askLeaderCardActivation();\n\n /**\n * Prints the menu to calls LightController method to ask for a LeaderCard threw\n */\n void askLeaderCardThrowing();\n\n /**\n * Prints the menu to calls LightController method to ask for a Resources purchase at the Market\n */\n void askBuyResources();\n\n /**\n * Prints the menu to calls LightController method to ask for a DevelopmentCard purchase at the Market\n */\n void askBuyDevCards();\n\n /**\n * Prints the menu to calls LightController method to ask for a DevelopmentCard production\n */\n void askDevCardProduction();\n\n /**\n * Prints the menu to calls LightController method to ask for a DevelopmentBoard production\n */\n void askDefaultProduction();\n\n /**\n * Calls the LightController method to end the turn\n */\n void askEndTurn();\n\n /**Notifies the User of the Resources list purchased from the Market that were not added to Warehouse\n * @param threwResources a LightResource ArrayList\n */\n void showThrewResources(ArrayList<LightResource> threwResources);\n\n /**Shows an error message\n * @param message a String containing the message\n */\n void showError(String message);\n\n /**Shows a success message\n * @param message a String containing the message\n */\n void showSuccess(String message);\n\n /**Shows the Multi Player Game session winner, the final rank and quits the application\n * @param winner the winner Player's username\n * @param rank a String containing the final rank\n */\n void showRanking(String winner, String rank);\n\n /**Shows the final message in Single Player session and quit the application\n * @param message a String containing if the User won against Lorenzo or not\n */\n void endSinglePlayerGame(String message);\n\n /**\n * Quits the application\n */\n void endGame();\n\n /**Shows others Player action relatives to turn starting and turn ending\n * @param message a String containing\n */\n void showOthersActions(String message);\n\n /**Shows the Lorenzo actions in the Single player Game session\n * @param lollo the LightLorenzo instance containing all the actions it did in its turn\n */\n void showLorenzoActions(LightLorenzo lollo);\n\n /**Shows the new Player's CardSlots to all Users\n * @param username the LightPlayer's username\n * @param cardSlots the LightPlayer's new LightCardSlots\n */\n void updateCardSlots(String username, LightCardSlots cardSlots);\n\n /**Shows the new Player's WarehouseDepot to all Users\n * @param username the LightPlayer's username\n * @param warehouseDepot the LightPlayer's new LightWarehouseDepot\n */\n void updateWarehouseDepot(String username, LightWarehouseDepot warehouseDepot);\n\n /**Shows the new Player's Strongbox to all Users\n * @param username the LightPlayer's username\n * @param strongbox the LightPlayer's new LightStrongbox\n */\n void updateStrongbox(String username, LightStrongbox strongbox);\n\n /**Shows the new Player's FaithTrack to all Users\n * @param username the LightPlayer's username\n * @param faithTrack the LightPlayer's new LightFaithTrack\n */\n void updateFaithTrack(String username, LightFaithTrack faithTrack);\n\n /**Shows the new Player's LeaderSlot to all Users\n * @param username the LightPlayer's username\n * @param leaderSlot the LightPlayer's new LightLeaderCards\n */\n void updateLeaderSlot(String username, ArrayList<LightLeaderCard> leaderSlot);\n\n /**Shows the new LightDevelopmentBoard\n * @param board a LightDevelopmentBoard instance\n */\n void updateDevBoard(LightDevelopmentBoard board);\n\n /**Shows the new LightMarketBoard\n * @param market a LightMarket instance\n */\n void updateMarketBoard(LightMarketBoard market);\n}", "public void updateBufferList()\n\t{\n\t\tfinal BufferSet bufferSet = editPane.getBufferSet();\n\t\tif(bufferSet.size() == 0)\n\t\t\treturn;\n\n\t\tRunnable runnable = new Runnable()\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void run()\n\t\t\t{\n\t\t\t\tupdating = true;\n\t\t\t\tsetMaximumRowCount(jEdit.getIntegerProperty(\"bufferSwitcher.maxRowCount\",10));\n\t\t\t\tBuffer[] buffers = bufferSet.getAllBuffers();\n\t\t\t\tif (jEdit.getBooleanProperty(\"bufferswitcher.sortBuffers\", true)) \n\t\t\t\t{\n\t\t\t\t\tArrays.sort(buffers, new Comparator<Buffer>()\n\t\t\t\t\t{\n\t\t\t\t\t\tpublic int compare(Buffer a, Buffer b) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (jEdit.getBooleanProperty(\"bufferswitcher.sortByName\", true)) \n\t\t\t\t\t\t\t\treturn a.getName().toLowerCase().compareTo(b.getName().toLowerCase());\t\t\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\treturn a.getPath().toLowerCase().compareTo(b.getPath().toLowerCase());\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tsetModel(new DefaultComboBoxModel<Buffer>(buffers));\n\t\t\t\t// FIXME: editPane.getBuffer() returns wrong buffer (old buffer) after last non-untitled buffer close.\n\t\t\t\t// When the only non-untitled (last) buffer is closed a new untitled buffer is added to BufferSet\n\t\t\t\t// directly from BufferSetManager (@see BufferSetManager.bufferRemoved() and BufferSetManager.addBuffer())\n\t\t\t\t// This triggers EditPane.bufferAdded() -> bufferSwitcher.updateBufferList() bypassing setting EditPane's\n\t\t\t\t// buffer object reference to a new created untitled buffer.\n\t\t\t\t// This is why here editPane.getBuffer() returns wrong previous already closed buffer in that case.\n\t\t\t\tsetSelectedItem(editPane.getBuffer());\n\t\t\t\taddDnD();\n\t\t\t\tupdating = false;\n\t\t\t}\n\t\t};\n\t\tThreadUtilities.runInDispatchThread(runnable);\n\t}", "@Override\r\n\tpublic void updateclient(Client client) {\n\t\t\r\n\t}", "public void showLobby() {\n \t\tgameMain.showScreen(lobby);\n \t}", "@Override\n public void send(Gui view) {\n view.update(this);\n }", "public LobbyController(LobbyManager lobbyManager) throws RemoteException {\n super();\n this.lobbyManager = lobbyManager;\n this.lobbyNetworkManager = lobbyManager.getLobbyNetworkManager();\n networkGetItem = new ServerGetMessage();\n }", "public void connectLobbyServer()\n {\n try {\n LobbyServerConnection.getInstance().connect();\n\n lobbymanager = LobbyServerConnection.getInstance().getLobbyManager();\n\n //verkrijgt alle lobbys\n List<Lobby> lobbyList = LobbyServerConnection.getInstance().getAllLobbys();\n LobbyManager.getInstance().addLobbys(lobbyList);\n update();\n subscribeTry();\n }\n catch (Exception e)\n {\n\n btnCreateLobby.setDisable(true);\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"Lobby server\");\n\n // Header Text: null\n alert.setHeaderText(\"connection error\");\n alert.setContentText(\"Couldn't connect to the lobbyserver. \\nGames cannot be played right now but you can still check your history\");\n\n alert.showAndWait();\n }\n }", "@Override\n public void updateContent() {\n lmDriver.getTournaments();\n\n // Show all tournaments in the scene\n table.createTable();\n\n // Disable buttons\n btnJoin.disableProperty().bind(Bindings.isEmpty(tblTournaments.getSelectionModel().getSelectedItems()));\n btnWithdraw.disableProperty().bind(Bindings.isEmpty(tblTournaments.getSelectionModel().getSelectedItems()));\n btnShowInfo.disableProperty().bind(Bindings.isEmpty(tblTournaments.getSelectionModel().getSelectedItems()));\n\n // Clear list\n listLeaderboard.getItems().clear();\n\n // Update global leaderboard\n ArrayList<String> leaderboard = lmDriver.getGlobalLeaderboard();\n\n if (leaderboard.size() == 0) {\n listLeaderboard.getItems().add(\"There are no values yet.\");\n } else {\n listLeaderboard.getItems().add(\"Position Score Player\");\n for (String row : leaderboard) {\n listLeaderboard.getItems().add(row);\n }\n }\n }", "public void set(Lobby lobby) {\n Firebase.setDocument(\"lobbies/\" + lobby.getGameCode(), LobbyDTO.fromModel(lobby));\n }", "public void receivedUpdateFromServer();", "@Override\r\n\tpublic String update() {\n\t\tSystem.out.println(\"updateView.\");\r\n\t\t\r\n\t\t//javax.servlet.http.HttpSession session=request.getSession();\r\n\t\t//javax.servlet.ServletContext application=request.getServletContext();\r\n\t\t\r\n\t\t//String vId=request.getParameter(\"id\");\r\n\t\tif(!SysFun.isNullOrEmpty(id)) {\r\n\t\t\tLong iId=SysFun.parseLong(id);\r\n\t\t\tHeadLine bean=headLineService.load(iId);\r\n\t\t\t\r\n\t\t\tif(bean!=null) {\r\n\t\t\t\t\r\n\t\t\t\trequest.put(\"Id\", bean.getId());\r\n\t\t\t\trequest.put(\"lineName\", bean.getLineName());\r\n\t\t\t\trequest.put(\"lineLink\", bean.getLineLink());\r\n\t\t\t\t//request.put(\"lineImg\", bean.getLineImg());\r\n\t\t\t\treturn \"update\";\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\treturn \"go_preload\";\r\n\t}", "public Lobby getLobbyFrame() {\r\n return lobbyFrame;\r\n }", "public Builder setLobbyId(\n int index, int value) {\n ensureLobbyIdIsMutable();\n lobbyId_.setInt(index, value);\n onChanged();\n return this;\n }", "public static void updateGUI(Client client) {\n\n int currentwhoHasBall = client.whoHasBall();\n int[] ids = client.getPlayersID();\n boolean currentPlayerHasBall = client.playerID == currentwhoHasBall;\n if (whoHasBall != currentwhoHasBall || storedIDs.length != ids.length) {\n\n SwingUtilities.invokeLater(() -> {\n clientGUI.label.setText(\"Waiting for player: \" + currentwhoHasBall + \" to pass\");\n clientGUI.button.setEnabled(false);\n clientGUI.dropDown.removeAllItems();\n for (int id : ids) {\n String inputString = \"Player: \" + id;\n clientGUI.dropDown.addItem(inputString);\n }\n if (currentPlayerHasBall) {\n clientGUI.label.setText(\"You have the ball, select the player you wish to pass to\");\n clientGUI.button.setEnabled(true);\n }\n });\n whoHasBall = currentwhoHasBall;\n storedIDs = ids;\n }\n }", "@Override\n public void updateWindow(MessageToVirtualView update) {\n if(!update.isModelRep())\n {\n JOptionPane.showMessageDialog(lobbyWindowFrame,update.getMessage().getMessage());\n }\n }", "private void updateReceivedView() {\n mReceivedCoins = Data.getReceivedCoins();\n mRecyclerViewCol.setVisibility(View.INVISIBLE);\n mRecyclerViewRec.setVisibility(View.VISIBLE);\n mReceivedAdapter.notifyDataSetChanged();\n }", "public int getLobbyID() {\r\n return lobbyID;\r\n }", "void updateView();", "void updateView();", "public static void RequestUpdate() {\n try {\n if (AttemptConnect()) {\n // receive current billboard\n billboard = (Billboard) objectStreamer.Receive();\n // closing resources\n Disconnect();\n } else {\n billboard = new Billboard(\"Unable to Connect to Server\",\n \"Error Billboard\",\n \"Please Check Connection\",\n null,\n billboard.ConvertImageToData(\n ProjectPath.RootString() + \"\\\\Resources\\\\Images\\\\Oops.jpg\"),\n Color.red,\n Color.white,\n Color.red,\n null,\n null);\n }\n // Display billboard\n billboard.showBillboard();\n } catch (Exception e) {\n //e.printStackTrace();\n }\n }", "public void sendeLobby();", "private void updateChat() throws SQLException{\n DBConnect db = DBConnect.getInstance();\n ArrayList<String> messages = db.getChat(selectedCustomer.getChat_id());\n chat.getItems().clear();\n for(String mess :messages){\n chat.getItems().add(mess);\n }\n }", "private void handleView(View view) throws AppiaEventException {\n \t\tSystem.out.println(\"Received a new View\");\n \n \t\t//Get the parameters\n \t\tVsGroup[] allGroups = VsClientManagement.getAllGroups();\n \n \t\t//Update the view\n \t\tvs = view.vs;\t\t\n \n \t\t//We start from scratch\n \t\tUpdateManager.cleanUpdateViews();\n \n \t\t//We seize the oportunity to put the future clients and future dead clients in the view\n \t\tfor(VsGroup group : allGroups){\n\t\t\tVsClientManagement.setFutureClientsIntoPresent(group.getGroupId());\n\t\t\tVsClientManagement.setFutureDeadsIntoPresent(group.getGroupId());\n\n \t\t\tVsClientManagement.clearFutureClients(group.getGroupId());\n \t\t\tVsClientManagement.clearFutureDead(group.getGroupId());\n \t\t}\n \n \t\t//I have received a new view, must send the other servers my views clients (and me)\n \t\tVsGroup[] allGroupsWithOnlyMyClients = VsClientManagement.getAllGroupsWithOnlyMyClients(listenAddress);\n \n \t\tUpdateProxyEvent updateProxy = new UpdateProxyEvent(allGroupsWithOnlyMyClients, myEndpt);\n \t\tsendToOtherServers(updateProxy);\n \t\tsendToMyself(updateProxy);\t\t\n \t}", "private void loadListView() {\n\t\tList<ClientData> list = new ArrayList<ClientData>();\n\t\ttry {\n\t\t\tlist = connector.get();\n\t\t\tlView.updateDataView(list);\n\t\t} catch (ClientException e) {\n\t\t\tlView.showErrorMessage(e);\n\t\t}\n\n\t}", "private void updatePlayersStatus() {\n PlayerModel[] playersInLobby = this.lobbyModel.getPlayersInLobby();\n int i = 0;\n for (; i < playersInLobby.length; i++) {\n final PlayerModel playerInLobby = playersInLobby[i];\n final TextField playerStatus = this.playersStatus[i];\n playerStatus.setColor(playerInLobby.isReady() ? Color.GREEN : Color.RED);\n playerStatus.setText(playerInLobby.getUsername());\n playerInLobby.clearPropertyChangeListeners();\n this.addPropertyChangeListener(playerInLobby, new PropertyChangeListener() {\n @Override\n public void propertyChange(PropertyChangeEvent evt) {\n String propertyName = evt.getPropertyName();\n if (propertyName.equals(\"username\")) {\n playerStatus.setText((String) evt.getNewValue());\n } else if (propertyName.equals(\"ready\")) {\n playerStatus.setColor((boolean) evt.getNewValue() ? Color.GREEN : Color.RED);\n }\n }\n });\n if (i >= 1 && this.host) {\n TextButton kickButton = kickButtons[i - 1];\n kickButton.clearListeners();\n kickButton.addListener(new ClickListener() {\n @Override\n public void clicked(InputEvent e, float x, float y) {\n Connection connection = ConnectionManager.getInstance().getConnection();\n if (connection instanceof ServerConnection) {\n UUID playerUUID = playerInLobby.getPlayerUUID();\n ServerSenderReceiver client = ((ServerConnection) connection).getClientByUUID(playerUUID);\n if (client != null) {\n connection.sendPacket(new KickPlayerPacket(playerUUID));\n ((ServerConnection) connection).removeClient(client);\n connection.getPlayer().getLobby().removePlayer(client.getPlayer());\n }\n }\n }\n });\n kickButton.setDisabled(false);\n }\n }\n for (int j = i; j < this.playersStatus.length; j++) {\n final TextField playerStatus = this.playersStatus[j];\n playerStatus.setColor(Color.RED);\n playerStatus.setText(\"\");\n if (j >= 1 && this.host) {\n TextButton kickButton = kickButtons[j - 1];\n kickButton.clearListeners();\n kickButton.setDisabled(true);\n }\n }\n }", "public static void lobby(String lobbyName, Player player) {\n String prefix = MessageManager.getPrefix();\n World w = Bukkit.getServer().getWorld(FileManager.getLobbyYml().getString(\"LOBBIES.\" + lobbyName + \".world\"));\n double x = FileManager.getLobbyYml().getDouble(\"LOBBIES.\" + lobbyName + \".x\");\n double y = FileManager.getLobbyYml().getDouble(\"LOBBIES.\" + lobbyName + \".y\");\n double z = FileManager.getLobbyYml().getDouble(\"LOBBIES.\" + lobbyName + \".z\");\n int ya = FileManager.getLobbyYml().getInt(\"LOBBIES.\" + lobbyName + \".yaw\");\n int pi = FileManager.getLobbyYml().getInt(\"LOBBIES.\" + lobbyName + \".pitch\");\n player.teleport(new Location(w, x, y, z, ya, pi));\n String original = (MessageManager.getMessageYml().getString(\"Lobby.Lobby\"));\n String replaced = original.replaceAll(\"%lobby%\", lobbyName);\n player.sendMessage(prefix + ChatColor.translateAlternateColorCodes('&', replaced));\n }", "public void joinGame(int lobbyId)\n {\n //call Client controller's joinLobby method with the selected lobby's\n //id\n clientController.joinGame(lobbyId);\n }", "public void showLobbyBoard(Player player){\n\t\tFeatherBoardAPI.showScoreboard(player,\"build-battle-lobby\");\n\t}", "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 }", "public void updateClientBag()\n\t{\n\t\tfor(int i = 0; i < getBag().getItems().size(); i++)\n\t\t\tupdateClientBag(i);\n\t}", "public void refresh() {\r\n\t\tmainGUI.getPlayerFrame().setMyTurn(\r\n\t\t\t\tclient.getID() == island.getCurrentPlayer().getID());\r\n\t\ttradingMenu.update();\r\n\t\tsupplyPanel.update();\r\n\t\tcardMenu.update();\r\n\t\trefreshOpponents();\r\n\t}", "public void updateView() {\n\t\tif(columns_view != null){\n\t\t\tint rowCount = newModel.getRowCount();\n\t\t\tfor (int i = rowCount - 1; i >= 0; i--) {\n\t\t\t newModel.removeRow(i);\n\t\t\t}\n\t\t\t\n\t\t\tint columns_size = columns_view.size();\n\t\t\tfor(int i =0 ; i < columns_size;i++){\n\t\t\t\tString index = Integer.toString(i);\n\t\t\t\tString name = \"Obs \" + index;\n\t\t\t\tif(columns_view.get(i) == model.bird){\n\t\t\t\t\tname = \"Bird\";\n\t\t\t\t}\n\t\t\t\tString obstacle_x = Integer.toString(columns_view.get(i).x);\n\t\t\t\tString obstacle_y = Integer.toString(columns_view.get(i).y);\n\t\t\t\tString obstacle_width = Integer.toString(columns_view.get(i).width);\n\t\t\t\tString obstacle_height = Integer.toString(columns_view.get(i).height);\n\t\t\t\tnewModel.addRow(new Object[]{name,obstacle_x,obstacle_y,obstacle_width,obstacle_height});\n\t\t\t}\n\t\t\t//System.out.println(\"this is view1 updateview\");\n\t\t\t//System.out.println(\"columns size\" + columns_view.size());\n\t\t}\n\t\t\n\t}", "private void updateSessionListView() {\n FastLap[] temp = lapMap.values().toArray(new FastLap[lapMap.size()]);\n SessionAdapter adapter = new SessionAdapter(getApplicationContext(), temp);\n mSessionFragment.update(adapter);\n //Log.d(TAG, \"sessionListView UI updated...\");\n }", "public static void viewLeaderBoard()\n\t{\n\t}", "public void updated(ServerList list);", "public LobbyList getLobbyList()\r\n\t{\r\n\t\treturn receiver.getList();\r\n\t}", "public LobbyWindow(View view) throws IOException {\n this.view=view;\n\n lobbyWindowFrame = new JFrame(\"Santorini\");\n lobbyWindowFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n backgroundPanel = new BackgroundPanel(\"/background.png\");\n backgroundPanel.setLayout(new GridLayout(1, 1, -1, -1));\n //da settare L'immagine di background\n lobbyWindowFrame.add(backgroundPanel);\n\n mainPanel = new JPanel();\n mainPanel.setLayout(new GridLayout(2, 1, -1, -1));\n mainPanel.setOpaque(false);\n backgroundPanel.add(mainPanel);\n\n fieldsPanel = new JPanel();\n fieldsPanel.setLayout(new GridLayout(2, 2, -1, -1));\n fieldsPanel.setOpaque(false);\n mainPanel.add(fieldsPanel);\n\n nameLabel = new JLabel(\"Username:\");\n nameLabel.setOpaque(false);\n numberLabel = new JLabel(\"Number:\");\n numberLabel.setOpaque(false);\n nameTextField = new JTextField();\n nameTextField.setOpaque(false);\n numberTextField = new JTextField();\n numberTextField.setOpaque(false);\n\n fieldsPanel.add(nameLabel);\n fieldsPanel.add(nameTextField);\n fieldsPanel.add(numberLabel);\n fieldsPanel.add(numberTextField);\n\n buttonPanel = new JPanel();\n buttonPanel.setLayout(new GridLayout(1, 1, -1, -1));\n buttonPanel.setOpaque(false);\n mainPanel.add(buttonPanel);\n submitButton = new JButton(\"Submit\");\n submitButton.setOpaque(false);\n submitButton.setContentAreaFilled(false);\n submitButtonListener=new SubmitButtonListener();\n submitButton.addActionListener(submitButtonListener);\n submitButton.setActionCommand(\"submit\");\n buttonPanel.add(submitButton);\n\n\n lobbyWindowFrame.pack();\n\n }", "public viewClients() {\n initComponents();\n }", "public Builder setLobbyIdBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n checkByteStringIsUtf8(value);\n bitField0_ |= 0x00000001;\n lobbyId_ = value;\n onChanged();\n return this;\n }", "public void addLobby(Lobby lobby) {\n rrwl_lobbylist.writeLock().lock();\n try {\n lobbyList.add(lobby);\n } finally {\n rrwl_lobbylist.writeLock().unlock();\n }\n }", "public void showLobby(ArrayList<String> players) throws IOException {\n String firstOpponentUsername = null, secondOpponentUsername;\n lobbyPane= FXMLLoader.load(Objects.requireNonNull(GodsController.class.getClassLoader().getResource(\"Fxml/Lobby.fxml\")));\n borderPane=(BorderPane) lobbyPane.getChildren().get(1);\n exitButton=(ImageView) borderPane.getBottom();\n playerStackPane=(StackPane) borderPane.getLeft();\n playerUsernameLabel=(Label) playerStackPane.getChildren().get(2);\n opponentsVBox=(VBox) borderPane.getRight();\n firstOpponentPane=(StackPane) opponentsVBox.getChildren().get(0);\n secondOpponentPane=(StackPane) opponentsVBox.getChildren().get(1);\n firstOpponentLabel=(Label) firstOpponentPane.getChildren().get(2);\n secondOpponentLabel=(Label) secondOpponentPane.getChildren().get(2);\n if(Client.getNumPlayers()==2) opponentsVBox.getChildren().remove(1);\n playerUsernameLabel.setText(Client.getUsername());\n for(String username :players ){\n if(!Client.getUsername().equals(username)) {\n if(firstOpponentUsername==null) {\n firstOpponentLabel.setText(firstOpponentUsername=username);\n }\n else secondOpponentLabel.setText(secondOpponentUsername = username);\n }\n }\n GUI.getGameStage().setScene(new Scene(lobbyPane));\n GUI.getGameStage().show();\n }", "@PostMapping(value=\"/private\")\n\t\tpublic Long newLobby(@RequestBody User user) {\n\t\t\tlong id = lastId.incrementAndGet();\n\t\t\tLobby lob = new Lobby(user,true);\n\t\t\tlobbies.put(id, lob);\n\t\t\tChat chat = new Chat(user.getUserName()+\" se ha conectado.\",\"SERVER\");\n\t \tlobbies.get(id).addChat(chat);\n\t\t\treturn id;\n\t\t}", "public void onLobby(){\n\t\tif(Bukkit.getPluginManager().isPluginEnabled(\"MVdWPlaceholderAPI\")){\n\t\t\tPlaceholderAPI.registerPlaceholder(SimplePlugin.getPlugin(ArenaPlugin.class), \"build_battle_players\",\n\t\t\t\t\tplaceholderReplaceEvent -> {\n\t\t\t\t\t\tint players = getArena().getPlayers(ArenaJoinMode.PLAYING).size();\n\t\t\t\t\t\treturn Integer.toString(players);\n\t\t\t\t\t});\n\n\t\t\tPlaceholderAPI.registerPlaceholder(SimplePlugin.getPlugin(ArenaPlugin.class), \"build_battle_time\",\n\t\t\t\t\tplaceholderReplaceEvent -> Common.plural(arena.getStartCountdown().getTimeLeft(), \"second\"));\n\n\t\t}\n\t}", "@Override\n public void update() {\n this.blnDoUpdate.set(true);\n }", "public abstract void clientStatusChanged(ClientManager client, Object object);", "public Builder setLobbyId(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n lobbyId_ = value;\n onChanged();\n return this;\n }", "private void setAvailableGames() {\n try {\n listView.getItems().clear();\n DataOutputStream dataOutputStream = new DataOutputStream(socket.getOutputStream());\n dataOutputStream.writeUTF(\"GLst\");\n ObjectInputStream objectInputStream = new ObjectInputStream(socket.getInputStream());\n HashMap<String, String> list = (HashMap<String, String>) objectInputStream.readObject();\n for (String roomCode : list.keySet()) {\n HBox hboxList = new HBox();\n hboxList.setSpacing(8);\n Button buttonJoin = new Button(\"Join\");\n buttonJoin.setOnAction(event -> joinGameRoom(roomCode));\n Separator separator = new Separator();\n separator.setOrientation(Orientation.VERTICAL);\n Label roomName = new Label(list.get(roomCode));\n roomName.setFont(Font.font(\"Arial\", 20));\n hboxList.getChildren().add(buttonJoin);\n hboxList.getChildren().add(separator);\n hboxList.getChildren().add(roomName);\n listView.getItems().add(hboxList);\n }\n } catch (IOException | ClassNotFoundException e) {\n e.printStackTrace();\n }\n }", "@Override\n public void updateView() throws Exception{\n Connection conn = null;\n PreparedStatement pr = null;\n ResultSet rs = null;\n try {\n String query = \"Update [view] set viewed = viewed + 1\";\n conn = getConnection();\n pr = conn.prepareStatement(query);\n pr.executeUpdate();\n } catch (Exception ex) {\n throw ex;\n } finally {\n closeResultSet(rs);\n closePreparedStatement(pr);\n closeConnection(conn);\n }\n }", "@Override\n public void send(VirtualView view) {\n view.update(this);\n }", "private void updateReceivedCoinsInBackground() {\n Log.d(TAG, \"[updateReceivedCoinsInBackground] updating...\");\n Data.retrieveAllCoinsFromCollection(Data.RECEIVED, new OnEventListener<String>() {\n @Override\n public void onSuccess(String object) {\n // If received coins view is currently visible, update the view (which also updates\n // the data), otherwise just update the data\n if (mRecyclerViewRec.getVisibility() == View.VISIBLE) {\n updateReceivedView();\n } else {\n mReceivedCoins = Data.getReceivedCoins();\n }\n Log.d(TAG, \"[updateReceivedCoinsInBackground] updated\");\n }\n @Override\n public void onFailure(Exception e) {\n Log.d(TAG, \"[updateReceivedCoinsInBackground] failed to retrieve coins: \", e);\n }\n });\n }", "private void update(LinkedTaskList linkedTaskList){\n dispose();\n new View(linkedTaskList);\n }", "public void reAdd(ClientHandler client, String nickname) {\n client.setNickname(nickname);\n\n for(String nick : nicknames) {\n namesToClient.get(nick).send(new SendMessage(nickname + \" is back.\"));\n }\n\n clientToNames.put(client, nickname);\n namesToClient.put(nickname, client);\n nicknames.add(nickname);\n view.setNamesToClient(nickname, client, true);\n\n playersNumber++;\n\n client.registerObserver(this);\n\n System.out.println(nickname + \" is back in the lobby number \" + lobbyID);\n }", "void updateView () {\n updateScore();\n board.clearTemp();\n drawGhostToBoard();\n drawCurrentToTemp();\n view.setBlocks(board.getCombined());\n view.repaint();\n }", "public Builder addLobbyId(int value) {\n ensureLobbyIdIsMutable();\n lobbyId_.addInt(value);\n onChanged();\n return this;\n }", "@Override\n\t\t\tpublic void onGET(OgemaHttpRequest req) {\n\t\t\t\tupdate(appController.getActiveRooms(), req);\n\t\t\t}", "void main(String[] args) throws IOException {\n java.awt.EventQueue.invokeLater(new Runnable() {\n public void run() {\n new Server().setVisible(true);\n }\n });\n\t\t\n\t\tServerSocket ss=new ServerSocket(1234);\n\t\tSocket s;\n<<<<<<< HEAD\n \t\t\n=======\n \n\t\t\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\twhile(true) {\n\t\t\ts=ss.accept();\n\t\t\tSystem.out.println(\"New client request received \"+s );\n\t\t\t\n\t\t\tDataInputStream dis=new DataInputStream(s.getInputStream());\n\t\t\tDataOutputStream dos=new DataOutputStream(s.getOutputStream());\n\t\t\tString name=dis.readUTF();\n\t\t\t\n\t\t\tSystem.out.println(\"creating a new handler for this client..\");\n\t\t\t\n\t\t\tClientHandler mtch=new ClientHandler(s,name,dis,dos);\n\t\t\t\n\t\t\tThread t=new Thread(mtch);\n \n //print to server textArea\n<<<<<<< HEAD\n //msg_area.setText(msg_area.getText().trim()+\" \"+name+ \" Added to Server\\n\");\n\t\t\t\n \t\t\tSystem.out.println(\"Adding this client to active client list\");\n \n Activity.setText(Activity.getText().trim()+\"\\n\"+\"New Client:\"+name+\" is Connected\");\n Active.setText(Active.getText().trim()+\"\\n\"+ClientCount+\".\"+name);\n=======\n msg_area.setText(msg_area.getText().trim()+\" \"+name+ \" Added to Server\\n\");\n\t\t\t\n \t\t\tSystem.out.println(\"Adding this client to active client list\");\n \n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n \n\t\t\t\n\t\t\tar.add(mtch);\n \n<<<<<<< HEAD\n // Client.Refresh(ar);\n \n \n=======\n Active.addElement(name);\n \n final JList<String> ActiveList = new JList<>(Active); \n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\t\t\n\t\t\tt.start();\n\t\t\t\n\t\t\tClientCount++;\n<<<<<<< HEAD\n \n \n=======\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\n\t\t}\n\t}\n \n\t\n\n//}\n\n \n \n \n ///end my code\n \n \n \n \n// public static void main(String args[]) {\n// /* Set the Nimbus look and feel */\n// //<editor-fold defaultstate=\"collapsed\" desc=\" Look and feel setting code (optional) \">\n// /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.\n// * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html \n// */\n// try {\n// for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n// if (\"Nimbus\".equals(info.getName())) {\n// javax.swing.UIManager.setLookAndFeel(info.getClassName());\n// break;\n// }\n// }\n// } catch (ClassNotFoundException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (InstantiationException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (IllegalAccessException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// } catch (javax.swing.UnsupportedLookAndFeelException ex) {\n// java.util.logging.Logger.getLogger(Server.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n// }\n// //</editor-fold>\n//\n// /* Create and display the form */\n// java.awt.EventQueue.invokeLater(new Runnable() {\n// public void run() {\n// new Server().setVisible(true);\n// }\n// });\n// }\n\n // Variables declaration - do not modify//GEN-BEGIN:variables\n<<<<<<< HEAD\n private static javax.swing.JTextArea Active;\n private static javax.swing.JTextArea Activity;\n private javax.swing.JScrollPane jScrollPane1;\n private javax.swing.JScrollPane jScrollPane2;\n private javax.swing.JTextField jTextField1;\n=======\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n private static javax.swing.JTextField msg_area;\n // End of variables declaration//GEN-END:variables\n}\n\n///client handler code start\nclass ClientHandler implements Runnable{\n\t \n\t Scanner scn=new Scanner(System.in);\n<<<<<<< HEAD\n\t String name;\n=======\n\t private String name;\n>>>>>>> 15ab5f76f7b86e84c76a59ddc836fa4658ef686e\n\t private DataInputStream dis;\n\t private DataOutputStream dos;\n\t Socket s;\n\t boolean isloggedin;\n\t \n\t public ClientHandler(Socket s, String name,DataInputStream dis,DataOutputStream dos) {\n\t\t \n\t\t this.dis=dis;\n\t\t this.name=name;\n\t\t this.dos=dos;\n\t\t this.isloggedin=true;\n \n\t\t \n\t }\n\n\t@Override\n\tpublic void run() {\n\t\tString received;\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\treceived=dis.readUTF();\n \n\t\t\t\tSystem.out.println(received+\" server\");\n\t\t\t\tif(received.contentEquals(\"logout\")) {\n\t\t\t\t\tthis.isloggedin=false;\n\t\t\t\t\tthis.dis.close();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//break message to message vs recepient\n\t\t\t\tStringTokenizer st=new StringTokenizer(received,\"#\");\n\t\t\t\tString MsgToSend=st.nextToken();\n\t\t\t\tString recepient=st.nextToken();\n\t\t\t\t\n\t\t\t\t//search recepient in active list\n\t\t\t\t\n\t\t\t\tfor(ClientHandler mc:Server.ar) {\n\t\t\t\t\tif(mc.name.contentEquals(recepient) && mc.isloggedin==true) {\n\t\t\t\t\t\tmc.dos.writeUTF(this.name+ \" : \" + MsgToSend+'\\n');\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n \n \n \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tthis.dis.close();\n\t\t\tthis.dos.close();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}\n\t\n}\n\n///client handler code end", "public void updateClient(){\n\n System.out.println(\"Update client with ID: \");\n BufferedReader bufferRead = new BufferedReader(new InputStreamReader(System.in));\n try {\n Long id = Long.valueOf(bufferRead.readLine());\n System.out.println(\"Enter new characteristics: \");\n System.out.println(\"Name: \");\n String newName = bufferRead.readLine();\n System.out.println(\"Age: \");\n int newAge = Integer.parseInt(bufferRead.readLine());\n System.out.println(\"Membership type: \");\n String newMembershipType = bufferRead.readLine();\n\n Client newClient = new Client(newName, newAge, newMembershipType);\n newClient.setId(id);\n this.ctrl.updateClient(newClient);\n\n }\n catch(IOException e)\n {\n e.printStackTrace();\n }\n }", "@Override\n public void update() {\n updateBuffs();\n }", "private void updateView()\r\n\t{\r\n\t\tsupportDatabase.openDataBase();\r\n\t\t\r\n\t\tString language = supportDatabase.getUserSelectedLanguage();\r\n\t\t\r\n\t\tCursor about_info = supportDatabase.getInfoInLanguage(\"Activity_About\", language);\r\n\t\tstartManagingCursor(about_info);\r\n\t\t\r\n\t\tif(about_info.getCount()==1)\r\n\t\t{\r\n\t\t\tabout_info.moveToFirst();\r\n\t\t\taboutHeaderTextView.setText(about_info.getString(about_info.getColumnIndex(\"aboutHeader\")));\r\n\t\t versionTextView.setText(about_info.getString(about_info.getColumnIndex(\"version\")));\r\n\t copyrightTextView.setText(about_info.getString(about_info.getColumnIndex(\"copyright\")));\r\n\t creditsTextView.setText(about_info.getString(about_info.getColumnIndex(\"credits\")));\r\n\t\t\t\r\n\t\t}\r\n//TODO\t\t\t\r\n\t\t\tsupportDatabase.close();\r\n\t\t\r\n\t}", "public static void lobby(String lobbyName, Player target, CommandSender sender) {\n World w = Bukkit.getServer().getWorld(FileManager.getLobbyYml().getString(\"LOBBIES.\" + lobbyName + \".world\"));\n double x = FileManager.getLobbyYml().getDouble(\"LOBBIES.\" + lobbyName + \".x\");\n double y = FileManager.getLobbyYml().getDouble(\"LOBBIES.\" + lobbyName + \".y\");\n double z = FileManager.getLobbyYml().getDouble(\"LOBBIES.\" + lobbyName + \".z\");\n int ya = FileManager.getLobbyYml().getInt(\"LOBBIES.\" + lobbyName + \".yaw\");\n int pi = FileManager.getLobbyYml().getInt(\"LOBBIES.\" + lobbyName + \".pitch\");\n target.teleport(new Location(w, x, y, z, ya, pi));\n String name = target.getDisplayName();\n String or = (ChatColor.translateAlternateColorCodes('&', MessageManager.getMessageYml().getString(\"Lobby.Target\")));\n String replace = or.replaceAll(\"%target%\", name).replaceAll(\"%lobby%\", lobbyName);\n sender.sendMessage(MessageManager.getPrefix() + replace);\n if (Main.plugin.getConfig().getString(\"NOTIFICATIONS.Lobby\").equalsIgnoreCase(\"True\")) {\n String original = (MessageManager.getMessageYml().getString(\"Lobby.Lobby\"));\n String replaced = original.replaceAll(\"%lobby%\", lobbyName);\n target.sendMessage(MessageManager.getPrefix() + ChatColor.translateAlternateColorCodes('&', replaced));\n }\n }", "public void addVermelhosTeamB(View view) {\n vermelhosTeamB = vermelhosTeamB + 1;\n displayVermelhosTeamB(vermelhosTeamB);\n }", "public void updateClientMoney()\n\t{\n\t\tServerMessage message = new ServerMessage(ClientPacket.MONEY_CHANGED);\n\t\tmessage.addInt(m_money);\n\t\tgetSession().Send(message);\n\t}", "public void emitChangeView() {\n \n int view = getCurrentViewNumber();\n Object lpid = getLocalServerID();\n \n JDSUtility.debug(\"[emitChangeView()] s\" + lpid + \", at time \" + getClockValue() + \", is going to emit a change view message for (v + 1 = \" + (view + 1) + \")\");\n\n /* the replica makes sure that no timer is currently working. If the view change was trigged by a suspect of failure of the primary then probably it's \n been already true. */\n revokeSendBatch();\n revokeViewChange();\n\n /* an exponetial timeout has to be considered to guarantee liveness when the end-to-end delay is too long (it's prevent uncessary view-changes)*/\n PBFTTimeoutDetector ttask = (PBFTTimeoutDetector) getViewTimer().getTask();\n long timeout = (Long) ttask.get(\"TIMEOUT\");\n ttask.put(\"TIMEOUT\", 2 * timeout);\n\n /* the replica moves to the next view. After that, this replica isn't accepting any message from view v < v+1. */\n setCurrentViewNumber(view +1);\n \n /* clean-up the sets P (prepare set) and Q (pre-prepare set)*/\n preprepareset.clear();\n prepareset.clear();\n\n long lcwm = getLCWM();\n long hcwm = getHCWM();\n\n /* compute Q (pre-prepare set) and P (prepare set) */\n for(long seqn = lcwm + 1; seqn <=hcwm; seqn++){\n /*If I have a prepare then its digests will be added to pre-prepared and prepared sets */\n PBFTPrepare pr = getPrepareInfo().get(lpid, seqn);\n if(pr != null){\n PBFTPrePrepare pp = new PBFTPrePrepare(view, pr.getSequenceNumber(), null);\n pp.getDigests().addAll(pr.getDigests());\n preprepareset.add(pp);\n \n prepareset.add(new PBFTPrepare(pp, null));\n\n for(String digest: pp.getDigests()){\n getRequestInfo().assign(digest, RequestState.WAITING);\n getRequestInfo().assign(digest, (Long)null);\n }\n\n continue;\n }\n\n /*If I have a pre-prepare then its digests will be added to pre-prepared set*/\n PBFTPrePrepare ppr = getPrePrepareInfo().get(seqn);\n if(ppr != null){\n PBFTPrePrepare pp = new PBFTPrePrepare(view, ppr.getSequenceNumber(), null);\n pp.getDigests().addAll(ppr.getDigests());\n preprepareset.add(pp);\n \n for(String digest: pp.getDigests()){\n getRequestInfo().assign(digest, RequestState.WAITING);\n getRequestInfo().assign(digest, (Long)null);\n }\n } \n }\n\n \n try{\n doRollback();\n }catch(Exception e){\n e.printStackTrace();\n }\n\n /* update the controls for sequence number execution */\n getStateLog().setNextPrePrepareSEQ(lcwm + 1);\n getStateLog().setNextExecuteSEQ (lcwm + 1);\n\n PBFTChangeView cv = createChangeViewMessage();\n \n try {\n /* gets the root of the checkpoint partition tree */\n PartEntry centry = rStateManager.getPart(0, 0);\n\n /* adds the pair (last stable sequence number and state digest) to compose checkpoint set C */\n if(centry != null){\n cv.addCheckpoint(centry.getPartCheckpoint(), centry.getDigest());\n }else{\n cv.addCheckpoint(lcwm, \"\");\n }\n } catch (Exception ex) {\n Logger.getLogger(PBFTServer.class.getName()).log(Level.SEVERE, null, ex);\n cv.getCheckpointSet().clear();\n cv.addCheckpoint(lcwm, \"\");\n }\n\n /* add the pre-prepare set to current change-view message*/\n cv.getPrePrepareSet().clear();\n cv.getPrePrepareSet().addAll(preprepareset);\n\n /* add the prepare set to current change-view message*/\n cv.getPrepareSet().clear();\n cv.getPrepareSet().addAll(prepareset);\n\n /*emit the change view message to group of replicas */\n emit(cv, getLocalGroup().minus(getLocalProcess()));\n\n getChangeViewInfo().setMinimumViewNumber(view);\n getChangeViewInfo().put(cv);\n\n if(isPrimary()){\n getNewViewConstructor().addChangeView(cv);\n }else{\n finalizeNewViewConstructor();\n }\n\n getChangeViewInfo().gc(view);\n getChangeViewACKInfo().gc(view);\n getNewViewConstructor().gc(view);\n getNewViewInfo().gc(view);\n getPrePrepareInfo().gc(view);\n getPrepareInfo().gc(view);\n getPrePreparebackupInfo().gc(view);\n getCommitInfo().gc(view);\n\n\n emitChangeViewACK();\n\n\n uncertanty = true; \n }", "@Override\n public void update(Observable o, Object remoteView) {\n RemoteView remote = (RemoteView) remoteView;\n this.mapView = remote.getMapView();\n this.playerHand = remote.getPlayerHands().get(this.playerId);\n this.playerBoardViews = remote.getPlayerBoardViews();\n this.playerPosition = remote.getMapView().getPlayerPosition(remote.getPlayerBoardViews().get(this.playerId).getColor());\n }", "private void updateChats(final View view,\n final ChatsStruct chatsStructAfterChange) {\n if (mMainHandler != null) {\n mMainHandler.post(new Runnable() {\n @Override\n public void run() {\n final TextView unreadMessage = (TextView) view\n .findViewById(R.id.unread_message_num);\n final ImageView fileTransfer = (ImageView) view\n .findViewById(R.id.chat_file_transfer);\n if (chatsStructAfterChange.getIsFileTransfer()) {\n fileTransfer.setVisibility(View.VISIBLE);\n } else {\n fileTransfer.setVisibility(View.GONE);\n }\n final int number = chatsStructAfterChange\n .getUnreadMessageNumber();\n if (number <= MIN_NUMBER) {\n unreadMessage.setVisibility(View.GONE);\n } else {\n // Unread message info\n unreadMessage.setVisibility(View.VISIBLE);\n if (number > MAX_DISPLAYED_DIGITAL_NUMBER) {\n unreadMessage.setWidth(MAX_NUMBER_ICON_WIDTH);\n unreadMessage.setText(MAX_DISPLAYED_STRING_NUMBER);\n } else {\n unreadMessage.setWidth(MIN_NUMBER_ICON_WIDTH);\n unreadMessage.setText(String.valueOf(number));\n }\n }\n View displayNameView = view\n .findViewById(R.id.chat_remote_name);\n if (null != displayNameView) {\n String displayName = chatsStructAfterChange\n .getDisplayName();\n Logger.d(TAG, \"updateChats()->run() displayName is \"\n + displayName);\n ((TextView) displayNameView).setText(displayName);\n } else {\n Logger.e(TAG,\n \"updateChats()->run() textViewInfo is null\");\n }\n\n if (chatsStructAfterChange.isGroupChat()) {\n Logger.d(TAG,\n \"updateChats()->run() this is a group chat\");\n TextView participantNum = (TextView) view\n .findViewById(R.id.chat_remote_num);\n StringBuilder chatNum = new StringBuilder();\n chatNum.append(LEFT_BRACKET)\n .append((chatsStructAfterChange\n .getParticipantNum())\n + ChatFragment.ONE)\n .append(RIGHT_BRACKET);\n if (chatsStructAfterChange.getmSubject().equals(\"\")) {\n participantNum.setText(chatNum.toString());\n } else {\n ((TextView) displayNameView)\n .setText(chatsStructAfterChange\n .getmSubject());\n participantNum.setText(\"\");\n }\n AsyncAvatarView avatarImageView = (AsyncAvatarView) view\n .findViewById(R.id.chat_contact_quick);\n avatarImageView.setAsyncContact(chatsStructAfterChange\n .getContacts());\n } else {\n Logger.d(TAG,\n \"updateChats()->run() this is a 1-2-1 chat\");\n }\n\n // Date info\n DateView date = (DateView) view\n .findViewById(R.id.chat_date);\n date.setTime(chatsStructAfterChange.getDate(), false);\n // Last message\n TextView lastMessage = (TextView) view\n .findViewById(R.id.chat_last_message);\n String message = chatsStructAfterChange.getLatestMessage();\n if (message == null) {\n message = BLANK_STRING;\n }\n lastMessage.setText(message);\n }\n });\n }\n }", "@Override\n protected void onProgressUpdate(ResponseInfo... responseInfo) {\n \tif (responseInfo[0].responseCode == 200 | responseInfo[0].responseCode == 201) {\n \t\t//Update the event display - first check for any new devices added\n \tMeshDisplayControllerApplictaion appObject = (MeshDisplayControllerApplictaion)LiveMeshEventControllerActivity.this.getApplicationContext();\n \tMeshDisplayControllerEngine meshDisplayEngine = appObject.getAppMeshDisplayControllerEngine();\n \t\n \t\ttry {\n \t\t\t//First read the JSON response into a new HashMap\n \t\t\t//For large displays this is not particularly efficient and the server should respond with \n \t\t\t//added and deleted clients only, with a full refresh only done periodically. For this proof \n \t\t\t//of concept this is fine.\n \t\t\tJSONArray clientList = responseInfo[0].clientList;\n \t\t\tHashMap<String, MeshDisplayClient> receivedClientsMap = new HashMap<String, MeshDisplayClient>();\n \t\t\tfor (int i = 0; i< clientList.length(); i++) {\n \t\t\t\tMeshDisplayClient receivedClient = new MeshDisplayClient();\n \t\t\t\treceivedClient.id = clientList.getJSONObject(i).getString(\"client_id\").toString();\n \t\t\t\treceivedClient.textToDisplay = clientList.getJSONObject(i).getString(\"client_text\").toString();\n \t\t\t\treceivedClientsMap.put(receivedClient.id, receivedClient);\n \t\t\t}\n \t\t\t\n \t\t\t//Check for anything that is in the Map from the server but not in the engine Map here - this is a \n \t\t\t//new client added\n \t\t\tSet <String> addedClients = new HashSet<String>(receivedClientsMap.keySet());\n \t\t\taddedClients.removeAll(meshDisplayEngine.clientsMap.keySet());\n \t\t\t\n \t\t\tfor (String clientIDToAdd : addedClients) {\n \t\t\t\t//Add this client from the current engine client Map\n \t\t\t\tMeshDisplayClient newClient = receivedClientsMap.get(clientIDToAdd);\n \t\t\t\tmeshDisplayEngine.clientsMap.put(clientIDToAdd, receivedClientsMap.get(clientIDToAdd));\n \t\t\t\t\n \t\t\t\t//Add this client to the display\n \t\t\t\tdisplayNewClient(newClient);\n \t\t\t}\n \t\t\t\n \t\t\t//Now check for anything that is in the current engine clientMap but not the received clientMap\n \t\t\tSet <String> deletedClients = new HashSet<String>(meshDisplayEngine.clientsMap.keySet());\n \t\t\tdeletedClients.removeAll(receivedClientsMap.keySet());\n \t\t\t\n \t\t\tfor (String clientIDToRemove : deletedClients) {\n \t\t\t\t//Remove this client from the current engine client Map\n \t\t\t\tmeshDisplayEngine.clientsMap.remove(clientIDToRemove);\n \t\t\t\t\n \t\t\t\t//Remove this client from the display\n \t\t\t\tremoveClientFromDisplay(clientIDToRemove);\n \t\t\t}\n\t \t\t\n \t\t} catch (JSONException e) {\n\t\t\t\t\t//An Error occurred decoding the JSON\n\t\t\t\t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\", \"exception parsing JSON response\");\n\t\t\t\t\te.printStackTrace();\n \t\t}\n\n \t} else {\n \t\t//Log an issue\n \t\tLog.d(\"LiveMeshEventControllerActivity PollServerForClients\",\"-> onProgressUpdate: unexpecetd resposne code: \" + responseInfo[0].responseCode);\n \t}\n }", "public void update()\n\t{\n\t\t//update the view's list of movies...\n\t\tthis.getRemoveButton().setEnabled((this.database.getNumberOfMovies()>0));\n\t\tthis.movieList.setListData(this.database.toList());\n\t}", "public void setAllocatedLobby(int allocatedLobby) {\r\n\t\tthis.allocatedLobby = allocatedLobby;\r\n\t}", "public InterfaceSalon(String liste, Client client) {\n initComponents();\n this.c=client;\n this.lobbyListJSON=new JSONArray();\n parser = new JSONParser();\n \n setLobbyList(liste);\n }", "private void updateCollectedView() {\n mCollectedCoins = Data.getCollectedCoins();\n mRecyclerViewRec.setVisibility(View.INVISIBLE);\n mRecyclerViewCol.setVisibility(View.VISIBLE);\n mCollectedAdapter.notifyDataSetChanged();\n }", "public void refresh() {\n\tts = parent.globals.twitchAPI.getStream(this.getChannel());\n\tif (ts != null) {\n\t game = ts.getMeta_game();\n\t title = ts.getTitle();\n\t online = ts.isOnline();\n\t current_viewers = ts.getCurrent_viewers();\n\t created_at = ts.getCreated_At();\n\t updated_at = ts.getUpdated_At();\n\t upTimeHour = 0L;\n\t upTimeMinute = 0L;\n\n\t if (online) {\n\t\tcreated_at_Long = convertDate(created_at);\n\t\tcalcUpTime(created_at_Long);\n\t\tsetOnlineString(\"<html>Currently playing: \" + getGame()\n\t\t\t+ \"<br>(Online for: \" + getUpTimeHours() + \":\"\n\t\t\t+ getUpTimeMinutes() + \" hours) |\"\n\t\t\t+ \" Current Viewers: \" + getCurrent_viewers() + \"<br>\"\n\t\t\t+ getTitle() + \"</html>\");\n\t }\n\t preview = null;\n\t if (ts.getScreen_cap_url_medium() != null\n\t\t && parent.globals.showPreview) {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t try {\n\t\t\tpreview = ImageIO.read(new URL(ts\n\t\t\t\t.getScreen_cap_url_medium()));\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tboolean rw = ImageIO.write(preview, \"PNG\", bos);\n\t\t\tparent.globals.downloadedBytes += bos.toByteArray().length;\n\t\t } catch (IOException e) {\n\t\t\tif (parent.globals._DEBUG)\n\t\t\t e.printStackTrace();\n\t\t }\n\t\t if (preview != null) {\n\t\t\tbreak;\n\t\t }\n\t\t}\n\t }\n\t}\n }", "public void update()\n {\n this.controller.updateAll();\n theLogger.info(\"Update request recieved from UI\");\n }", "public static void clientListUpdater() {\r\n\t\tclientList.clear();\r\n\t\tclientList.addAll(serverConnector.getAllClients());\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n final View view = inflater.inflate(R.layout.fragment_lobby, container, false);\n unbinder = ButterKnife.bind(this, view);\n\n context = getContext();\n\n\n firebaseDatabase = FirebaseDatabase.getInstance();\n databaseReference = firebaseDatabase.getReference(\"rooms\");\n databaseReference.addValueEventListener(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n roomMap.clear();\n for (DataSnapshot snapshot : dataSnapshot.getChildren()) {\n int roomID = Integer.parseInt(snapshot.getKey());\n RoomModel model = snapshot.getValue(RoomModel.class);\n roomMap.put(roomID, model);\n }\n adapter = new LobbyAdapter(roomMap, context);\n rvRooms = view.findViewById(R.id.rv_rooms);\n rvRooms.setAdapter(adapter);\n\n }\n\n @Override\n public void onCancelled(DatabaseError databaseError) {\n\n }\n });\n\n\n GridLayoutManager layoutManager = new GridLayoutManager(context, 2, GridLayoutManager.VERTICAL, false);\n rvRooms.setLayoutManager(layoutManager);\n\n return view;\n }", "@Override\n public void refresh() {\n serverJList.removeAll();\n client.searchForServer();\n }", "public void onClick$editClientButton() {\n\n\t\tClient client = buildClient();\n\t\tclient.setId(clientToEdit.getId());\n\n\t\tClientService clientService = ServiceLocator.getClientService();\n\n\t\ttry {\n\t\t\tclientService.saveOrUpdate(client);\n\t\t} catch (Exception e) {\n\t\t\tmessageLabel.setValue(\"Error al crear el cliente\");\n\t\t\tLOGGER.error(e);\n\t\t}\n\t\tExecutions.sendRedirect(\"queryClients.zul\");\n\t\tmessageLabel.setValue(\"Cliente creado exitosamente.\");\n\t}", "private void updateStatus() {\n Response block = blockTableModel.getChainHead();\n int height = (block != null ? block.getInt(\"height\") : 0);\n nodeField.setText(String.format(\"<html><b>NRS node: [%s]:%d</b></html>\",\n Main.serverConnection.getHost(),\n Main.serverConnection.getPort()));\n chainHeightField.setText(String.format(\"<html><b>Chain height: %d</b></html>\",\n height));\n connectionsField.setText(String.format(\"<html><b>Peer connections: %d</b></html>\",\n connectionTableModel.getActiveCount()));\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 }", "@Override\n public void updateView(Intent intent)\n {\n \n }", "@Override\n\tpublic Client update(Client obj) {\n\t\treturn null;\n\t}", "public void updateView() {\n if (mData.isEmpty()) {\n Logger.d(TAG, \"The mData is empty\");\n return;\n }\n Set<View> viewSet = mData.keySet(); // keySet() returns [] if map is\n // empty\n Iterator<View> viewIterator = viewSet.iterator();\n if (viewIterator == null) {\n Logger.d(TAG, \"The viewIterator is null\");\n return;\n }\n while (viewIterator.hasNext()) {\n View view = viewIterator.next();\n if (view == null) {\n Logger.d(TAG, \"The view is null\");\n } else {\n Object obj = mData.get(view);\n if (obj == null) {\n Logger.d(TAG, \"The value is null\");\n } else {\n if (obj instanceof ChatsStruct) {\n ChatsStruct chatStruct = (ChatsStruct) obj;\n updateChats(view, chatStruct);\n } else if (obj instanceof InvitationStruct) {\n InvitationStruct inviteStruct = (InvitationStruct) obj;\n updateInvitations(view, inviteStruct);\n } else {\n Logger.d(TAG, \"Unknown view type\");\n }\n }\n }\n }\n }", "void updateLeaderSlot(String username, ArrayList<LightLeaderCard> leaderSlot);", "public int getAllocatedLobby() {\r\n\t\treturn allocatedLobby;\r\n\t}", "@Override\n public void onRefresh() {\n load_remote_data();\n }", "private void updateView() {\r\n if (this.nodes == null || this.nodes.length > 1\r\n || !this.nodes[0].exists()) {\r\n this.titleBorder.setTitle(\"-\");\r\n this.jzvStat.setStat(null);\r\n this.taUpdate.setText(\"\");\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled(false);\r\n this.jbNewChild.setEnabled(false);\r\n this.jbDelete.setEnabled(this.nodes != null);\r\n } else {\r\n this.titleBorder.setTitle(this.nodes[0].getPath());\r\n this.jzvStat.setStat(this.nodes[0].getStat());\r\n byte[] data = this.nodes[0].getData();\r\n this.taUpdate.setText(new String(data == null ? \"null\".getBytes()\r\n : data));\r\n this.taChildData.setText(\"\");\r\n this.jbUpdate.setEnabled( !this.taUpdate.getText().trim().equals(\"\") );\r\n this.jbNewChild.setEnabled( !this.jtfChildName.getText().trim().equals(\"\") );\r\n this.jbDelete.setEnabled(true);\r\n }\r\n this.repaint();\r\n }", "void update(storage_server_connections connection);", "private void updateInfo() {\n /* Show the current server address in use */\n String text = String.format(getResources().getString(R.string.main_activity_server_address),\n Utils.getAddress(), Utils.getPort());\n serverTextView.setText(text);\n\n /* Show information about current player */\n Player player = SharedDataManager.getPlayer(this);\n /* No player is logged in */\n if (player == null) {\n playerTextView.setText(getString(R.string.your_nickname));\n return;\n }\n /* Player is logged in, show some information about him */\n text = String.format(getResources().getString(R.string.main_activity_player_title),\n player.getNickname(), player.getScore());\n playerTextView.setText(text);\n }" ]
[ "0.6596501", "0.62613225", "0.6141269", "0.60885364", "0.60390097", "0.6025572", "0.59963256", "0.5941971", "0.5853243", "0.58529645", "0.5850486", "0.58271575", "0.57598865", "0.57532305", "0.57522833", "0.57509315", "0.5735196", "0.5674904", "0.56655097", "0.5609763", "0.5605413", "0.5590783", "0.55805266", "0.5554938", "0.55532837", "0.55518323", "0.55326194", "0.5532397", "0.552664", "0.55114734", "0.5509742", "0.5509742", "0.5487316", "0.54690796", "0.5448523", "0.5431766", "0.54195154", "0.5404515", "0.53809106", "0.53400594", "0.53203106", "0.5301336", "0.52894133", "0.52844566", "0.5276462", "0.52757215", "0.5273467", "0.5266554", "0.52596664", "0.52578115", "0.5243215", "0.52416617", "0.52406263", "0.5236748", "0.5217816", "0.52002734", "0.5189616", "0.5179053", "0.5173998", "0.51699775", "0.51639056", "0.51572996", "0.5156114", "0.5156108", "0.5150479", "0.5137848", "0.5137628", "0.5130191", "0.51167464", "0.51139355", "0.51095724", "0.5103072", "0.5093032", "0.5089545", "0.508472", "0.5079747", "0.5071537", "0.50689834", "0.50646704", "0.50608546", "0.50565493", "0.5055175", "0.5048633", "0.50402445", "0.5040224", "0.5035209", "0.5032163", "0.50182706", "0.5016433", "0.50120664", "0.50084823", "0.5005839", "0.49993068", "0.49986073", "0.49982664", "0.4997481", "0.49965373", "0.4982893", "0.49826542", "0.4979696" ]
0.6096705
3
Socket doesn't use ping to detect disconnections but methods are provided to prevent usless casts
@Override public boolean getPinged() { return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getSoLinger()\r\n/* 123: */ {\r\n/* 124: */ try\r\n/* 125: */ {\r\n/* 126:149 */ return this.javaSocket.getSoLinger();\r\n/* 127: */ }\r\n/* 128: */ catch (SocketException e)\r\n/* 129: */ {\r\n/* 130:151 */ throw new ChannelException(e);\r\n/* 131: */ }\r\n/* 132: */ }", "public abstract void OnDisconnect(int sock);", "public boolean isTcpNoDelay()\r\n/* 171: */ {\r\n/* 172: */ try\r\n/* 173: */ {\r\n/* 174:185 */ return this.javaSocket.getTcpNoDelay();\r\n/* 175: */ }\r\n/* 176: */ catch (SocketException e)\r\n/* 177: */ {\r\n/* 178:187 */ throw new ChannelException(e);\r\n/* 179: */ }\r\n/* 180: */ }", "private static boolean verify(Socket s) {\r\n\t\t//TODO: Implement this.\r\n\t\treturn true;\r\n\t}", "public void pingToClient() {\n Thread t = new Thread(() -> {\n while (connected) {\n try {\n Thread.sleep(1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n try {\n socketOut.writeObject(\"\");\n } catch (IOException e) {\n //e.printStackTrace();\n }\n }\n });\n t.start();\n }", "public abstract void handle(Socket socket);", "public void keepAlive(Socket s) \n throws CopsPepException {\n\t short clientType = 0;\n\t if (s == null) {\n\t throw new CopsPepException(\"Invalid socket: \" +s, ERR_PARAMS);\n\t }\n CopsKA ka = new CopsKA(clientType);\n sendMessage(s, ka);\n}", "boolean hasSocketProtocol();", "private TimerTask socketListener()\r\n\t{\r\n\t\tString theMessage;\r\n\t\tif (theSocket != null)\r\n\t\t{\r\n\t\t\tif (theSocket.isReady())\r\n\t\t\t{\r\n\t\t\t\t// blocks execution\r\n\t\t\t\t// get theMessage\r\n\t\t\t\ttheMessage = theSocket.getMessage();\r\n\t\t\t\tif (theMessage == null)\r\n\t\t\t\t{\r\n\t\t\t\t\twriteLine(\"Our connection has ended!\", 0);\r\n\t\t\t\t\trunning = false;\r\n\t\t\t\t\t// if the message = null\r\n\t\t\t\t\t// the we need to check the socket again\r\n\t\t\t\t\t// just in case\r\n\t\t\t\t\t// close it nicely if we can\r\n\t\t\t\t\tif (theSocket != null)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\ttheSocket.close();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// otherwise just set it to null\r\n\t\t\t\t\t// set it to null regardless\r\n\t\t\t\t\ttheSocket = null;\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\t// if the socket is OK\r\n\t\t\t\t\t// and the socket isReady\r\n\t\t\t\t\t// then display the input\r\n\t\t\t\t\twriteLine(theMessage, 2);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} // end if theSocket !=null\r\n\t\treturn null;\r\n\t}", "public void onNetDisConnect() {\n\n\t}", "public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }", "@Override\r\n public Object connect() {\n if(status()){\r\n //creates thread that checks messages in the network\r\n System.out.println(\"notifying network that connection is good\");\r\n notifyObservers(this);\r\n }\r\n return socket;\r\n }", "boolean hasSock();", "protected abstract void processConnection(Socket socket);", "public void acceptedSocket(long socketId) {}", "private static Socket getSocket() \n{\n return socket; \n }", "private void manageConnectedSocket(BluetoothSocket acceptSocket) {\n\n }", "public Socket getSocket(){\n return null;\n }", "@Override\n public void socket() {\n }", "public boolean isKeepAlive()\r\n/* 147: */ {\r\n/* 148: */ try\r\n/* 149: */ {\r\n/* 150:167 */ return this.javaSocket.getKeepAlive();\r\n/* 151: */ }\r\n/* 152: */ catch (SocketException e)\r\n/* 153: */ {\r\n/* 154:169 */ throw new ChannelException(e);\r\n/* 155: */ }\r\n/* 156: */ }", "@Override\r\n\tpublic void packetLost(Connection connection, BaseDatagram lostDatagram)\r\n\t{\n\t\t\r\n\t}", "abstract protected void onDisconnection();", "public MockSocket () {\n state = UNBOUND;\n }", "public void packetReceiver(Socket socket);", "@Override\n\tprotected void onNetworkDisConnected() {\n\n\t}", "public interface _Socket {\n boolean isConnected();\n ByteBuffer getData() throws IOException;\n void sendData(ByteBuffer byteBuffer) throws IOException;\n void close() throws IOException;\n\n}", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tSocket s = new Socket(ip,6969);\n\t\t\t\t\t\t\t\ts.close();\n\t\t\t\t\t\t\t\tconnection=true;\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t catch (UnknownHostException e1) {\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t\t\tLog.d(null, \"Wrong ip\");\n\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}", "public void readFromSocket(long socketId) {}", "void serverLostConnection();", "protected void updateSocketWithOptions(final MongoClientConfiguration config)\n throws SocketException {\n mySocket.setKeepAlive(config.isUsingSoKeepalive());\n mySocket.setSoTimeout(config.getReadTimeout());\n try {\n mySocket.setTcpNoDelay(true);\n }\n catch (final SocketException seIgnored) {\n // The junixsocket implementation does not support TCP_NO_DELAY,\n // which makes sense but it throws an exception instead of silently\n // ignoring - ignore it here.\n if (!\"AFUNIXSocketException\".equals(seIgnored.getClass()\n .getSimpleName())) {\n throw seIgnored;\n }\n }\n mySocket.setPerformancePreferences(1, 5, 6);\n }", "public abstract Object getVanillaPacket();", "public interface SocketService {\n public void toggleAll();\n public void strobeAll(int delay, boolean reverse);\n public void allOff();\n public void allOn();\n}", "public interface PacketChannelListener\r\n{\r\n\r\n /**\r\n * Called when a packet is fully reassembled.\r\n *\r\n * @param pc The source of the event.\r\n * @param pckt The reassembled packet\r\n */\r\n public void packetArrived(PacketChannel pc, ByteBuffer pckt) throws InterruptedException;\r\n\r\n /**\r\n * Called when some error occurs while reading or writing to the socket.\r\n *\r\n * @param pc The source of the event.\r\n * @param ex The exception representing the error.\r\n */\r\n public void socketException(PacketChannel pc, Exception ex);\r\n\r\n /**\r\n * Called when the read operation reaches the end of stream. This means that\r\n * the socket was closed.\r\n *\r\n * @param pc The source of the event.\r\n */\r\n public void socketDisconnected(PacketChannel pc, boolean failed);\r\n}", "Socket call() throws InterruptedException;", "public NotcherSimulator() throws SocketException{}", "private static DatagramPacket listenOnSocket(DatagramSocket socket) throws Exception { // TODO Handle exception\n\n // Create a generically big DatagramPacket\n byte[] receivedData = new byte[MAXIMUM_DATAGRAM_SIZE];\n DatagramPacket datagram = new DatagramPacket(receivedData, receivedData.length);\n\n // Listen to the socket\n socket.receive(datagram);\n\n // Trim the data array\n byte[] trimmedData = Arrays.copyOfRange(datagram.getData(), datagram.getOffset(), datagram.getLength());\n datagram.setData(trimmedData);\n\n return datagram;\n }", "void disconnect(String reason);", "public void socketDisconnected(PacketChannel pc, boolean failed);", "public interface IServer {\n /**\n * \n * @param data\n */\n public void sendData(String data);\n\n /**\n * \n * @return\n * @throws ServerNullDataException\n * @throws ServerEmptyDataException\n * @throws ServerBadDataException\n * @throws ServerBadFormatException\n */\n public String receiveData() throws ServerNullDataException, ServerEmptyDataException, ServerBadDataException, ServerBadFormatException;\n\n /**\n * \n * @param data\n * @return\n * @throws ServerNullDataException\n * @throws ServerEmptyDataException\n * @throws ServerBadDataException\n * @throws ServerBadFormatException\n */\n public boolean verifyData(String data) throws ServerNullDataException, ServerEmptyDataException, ServerBadDataException, ServerBadFormatException;\n\n /**\n * \n * @return\n */\n public String getData();\n\n /**\n * \n * @param s\n */\n public void setData(String s);\n\n /**\n * \n * @return\n */\n public Socket getConnectedSocket();\n \n /**\n * \n * @param s\n */\n public void setConnectedSocket(Socket s);\n\n /**\n * \n * @return\n */\n public Socket getDistantServerSocket();\n \n /**\n * \n * @param s\n */\n public void setDistantServerSocket(Socket s);\n \n /**\n * Permet de connecter la socket issues de l'écoute.\n * @return La socket permettant de communiquer avec le second joueur.\n * @throws ServerSocketAcceptException \n */\n public Socket connectSocket() throws ServerSocketAcceptException;\n \n /**\n * Méthode deconnectant la <code>Socket</code> et fermant son flux. \n * @throws ServerClosedSocketException \n * @throws ServerNullSocketException \n * @pre \n * isRunning() == true\n * s != null\n */\n public void closeSocket(Socket s) throws ServerClosedSocketException, ServerNullSocketException;\n \n /**\n * Méthode permettant de définir un <code>Timeout</code> en milliseconde.\n * @pre \n * s != null\n * 0 < timeout < MAX_TIMEOUT\n */\n public void setTimeout(Socket s, int timeout);\n \n /**\n * Retourne L'IP sous forme d'InetAddress.\n */\n public InetAddress getIP();\n \n /**\n * Retourne le nom du serveur.\n */\n public String getHostName();\n \n /**\n * Retourne le port sur lequel écoute le serveur.\n */\n public int getPort();\n \n /**\n * Permet de changer le port que l'on utilise par défaut sur le serveur.\n * @throws ServerBadPortException \n * @pre\n * 1024 < port < 49152\n * @post\n * getPort() == port\n */\n public void setPort(int port) throws ServerBadPortException;\n}", "public interface Connection\n{\n public java.net.Socket getSocket();\n}", "public DatagramSocket createUnboundDatagramSocket()\n throws SocketException;", "private void send(String p)\t{\t\t\t\r\n\t\ttry{\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\toOutStream.writeObject(p);\r\n\t\t\t\toOutStream.flush();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SocketException e){\r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e) { \r\n\t\t\tif(isThisMyTurn){\r\n\t\t\t\tisThisMyTurn = false;\r\n\t\t\t\tturnOffStream();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n public void connectionLost(Throwable cause) {\n }", "public abstract void handleCurrentConnection(Socket socket) throws IOException;", "void disconnect() throws Exception;", "@Override\n public void connectionLost(Throwable cause) {\n\n }", "public Socket createSocket()\n/* */ {\n/* 82 */ return new Socket();\n/* */ }", "private Message onPingMessageReceived(PingMessage m, DecentSocket origin) {\n\t\treturn null;\n\t}", "@Override\n public void connectionLost() {\n }", "public interface DatagramSocketFactory\n{\n /**\n * Creates an unbound DatagramSocket:\n * - i.e <tt>return new DatagramSocket((SocketAddress) null)</tt>.\n *\n * @return An unbound DatagramSocket.\n *\n * @throws SocketException if the socket could not be opened.\n */\n public DatagramSocket createUnboundDatagramSocket()\n throws SocketException;\n}", "@Override\n public boolean isOnline() {\n if(mSocket != null && mSocket.isConnected())\n return true;\n return false;\n }", "Socket getSocket()\n {\n return socket;\n }", "@Override\n\tpublic boolean isConnected() {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean isConnected() {\n\t\treturn false;\n\t}", "protected Socket getSocket()\n {\n return m_Socket;\n }", "boolean hasDisconnect();", "@Override\r\n\tpublic boolean isConnected() {\n\t\treturn false;\r\n\t}", "@Override\n public String ping() {\n return super.ping();\n }", "public PingMessage receivePing()\n {\n Date date = new Date();\n String dateString = String.format(\"%tc\", date);\n byte recvBuf[] = new byte[PACKET_SIZE];\n DatagramPacket recvPacket = \n\t new DatagramPacket(recvBuf, PACKET_SIZE);\n PingMessage reply = null;\n try\n {\n socket.receive(recvPacket);\n System.out.println(\"Received packet from \" + recvPacket.getAddress()\n + \" \" + recvPacket.getPort() + \" \" + dateString);\n String recvMsg = new String(recvPacket.getData());\n\t reply = new PingMessage(recvPacket.getAddress(),\n recvPacket.getPort(), recvMsg);\n }\n catch (Exception ex)\n {\n System.out.println(\"receivePing...java.net.SocketTimeoutException: \" +\n \"Receive timed out\");\n }\n return reply;\n }", "public boolean isReuseAddress()\r\n/* 159: */ {\r\n/* 160: */ try\r\n/* 161: */ {\r\n/* 162:176 */ return this.javaSocket.getReuseAddress();\r\n/* 163: */ }\r\n/* 164: */ catch (SocketException e)\r\n/* 165: */ {\r\n/* 166:178 */ throw new ChannelException(e);\r\n/* 167: */ }\r\n/* 168: */ }", "public int closeSocket() \n\t{\n\t\t\n\t}", "public void createSocket() \n { \n try \n { \n socket = new DatagramSocket(); \n } \n catch (Exception ex) \n { \n System.out.println(\"UDPPinger Exception: \" + ex); \n } \n }", "public interface SocketClientInterface {\n boolean openConnection();\n void handleSession();\n void closeSession();\n}", "public interface SocketWrap {\n void connect() throws IOException;\n\n void sendMessage(SocketPackage socketPackage);\n\n void close() throws IOException;\n\n void receiveDataAndHandle() throws IOException;\n\n boolean isConnect();\n\n}", "protected boolean closeOnReadError(Throwable cause) {\n/* 606 */ if (cause instanceof SocketException) {\n/* 607 */ return false;\n/* */ }\n/* 609 */ return super.closeOnReadError(cause);\n/* */ }", "protected void processDisconnection(){}", "@Test\n public void unexpectedPingIsNotReturned() throws Exception {\n peer.sendFrame().settings(new Settings());\n peer.acceptFrame();// ACK\n\n peer.sendFrame().ping(false, 2, 0);\n peer.acceptFrame();// PING\n\n peer.sendFrame().ping(true, 3, 0);// This ping will not be returned.\n\n peer.sendFrame().ping(false, 4, 0);\n peer.acceptFrame();// PING\n\n peer.play();\n // play it back\n connect(peer);\n // verify the peer received what was expected\n MockHttp2Peer.InFrame ping2 = peer.takeFrame();\n Assert.assertEquals(2, ping2.payload1);\n MockHttp2Peer.InFrame ping4 = peer.takeFrame();\n Assert.assertEquals(4, ping4.payload1);\n }", "interface Fixable extends TcpSocket, Connector.Fixable {}", "public MapiSocket() {\n\t\tcon = null;\n\t}", "@Override\r\n\tpublic void connectionLost(Throwable t) {\n\t}", "public int createSocket()\n\t{\n\t\t\n\t}", "@Override\n\tpublic void connectionLost(Throwable cause) {\n\t\t\n\t}", "public Thread asyncPing() {\n Gson gson = new Gson();\n PingMessage pingMessage = new PingMessage(\"ping\");\n return new Thread(() -> {\n try {\n while (!socket.isClosed() && !Command.checkError()) {\n Command.sendMessage(gson.toJson(new MessageEnvelope(MessageType.PING, gson.toJson(pingMessage, PingMessage.class)), MessageEnvelope.class));\n Thread.sleep(500);\n }\n } catch (InterruptedException e) {\n view.showError(\"Error ping thread interrupted\");\n }\n });\n }", "boolean isBadCommunication();", "@Override\n public void onClose(int code, String reason, boolean remote) {\n socketNum -= 1;\n if(socketNum == 0) {\n final Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n @Override\n public void run() {\n reconnectToServer();\n }\n }, (int) ((Math.random() * 9 + 1) * 300));\n }\n }", "private void sendSocket(String data) {\n if (!serviceStartNormalMethod) {\n pingStamp = System.currentTimeMillis();\n }\n\n if (ctrlSocketBufferOut != null && !ctrlSocketBufferOut.checkError() && ctrlSocketThreadState == SocketThreadStates.RUNNING) {\n ctrlSocketBufferOut.println(data);\n ctrlSocketBufferOut.flush();\n }\n\n if (ctrlSocketBufferOut != null && ctrlSocketBufferOut.checkError()) {\n // conn manager thread will re-connect us\n ctrlSocketThreadState = SocketThreadStates.ERROR;\n broadcastConnectionStatus();\n }\n }", "@Override\n protected boolean closeOnReadError(Throwable cause) {\n if (cause instanceof SocketException) {\n return false;\n }\n return super.closeOnReadError(cause);\n }", "public int receivePacket(){\r\n\t\ttry{\t\t\r\n\t\t\tpacket = new DatagramPacket(buffer, bufLen);\r\n\t\t\tsock.setSoTimeout(0);//timeout infinito\r\n\t\t\tsock.receive(packet);\r\n\t\t}\r\n\t\tcatch(Exception ex){\r\n\t\t\tLogger.write(\"Errore ricezione pacchetto: \"+ex.getMessage());\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}", "void onConnectionRemoved(SocketConnection connection);", "@Override\n\tpublic boolean canConnect() {\n return false;\n }", "protected void pktTimeout() {}", "@Override\n\tpublic void onSocketRemoved(ISocketInstance childSocket) {\n\t\t\n\t}", "int ReceivePacket();", "abstract protected void RunTest(Socket s);", "public ImitationSocket() throws SocketException {\n super();\n this.broadcast = true;\n }", "public boolean socketStillAlive() {\n if (bluetoothSocket != null)\n return bluetoothSocket.getSocket() != null;\n return false;\n }", "@Override\r\n\tpublic void connectionLost(Throwable cause) {\n\t\t\r\n\t}", "@Override\n protected void handleConnection(final Socket sock) throws IOException {\n sock.setSoTimeout(1);\n sock.getInputStream().read();\n\n stopAcceptingConnections();\n }", "public boolean ping();", "@Override\n\tpublic boolean disconnect() {\n\t\treturn false;\n\t}", "private void createSocket() throws Exception {\n try {\n socket = new Socket();\n socket.setTcpNoDelay(true);\n } catch (SocketException e) {\n throw new Exception();\n }\n }", "public native final void reconnect() throws IOException;", "private void recvSocket(String mServerMessage) {\n // if not started by Activity, prolong the pingStamp to keep running\n // until we have nothing else to do\n if (!serviceStartNormalMethod) {\n pingStamp = System.currentTimeMillis();\n }\n\n if (mServerMessage != null) {\n CtrlMessage msg = new CtrlMessage(mServerMessage);\n if (msg.getIsExtracted()) {\n if (ctrlAuthenticated) {\n if (msg.getIsAck()) {\n Log.i(TAG, \"Processing ACK to our TXsender: \" + msg.getTXsender());\n\n dataSource.ackTxClient2Server(msg.getTXsender());\n Log.i(TAG, \" ...acked in DB.\");\n\n if (msg.getIsOutOfSync()) {\n Log.i(TAG, \" ...ACKed but server told me OUT-OF-SYNC!\");\n if (outOfSyncCnt >= 5) {\n Log.i(TAG, \" ...will flush queue and re-connect the socket!\");\n\n stopQueuedItemsSender();\n\n dataSource.flushTxClient2Server();\n\n // close the socket, and ctrlConnMaintainer will\n // re-connect ASAP\n restartCtrlSocket();\n }\n else {\n outOfSyncCnt++;\n Log.i(TAG, \" ...will re-send unacknowledged queue items. Increased flush-counter to: \" + outOfSyncCnt + \"/\" + 5 + \"!\");\n\n stopQueuedItemsSender();\n\n Log.i(TAG, \" ...marking all unacknowledged items as unsent...\");\n dataSource.unsendAllUnackedTxClient2Server();\n\n Log.i(TAG, \" ...starting queued items sender of all unacknowledged items...\");\n startQueuedItemsSender();\n }\n }\n }\n else {\n Log.i(TAG, \"Processing Server's data...\");\n\n // acknowledge immediatelly (but only if\n // client is authorized and if this is not a\n // notification)\n CtrlMessage msgAck = new CtrlMessage();\n msgAck.setIsAck(true);\n msgAck.setTXsender(msg.getTXsender());\n\n if (!msg.getIsNotification()) {\n if (msg.getTXsender() <= TXserver) {\n msgAck.setIsProcessed(false);\n Log.w(TAG, \" ...Warning: re-transmitted command, not processed!\");\n }\n else if (msg.getTXsender() > (TXserver + 1)) {\n // SYNC PROBLEM! Server sent higher\n // than we expected! This means we\n // missed some previous Message!\n // This part should be handled on\n // Servers side.\n // Server should flush all data (NOT\n // A VERY SMART IDEA) and\n // re-connect. Re-sync should\n // naturally occur\n // then in auth procedure as there\n // would be nothing pending in queue\n // to send to Client.\n\n msgAck.setIsOutOfSync(true);\n msgAck.setIsProcessed(false);\n Log.e(TAG, \" ...Error: Client sent out-of-sync data! Expected: \" + (TXserver + 1) + \", but I got: \" + msg.getTXsender());\n }\n else {\n msgAck.setIsProcessed(true);\n // next package we will receive\n // should be +1 of current value, so\n // lets ++\n TXserver++;\n\n // instead of saving TXserver value to our local\n // DB, we can also save it to Server!\n /*\n dataSource.savePubVar(\"TXserver\", String.valueOf(TXserver));\n */\n JSONObject ooo = new JSONObject();\n try {\n ooo.put(\"TXserver\", TXserver);\n msgAck.setData(ooo);\n msgAck.setIsSaveTXserver(true);\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n sendSocket(msgAck.buildMessage());\n Log.i(TAG, \" ...ACK sent back for TXsender: \" + msg.getTXsender());\n }\n else {\n // we need this for bellow code to\n // execute\n msgAck.setIsProcessed(true);\n Log.i(TAG, \" ...didn't ACK because this was a notification.\");\n }\n\n if (msgAck.getIsProcessed()) {\n if (msg.getIsSystemMessage()) {\n Log.i(TAG, \" ...system message received, parsing...\");\n\n // we must parse and extract stuff\n // from msg.data object\n JSONObject data = (JSONObject) msg.getData();\n\n try {\n if (data.has(\"type\") && data.getString(\"type\").equals(\"base_connection_status\") && data.has(\"connected\") && data.has(\"baseid\") && data.has(\"basename\")) {\n // this is a Base status\n // notification, we get this for\n // each Base associated to our\n // Client account\n\n Log.i(TAG, \" ...got Base Status Notification. BaseID=\" + data.getString(\"baseid\") + \", connected=\" + data.getBoolean(\"connected\"));\n\n // update base's last activity only if\n // the status has changed since last\n // update\n boolean lastConnectedState = dataSource.getBaseStatus(data.getString(\"baseid\"));\n if (lastConnectedState != data.getBoolean(\"connected\")) {\n dataSource.updateBaseLastActivity(data.getString(\"baseid\"));\n }\n\n dataSource.saveBaseConnectedStatus(context, data.getString(\"baseid\"), data.getBoolean(\"connected\"), data.getString(\"basename\"));\n broadcastNewBaseConnectionStatus(data.getString(\"baseid\"), data.getBoolean(\"connected\"));\n\n // Call appropriate BaseDataParser that\n // will possibly show notifications and\n // stuff if Activity for this BaseID is\n // in background\n callBaseDataParserWhenBackgrounded(data.getString(\"baseid\"), null, (lastConnectedState != data.getBoolean(\"connected\")), data.getBoolean(\"connected\"));\n }\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n }\n else {\n Log.i(TAG, \" ...fresh data from Base \" + msg.getBaseIds());\n Log.i(TAG, \" ...Data: \" + msg.getData());\n\n dataSource.saveBaseData(msg.getBaseIds().get(0), msg.getData().toString());\n dataSource.updateBaseLastActivity(msg.getBaseIds().get(0));\n broadcastNewBaseDataArrival(msg.getBaseIds().get(0), msg.getData().toString());\n\n // Call appropriate BaseDataParser that will\n // possibly show notifications and stuff if\n // Activity for this BaseID is in background\n callBaseDataParserWhenBackgrounded(msg.getBaseIds().get(0), msg.getData().toString(), false, false);\n }\n }\n }\n }\n else {\n // if not authenticated, whatever we receive\n // should be response to our auth request, so\n // lets parse it\n try {\n // we must parse and extract stuff from\n // msg.data object\n if (msg.getData() instanceof JSONObject) {\n JSONObject data = (JSONObject) msg.getData();\n\n if (data.has(\"type\") && data.get(\"type\") != null && data.getString(\"type\").equals(\"authentication_response\") && data.has(\"result\") && data.get(\"result\") != null && data.has(\"TXserver\")) {\n // authorized?\n if (data.getInt(\"result\") == 0) {\n ctrlAuthenticated = true;\n\n if (msg.getIsSync()) {\n TXserver = 0;\n }\n else {\n // instead reading TXserver from local\n // storage, we can now read the value\n // Server sends us, because we are\n // storing it on Server now:\n // (Server-Stored TXServer value)\n /*\n String sTXserver = dataSource.getPubVar(\"TXserver\");\n try {\n TXserver = Integer.parseInt(sTXserver);\n }\n catch (NumberFormatException e) {\n TXserver = 0;\n }\n */\n try {\n TXserver = data.getInt(\"TXserver\");\n }\n catch (JSONException jse) {\n TXserver = 0;\n }\n }\n\n // update our GCM regID to Server\n manageRegID(false);\n\n // we have pending items in DB to send to\n // Server?\n if (dataSource.countUnackedTxClient2Server() > 0) {\n Log.i(TAG, \"WE HAVE UNACKED ITEMS TO SEND NOW\");\n startQueuedItemsSender();\n }\n else {\n Log.i(TAG, \"NO UNACKED ITEMS TO SEND NOW\");\n }\n\n ctrlError = CtrlErrors.NONE;\n broadcastCtrlStatus();\n }\n else if (data.getInt(\"result\") == 1) {\n ctrlError = CtrlErrors.WRONG_AUTH_TOKEN;\n broadcastCtrlStatus();\n closeCtrlSocket();\n }\n else {\n ctrlError = CtrlErrors.TOO_MANY_AUTH_ATTEMPTS;\n broadcastCtrlStatus();\n closeCtrlSocket();\n }\n }\n }\n else {\n Log.e(TAG, \"Response to AUTH should have been JSON Object! Ignored.\");\n }\n }\n catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }\n }\n }", "public interface TcpSocket extends Connector {\n\t/** A no-op, stateless, socket instance. */\n\tTcpSocket NULL = new Null() {};\n\n\t@Override\n\tdefault String name() {\n\t\treturn String.format(\"%d->%s\", localPort(), hostPort());\n\t}\n\n\t/**\n\t * Provides the socket remote host and port.\n\t */\n\tHostPort hostPort();\n\n\t/**\n\t * Provides the local port.\n\t */\n\tint localPort();\n\n\t/**\n\t * Set socket option.\n\t */\n\t<T> void option(TcpSocketOption<T> option, T value) throws IOException;\n\n\t/**\n\t * Get socket option.\n\t */\n\t<T> T option(TcpSocketOption<T> option) throws IOException;\n\n\t/**\n\t * Set socket options.\n\t */\n\tdefault void options(TcpSocketOptions options) throws IOException {\n\t\toptions.applyAll(this);\n\t}\n\n\t/**\n\t * Get socket options.\n\t */\n\tdefault TcpSocketOptions options() throws IOException {\n\t\treturn TcpSocketOptions.from(this);\n\t}\n\n\t/**\n\t * An extension of SocketConnector that is aware of state.\n\t */\n\tinterface Fixable extends TcpSocket, Connector.Fixable {}\n\n\t/**\n\t * Determines if the exception indicates a socket is fatally broken.\n\t */\n\tstatic boolean isBroken(Exception e) {\n\t\treturn e instanceof SocketException; // check broken pipe?\n\t}\n\n\t/**\n\t * Connect the socket and wrap as a TcpSocket.\n\t */\n\tstatic Wrapper connect(HostPort hostPort) throws IOException {\n\t\t@SuppressWarnings(\"resource\")\n\t\tSocket socket = new Socket(hostPort.host, hostPort.port);\n\t\ttry {\n\t\t\treturn wrap(socket);\n\t\t} catch (RuntimeException | IOException e) {\n\t\t\tsocket.close();\n\t\t\tthrow e;\n\t\t}\n\t}\n\n\t/**\n\t * Wrapper for a jdk socket. The socket must already be connected.\n\t */\n\tstatic Wrapper wrap(Socket socket) throws IOException {\n\t\treturn new Wrapper(socket);\n\t}\n\n\t/**\n\t * Wrapper for a jdk socket. The socket must already be connected.\n\t */\n\tclass Wrapper implements TcpSocket {\n\t\tprivate final Socket socket;\n\t\tprivate final HostPort hostPort;\n\t\tprivate final int localPort;\n\t\tprivate final InputStream in;\n\t\tprivate final OutputStream out;\n\n\t\tprivate Wrapper(Socket socket) throws IOException {\n\t\t\tif (!socket.isConnected()) throw new IOException(\"Socket is not connected\");\n\t\t\tthis.socket = socket;\n\t\t\thostPort = HostPort.from((InetSocketAddress) socket.getRemoteSocketAddress());\n\t\t\tlocalPort = socket.getLocalPort();\n\t\t\tin = socket.getInputStream();\n\t\t\tout = socket.getOutputStream();\n\t\t}\n\n\t\t@Override\n\t\tpublic HostPort hostPort() {\n\t\t\treturn hostPort;\n\t\t}\n\n\t\t@Override\n\t\tpublic int localPort() {\n\t\t\treturn localPort;\n\t\t}\n\n\t\t@Override\n\t\tpublic <T> void option(TcpSocketOption<T> option, T value) throws IOException {\n\t\t\toption.set(socket, value);\n\t\t}\n\n\t\t@Override\n\t\tpublic <T> T option(TcpSocketOption<T> option) throws IOException {\n\t\t\treturn option.get(socket);\n\t\t}\n\n\t\t@Override\n\t\tpublic InputStream in() {\n\t\t\treturn in;\n\t\t}\n\n\t\t@Override\n\t\tpublic OutputStream out() {\n\t\t\treturn out;\n\t\t}\n\n\t\t@Override\n\t\tpublic void close() throws IOException {\n\t\t\tsocket.close();\n\t\t}\n\t}\n\n\t/**\n\t * A no-op, stateless, socket implementation.\n\t */\n\tinterface Null extends Connector.Null, TcpSocket.Fixable {\n\t\t@Override\n\t\tdefault HostPort hostPort() {\n\t\t\treturn HostPort.NULL;\n\t\t}\n\n\t\t@Override\n\t\tdefault int localPort() {\n\t\t\treturn 0;\n\t\t}\n\n\t\t@Override\n\t\tdefault <T> void option(TcpSocketOption<T> option, T value) throws IOException {}\n\n\t\t@Override\n\t\tdefault <T> T option(TcpSocketOption<T> option) throws IOException {\n\t\t\treturn Objects.requireNonNullElse(option.disableValue, BasicUtil.uncheckedCast(0));\n\t\t}\n\t}\n}", "protected void handleLocalSocket(LocalSocket s) {\n try {\n if (s == null) {\n return;\n }\n this.socket = s;\n handleConnection(s.getInputStream(), s.getOutputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "protected boolean isConnected() {\n/* 160 */ return this.delegate.isConnected();\n/* */ }", "protected abstract boolean isConnected();", "private void acceptConnection() throws Exception {\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \"TcpConnectionListener.acceptConnection()\");\n\n Socket sock = proxyService.getServerSocket().accept();\n String inaddr = sock.getInetAddress().getHostAddress();\n\n connectionCount++;\n\n if (logger.isLoggable(BasicLevel.INFO))\n logger.log(BasicLevel.INFO, \" -> accept connection from \" + inaddr);\n\n try {\n sock.setTcpNoDelay(true);\n\n // Fix bug when the client doesn't use the right protocol (e.g. Telnet)\n // and blocks this listener.\n sock.setSoTimeout(timeout);\n\n InputStream is = sock.getInputStream();\n NetOutputStream nos = new NetOutputStream(sock);\n\n byte[] magic = StreamUtil.readByteArrayFrom(is, 8);\n for (int i = 0; i < 5; i++) {\n if (magic.length == i || magic[i] != MetaData.joramMagic[i] && magic[i] > 0) {\n String errorMsg = \"Bad magic number. Client is not compatible with JORAM.\";\n protocolErrorCount++;\n throw new IllegalAccessException(errorMsg);\n }\n }\n if (magic[7] != MetaData.joramMagic[7]) {\n if (magic[7] > 0 && MetaData.joramMagic[7] > 0) {\n String errorMsg = \"Bad protocol version number \" + magic[7] + \" != \" + MetaData.joramMagic[7];\n protocolErrorCount++;\n throw new IllegalAccessException(errorMsg);\n }\n \n logger.log(BasicLevel.WARN,\n \"Wildcard protocol version number: from stream = \" + magic[7] + \", from MetaData = \" + MetaData.joramMagic[7]);\n }\n\n //read the ack mode(noAckedQueue)\n boolean noAckedQueue = StreamUtil.readBooleanFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read noAckedQueue = \" + noAckedQueue);\n if (noAckedQueue)\n TcpProxyService.createExecutors();\n \n long dt = Math.abs(StreamUtil.readLongFrom(is) - System.currentTimeMillis());\n if (dt > clockSynchroThreshold)\n logger.log(BasicLevel.WARN, \" -> bad clock synchronization between client and server: \" + dt);\n StreamUtil.writeTo(dt, nos);\n\n Identity identity = Identity.read(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read identity = \" + identity);\n\n int key = StreamUtil.readIntFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read key = \" + key);\n\n int heartBeat = 0;\n if (key == -1) {\n heartBeat = StreamUtil.readIntFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read heartBeat = \" + heartBeat);\n }\n \n if (logger.isLoggable(BasicLevel.INFO))\n logger.log(BasicLevel.INFO, \" -> open connection \" + identity + \"/\" + key + \" - \" + heartBeat);\n \n GetProxyIdNot gpin = new GetProxyIdNot(identity, inaddr);\n AgentId proxyId;\n try {\n gpin.invoke(AdminTopic.getDefault());\n proxyId = gpin.getProxyId();\n } catch (Exception exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \" -> login failed\", exc);\n failedLoginCount++;\n StreamUtil.writeTo(1, nos);\n StreamUtil.writeTo(exc.getMessage(), nos);\n nos.send();\n return;\n }\n\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> open connection, proxyId=\" + proxyId);\n \n IOControl ioctrl;\n ReliableConnectionContext ctx;\n if (key == -1) {\n OpenConnectionNot ocn = new OpenConnectionNot(Type.RELIABLE, heartBeat, noAckedQueue);\n ocn.invoke(proxyId);\n StreamUtil.writeTo(0, nos);\n ctx = (ReliableConnectionContext) ocn.getConnectionContext();\n key = ctx.getKey();\n StreamUtil.writeTo(key, nos);\n nos.send();\n ioctrl = new IOControl(sock);\n } else {\n GetConnectionNot gcn = new GetConnectionNot(key);\n try {\n gcn.invoke(proxyId);\n } catch (Exception exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \"TcpConnectionListener: reconnection failed\", exc);\n StreamUtil.writeTo(1, nos);\n StreamUtil.writeTo(exc.getMessage(), nos);\n nos.send();\n return;\n }\n ctx = (ReliableConnectionContext) gcn.getConnectionContext();\n StreamUtil.writeTo(0, nos);\n nos.send();\n ioctrl = new IOControl(sock, ctx.getInputCounter());\n\n // Close the remaining connection if it exists\n TcpConnection tcpConnection = proxyService.getConnection(proxyId, key);\n if (tcpConnection != null) {\n tcpConnection.close();\n }\n }\n\n // Reset the timeout in order to enable the server to indefinitely\n // wait for requests.\n sock.setSoTimeout(0);\n\n TcpConnection tcpConnection = new TcpConnection(ioctrl, ctx, proxyId, proxyService, identity);\n tcpConnection.start();\n } catch (IllegalAccessException exc) {\n if (logger.isLoggable(BasicLevel.ERROR))\n logger.log(BasicLevel.ERROR, \"TcpConnectionListener: close connection\", exc);\n sock.close();\n throw exc;\n } catch (IOException exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \"TcpConnectionListener: close socket\", exc);\n sock.close();\n throw exc;\n }\n }", "public void socketException(PacketChannel pc, Exception ex);", "public interface IDialer {\r\n Logger logger = LogManager.getLogger(IDialer.class.getName());\r\n\r\n default Socket dial(ServerAddr addr, Duration timeout) throws JmgoException {\r\n InetSocketAddress tcpaddr = addr.getTcpaddr();\r\n Socket socket;\r\n try{\r\n socket = new Socket(tcpaddr.getAddress(), tcpaddr.getPort());\r\n }catch (IOException e){\r\n logger.info(\"Dial {}:{} get an error\", tcpaddr.getAddress(), tcpaddr.getPort());\r\n logger.catching(e);\r\n throw new JmgoException(e.getMessage());\r\n }\r\n try{\r\n socket.setSoTimeout((int)(timeout.getSeconds() * 1000));\r\n socket.setKeepAlive(true);\r\n }catch (SocketException e){\r\n logger.info(\"Dial get an error with set timeout or set keep alive {}\", e.getMessage());\r\n logger.catching(e);\r\n throw new JmgoException(e.getMessage());\r\n }\r\n return socket;\r\n }\r\n}", "public abstract boolean broadcast() throws IOException;" ]
[ "0.65940905", "0.63911", "0.6103202", "0.6077244", "0.6050692", "0.59638494", "0.59634197", "0.59388316", "0.59171695", "0.58559126", "0.58508456", "0.5802039", "0.57895815", "0.5786642", "0.578389", "0.5758714", "0.5752872", "0.57522523", "0.5747881", "0.57062167", "0.5701094", "0.57005227", "0.56934696", "0.56923807", "0.569211", "0.56569636", "0.56333095", "0.5611791", "0.5597067", "0.557702", "0.5576498", "0.55710644", "0.55546975", "0.5553629", "0.5552296", "0.5551075", "0.5547705", "0.55174", "0.55083907", "0.55069053", "0.549223", "0.54619867", "0.54526585", "0.54422426", "0.5435012", "0.5431644", "0.5428123", "0.5421379", "0.54204285", "0.54203707", "0.54201555", "0.5420113", "0.5419923", "0.5419923", "0.5418416", "0.54181933", "0.5414703", "0.5413003", "0.54101664", "0.5406865", "0.5404305", "0.53989685", "0.53936195", "0.53823966", "0.53765184", "0.53727436", "0.53701407", "0.5367816", "0.53556377", "0.53507113", "0.5342015", "0.53380114", "0.5325667", "0.5324301", "0.5321786", "0.5320999", "0.5311502", "0.53107196", "0.5307826", "0.5300117", "0.52985454", "0.52963597", "0.52933645", "0.5285646", "0.5284082", "0.52807194", "0.52792144", "0.527525", "0.5274981", "0.5271946", "0.5258392", "0.52583295", "0.52582353", "0.5247235", "0.5243241", "0.5242381", "0.52394587", "0.52367467", "0.5236183", "0.5234221", "0.52336746" ]
0.0
-1
check every half second for updates for 10 seconds
@Override protected Location doInBackground(final Void... unused) { for (int i = 0; true; i++) { if (location == null) try { Thread.sleep(500); } catch (InterruptedException e) { // can't do anything here but continue } else break; // if the user has waited more then 2 seconds tell them we are still // waiting if (i > 5) publishProgress("waiting for location."); else if (i > 10) publishProgress("still waiting for location."); } return location; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void periodicUpdate();", "public void checkLavaTileUpdates() {\n // 1 second (1 bn nanoseconds) between each tick\n long timeBetweenTicks = 1000;\n long newTime = System.currentTimeMillis();\n\n // if it has been 1 second: decrement ticks, set a new time and return true\n if (newTime - timeLastTick >= timeBetweenTicks) {\n timeLastTick = newTime;\n updateLavaTiles();\n }\n }", "boolean hasUpdateTime();", "boolean hasUpdateTime();", "boolean hasUpdateTime();", "@SuppressLint({\"CommitPrefEdits\"})\n public void checkForUpdates() {\n synchronized (this.preferenceStore) {\n if (this.preferenceStore.get().contains(\"last_update_check\")) {\n this.preferenceStore.save(this.preferenceStore.edit().remove(\"last_update_check\"));\n }\n }\n long currentTimeMillis = this.currentTimeProvider.getCurrentTimeMillis();\n long j = ((long) this.betaSettings.updateSuspendDurationSeconds) * 1000;\n StringBuilder sb = new StringBuilder();\n sb.append(\"Check for updates delay: \");\n sb.append(j);\n Fabric.getLogger().d(\"Beta\", sb.toString());\n StringBuilder sb2 = new StringBuilder();\n sb2.append(\"Check for updates last check time: \");\n sb2.append(getLastCheckTimeMillis());\n Fabric.getLogger().d(\"Beta\", sb2.toString());\n long lastCheckTimeMillis2 = getLastCheckTimeMillis() + j;\n StringBuilder sb3 = new StringBuilder();\n sb3.append(\"Check for updates current time: \");\n sb3.append(currentTimeMillis);\n sb3.append(\", next check time: \");\n sb3.append(lastCheckTimeMillis2);\n Fabric.getLogger().d(\"Beta\", sb3.toString());\n if (currentTimeMillis >= lastCheckTimeMillis2) {\n try {\n performUpdateCheck();\n } finally {\n setLastCheckTimeMillis(currentTimeMillis);\n }\n } else {\n Fabric.getLogger().d(\"Beta\", \"Check for updates next check time was not passed\");\n }\n }", "public void checkUpdates(int timePerStep){\r\n\t\tif(updateStatistics_ || statisticsCountdown_ == -1){\r\n\t\t\tstatisticsCountdown_ -= timePerStep;\r\n\t\t\tif(statisticsCountdown_ < 1){\r\n\t\t\t\tstatisticsCountdown_ += STATISTICS_ACTUALIZATION_INTERVAL;\r\n\t\t\t\tupdateStatistics();\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(updateBeaconInfo_){\r\n\t\t\tbeaconInfoCountdown_ -= timePerStep;\r\n\t\t\tif(beaconInfoCountdown_ < 1){\r\n\t\t\t\tbeaconInfoCountdown_ += BEACONINFO_ACTUALIZATION_INTERVAL;\r\n\t\t\t\tupdateBeaconInfo();\r\n\t\t\t}\r\n\t\t}\t\r\n\t}", "public void updatePeriodic() {\r\n }", "@Then(\"^the matches should update every (\\\\d+) seconds$\")\n\tpublic void the_matches_should_update_every_seconds(int secs) throws Throwable {\n\t\tThread.sleep(secs * 1000);\n\t // matches container should now have a last-updated data attribute\n\t\twebDriver.waitForElement(By.cssSelector(\".matches-container[data-last-updated]\"));\n\t}", "public void checkForUpdate();", "protected void checkUpdate() {\n \t\t// only update from remote server every so often.\n \t\tif ( ( System.currentTimeMillis() - lastUpdated ) > refreshInterval ) return;\n \t\t\n \t\tClusterTask task = getSessionUpdateTask();\n \t\tObject o = CacheFactory.doSynchronousClusterTask( task, this.nodeId );\n \t\tthis.copy( (Session) o );\n \t\t\n \t\tlastUpdated = System.currentTimeMillis();\n \t}", "private void follow_updates() {\n new Thread() {\n public void run() {\n while(true) {\n try {\n Thread.sleep(1000);\n GUI.setUps(upd_count);\n upd_count = 0;\n }\n catch(Exception e) {\n e.printStackTrace();\n }\n }\n }\n }.start();\n }", "public void scheduledUpdate() {\n\n if (isUpdating.compareAndSet(false, true)) {\n\n if (getCurrentChannel() != null) {\n\n updateData();\n }\n }\n\n timer.cancel();\n timer.purge();\n\n timer = new Timer();\n timer.scheduleAtFixedRate(new UpdateTask(), 3600000,\n 3600000);\n\n }", "public void update(long ms) {\n\t\t\n\t}", "public void realTimeUpdate() {\n if ( millis() - lastTime >= 60000 ) {\n // *Load all_hour data\n eqData.init(hourURL);\n eqData.update(hour);\n println( \"all_hour data updated!\" );\n isHour = true;\n lastTime = millis();\n }\n}", "private void peek_server_update(){\n java.util.Timer timer = new java.util.Timer(true);\n TimerTask taskPeek = new TimerTask() {\n public void run() {\n try {\n String user_id = RegistrationManager.getUserId();\n if (user_id == null || user_id.length() == 0) {\n return;\n }\n// WifiManager wifi = (WifiManager) getSystemService(WIFI_SERVICE);\n// if (wifi.getWifiState() == WifiManager.WIFI_STATE_ENABLED) {\n// JsonManager.peek_request(user_id);\n// }\n JsonManager.peek_request(user_id);\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n };\n JsonManager.getServerConfig();\n int periodPeek = Config.PEEK_TIMER() * 1000;\n timer.schedule(taskPeek, periodPeek, periodPeek);\n }", "private void sync() {\n float loopSlot = 1.0f/TARGET_FPS;\n double endTime = updateTimer.getLastRecordedTime() + loopSlot;\n while(updateTimer.getTime() < endTime) {\n try {\n Thread.sleep(1);\n } catch (InterruptedException ie) {\n ie.printStackTrace();\n Thread.currentThread().interrupt();\n }\n }\n }", "public void startUpdate(){ \n stimer.getTimer().scheduleAtFixedRate(new TimerTask()\n {\n @Override\n public void run(){updateShareRates();}\n }, 2000, 1000);\n }", "public boolean timeToRefresh() {\n if (tozAdCampaignRetrievalCounter == null) {\n return (true);\n }\n else if (tozAdCampaignRetrievalInterval != 0) {\n tozAdCampaignRetrievalCounter += getSleepInterval();\n\n AppyAdService.getInstance().debugOut(TAG,\"Ad Campaign refresh counter=\"+tozAdCampaignRetrievalCounter);\n if (tozAdCampaignRetrievalCounter >= tozAdCampaignRetrievalInterval) {\n tozAdCampaignRetrievalCounter = 0;\n return (true);\n }\n }\n return (false);\n }", "@Override\r\n public void update(long timePassed) {\n\r\n }", "@Test\n public void updateIncreasesTimer() {\n BotMemoryRecord record = new BotMemoryRecord();\n record.store(Point.pt(5, 5));\n\n record.update(100);\n\n assertThat(record.getTimeSinceLastSeen(), is(100L));\n }", "public boolean update() {\n\n if (clock == 1439) return false;\n ++clock;\n return true;\n }", "void update(int seconds);", "private void monitoringWithTenSecondsLate() throws InterruptedException {\n WatchKey watchKey = null;\n while (true) {\n try {\n //poll everything every 10 seconds\n watchKey = watchService.poll(10, TimeUnit.SECONDS);\n for (WatchEvent<?> watchEvent : watchKey.pollEvents()) {\n WatchEvent.Kind<?> kind = watchEvent.kind();\n System.out.println(\"Event occured for \" + watchEvent.context().toString() + \" \" + kind.toString());\n }\n } catch (InterruptedException ex) {\n Logger.getLogger(WatchServiceExample10SecondsLate.class.getName()).log(Level.SEVERE, null, ex);\n }\n //don't reset watch key for 10 seconds\n Thread.sleep(10000);\n boolean reset = watchKey.reset();\n if (!reset) {\n break;\n }\n }\n }", "public void update(int time);", "static public void checkUpdates( FactionsPlus instance ) {\n \t\tsynchronized ( FactionsPlusUpdate.class ) {\n \t\t\tif ( null == once ) {\n \t\t\t\tonce = new FactionsPlusUpdate();\n \t\t\t\t// assert null == updateThread;\n \t\t\t\t// updateThread = new Thread( once );\n \t\t\t\t// updateThread.setDaemon( false );\n \t\t\t}\n \t\t\t// else {\n \t\t\t// updateThread.stop();\n \t\t\t// }\n \t\t\t// updateThread.start();\n \t\t\t// }\n \t\t\t// if (taskId > 0) {//will never detect this, due to load/unload aka reinit of all fields\n \t\t\t// FactionsPlus.warn(\"The check-for-updates thread was already running from the last time the plugin was started!\");\n \t\t\t// }\n \t\t\t\n \t\t\t// try {\n \t\t\t// rl.tryLock( MAXWAITTIME, TimeUnit.SECONDS );\n \t\t\t// } catch ( InterruptedException e ) {\n \t\t\t// e.printStackTrace();\n \t\t\t// }\n \t\t\t// if ( rl.isLocked() ) {\n \t\t\t// try {\n \t\t\t// synchronized ( FactionsPlusUpdate.class ) {\n \t\t\ttaskId = Bukkit.getServer().getScheduler().scheduleAsyncDelayedTask( instance, once );\n \t\t\tif ( taskId < 0 ) {// not possible\n \t\t\t\tFactionsPlus.warn( \"Failed to start the check-for-updates thread!\" );\n \t\t\t}\n \t\t}\n \t\t// } finally {\n \t\t// rl.unlock();\n \t\t// }\n \t\t// }\n \t}", "@Override\n public void run() {\n while (true) {\n try {\n final long start = Core.currentTimeMillis();\n performUpdates();\n final long end = Core.currentTimeMillis();\n final long runtime = end - start;\n if (runtime < CONFIG_UPDATE_INTERVAL) {\n Thread.sleep(CONFIG_UPDATE_INTERVAL - runtime);\n }\n } catch (InterruptedException e) {\n //We expect that this may happen and ignore it.\n } catch (Exception e) {\n logger.error(MARKER, \"Unexpected error in ConfigUpdateThread\", e);\n }\n }\n }", "public void checkForUpdates(){\n if (mPrefs.getBoolean(PREF_ENABLED, true) && isStale()){\n// forceCheckForUpdates();\n }\n }", "public synchronized void startUpdates(){\n mStatusChecker.run();\n }", "void startUpdateTimer();", "private void checkForUpdates(){\n\t\tlong now = System.currentTimeMillis();\r\n\t\tif(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING) != null){\r\n\t\t\tlong lastUpdateTime = Long.parseLong(propertiesMemento.getProperty(PropertiesMemento.UPDATE_STRING));\r\n\t\t\tlong day = 86400000; // milli-seconds in a day\r\n\t\t\tif((now - lastUpdateTime) < day){\r\n\t\t\t\treturn; // Don't need to check as a check has been made in the last 24hrs. \r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tsetStatusBarText(\"Checking for updates...\"); \r\n\t\t\r\n HttpClient webConnection = new HttpClient();\r\n \t\tProperties webSideProps; \r\n \t\ttry{\r\n \t\t\twebSideProps = webConnection.getProperties(\"http://www.zygomeme.com/version_prop.txt\");\r\n \t\t}\r\n \t\tcatch(SocketTimeoutException ste){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + ste);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tcatch(UnknownHostException uhe){\r\n \t\t\tlogger.debug(\"Can't connect to internet:\" + uhe);\r\n \t\t\tsetStatusBarText(\"Unable to connect to internet to check for updates\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tif(webSideProps == null || webSideProps.isEmpty()){\r\n \t\t\treturn;\r\n \t\t}\r\n \t\t\r\n \t\tint latestVersionAvailable = Integer.parseInt(webSideProps.get(\"version_number\").toString());\r\n \t\tif(latestVersionAvailable > PropertiesMemento.APP_VERSION_NUMBER){\r\n \t\t\tsetStatusBarText(\"A new version of ZygoMeme York is now available. You can now upgrade to Version \" + webSideProps.getProperty(\"version_string\") + \" \" + \r\n \t\t\t\t\twebSideProps.get(\"stage\")); \r\n \t\t}\r\n \t\telse{\r\n \t\t\tsetStatusBarText(\"Update check has been made - application is up to date.\"); \r\n \t\t}\r\n\r\n \t\t// To get here the properties will have been updated\r\n\t\tpropertiesMemento.setProperty(PropertiesMemento.UPDATE_STRING, \"\" + now);\r\n\r\n\t\t// Save the properties straight away so that the new last \"check for update\" time is recorded\r\n\t\ttry {\r\n\t\t\tpropertiesMemento.saveProperties(this);\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.warn(\"Unable to save properties\");\r\n\t\t}\r\n\t}", "boolean hasTsUpdate();", "abstract protected void refresh(long time);", "boolean hasUpdate();", "boolean hasUpdate();", "private boolean checkForUpdates(boolean force) {\n long lastCheckMillis = mPrefs.getLong(PREF_LAST_CHECK_ATTEMPT_TIME_NAME, PREF_LAST_CHECK_ATTEMPT_TIME_DEFAULT);\n Logger.i(\"Last check time %s\", mSdfLog.format(new Date(lastCheckMillis)));\n if (force || (Math.abs(System.currentTimeMillis() - lastCheckMillis) > CHECK_THRESHOLD_MS)) {\n if (mOnWantUpdateCheckListener != null) {\n if (mOnWantUpdateCheckListener.onWantUpdateCheck(!force/*checkOnly*/)) {\n mPrefs.edit().putLong(PREF_LAST_CHECK_ATTEMPT_TIME_NAME, System.currentTimeMillis()).commit();\n return true;\n }\n }\n }\n return false;\n }", "public boolean update() {\n\t\ttimeElapsed++;\n\t\treturn false;\n\t}", "boolean hasUpdateTriggerTime();", "@Override\n public void testPeriodic() {\n\n LiveWindow.updateValues();\n }", "@Override\n\tpublic void update(long interval) {\n\n\t}", "@java.lang.Override\n public boolean hasUpdateTime() {\n return updateTime_ != null;\n }", "@Override\n\tpublic void run() {\n\t\tMyLog.Trace(\"UpdateThread:run:start.\");\n\t\twhile(true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(Config.update_time * 60 * 1000);\n\t\t\t\t//检查当前时间是否在交易时间内\n\t\t\t\t//交易时间段:9:30--11:30,1:00--3:00\n\t\t\t\t//排除周末\n\t\t\t\tDate time = new Date();\n\t\t\t\tCalendar c = Calendar.getInstance();\n\t\t\t\tc.setTime(time);\n\t\t\t\tif(Calendar.SATURDAY == c.get(Calendar.DAY_OF_WEEK) || \n\t\t\t\t\t\tCalendar.SUNDAY == c.get(Calendar.DAY_OF_WEEK) ) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tint hour = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\tint minute = c.get(Calendar.MINUTE);\n\t\t\t\tif( (hour >= 9 && hour <= 11)) {\n\t\t\t\t\tif((hour == 9 && minute < 30) || (hour == 11 && minute > 30)) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}else if(hour < 13 || hour > 15) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\tMyLog.Trace(\"UpdateThread:run:start update.\");\n\t\t\t\tStockCache.update(StockCache.UPDATE_TYPE_HQ);\n\t\t\t\t\n\t\t\t\t//提示更新\n\t\t\t\tsynchronized (lock) {\n\t\t\t\t\tMyLog.Trace(\"UpdateThread:run:notify lock.\");\n\t\t\t\t\tlock.notify();\n\t\t\t\t}\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tMyLog.Error(\"UpdateThread:run:Exception \" + e.toString());\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "private synchronized void scheduleGameUpdate(int updateSpeedInMilliseconds) {\n updateTask.cancel();\n // Create the update task which will simply call updateData\n updateTask = new TimerTask() {\n @Override\n public void run() {\n updateData();\n }\n };\n updateTimer.scheduleAtFixedRate(updateTask, 0,\n updateSpeedInMilliseconds);\n }", "protected boolean cyclicUpdate_EM() {\n return mUpdate <= -1000;//set to false to disable cyclic update\n //default is once per 50s; mUpdate is decremented every tick\n }", "public void update()\n\t{\n\t\tmyTimer = new Timer(10, new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tremove(countDown);\n\t\t\t\ttimeElapsed = timeElapsed + 0.01;\n\t\t\t\tif(completed == myTokens.size())\n\t\t\t\t{\n\t\t\t\t\tmyTimer.stop();\n\t\t\t\t\tcountDown.setText(\"Thank you for playing!\");\n\t\t\t\t\tadd(countDown);\n\t\t\t\t}\n\t\t\t\ttime.setText(\"time: \" + String.format(\"%.2f\", timeElapsed));\n\t\t\t\tscore.setText(\"score: \" + userScore);\n\t\t\t\trepaint();\n\t\t\t}\n\t\t});\n\t\tmyTimer.setInitialDelay(5000);\n\t\tmyTimer.start();\n\t}", "public boolean updateRequired() {\r\n\r\n // Run at 10 frames per second\r\n final long TARGET_FPS = 10;\r\n // There are 1000 milliseconds in a second\r\n final long MILLIS_PER_SECOND = 1000;\r\n\r\n // Are we due to update the frame\r\n if (mNextFrameTime <= System.currentTimeMillis()) {\r\n // Tenth of a second has passed\r\n\r\n // Setup when the next update will be triggered\r\n mNextFrameTime = System.currentTimeMillis()\r\n + MILLIS_PER_SECOND / TARGET_FPS;\r\n\r\n // Return true so that the update and draw\r\n // methods are executed\r\n return true;\r\n }\r\n\r\n return false;\r\n }", "private boolean m50966f() {\n int i;\n SharedPreferences sharedPreferences = C8665cc.this.f36887b.getSharedPreferences(\"log.timestamp\", 0);\n String string = sharedPreferences.getString(\"log.requst\", \"\");\n long currentTimeMillis = System.currentTimeMillis();\n try {\n JSONObject jSONObject = new JSONObject(string);\n currentTimeMillis = jSONObject.getLong(\"time\");\n i = jSONObject.getInt(\"times\");\n } catch (JSONException unused) {\n i = 0;\n }\n if (System.currentTimeMillis() - currentTimeMillis >= LogBuilder.MAX_INTERVAL) {\n currentTimeMillis = System.currentTimeMillis();\n i = 0;\n } else if (i > 10) {\n return false;\n }\n JSONObject jSONObject2 = new JSONObject();\n try {\n jSONObject2.put(\"time\", currentTimeMillis);\n jSONObject2.put(\"times\", i + 1);\n sharedPreferences.edit().putString(\"log.requst\", jSONObject2.toString()).commit();\n } catch (JSONException e) {\n AbstractC8508c.m50239c(\"JSONException on put \" + e.getMessage());\n }\n return true;\n }", "protected void runEachSecond() {\n \n }", "public void teleopPeriodic() {\n Scheduler.getInstance().run();\n drive.updateTeleop();\n sensor.updateTeleop();\n }", "@Override\r\n\tpublic void run() {\n\t\tstartFlag = true;\r\n\t\twhile (startFlag) {\r\n \t\ttry {\r\n \t\t\tThread.sleep(updateRate);\r\n \t\t} catch (InterruptedException e) {\r\n \t\t\tSystem.out.println(e.getMessage());\r\n \t\t}catch (RuntimeException e) {\r\n\t\t\t\t//System.out.print(e.getMessage());\r\n\t\t\t}\r\n \t} \t\t\r\n\t}", "private void UI_RefreshSensorData ()\r\n\t{\r\n\t\t\t\t\r\n\t\tlong now = System.currentTimeMillis();\r\n\t\t\r\n\t\tif (now-ts_last_rate_calc>1000)\r\n\t\t{\r\n\t\t\tsensor_event_rate=last_nAccVal/((now-ts_last_rate_calc)/1000.0);\r\n\t\t\tts_last_rate_calc=now;\r\n\t\t}\r\n\t}", "boolean needUpdate();", "private void updateInterval() {\n this.mNetworkUpdateInterval = Settings.System.getInt(this.mContext.getContentResolver(), \"status_bar_network_speed_interval\", 4000);\n }", "public void requestUpdate(){\n shouldUpdate = true;\n }", "@Override\n public void run() {\n for (ListIterator<BtDeviceObject> btDeviceListIterator = mBtDeviceObjectList.listIterator(); btDeviceListIterator.hasNext();) {\n BtDeviceObject btDeviceObject = btDeviceListIterator.next();\n if(new Date().getTime() - btDeviceObject.timeSinceLastUpdate > 2000){\n btDeviceListIterator.remove();\n mBtDeviceAddress.remove(btDeviceObject.bluetoothDevice.getMacAddress());\n mDeviceListAdapter.notifyDataSetChanged();\n }\n }\n\n mCheckIfBtDeviceTimerExpiredHandler.postDelayed(this, 500);\n }", "public abstract void setSecondsPerUpdate(float secs);", "@Override\n public void run() {\n while (running) {\n try {\n if ((System.currentTimeMillis() - heartbeat) > 100 * threadWaiting) {\n if (cache.size() > 0) {\n logger.info(\"Long time no data entry, save the buffer(size:{}) to the database \", cache.size());\n flush();\n }\n }\n TimeUnit.MILLISECONDS.sleep(100 * threadWaiting);\n } catch (InterruptedException e) {\n logger.error(\" InterruptedException error :{}\", e);\n }\n }\n }", "public default boolean update(float dt) {\n return true;\n }", "protected void runEach10Minutes() {\n try {\n saveHistoryData();\n if (isEnabledScheduler()) {\n boolean action = getLightSchedule().getCurrentSchedule();\n if (action) {\n if (!currentState) switchOn();\n } else {\n if (currentState) switchOff();\n }\n }\n } catch (RemoteHomeManagerException e) {\n RemoteHomeManager.log.error(44,e);\n } catch (RemoteHomeConnectionException e) {\n RemoteHomeManager.log.error(45,e);\n }\n }", "public void checkRegScore(){\n currentSecond = timeCounter / 60;\n currentMinute = timeElapsed;\n }", "boolean doUpdate(int index) {\n return (index >= updateStart) && (index <= updateEnd);\n }", "public void teleopPeriodic() {\r\n Scheduler.getInstance().run();\r\n OI.poll();\r\n }", "private void handleTimeUpdate() {\n Assert.isMainThread();\n Log.d(\"KeyguardUpdateMonitor\", \"handleTimeUpdate\");\n for (int i = 0; i < this.mCallbacks.size(); i++) {\n KeyguardUpdateMonitorCallback keyguardUpdateMonitorCallback = this.mCallbacks.get(i).get();\n if (keyguardUpdateMonitorCallback != null) {\n keyguardUpdateMonitorCallback.onTimeChanged();\n }\n }\n }", "private void updateIfStale() {\n if (DateTimeUtils.currentTimeMillis() - globalLastDrainMillis >= maxStaleMillis) {\n synchronized (counterShards) {\n if (DateTimeUtils.currentTimeMillis() - globalLastDrainMillis >= maxStaleMillis) {\n drainThreadToShared();\n globalLastDrainMillis = DateTimeUtils.currentTimeMillis();\n }\n }\n }\n }", "@Override\n\tpublic void update12EverySec() {\n\t\t\n\t}", "@Override\n public void periodic() {\n UpdateDashboard();\n }", "private void startPinging() {\n Bukkit.getScheduler().runTaskTimerAsynchronously(plugin, new Runnable() {\n @Override\n public void run() {\n HashSet<Connection> connectionsSet = new HashSet<>(connections); //Create new hashset of connections\n for (Connection connection : connectionsSet) { //Loop thru connections\n boolean stillInConnections = false;\n synchronized (connections) { //Check if connection still in the array\n if (connections.contains(connection)) {\n stillInConnections = true;\n }\n }\n if (stillInConnections) { //If still in array\n try { //Try to ping\n connection.isValid(5);\n } catch (SQLException e) { //If not valid anymore\n synchronized (connections) { //Remove from array\n connections.remove(connection);\n }\n closeConnection(connection); //Close the connection\n }\n }\n }\n }\n }, 17000, 17000);\n }", "public boolean isUpdateRequired(int maximumUpdateTime)\n\t{\n\t\t\n\t\tboolean needToUpdate = false;\n\t\t\n\t\tfor (Journey j : journeyManager.journeys())\n\t\t{\n\t\t\tneedToUpdate |= (j.remainingTime() == 0);\n\t\t}\n\t\t\n\t\tDuration diff = new Duration(lastUpdated, new DateTime());\n\t\tLog.i(\"Updater\", Long.toString(diff.getStandardMinutes()));\n\t\t\n\t\tneedToUpdate |= (diff.getStandardMinutes() > maximumUpdateTime);\n\t\t\n\t\treturn needToUpdate;\n\t}", "public void run()\n\t\t\t{\n\t\t\t\tlong waitTime = 25;\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < 5; i++)\n\t\t\t\t{\n\t\t\t\t\tboolean auditSucceeded = false;\n\t\t\t\t\t\n\t\t\t\t\ttry\n\t\t\t\t\t{\n\t\t\t\t\t\tauditSucceeded = doAuditStellentUpdate(userId, gfid, recordId, updateKind);\n\t\t\t\t\t} catch (SQLException e)\n\t\t\t\t\t{\n\t\t\t\t\t\tauditSucceeded = false;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif (auditSucceeded)\n\t\t\t\t\t\treturn;\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//Wait progressively longer, up to three times...\n\t\t\t\t\t\t\tThread.sleep(waitTime);\n\t\t\t\t\t\t\twaitTime = 2*waitTime;\n\t\t\t\t\t\t} catch(InterruptedException ie)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//do nothing... just continue...\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\t\n\t\t\t}", "public void run() {\n\t\tDate curTime;\n\t\twhile(true) {\n\t\t\tcurTime = new Date();\n\t\t\t\n\t\t\t//System.out.println(\"currentTime: \"+ curTime.getTime() +\" prevTime: \"+ _prevPingRequestTime.getTime() +\" diff: \" + (curTime.getTime() - _prevPingRequestTime.getTime()) +\" interval: \"+ _scsynthPingInterval);\n\n\t\t\t//if the previous status request is still pending...\n\t\t\tif (_serverLive && (_prevPingRequestTime.getTime() > _prevPingResponseTime.getTime())) {\n\t\t\t\t//We've not yet heard back from the previous status request.\n\t\t\t\t//Have we timed out?\n\t\t\t\tif (curTime.getTime() - _prevPingRequestTime.getTime() > _serverResponseTimeout) {\n\t\t\t\t\t//We've timed out on the previous status request.\n\t\t\t\t\tSystem.out.println(\"Timed out on previous status request.\");\n\n\t\t\t\t\tif (_notifyListener != null) {\n\t\t\t\t\t\t_notifyListener.receiveNotification_ServerStopped();\n\t\t\t\t\t}\n\t\t\t\t\tif (_controlPanel != null && _controlPanel._statsDisplay != null) {\n\t\t\t\t\t\t_controlPanel._statsDisplay.receiveNotification_ServerStopped();\n\t\t\t\t\t\t_scsclogger.receiveNotification_ServerStopped();\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t_serverLive = false;\n\t\t\t\t\t_serverBooted = false;\n\t\t\t\t}\n\t\t\t\t//else we just keep waiting for a response or a timeout\n\t\t\t}\n\t\t\t//the previous status request is NOT still pending. Is it time to send another?\n\t\t\telse if (curTime.getTime() - _prevPingRequestTime.getTime() > _scsynthPingInterval) {\n\t\t\t\t//It's time to send another status request.\n\t\t\t\t\n\t\t\t\t//generally, ping with a /status message.\n\t\t\t\t//but, if we're live but not booted, query node 1 (the sign that init completed)\n\t\t\t\tif (_serverLive && !_serverBooted) { \n\t\t\t\t\tsendMessage(\"/notify\", new Object[] { 1 });\n\t\t\t\t\tsendMessage(\"/n_query\", new Object[]{_motherGroupID});\n\t\t\t\t\t//System.out.println(\"Querying SCSC mother node\");\n\t\t\t\t\t//debugPrintln(\"Querying SCSC mother node\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\t//if the server's booted, request a status update.\n\t\t\t\t\tsendMessage(\"/status\"); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t_prevPingRequestTime = new Date();\n\t\t\t}\n\t\t\t//it's not time to send, and we're not watching \n\t\t\t//for a reply, so go to sleep until it's time to ping again\n\t\t\telse {\n\t\t\t\tlong sleeptime = Math.max(_scsynthPingInterval - (curTime.getTime() - _prevPingRequestTime.getTime()), 0);\n\t\t\t\t//System.out.println(\"sleep \" + sleeptime);\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(sleeptime);\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t//NOTE this thread shouldn't get interrupted.\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "public int getCheckInterval();", "private synchronized void onUpdate() {\n if (pollingJob == null || pollingJob.isCancelled()) {\n int refresh;\n\n try {\n refresh = getConfig().as(OpenSprinklerConfig.class).refresh;\n } catch (Exception exp) {\n refresh = this.refreshInterval;\n }\n\n pollingJob = scheduler.scheduleWithFixedDelay(refreshService, DEFAULT_WAIT_BEFORE_INITIAL_REFRESH, refresh,\n TimeUnit.SECONDS);\n }\n }", "public void teleopPeriodic() {\n driverScreen.updateLCD();\n }", "public void enableUpdate() {\n\t\tupdate = true;\n\t}", "@Scheduled(fixedRate = 60_000)\n public void checkEventTime() {\n isTimeService.findAll().forEach(event -> {\n if (event.getSchedulledTime().isBefore(LocalDateTime.now())) {\n this.producer.sendReachTimeMessage(new IsTime(event.getMessageId()));\n this.isTimeService.deleteById(event.getSchedulledId());\n }\n });\n// log.info(\"Schedulled time check.\");\n }", "public synchronized void updateGameDataAtSlowRate() {\n scheduleGameUpdate(slowUpdateSpeed);\n }", "private void checkRequests()\n\t{\n\t\t// to be honest I don't see why this can't be 5 seconds, but I'm trying 1 second\n\t\t// now as the existing 0.1 second is crazy given we're checking for events that occur\n\t\t// at 60+ second intervals\n\n\t\tif ( mainloop_loop_count % MAINLOOP_ONE_SECOND_INTERVAL != 0 ){\n\n\t\t\treturn;\n\t\t}\n\n\t\tfinal long now =SystemTime.getCurrentTime();\n\n\t\t//for every connection\n\t\tfinal ArrayList peer_transports = peer_transports_cow;\n\t\tfor (int i =peer_transports.size() -1; i >=0 ; i--)\n\t\t{\n\t\t\tfinal PEPeerTransport pc =(PEPeerTransport)peer_transports.get(i);\n\t\t\tif (pc.getPeerState() ==PEPeer.TRANSFERING)\n\t\t\t{\n\t\t\t\tfinal List expired = pc.getExpiredRequests();\n\t\t\t\tif (expired !=null &&expired.size() >0)\n\t\t\t\t{ // now we know there's a request that's > 60 seconds old\n\t\t\t\t\tfinal boolean isSeed =pc.isSeed();\n\t\t\t\t\t// snub peers that haven't sent any good data for a minute\n\t\t\t\t\tfinal long timeSinceGoodData =pc.getTimeSinceGoodDataReceived();\n\t\t\t\t\tif (timeSinceGoodData <0 ||timeSinceGoodData >60 *1000)\n\t\t\t\t\t\tpc.setSnubbed(true);\n\n\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\tDiskManagerReadRequest request =(DiskManagerReadRequest) expired.get(0);\n\n\t\t\t\t\tfinal long timeSinceData =pc.getTimeSinceLastDataMessageReceived();\n\t\t\t\t\tfinal boolean noData =(timeSinceData <0) ||timeSinceData >(1000 *(isSeed ?120 :60));\n\t\t\t\t\tfinal long timeSinceOldestRequest = now - request.getTimeCreated(now);\n\n\n\t\t\t\t\t//for every expired request \n\t\t\t\t\tfor (int j = (timeSinceOldestRequest >120 *1000 && noData) ? 0 : 1; j < expired.size(); j++)\n\t\t\t\t\t{\n\t\t\t\t\t\t//get the request object\n\t\t\t\t\t\trequest =(DiskManagerReadRequest) expired.get(j);\n\t\t\t\t\t\t//Only cancel first request if more than 2 mins have passed\n\t\t\t\t\t\tpc.sendCancel(request);\t\t\t\t//cancel the request object\n\t\t\t\t\t\t//get the piece number\n\t\t\t\t\t\tfinal int pieceNumber = request.getPieceNumber();\n\t\t\t\t\t\tPEPiece\tpe_piece = pePieces[pieceNumber];\n\t\t\t\t\t\t//unmark the request on the block\n\t\t\t\t\t\tif ( pe_piece != null )\n\t\t\t\t\t\t\tpe_piece.clearRequested(request.getOffset() /DiskManager.BLOCK_SIZE);\n\t\t\t\t\t\t// remove piece if empty so peers can choose something else, except in end game\n\t\t\t\t\t\tif (!piecePicker.isInEndGameMode())\n\t\t\t\t\t\t\tcheckEmptyPiece(pieceNumber);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t}", "public void update() {\n\t\tthis.tickCounter++;\n\t\tif(tickCounter == 10) {\n\t\t\tthis.lifetime--;\n\t\t\tif(this.lifetime == 0) {\n\t\t\t\tthis.remove();\n\t\t\t}\n\t\t\tthis.tickCounter = 0;\n\t\t}\n\t}", "private void doSomeThingRepeat() {\n\t\t\n\t\ttimer.scheduleAtFixedRate(new TimerTask() {\n\t\t\tint mHourNow = 0, mMinuteNow = 0;\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\t\tmHourNow = c.get(Calendar.HOUR_OF_DAY);\n\t\t\t\tmMinuteNow= c.get(Calendar.MINUTE);\n\t\t\t\ttime = prefs.getString(\"time\", \"\");\n\t\t\t\tString mHour = time.substring(0, 2);\n\t\t\t\tString mMinute = time.substring(3, 5) ;\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tint mh = Integer.parseInt(mHour);\n\t\t\t\tint mm = Integer.parseInt(mMinute);\n\t\t\t\t\t\n\t\t\t\tif (mHourNow == mh && mMinuteNow == mm) {\n\t\t\t\t\tplayMediaAlarm();\n\t\t\t\t}\n\t\t\t\t\tLog.d(\"Myservice-doSomeThingRepeat\", mHourNow +\"h\"+ mMinuteNow + \"&&\" +mHour +\"h\" + mMinute);\n\t\t\t\t\n\t\t\t}\n\t\t}, 0, UPDATE);\n\t}", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "public void run() {\r\n\t\tboolean repeat = true;\r\n\t\tint count = 0;\r\n\t\twhile(repeat){\r\n\t\t\tcount ++;\r\n\t\t\t//updates currency rates every hour (count>60)\r\n\t\t\tif(count > 60){\r\n\t\t\t\tcurrencies.updateRates();\r\n\t\t\t\tcount = 1;\r\n\t\t\t}\r\n\t\t\tprintStatus();\r\n\t\t\ttry{\r\n\t\t\t\tThread.sleep(60000);\r\n\t\t\t}catch(InterruptedException ex){\r\n\t\t\t\trepeat = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void checkVotes() {\r\n\t\tnew Timer().scheduleAtFixedRate(new TimerTask() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tURLConnection connection = new URL(\"https://glowning.dev/discordminer/webhook/votes.txt\").openConnection();\r\n\t\t\t\t\tconnection.setRequestProperty(\"User-Agent\", \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.95 Safari/537.11\");\r\n\t\t\t\t\tconnection.connect();\r\n\r\n\t\t\t\t\tBufferedReader r = new BufferedReader(new InputStreamReader(connection.getInputStream(), Charset.forName(\"UTF-8\")));\r\n\r\n\t\t\t\t\tString line = \"\";\r\n\t\t\t\t\twhile ((line = r.readLine()) != null) {\r\n\t\t\t\t\t\tSystem.out.println(line);\r\n\t\t\t\t\t\tUser u = getShards().getUserById(line);\r\n\t\t\t\t\t\tif (u != null) {\r\n\t\t\t\t\t\t\tint crate;\r\n\r\n\t\t\t\t\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t\t\t\t\t\tcal.setTimeInMillis(System.currentTimeMillis());\r\n\t\t\t\t\t\t\tcal.setTimeZone(TimeZone.getTimeZone(\"UTC\"));\r\n\r\n\t\t\t\t\t\t\tif (cal.get(Calendar.DAY_OF_WEEK) == Calendar.FRIDAY || cal.get(Calendar.DAY_OF_WEEK) == Calendar.SATURDAY || cal.get(Calendar.DAY_OF_WEEK) == Calendar.SUNDAY) {\r\n\t\t\t\t\t\t\t\tcrate = 2;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\tcrate = 1;\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tMiner miner = new Miner(u.getIdLong());\r\n\t\t\t\t\t\t\tif (miner.exists()) {\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Crates given to \" + u.getName() + \" (\" + u.getIdLong() + \")\");\r\n\t\t\t\t\t\t\t\tu.openPrivateChannel().complete().sendMessage(\"Hey! Thank you for your vote.\\nAs a reward, I give you **\" + crate + \" crate\" + (crate == 2 ? \"s\" : \"\") + \"**.\").queue();\r\n\r\n\t\t\t\t\t\t\t\tminer.addCrates(\"vote\", crate);\r\n\t\t\t\t\t\t\t\tminer.getStats().put(\"votes\", miner.getStats().getInt(\"votes\") + 1);\r\n\t\t\t\t\t\t\t\tminer.update();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\tHttpClient httpclient = HttpClients.createDefault();\r\n\t\t\t\t\t\tHttpPost httppost = new HttpPost(\"https://glowning.dev/discordminer/webhook/discordbots.php\");\r\n\t\t\t\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>(2);\r\n\t\t\t\t\t\tparams.add(new BasicNameValuePair(\"Authorization\", \"DiscordMiner\"));\r\n\t\t\t\t\t\tparams.add(new BasicNameValuePair(\"user\", line));\r\n\t\t\t\t\t\thttppost.setEntity(new UrlEncodedFormEntity(params, \"UTF-8\"));\r\n\t\t\t\t\t\thttpclient.execute(httppost);\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\r\n\t\t\t}\r\n\t\t}, 0, 1000);\r\n\t}", "private void startPeriodicUpdates() {\n\n\t\tmLocationClient.requestLocationUpdates(mLocationRequest, this);\n\t\tmConnectionState.setText(R.string.location_requested);\n\t}", "@Override\n\tpublic void teleopPeriodic() {\n\t\tOI.refreshAll();\n\t\tScheduler.getInstance().run();\n\t\tlog();\n\t}", "private void onPingingTimerTick()\r\n {\r\n EneterTrace aTrace = EneterTrace.entering();\r\n try\r\n {\r\n try\r\n {\r\n myConnectionManipulatorLock.lock();\r\n try\r\n {\r\n // Send the ping message.\r\n myUnderlyingOutputChannel.sendMessage(myPreserializedPingMessage);\r\n\r\n // Schedule the next ping.\r\n myPingingTimer.change(myPingFrequency);\r\n }\r\n finally\r\n {\r\n myConnectionManipulatorLock.unlock();\r\n }\r\n }\r\n catch (Exception err)\r\n {\r\n // The sending of the ping message failed - the connection is broken.\r\n cleanAfterConnection(true, true);\r\n }\r\n }\r\n finally\r\n {\r\n EneterTrace.leaving(aTrace);\r\n }\r\n }", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "private void handleUpdateTimeMessage() {\n invalidate();\n if (shouldTimerBeRunning()) {\n long timeMs = System.currentTimeMillis();\n long delayMs = INTERACTIVE_UPDATE_RATE_MS\n - (timeMs % INTERACTIVE_UPDATE_RATE_MS);\n mUpdateTimeHandler.sendEmptyMessageDelayed(MSG_UPDATE_TIME, delayMs);\n }\n }", "public void testPeriodic() {\n\t\tLiveWindow.run();\n\t}", "public synchronized void updateGameDataAtFastRate() {\n scheduleGameUpdate(fastUpdateSpeed);\n }", "long getUpdated();", "private void loop() {\n mStateTimeTextView.setText(\"\" + getStateTimeMs() / 1000);\n\n switch (mState) {\n case SEEKING_HOME:\n // Really this is the area to check your GPS and heading and drive the wheels.\n\n if (getStateTimeMs() > 6000) {\n setState(State.READY);\n }\n break;\n default:\n // Catch for all the states that you know do nothing\n break;\n }\n\n }", "public boolean update(float interval){\n\t\t\n\t\t// do not update zero timer\n\t\tif(min <= 0 && (int)sec <= 0)\treturn true;\n\t\t\n\t\t// update game timer\n\t\tsec -= interval;\n\t\tif(sec < 0.0f){\n\t\t\t--min;\n\t\t\tsec += 60.0f;\n\t\t}\n\t\t\n\t\t// update total timer\n\t\tsecTotal += interval;\n\t\tif(secTotal >= 60.0f){\n\t\t\t++minTotal;\n\t\t\tsecTotal -= 60.0f;\n\t\t}\n\t\t\n\t\t// update total time\n\t\ttimeTotal += interval;\n\t\t\n\t\t// update score history\n\t\tint index = (int)secTotal;\n\t\tif(index >= 0 && index <= 59)\tscoreHistory[(int)secTotal] = score;\n\t\t//Log.d(\"rate\", \"write: \" + Integer.toString((int)secTotal));\n\t\t\n\t\t// update FPS\n\t\tcalculateFPS();\n\t\t\n\t\t// return false if timer fired\n\t\treturn min < 0;\n\t}", "public void update() {\n \t\tissueHandler.checkAllIssues();\n \t\tlastUpdate = System.currentTimeMillis();\n \t}", "boolean update();", "long getTsUpdate();", "public int getUpdateInterval()\n {\n return updateInterval;\n }", "public void runLastTime(){\n\t\t/*try {\n\t\t\tlong timeDiff = 100;\n\t\t\t\n\t\t\tFeatureListController controller = new FeatureListController(timeDiff);\n\t\t\tTestSensorListener listener1 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener1);\n\t\t\tTestSensorListener listener2 = new TestSensorListener();\n\t\t\tcontroller.registerSensorListener(listener2);\n\t\t\t\n\t\t\t\n\t\t\t//20 samples in total\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tThread.sleep(10);\n\t\t\tcontroller.addFeatureList(listener2, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\tcontroller.addFeatureList(listener1, new FeatureList(new double[10], new Timestamp(new Date().getTime())));\n\t\t\t\n\t\t\t\n\t\t\tfor(int i=0;i<2;++i){\n\t\t\t\tSensorListener listener;\n\t\t\t\tif(i==0)\n\t\t\t\t\tlistener = listener1;\n\t\t\t\telse \n\t\t\t\t\tlistener = listener2;\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"LISTENER\" + (i+1));\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Now:\" + new Date().getTime());\n\t\t\t\tList<FeatureList> featureLists = controller.getLastFeatureListsInMilliseconds(listener, -1);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with milliseconds method\");\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"All feature lists with n method\");\n\t\t\t\tList<FeatureList> featureLists2 = controller.getLastNFeatureList(listener, -1);\n\t\t\t\tfor(FeatureList l : featureLists)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last milliseconds \" + 40);\n\t\t\t\tList<FeatureList> featureLists3 = controller.getLastFeatureListsInMilliseconds(listener, 40);\n\t\t\t\tfor(FeatureList l : featureLists3)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Last N Feature Lists \" + 6);\n\t\t\t\tList<FeatureList> featureLists4 = controller.getLastNFeatureList(listener, 6);\n\t\t\t\tfor(FeatureList l : featureLists4)\n\t\t\t\t\tSystem.out.println(l.getTimestamp().getTime());\n\t\t\t}\n\t\t\t\n\n\t\t} catch (InterruptedException ex) {\n\t\t\tSystem.out.println(ex.getLocalizedMessage());\n//Logger.getLogger(CaseFeatureListController.class.getName()).log(Level.SEVERE, new double[10], ex);\n\t\t}*/\n\t\t\n\t}", "private boolean checkTimeStamp(File file) {\n // uses sharedpreferences\n return (lastUpdate < file.getModifiedDate().getValue());\n }" ]
[ "0.6842927", "0.6833404", "0.6773372", "0.6773372", "0.6773372", "0.6704941", "0.6663575", "0.65265805", "0.6509081", "0.6474917", "0.6375316", "0.6353642", "0.63329256", "0.63325524", "0.63133466", "0.63120335", "0.62863606", "0.6252479", "0.62472624", "0.6244817", "0.6226201", "0.6216781", "0.61847675", "0.6157658", "0.6137267", "0.6132874", "0.61236894", "0.6112244", "0.60501546", "0.6046507", "0.5996495", "0.59952503", "0.59857476", "0.5964342", "0.5964342", "0.59490734", "0.594716", "0.5937782", "0.5932405", "0.590958", "0.58916867", "0.58890927", "0.588629", "0.58771735", "0.5823549", "0.5814362", "0.5804702", "0.5796487", "0.5752497", "0.57515264", "0.5739969", "0.57171816", "0.5714655", "0.5710968", "0.57108885", "0.57055324", "0.56966555", "0.56691587", "0.5665103", "0.566283", "0.56599164", "0.5659048", "0.5651536", "0.5612876", "0.5611789", "0.5606409", "0.5605438", "0.5604039", "0.5602386", "0.5602161", "0.560106", "0.5597363", "0.5595987", "0.5594436", "0.5593441", "0.5578681", "0.5578153", "0.55765533", "0.55764985", "0.55693376", "0.5569196", "0.5564551", "0.55614185", "0.5555513", "0.55530113", "0.55498576", "0.55498576", "0.55498576", "0.55498576", "0.55498576", "0.5545452", "0.5542365", "0.553522", "0.55322623", "0.55277747", "0.55272126", "0.55189157", "0.551541", "0.5483634", "0.5481426", "0.54707706" ]
0.0
-1
Created by Asomir on 01.10.2016.
public interface Action { //придумываем интерфейс для описания действий, присущих роботу Action dogo(MapOfAction mapOfAction); //объявляем функцию для действий, которой передаём карту }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void mo38117a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "private void poetries() {\n\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void init() {\n }", "@Override\n void init() {\n }", "private void strin() {\n\n\t}", "protected boolean func_70814_o() { return true; }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\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 protected void initialize() \n {\n \n }", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n public void init() {}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void memoria() {\n \n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "private void kk12() {\n\n\t}", "protected MetadataUGWD() {/* intentionally empty block */}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo6081a() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "Petunia() {\r\n\t\t}", "private void m50366E() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo55254a() {\n }", "protected void mo6255a() {\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void init() {\n\t\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}" ]
[ "0.59450966", "0.58269155", "0.58062005", "0.5741484", "0.5696639", "0.5696639", "0.5632754", "0.56316566", "0.5624304", "0.56053853", "0.5598542", "0.55898505", "0.5569074", "0.5549824", "0.5539326", "0.55051357", "0.5497738", "0.54796267", "0.54733634", "0.54699564", "0.54656506", "0.54449403", "0.54349947", "0.54339325", "0.54291177", "0.54291177", "0.54291177", "0.54291177", "0.54291177", "0.5424338", "0.5406151", "0.54033244", "0.5401468", "0.5401468", "0.5399218", "0.5395788", "0.53872216", "0.53780717", "0.5374201", "0.53647393", "0.53647393", "0.536335", "0.53570783", "0.53570783", "0.53570783", "0.53570783", "0.53570783", "0.53570783", "0.53531307", "0.5344314", "0.5341543", "0.5337968", "0.5326387", "0.53255683", "0.5324918", "0.5324918", "0.5324918", "0.5324918", "0.5324918", "0.5324918", "0.5324918", "0.53208303", "0.5320236", "0.5320236", "0.5320236", "0.5318557", "0.5317071", "0.53095716", "0.53095716", "0.53095716", "0.5303742", "0.5301443", "0.5300994", "0.52976704", "0.52974814", "0.5295533", "0.52910274", "0.52791166", "0.52791166", "0.52755326", "0.52755326", "0.52755326", "0.52716434", "0.5254455", "0.52530557", "0.52477485", "0.52455646", "0.523456", "0.5233222", "0.52325314", "0.52208394", "0.52124834", "0.51947206", "0.5182425", "0.51782876", "0.51766735", "0.51740205", "0.5169461", "0.5165451", "0.516365", "0.5163593" ]
0.0
-1
Returns the default dialog title for the case when an action is disabled by policy on a managed device.
String getDefaultDisabledByPolicyTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDefaultDisabledByPolicyContent();", "String getDisabledByPolicyTitleForFinancedDevice();", "PreferenceDialogTitleAttribute getDialogTitle();", "String getDisallowAdjustVolumeTitle();", "@Override\n public CharSequence onDisableRequested(Context context, Intent intent) {\n return context.getString(R.string.disable_warning);\n }", "String getDisableScreenCaptureTitle();", "String getDisableCameraTitle();", "public String getDialogTitle(){\n return getField().getDialogTitle();\n }", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "String getDisallowSmsTitle();", "String getDisabledBiometricsParentConsentTitle();", "@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }", "public java.lang.String getDefault_title() {\n return default_title;\n }", "String getDefaultPreference(String preferenceName) throws OntimizeJEERuntimeException;", "public String disabledReasonMessage() {\n return this.disabledReasonMessage;\n }", "String getDisallowOutgoingCallsTitle();", "protected String getHelpText() {\n return \"\";\n }", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "@Override\r\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n\r\n mode.setTitle(getString(R.string.tasks_selected, selectedCount));\r\n return false;\r\n }", "public static java.lang.String getDefaultSharedPreferencesName(android.content.Context context) { throw new RuntimeException(\"Stub!\"); }", "@Override\n public String getTitle() {\n return string(\"sd-l-toolbar\");\n }", "String getSuspendPackagesTitle();", "@Override\r\n public SystemAction getDefaultAction() {\n return SystemAction.get(OpenAction.class);\r\n }", "public String getDefaultAppearanceString()\r\n {\r\n return ((COSString)option.getObject( 1 ) ).getString();\r\n }", "public String getTitle() {\n Ensighten.evaluateEvent(this, \"getTitle\", null);\n return getString(C2658R.string.lite_title_policy_updates);\n }", "public String determineAccessibilityPaneTitle() {\n C0940QS qs = this.mQs;\n if (qs != null && qs.isCustomizing()) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings_edit);\n }\n if (this.mQsExpansionHeight != 0.0f && this.mQsFullyExpanded) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings);\n }\n if (this.mBarState == 1) {\n return this.mResources.getString(C2017R$string.accessibility_desc_lock_screen);\n }\n return this.mResources.getString(C2017R$string.accessibility_desc_notification_shade);\n }", "protected String getDefaultText() {\n\t\treturn DEFAULT_TEXT;\n\t}", "protected String getWizardWindowTitle() {\n\t\treturn DropWizardMessages.Wizard_Window_Title;\n\t}", "public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }", "@Override\n public String getTitleString()\n {\n int capsState;\n\n int state = softBoardData.layoutStates.metaStates[LayoutStates.META_CAPS].getState();\n if ( state == CapsState.META_OFF )\n {\n capsState = 0;\n }\n else if ( state == CapsState.META_LOCK )\n {\n capsState = 2;\n }\n else if ( state == CapsState.AUTOCAPS_ON && !softBoardData.autoFuncEnabled )\n {\n capsState = 0;\n }\n else // state == IN_TOUCH || META_ON || AUTOCAPS_ON with enabled autoFunc\n {\n capsState = stringCaps ? 2 : 1;\n }\n\n switch ( capsState )\n {\n case 0:\n return getString();\n\n case 1:\n return StringUtils.toUpperOnlyFirst( getString(), softBoardData.locale );\n\n default: // case 2:\n return getString().toUpperCase( softBoardData.locale );\n }\n\n }", "public String getName() {\n return I18nUtil.getBundle().getString(\"CTL_I18nAction\");\n }", "public final JButton getDefaultSPViewEditDescButton() {\n return defaultSPViewEditDescButton;\n }", "@Override\n\tprotected CharSequence getDefaultChoice(String selectedValue)\n\t{\n\t\treturn \"\";\n\t}", "@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}", "private String getStatusDefaultMessage() {\r\n\r\n\t\tfinal Collection<GalleryMT20Item> allSelectedPhoto = _galleryMT20.getSelection();\r\n\t\tfinal int allPhotoSize = allSelectedPhoto.size();\r\n\r\n\t\treturn allPhotoSize == 0 //\r\n\t\t\t\t// hide status message when nothing is selected\r\n\t\t\t\t? UI.EMPTY_STRING\r\n\t\t\t\t: NLS.bind(Messages.Pic_Dir_StatusLabel_SelectedImages, allPhotoSize);\r\n\t}", "@FXML private void opinionViewOnAction() {\n try {\n reportLabel.setText(\"\");\n if (activeUser != null) {\n if (getOpinionAuthor().equals(activeUser.getUsername())) {\n deleteButton.setDisable(false);\n reportButton.setDisable(true);\n } else {\n deleteButton.setDisable(true);\n reportButton.setDisable(false);\n }\n }\n } catch (RuntimeException err) {}\n }", "public String getDefaultPaymentGroupName();", "public String getTitle() {\n return getString(CommandProperties.TASK_TITLE);\n }", "@Override\n public String getUnansweredPromptText() {\n return (\"Please select an item or add your own.\");\n }", "public String getDeleteButtonCaption() {\r\n\t\tif (_deleteButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _deleteButton.getDisplayName();\r\n\t}", "@Override\n public void setDefaultActivityTitle() {\n getActivity().setTitle(R.string.app_name);\n }", "public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}", "AdminPreference getDefaultAdminPreference();", "private static String getDefaultSortingCriterion(Context context){\n return context.getString(R.string.pref_sort_criterion_default);\n }", "@Override\n protected CharSequence getDefaultChoice(final String _selectedValue)\n {\n return \"\";\n }", "public String getModalPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(modalPageTitle).getText();\n }", "public static DialogDisplayer getDefault() {\n return (DialogDisplayer)Lookup.getDefault().lookup(DialogDisplayer.class);\n }", "public String getDefaultTargetName()\n {\n if (defaultTargetAttribute != null)\n {\n return defaultTargetAttribute.getValue();\n }\n else\n {\n return \"\";\n }\n }", "String getDefaultText(XBCItem item);", "public\tString\tgetDefaultText()\n\t{\n\t\treturn\tdefaultText;\n\t}", "public ConfirmationDialog getDialog() {\n\t\tif (null == fDlg) {\n\t\t\tfDlg = new ConfirmationDialog(getFrame(), getConfig(), \"dlg.abandonChanges\");\n\n\t\t\tString[] values = { ((Questionaire) getApp()).getCurrentDoc().getTitle() };\n\t\t\t\n\t\t\tString title = fDlg.getTitle();\n\t\t\t\t\t\t\n\t\t\ttitle = SwingCreator.replacePlaceHolders(title, values);\n\t\t\t\t\t\t\n\t\t\tfDlg.setTitle(title);\n\t\t\t\t\t\t\n\t\t\t((Questionaire) getApp()).getCurrentDoc().addPropertyChangeListener(\"title\", new PropertyChangeListener() {\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\tString[] values = { (String) evt.getNewValue() };\n\t\t\t\t\tString title = getConfig(\"dlg.abandonChanges.title\");\n\t\t\t\t\t\n\t\t\t\t\ttitle = SwingCreator.replacePlaceHolders(title, values);\n\t\t\t\t\t\n\t\t\t\t\tgetDialog().setTitle(title);\n\t\t\t\t}\n\t\t\t});\t\t\t\n\t\t}\n\n\t\treturn fDlg;\n\t}", "public String getTitle() {\n return iBundle.getString(\"supplierdebtreport.title\");\n }", "public String mo6833a() {\n return \"show_dialog\";\n }", "public String getDefaultName()\r\n {\r\n System.out.println(\"returning default name: \" + m_default );\r\n return m_default;\r\n }", "@Override\n\tpublic String getEditTitle() {\n\t\treturn \"NIVEAU ETUDE\";\n\t}", "@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}", "public String getTitleChoice() {\n return io.readString(\"Please enter the Title of the DVD: \");\n }", "public String showHelp() {\r\n return ctrlDomain.getHidatoDescription();\r\n }", "@Override\r\n public String getTitle()\r\n {\n return null;\r\n }", "public String getDefault();", "public String getSuggestIntentAction() {\n/* 127 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected String getTitle()\n\t{\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "public String configureOptionsMenu() {\n SharedPreferences settings = context.getSharedPreferences(PREFS, 0);\n boolean shuffle = settings.getBoolean(\"shuffle\", true);\n String buttonText = \"Hello\";\n \n if (shuffle) {\n buttonText = \" Off \";\n } else {\n buttonText = \" On \";\n }\n \n return buttonText;\n }", "@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}", "private String getPrompt(){\n return \"Now \" + (isWhiteTurn ? \"White\" : \"Black\");\n }", "public String getTitle() {\n return null;\n }", "public static String no() {\n\t\treturn \"allowusersetup no\" + delimiter + \"allowusersetup no \";\n\t}", "String disabledButton();", "@Transient\n\tpublic String getToDeleteFlg() {\n\t\treturn toDeleteFlg;\n\t}", "@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "String getMenuName();", "java.lang.String getDeskName();", "default String getTitle() {\n throw new UnsupportedOperationException();\n }", "public String getAlertTextWithoutUserIdandPassword() {\n\t\treturn util.getJavascriptAlertText();\n\t}", "String getHelpText();", "public String GetLoginPagetitle() {\n\t\treturn driver.getTitle();\n\t}", "public static String getActionName(Action action) {\n\t\tString tempName = action.getName();\n\t\tint length = tempName.length();\n\t\tint nameLength = length;\n\t\tif (tempName.contains(StateEnum.INACTIVE.toString())) {\n\t\t\tnameLength = length - StateEnum.INACTIVE.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.ENABLE.toString())) {\n\t\t\tnameLength = length - StateEnum.ENABLE.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.RUNNING.toString())) {\n\t\t\tnameLength = length - StateEnum.RUNNING.toString().length() - 4;\n\t\t} else if (tempName.contains(StateEnum.COMPLETED.toString())) {\n\t\t\tnameLength = length - StateEnum.COMPLETED.toString().length() - 4;\n\t\t}\n\t\treturn tempName.substring(0, nameLength);\n\t}", "@Override\n\tpublic int getTitle() {\n\t\treturn 0;\n\t}", "@Override\r\n\tpublic String getShowTitle() {\n\t\treturn getQymc();\r\n\t}", "public String getTitle() {\n return \"\";\n }", "public String confirmationMessage() {\n\t\treturn confMessageLabel.getText();\r\n\t}", "public String getAccessibleActionDescription(int i) {\n if (i == 0) {\n // [[[PENDING: WDW -- need to provide a localized string]]]\n return \"click\";\n } else {\n return null;\n }\n }", "public String getDefaultStyleString() {\n/* 552 */ return getCOSObject().getString(COSName.DS);\n/* */ }", "public static String choicelabel() {\n\t\treturn null;\n\t}", "public static void disableOtherSMSPopup(Context context) {\n \t}", "public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t}", "Object getDefaultLabel() {\n return null;\n }", "public String getName() {\n return \"CreateIndividualPreAction\";\n }", "String getConfirmationMessage();", "private void showConstantDoesntExists(String constantName)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setMessage(\"Uh oh, It looks like constant \\\"\" + constantName + \"\\\" is missing!\")\n .setIcon(android.R.drawable.ic_dialog_info)\n .setTitle(\"Missing constant\")\n .setCancelable(true)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int id){}\n });\n \n AlertDialog alert = builder.create();\n alert.show(); \n }", "public String getTitle() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_TITLE);\r\n }", "public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t\t\n\t}", "private static String getActionButtonText(Context context, int actionId) {\n\n StringBuilder sb = new StringBuilder();\n\n if (actionId == ContentBrowser.CONTENT_ACTION_WATCH_NOW) {\n sb.append(context.getString(R.string.watch_now_1))\n .append(context.getString(R.string.watch_now_2));\n }\n else if (actionId == ContentBrowser.CONTENT_ACTION_WATCH_FROM_BEGINNING) {\n sb.append(context.getString(R.string.watch_from_beginning_1))\n .append(context.getString(R.string.watch_from_beginning_2));\n }\n else if (actionId == ContentBrowser.CONTENT_ACTION_RESUME) {\n sb.append(context.getString(R.string.resume_1))\n .append(context.getString(R.string.resume_2));\n\n }\n else if (actionId == ContentBrowser.CONTENT_ACTION_DAILY_PASS) {\n sb.append(context.getString(R.string.daily_pass_1))\n .append(context.getString(R.string.daily_pass_2));\n }\n else if (actionId == ContentBrowser.CONTENT_ACTION_SUBSCRIPTION) {\n sb.append(context.getString(R.string.premium_1))\n .append(context.getString(R.string.premium_2));\n }\n\n return sb.toString();\n }", "@Override\n public String getName() {\n if (name == null) {\n name = NbBundle.getMessage(CustomizeEmptySpaceAction.class, \"ACT_CustomizeEmptySpace\"); // NOI18N\n }\n return name;\n }", "@Override\r\n\tprotected String getHelpId() {\n\t\treturn null;\r\n\t}", "public String getFirstComboDefaultText() {\r\n Group theDefaultGroup = this.getDefaultGroup();\r\n return theDefaultGroup == null ? null : theDefaultGroup.getDisplayName();\r\n }", "public String getLoginTitle(){\n\t return\tdriver.findElement(titleText).getText();\n\t}" ]
[ "0.71434057", "0.68649304", "0.6463208", "0.6187975", "0.6055983", "0.605399", "0.5912825", "0.5904155", "0.5845989", "0.5729996", "0.56702656", "0.56015146", "0.5571314", "0.54401916", "0.54200745", "0.54109514", "0.53955734", "0.5369723", "0.5354882", "0.5317431", "0.52844626", "0.52698094", "0.5209496", "0.51989293", "0.5177153", "0.5149331", "0.513692", "0.5125853", "0.5120013", "0.5117493", "0.51134336", "0.509211", "0.50910825", "0.50726837", "0.50621295", "0.50621086", "0.50581896", "0.5052296", "0.5043254", "0.5031645", "0.5027593", "0.50118667", "0.4993658", "0.498423", "0.49832335", "0.49702266", "0.49598157", "0.49594113", "0.4958214", "0.49568945", "0.49501646", "0.49490356", "0.49331746", "0.49157682", "0.49073932", "0.4906099", "0.49046597", "0.48941138", "0.48941058", "0.4891605", "0.4890009", "0.48830044", "0.48829356", "0.48829356", "0.48829356", "0.4874054", "0.48734334", "0.48720226", "0.4870501", "0.48695773", "0.48633012", "0.48586202", "0.48572242", "0.4853191", "0.48462394", "0.48459432", "0.48421124", "0.48397627", "0.48382938", "0.4837176", "0.4827955", "0.4824849", "0.48160392", "0.4814419", "0.48138243", "0.48097807", "0.48046982", "0.47979623", "0.4796607", "0.4793861", "0.4791712", "0.47901207", "0.4788243", "0.47868842", "0.4784966", "0.47810882", "0.47774312", "0.47760144", "0.47732407", "0.47726545" ]
0.79106045
0
Returns the dialog title for the case when volume adjusting is disabled.
String getDisallowAdjustVolumeTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getDialogTitle(){\n return getField().getDialogTitle();\n }", "PreferenceDialogTitleAttribute getDialogTitle();", "String getDisableScreenCaptureTitle();", "int getCancelledVolume();", "String getDisableCameraTitle();", "public String getTitleChoice() {\n return io.readString(\"Please enter the Title of the DVD: \");\n }", "String getDefaultDisabledByPolicyTitle();", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "String getCaption();", "public String getVolumeName() {\n return volumeName;\n }", "public String getOptionTitle()\n\t{\n\t\treturn optionTitle;\n\t}", "int getOriginalVolume();", "String getDisabledByPolicyTitleForFinancedDevice();", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "public void setTitleAccordingToState(){\n String ts=null;\n switch(getPlayMode()){\n case LIVE:\n ts=\" LIVE\";\n break;\n case PLAYBACK:\n ts=currentFile.getName()+\" PLAYING\";\n break;\n case WAITING:\n ts=\"MotionViewer - WAITING\";\n break;\n }\n setTitle(ts);\n }", "String getSuspendPackagesTitle();", "String updateSliderLabel() {\n if (this.direction.equals(\"H\"))\n return \"Percentage of Width : \";\n if (this.direction.equals(\"V\"))\n return \"Percentage of Height : \";\n return \"/!\\\\ Direction issue! Please relaunch the App /!\\\\\";\n }", "protected void setupVolumeLabel() {\n\t\tlabelPanel.add(getItemCombo(), \"growx, span 4, wrap\");\n\t\t//labelPanel.add(new JXLabel(UIUtils.unitsVolume), \"wrap\");\n\t\t\n\t\tvolumeLabel = new JXLabel(\"V = \");\n\t\t\n\t\tlabelPanel.add(volumeLabel);\n\t\tlabelPanel.add(getVolumeValueLabel(), \"width 60::60\");\n\t\tlabelPanel.add(new JXLabel(UIUtils.unitsVolume), \"wrap\");\n\t}", "int getRemainingVolume();", "String getDisallowSmsTitle();", "@Override\n protected View get_dialog_view() {\n final View dialog_view = super.get_dialog_view();\n final OptionsDataAccess options_dao = OptionsDataAccess.Get_instance();\n\n ( (Spinner) dialog_view.findViewById( R.id.options_audio_output_spinner ) ).setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected( AdapterView<?> parent, View view, int pos, long id ) {\n options_dao.Set_short_option( OptionsDataAccess.OPTION_AUDIO_OUTPUT, (short) pos);\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {}\n } );\n\n\n final CheckBox mute_button = (CheckBox) dialog_view.findViewById( R.id.options_mute );\n mute_button.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n options_dao.Toggle_boolean_option(OptionsDataAccess.OPTION_IS_MUTED);\n init_dialog_view(dialog_view);\n if ( !Page.Is_Game_page() ) HomePage.Set_sound_image();\n }\n });\n\n final SeekBar volume_bar = (SeekBar) dialog_view.findViewById( R.id.options_volume_seekbar );\n final EditText volume_text = (EditText) dialog_view.findViewById( R.id.options_volume_seekbar_text );\n\n volume_bar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() {\n byte progress_change = 0;\n\n @Override\n public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) {\n progress_change = (byte) progress;\n }\n\n @Override\n public void onStartTrackingTouch(SeekBar seekBar) {\n }\n\n @Override\n public void onStopTrackingTouch(SeekBar seekBar) {\n options_dao.Set_short_option(OptionsDataAccess.OPTION_VOLUME, progress_change);\n volume_text.setText( progress_change + \"\" );\n }\n });\n\n\n volume_text.addTextChangedListener(new TextWatcher() {\n @Override\n public void beforeTextChanged(CharSequence s, int start, int count, int after) {}\n\n @Override\n public void onTextChanged(CharSequence s, int start, int before, int count) {}\n\n @Override\n public void afterTextChanged(Editable s) {\n String new_text = s.toString();\n if( !new_text.equals(\"\") ) {\n short new_volume = (short) Math.min( 100, Math.max( 0, Short.parseShort( new_text ) ) );\n options_dao.Set_short_option(OptionsDataAccess.OPTION_VOLUME, new_volume );\n volume_bar.setProgress( Short.parseShort( new_text ) );\n }\n }\n } );\n\n dialog_view.findViewById(R.id.options_reset_to_default).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n final ConfirmDialog confirmDialog = new ConfirmDialog();\n confirmDialog.Set_Button_Text( Page.Get_resource_string( R.string.revert ), Page.Get_resource_string( R.string.cancel ) );\n confirmDialog.Set_attrs(getString(R.string.revert_to_default_title), getString(R.string.revert_to_default_message));\n confirmDialog.SetConfirmationListener(new ConfirmDialog.ConfirmDialogListener() {\n @Override\n public void OnDialogSuccess() {\n options_dao.Reset_audio_options();\n init_dialog_view(dialog_view);\n if ( !Page.Is_Game_page() ) HomePage.Set_sound_image();\n }\n\n @Override\n public void onDialogNeutral() {}\n\n @Override\n public void OnDialogFail() {\n }\n });\n confirmDialog.Show();\n }\n });\n\n return dialog_view;\n }", "String getVolume_type();", "private void setDialogTitle(String title) {\n DialogboxTitle = title;\n }", "public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setTitleOverrideText(java.lang.String param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }", "@Override\n public String getTitleString()\n {\n int capsState;\n\n int state = softBoardData.layoutStates.metaStates[LayoutStates.META_CAPS].getState();\n if ( state == CapsState.META_OFF )\n {\n capsState = 0;\n }\n else if ( state == CapsState.META_LOCK )\n {\n capsState = 2;\n }\n else if ( state == CapsState.AUTOCAPS_ON && !softBoardData.autoFuncEnabled )\n {\n capsState = 0;\n }\n else // state == IN_TOUCH || META_ON || AUTOCAPS_ON with enabled autoFunc\n {\n capsState = stringCaps ? 2 : 1;\n }\n\n switch ( capsState )\n {\n case 0:\n return getString();\n\n case 1:\n return StringUtils.toUpperOnlyFirst( getString(), softBoardData.locale );\n\n default: // case 2:\n return getString().toUpperCase( softBoardData.locale );\n }\n\n }", "public int getVolumeHandling() {\n return mBundle.getInt(KEY_VOLUME_HANDLING);\n }", "public String getVolumeStatus() {\n return this.volumeStatus;\n }", "@Override\n\tpublic FileSelectDialog setCustomTitle(View view) {\n\t\tif (searchEnabled) {\n\t\t\tthrow new Error(\"You cannot use the title of a FileSelectDialog\" +\n\t\t\t\t\t\"when searching is enabled\");\n\t\t} else {\n\t\t\treturn (FileSelectDialog)super.setCustomTitle(view);\n\t\t}\n\t}", "public String disabledReasonMessage() {\n return this.disabledReasonMessage;\n }", "@Override\r\n\tpublic String getShowTitle() {\n\t\treturn getQymc();\r\n\t}", "int getVolume();", "int getVolume();", "public static synchronized int getKeyClickVolume() {\r\n\t\treturn Button.keys.getKeyClickVolume();\r\n\t}", "@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}", "public String getModalPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(modalPageTitle).getText();\n }", "@Override\n\tpublic int getTitle() {\n\t\treturn 0;\n\t}", "public String volume() {\n return mVolume;\n }", "public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}", "public String textReason() {\r\n return getParm(2).trim();\r\n }", "void setCancelledVolume(int newCancelledVolume) throws Exception;", "private void displayErrorTitle(){\n progressTitle.setText(getResources().getString(R.string.error_title));\n }", "protected static String getTitle() {\r\n return Lock.title;\r\n }", "private void showMuteMessage() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.mute_msg_text);\n builder.setCancelable(false);\n builder.setNegativeButton(R.string.mute_msg_no, this);\n builder.setPositiveButton(R.string.mute_msg_yes, this);\n\n AlertDialog alert = builder.create();\n alert.show();\n }", "private String getPlayerName() {\n\t\tString[] options = {\"OK\"};\n\t\tJPanel namePanel = new JPanel(new GridLayout(0, 1));\n\t\tJLabel lbl = new JLabel(\"Next player, what is your name?\");\n\t\tJTextField txt = new JTextField(10);\n\t\tnamePanel.add(lbl);\n\t\tnamePanel.add(txt);\n\t\t\n\t\t// show dialog box\n\t\tJOptionPane.showOptionDialog(frame, namePanel, \"Player name\",\n\t\t\t\tJOptionPane.NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options , options[0]);\n\t\tString playerName = txt.getText();\n\t\twhile(playerName.length() < 1){\n\t\t\tlbl.setText(\"Name must be at least one character long.\");\n\t\t\tJOptionPane.showOptionDialog(frame, namePanel, \"Player name\",\n\t\t\t\t\tJOptionPane.NO_OPTION, JOptionPane.WARNING_MESSAGE, null, options , options[0]);\n\t\t\tplayerName = txt.getText();\n\t\t}\n\t\treturn playerName;\n\t}", "public String RequiredCaption()\n\t{\n\t\t//Click on Add a new Computer on Home Page to Navigate to Creation of Computer Page\n\t\tAddComputer.click();\n\t\t\n\t\t//Wait Time after each transaction\n\t\tWebDriverWait wait = new WebDriverWait(driver,2);\n\t\t\n\t\tString Requiredcaption = RequiredCaption.getText();\n\t\treturn Requiredcaption;\n\t}", "@Override\n\tpublic String getName() {\n\t\treturn \"dvd name\";\n\t}", "public String getTitle() {\n return getString(CommandProperties.TASK_TITLE);\n }", "@Override\n\tpublic String getEditTitle() {\n\t\treturn \"NIVEAU ETUDE\";\n\t}", "public static String promptForString(String title) {\n return (JOptionPane.showInputDialog(null,\n title));\n }", "public int getVolume();", "public void setTitle(String title) {\n \t\tdialogTitle = title;\n \t\tif (dialogTitle == null) {\n \t\t\tdialogTitle = \"\"; //$NON-NLS-1$\n \t\t}\n \t\tShell shell = getShell();\n \t\tif ((shell != null) && !shell.isDisposed()) {\n \t\t\tshell.setText(dialogTitle);\n \t\t}\n \t}", "public String getTitle() {\n return \"\";\n }", "@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }", "public void setOptionTitle(String optionTitle)\n\t{\n\t\tthis.optionTitle = Toolbox.trim(optionTitle, 35);\n\t}", "public int getVolume() {\n return mBundle.getInt(KEY_VOLUME);\n }", "protected String getWizardWindowTitle() {\n\t\treturn DropWizardMessages.Wizard_Window_Title;\n\t}", "@Override\n public String getTitle() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "@Override\n public String getTitle() {\n return string(\"sd-l-toolbar\");\n }", "private String promptForAlbumName() {\n\t\treturn (String)\n\t\t JOptionPane.showInputDialog(\n\t\t\t\talbumTree, \n\t\t\t\t\"Album Name: \", \n\t\t\t\t\"Add Album\",\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\t\"\");\t\t\n\t}", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if (keyCode == KeyEvent.KEYCODE_VOLUME_UP ||\n keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {\n\n // Get volume key pref\n actionBtnPref = sharedPref.getString(\"volume_btn_action\", Constants.ACTION_DO_NOTHING);\n if (actionBtnPref != null)\n actionBtnHandler(actionBtnPref);\n }\n return super.onKeyDown(keyCode, event);\n }", "public String getTitle() {\n\t\treturn getDriver().getTitle().trim();\n\t}", "public long getPropertyVolume();", "public String determineAccessibilityPaneTitle() {\n C0940QS qs = this.mQs;\n if (qs != null && qs.isCustomizing()) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings_edit);\n }\n if (this.mQsExpansionHeight != 0.0f && this.mQsFullyExpanded) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings);\n }\n if (this.mBarState == 1) {\n return this.mResources.getString(C2017R$string.accessibility_desc_lock_screen);\n }\n return this.mResources.getString(C2017R$string.accessibility_desc_notification_shade);\n }", "public String getTitle() {\n return iBundle.getString(\"supplierdebtreport.title\");\n }", "@Override\r\n\tpublic float getVolume() {\n\t\treturn 0;\r\n\t}", "@Override\n public String getUnansweredPromptText() {\n return (\"Please select an item or add your own.\");\n }", "@Override\r\n\tpublic void volumeDown() {\n\r\n\t\tSystem.out.println(\"ig tv volume off\");\r\n\t}", "protected void enableActionVolumeDec()\n {\n Action action = new Action(\"VolumeDec\");\n iDelegateVolumeDec = new DoVolumeDec();\n enableAction(action, iDelegateVolumeDec);\n }", "public String[] getTitleOptions() {\n\t\treturn titleOptions;\n\t}", "@Override\n public void showDiscardDialog() {\n //Creating an AlertDialog with a message, and listeners for the positive, neutral and negative buttons\n AlertDialog.Builder builder = new AlertDialog.Builder(requireActivity());\n //Set the Message\n builder.setMessage(R.string.product_config_unsaved_changes_dialog_message);\n //Set the Positive Button and its listener\n builder.setPositiveButton(R.string.product_config_unsaved_changes_dialog_positive_text, mUnsavedDialogOnClickListener);\n //Set the Negative Button and its listener\n builder.setNegativeButton(R.string.product_config_unsaved_changes_dialog_negative_text, mUnsavedDialogOnClickListener);\n //Set the Neutral Button and its listener\n builder.setNeutralButton(R.string.product_config_unsaved_changes_dialog_neutral_text, mUnsavedDialogOnClickListener);\n //Lock the Orientation\n OrientationUtility.lockCurrentScreenOrientation(requireActivity());\n //Create and display the AlertDialog\n builder.create().show();\n }", "public String getTitle() {\n return null;\n }", "@Override\n\tpublic String getOptionName() {\n\t\treturn SWAGGERIFY;\n\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n Utility.hideKeyBoard(editText, mContext);\n if (editText.getText().toString().trim().length() > 0) {\n rpm.setText(editText.getText().toString().trim());\n } else {\n rpm.setText(\"\");\n }\n }", "@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}", "public String getTitle()\r\n {\r\n return(\"Judys' Calculator\");\r\n }", "@RecentlyNullable\n/* */ public CharSequence getPaneTitle() {\n/* 1054 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected float getSoundVolume()\n {\n return 0.4F;\n }", "@Override\r\n public String getTitle()\r\n {\n return null;\r\n }", "protected String getHelpText() {\n return \"\";\n }", "public String getVersionTitle()\r\n\t{\r\n\t\treturn versionTitle;\r\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tprotected String getTitle()\n\t{\n\t\treturn null;\n\t}", "public int getSliderVolume() {\n return (int)(this.volume * 100);\n }", "public float getVolume() {\n return 1.0f;\n }", "public String getTitle( ) {\n return null;\r\n }", "protected boolean isVolumeOn(int minVal){\n AudioManager audio = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n int currentVolume = audio.getStreamVolume(AudioManager.STREAM_MUSIC);\n if (currentVolume < minVal){\n printMessege(\"אנא הגבר/י את צלילי המדיה במכשיר שלך\");\n return false;\n }\n return true;\n }", "public String getLibraryTitle() {\n return getProperty(Property.LIBRARY_TITLE);\n }", "public javax.accessibility.Accessible getAccessibleCaption() {\n // Not yet supported.\n return null;\n }", "public float getInitSFXVolume() {\n \t\treturn 1;\n \t}", "@Override\n \tpublic void onSetVolume(double arg0) {\n \t}", "@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n public String getTitle() {\n return getName();\n }", "public String getCancelButtonCaption() {\r\n\t\tif (_cancelButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _cancelButton.getDisplayName();\r\n\t}", "public String getTitle() {\n Ensighten.evaluateEvent(this, \"getTitle\", null);\n return getString(C2658R.string.lite_title_policy_updates);\n }", "@Override\n\tprotected float getSoundVolume() {\n\t\t// note: unused, managed in playSound()\n\t\treturn 1;\n\t}", "@Test\n public void setVolume() {\n final int volume = 16;\n\n getApplicationHandler().setVolume(volume, true);\n\n assertTrue(getApplicationHandler().getVolume() == volume);\n expandPanel();\n onView(withId(R.id.vli_seek_bar)).check(matches(withProgress(volume)));\n onView(withId(R.id.vli_volume_text)).check(matches(withText(String.valueOf(volume))));\n }", "@Override\n\tpublic String getTitle() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}" ]
[ "0.6252502", "0.6144802", "0.5824237", "0.578736", "0.5771396", "0.576508", "0.5500449", "0.5468832", "0.53480345", "0.5288698", "0.52668625", "0.52201575", "0.5216078", "0.52013", "0.5178737", "0.51653236", "0.5145589", "0.5121579", "0.5105303", "0.504319", "0.5041405", "0.50286615", "0.50204664", "0.49974847", "0.4994469", "0.49895164", "0.4971967", "0.49295145", "0.4926014", "0.4923054", "0.49112174", "0.48848101", "0.48848101", "0.48748776", "0.48710296", "0.4869394", "0.48682073", "0.48456317", "0.48392096", "0.48359126", "0.4806673", "0.47942084", "0.4789563", "0.478944", "0.47883558", "0.47867388", "0.47852045", "0.4781719", "0.4777111", "0.4759154", "0.47519046", "0.4750273", "0.4738797", "0.47295037", "0.4723154", "0.47172344", "0.47154382", "0.4711592", "0.47103074", "0.47097063", "0.47082028", "0.46998787", "0.46877697", "0.46863368", "0.46793252", "0.46755004", "0.46708366", "0.46662205", "0.4663724", "0.4661237", "0.46375188", "0.46360043", "0.46353662", "0.46319953", "0.46312705", "0.4628326", "0.4625843", "0.46214846", "0.46214324", "0.46199846", "0.46179345", "0.4617019", "0.4617019", "0.4617019", "0.4613918", "0.46121162", "0.46080482", "0.46062005", "0.4602263", "0.45907894", "0.45904657", "0.4590359", "0.45889422", "0.45887476", "0.45861107", "0.458126", "0.45661998", "0.4560749", "0.45549217", "0.45486403" ]
0.8444277
0
Returns the dialog title for the case when outgoing calls are disabled.
String getDisallowOutgoingCallsTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDisallowSmsTitle();", "PreferenceDialogTitleAttribute getDialogTitle();", "public String getDialogTitle(){\n return getField().getDialogTitle();\n }", "String getDisableScreenCaptureTitle();", "String getDisabledByPolicyTitleForFinancedDevice();", "String getDisableCameraTitle();", "@Override\n\tpublic String getResTitleName() {\n\t\treturn \"招待:\"+receivePartner;\n\t}", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "String getDefaultDisabledByPolicyTitle();", "String getDisabledBiometricsParentConsentTitle();", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "@Override\n public CharSequence onDisableRequested(Context context, Intent intent) {\n return context.getString(R.string.disable_warning);\n }", "protected String getWizardWindowTitle() {\n\t\treturn DropWizardMessages.Wizard_Window_Title;\n\t}", "public String getWhoseTurnDesc() {\n if (gameStatus == null || userId == null) return \"\";\n return userId.equals(gameStatus.getActivePlayer()) ? \"MY TURN\" : \"OPPONENT'S TURN\";\n }", "public String getCanceledByName() {\n return this.canceledByName;\n }", "String getDisallowAdjustVolumeTitle();", "@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }", "public String getTitle() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_TITLE);\r\n }", "public String getContactsPageTitle(){\n\t\treturn elementAction.doGetTitle(AppConstants.CONTACTS_PAGE_TITLE);\n\t}", "public String disabledReasonMessage() {\n return this.disabledReasonMessage;\n }", "String getSuspendPackagesTitle();", "private String getPrompt(){\n return \"Now \" + (isWhiteTurn ? \"White\" : \"Black\");\n }", "@Override\n public ObservableField<String> getTitle() {\n return new ObservableField<>(ResourceUtil.getString(R.string.pay_success));\n }", "public String getModalPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(modalPageTitle).getText();\n }", "public String getTitle() {\n return iBundle.getString(\"supplierdebtreport.title\");\n }", "@Override\r\n\tpublic String getPageTitle() {\t\r\n\t\treturn getTranslation(Routes.getPageTitleKey(Routes.REPORT));\r\n\t}", "public abstract String getDialogId(boolean isServerTransaction);", "public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }", "boolean isSMSPromptEnabled();", "@Override\n public IChatComponent getDisplayName() {\n return null;\n }", "@Override\n public IChatComponent getDisplayName() {\n return null;\n }", "public final java.lang.String getDisplayName() { throw new RuntimeException(\"Stub!\"); }", "@Override\n public String getDisplayName() {\n\n return Messages.displayName();\n }", "protected String getTo()\n {\n Object[] msgOptions =\n {\n \"Standard\", \"Broadcast\"\n };\n\n int n = JOptionPane.showOptionDialog(null,\n \"What message type are you sending?\",\n \"Send Message\",\n JOptionPane.DEFAULT_OPTION,\n JOptionPane.INFORMATION_MESSAGE, null,\n msgOptions, msgOptions[0]);\n\n String handle = \"\";\n\n if (n == 0)\n {\n List<String> contacts = new ArrayList();\n agent.getContacts().forEach((c) ->\n {\n contacts.add(c);\n });\n\n while (handle.isEmpty())\n {\n handle = JOptionPane.showInputDialog(null, \"Current Contacts\\n\" + contacts + \"\\n\\nWho would you like to message?\", \"Send Message\");\n if (handle == null)\n {\n setVisible(false);\n //Doesn't error now, but immediately exiting program isn't useful\n System.exit(0);\n }\n if (!handle.matches(\"^[^\\\\d\\\\s]+$\"))\n {\n handle = \"\";\n }\n }\n }\n else\n {\n handle = \"all\";\n }\n\n return handle;\n }", "@Override\r\n\tpublic String getShowTitle() {\n\t\treturn getQymc();\r\n\t}", "public String cancel()\n {\n if (!\"list\".equals(from))\n {\n return \"mainMenu\";\n }\n return \"cancel\";\n }", "@Override\r\n\t protected void onPrepareDialog(int id, Dialog dialog) {\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t \tdialog.setTitle(\"Send Instant Message\");\r\n\t break;\r\n\t }\r\n\t }", "public String getAlertTextWithoutUserIdandPassword() {\n\t\treturn util.getJavascriptAlertText();\n\t}", "public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}", "String getConfirmationMessage();", "@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "public String getNotificationTitle() {\n if (this.mInvitation != null) return \"Contact request from: \" + this.mInvitation.getSenderUsername();\n else if (this.mChatMessageFragment != null) {\n String title = \"New message from: \"\n + this.mChatMessageFragment.getSender();\n return title;\n }\n else return null;\n }", "@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n Toast.makeText(this, \"No\", Toast.LENGTH_LONG).show();\n\n }", "public String getOtherPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(otherPageTitle).getText();\n }", "boolean getSkipMessage();", "String getSignOffMessage() {\r\n return null;\r\n }", "@NeededForTesting\n String getContentTitle(ContactCacheEntry contactInfo, Call call) {\n if (call.isConferenceCall() && !call.hasProperty(Details.PROPERTY_GENERIC_CONFERENCE)) {\n /// M: [VoLTE conference]incoming volte conference @{\n /*\n * Google code:\n return mContext.getResources().getString(R.string.card_title_conf_call);\n */\n if (!isIncomingVolteConference(call)) {\n return mContext.getResources().getString(R.string.card_title_conf_call);\n }\n /// @}\n }\n\n String preferredName = ContactDisplayUtils.getPreferredDisplayName(contactInfo.namePrimary,\n contactInfo.nameAlternative, mContactsPreferences);\n if (TextUtils.isEmpty(preferredName)) {\n return TextUtils.isEmpty(contactInfo.number) ? null : BidiFormatter.getInstance()\n .unicodeWrap(contactInfo.number, TextDirectionHeuristics.LTR);\n }\n return preferredName;\n }", "public String getTitle() {\n addParameter(\"title.number\" , iBundle.getString(\"reminderreport.title.date\") );\n\n return iBundle.getString(\"reminderreport.title\");\n }", "@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}", "private String getQuestion(String name, String number)\n {\n \treturn String.format(getString(R.string.dialog_message, ((name != null && !name.equals(\"\")) ? name : getString(R.string.unknown_name)), number));\n }", "@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getProtocolDisplayName()\n {\n String displayName = getAccountID().getAccountPropertyString(ProtocolProviderFactory.PROTOCOL);\n return (displayName == null) ? getProtocolName() : displayName;\n }", "@Override\r\n\tprotected String getConfiguredTitle() {\n\t\treturn TEXTS.get(\"Account\");\r\n\t}", "public String getWatchListPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(otherPageTitle).getText();\n\n }", "@Override\r\n public String getTitle()\r\n {\n return null;\r\n }", "private String getName()\r\n {\r\n return JOptionPane.showInputDialog(frame, \"Choose a screen name:\", \"Screen name selection\",\r\n JOptionPane.PLAIN_MESSAGE);\r\n }", "public String getTitle() {\n return \"\";\n }", "public String getTitle() {\n return null;\n }", "public String getLabel() {\n return AsteriskUtlities.toContextIdentifier(username + \"-\" + company);\n }", "private static String getItemDisplayName(\n ProtocolProviderService provider)\n {\n if(ConfigurationUtils.isAutoAnswerDisableSubmenu())\n return GuiActivator.getResources()\n .getI18NString(\"service.gui.AUTO_ANSWER\")\n + \" - \" + provider.getAccountID().getDisplayName();\n else\n return provider.getAccountID().getDisplayName();\n }", "public String mo6833a() {\n return \"show_dialog\";\n }", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n public String getTitleString()\n {\n int capsState;\n\n int state = softBoardData.layoutStates.metaStates[LayoutStates.META_CAPS].getState();\n if ( state == CapsState.META_OFF )\n {\n capsState = 0;\n }\n else if ( state == CapsState.META_LOCK )\n {\n capsState = 2;\n }\n else if ( state == CapsState.AUTOCAPS_ON && !softBoardData.autoFuncEnabled )\n {\n capsState = 0;\n }\n else // state == IN_TOUCH || META_ON || AUTOCAPS_ON with enabled autoFunc\n {\n capsState = stringCaps ? 2 : 1;\n }\n\n switch ( capsState )\n {\n case 0:\n return getString();\n\n case 1:\n return StringUtils.toUpperOnlyFirst( getString(), softBoardData.locale );\n\n default: // case 2:\n return getString().toUpperCase( softBoardData.locale );\n }\n\n }", "@Override\n public String getTitle() {\n return getName();\n }", "protected String getSelectionTitle() {\n\t\treturn Messages.ModelElementSelectionPageMessage;\n\t}", "public final java.lang.String getDisplayName(boolean daylight, int style) { throw new RuntimeException(\"Stub!\"); }", "public String getTitleChoice() {\n return io.readString(\"Please enter the Title of the DVD: \");\n }", "public String getActiveTitle() {\n\t\treturn getTitle(TitleBuilder.byActiveWindow());\n\t}", "String getDisplay_name();", "public String getFriendlyUsername(Context ctx) {\n User user = DBHandler.getInstance(ctx).getUser(getPartnerId());\n String name = getState().toString();\n if (user == null || getState() != State.Open) {\n if (getState() != State.Open) {\n if(getState() == State.Close) {\n name = name + \" - \" + AndroidUtils.getFormattedTime(getTime());\n } else {\n name = ctx.getString(R.string.todays_match);\n }\n }\n } else {\n name = user.getFullName();\n }\n return name;\n }", "public String getTitle() {\n return getString(CommandProperties.TASK_TITLE);\n }", "@Override\n public int getTitleResourceId() {\n return R.string.user_info;\n }", "@Override\n\tprotected String getTitle()\n\t{\n\t\treturn null;\n\t}", "private void setDialogTitle(String title) {\n DialogboxTitle = title;\n }", "public String getDisplayName() {\n return chatRoom.getName();\n }", "@Override\r\n\tpublic void showNoCardMessage(String name) {\n\t}", "public String ChatName() {\n return \"\";\n }", "public String getTitle() {\n\t\t\n\t\tStringBuilder titleBuilder = new StringBuilder();\n\t\ttitleBuilder.append(CorrelatorConfig.AppName);\n\t\ttitleBuilder.append(\" \");\n\n\t\tif (m_activeMap != null) {\n\t\t\ttitleBuilder.append(\"(\" + m_activeMap.getName() + \")\");\t\t\n\t\t}\n\t\t\n\t\t// Stage is where visual parts of JavaFX application are displayed.\n return titleBuilder.toString();\n\t}", "@Override\n\tprotected String getHeaderTitle() {\n\t\treturn \"\";\n\t}", "@Override\n public String getUnansweredPromptText() {\n return (\"Please select an item or add your own.\");\n }", "public String determineAccessibilityPaneTitle() {\n C0940QS qs = this.mQs;\n if (qs != null && qs.isCustomizing()) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings_edit);\n }\n if (this.mQsExpansionHeight != 0.0f && this.mQsFullyExpanded) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings);\n }\n if (this.mBarState == 1) {\n return this.mResources.getString(C2017R$string.accessibility_desc_lock_screen);\n }\n return this.mResources.getString(C2017R$string.accessibility_desc_notification_shade);\n }", "public String getNotchianName();", "private static String getLabel(final GoogleCalXSettings settings) {\r\n\t\t\tif (settings.getShowCalendarId()) {\r\n\t\t\t\tString label = null;\r\n\t\t\t\tfinal CalendarTarget target = settings.getCalendarTarget();\r\n\t\t\t\tif (target != null) {\r\n\t\t\t\t\tlabel = target.getLabel();\r\n\t\t\t\t}\r\n\t\t\t\tif (label == null || label.isEmpty()) {\r\n\t\t\t\t\tlabel = settings.getCalendarId();\r\n\t\t\t\t}\r\n\t\t\t\treturn localizer.msg(MSG_EXPORT_TEXT, \"Export to {0}\", label);\r\n\t\t\t}\r\n\t\t\treturn localizer.msg(MSG_NO_CALENDAR, \"Export to Google Calendar...\");\r\n\t\t}", "@Override\n\tpublic String getDisplayName() {\n\t\treturn null;\n\t}", "public int getVoicePromptTextId() {\n/* 204 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n public String getPageTitle() {\r\n return getTranslation(Routes.getPageTitleKey(Routes.REQUEST_ACCESS));\r\n }" ]
[ "0.67519873", "0.63545823", "0.6349194", "0.6130479", "0.5974113", "0.5862216", "0.5837779", "0.5794673", "0.57639045", "0.5694599", "0.55071014", "0.5405284", "0.5346377", "0.5318964", "0.5317805", "0.5310275", "0.529932", "0.5229698", "0.51773244", "0.51570594", "0.5121346", "0.5118496", "0.511798", "0.5109827", "0.5106945", "0.51017904", "0.50838685", "0.50623983", "0.5055243", "0.5039805", "0.5039805", "0.50390077", "0.5029564", "0.5017306", "0.50163376", "0.50121784", "0.49831408", "0.49767107", "0.49576536", "0.4951436", "0.4909147", "0.49078867", "0.49078867", "0.49078867", "0.49078867", "0.49078867", "0.49078867", "0.4886656", "0.4886656", "0.4886656", "0.4886656", "0.4886656", "0.4886656", "0.48834622", "0.48795184", "0.48777443", "0.48744366", "0.48649484", "0.48576", "0.48261404", "0.48128054", "0.4809386", "0.48071963", "0.48063397", "0.4797007", "0.47959688", "0.47888744", "0.4788174", "0.47880593", "0.47841346", "0.47836468", "0.47798997", "0.47731265", "0.47725517", "0.47725517", "0.47725517", "0.47697455", "0.47661653", "0.47566408", "0.4751763", "0.4748591", "0.4746211", "0.47437084", "0.47411713", "0.47373772", "0.47356597", "0.47253358", "0.47248837", "0.4721487", "0.47048563", "0.4703546", "0.47000346", "0.46942306", "0.4693466", "0.4691007", "0.46805352", "0.46795863", "0.46772948", "0.46726638", "0.46720764" ]
0.8123848
0
Returns the dialog title for the case when sending SMS is disabled.
String getDisallowSmsTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDisallowOutgoingCallsTitle();", "boolean isSMSPromptEnabled();", "public String getDialogTitle(){\n return getField().getDialogTitle();\n }", "PreferenceDialogTitleAttribute getDialogTitle();", "String getDisableScreenCaptureTitle();", "String getDisableCameraTitle();", "public String disabledReasonMessage() {\n return this.disabledReasonMessage;\n }", "@Override\n public CharSequence onDisableRequested(Context context, Intent intent) {\n return context.getString(R.string.disable_warning);\n }", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "public String getTitle() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_TITLE);\r\n }", "String getConfirmationMessage();", "String getDefaultDisabledByPolicyTitle();", "@Override\r\n\t protected void onPrepareDialog(int id, Dialog dialog) {\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t \tdialog.setTitle(\"Send Instant Message\");\r\n\t break;\r\n\t }\r\n\t }", "public String getModalPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(modalPageTitle).getText();\n }", "String getDisallowAdjustVolumeTitle();", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "public String confirmationMessage() {\n\t\treturn confMessageLabel.getText();\r\n\t}", "public String getAlertTextWithoutUserIdandPassword() {\n\t\treturn util.getJavascriptAlertText();\n\t}", "private void showMuteMessage() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(R.string.mute_msg_text);\n builder.setCancelable(false);\n builder.setNegativeButton(R.string.mute_msg_no, this);\n builder.setPositiveButton(R.string.mute_msg_yes, this);\n\n AlertDialog alert = builder.create();\n alert.show();\n }", "public String getMessageText();", "String getDisabledByPolicyTitleForFinancedDevice();", "public String getSmsState() {\n return \"\";\n }", "String getSuspendPackagesTitle();", "@Override\n\tpublic String getResTitleName() {\n\t\treturn \"招待:\"+receivePartner;\n\t}", "private void onRequireSMSPermissionsDenied() {\r\n showToast(getString(R.string.contact_picker_requires_sms_permission), Toast.LENGTH_LONG);\r\n }", "public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}", "public String getSnackBarText() {\n return snackBar.getText();\n }", "public String getMsg(){\n return messageLabel.getText();\n }", "private void buildAlertMessageNoGps() {\n \t\tfinal AlertDialog.Builder builder = new AlertDialog.Builder(this);\n \t builder.setMessage(\"You GPS seems to be disabled, do you want to enable it?\")\n \t .setCancelable(false)\n \t .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n \t public void onClick(@SuppressWarnings(\"unused\") final DialogInterface dialog, @SuppressWarnings(\"unused\") final int id) {\n \t launchGPSOptions(); \n \t }\n \t })\n \t .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n \t public void onClick(final DialogInterface dialog, @SuppressWarnings(\"unused\") final int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t final AlertDialog alert = builder.create();\n \t alert.show();\n \t\t\n \t}", "public String get_ButtomBarAlertmsg_txt() {\r\n\t\tWebElement alrtmsg = driver.findElementByAccessibilityId(\"displayMessageTextBlock\");\r\n\t\treturn FetchText(alrtmsg);\r\n\t}", "@Override\n\tpublic String getText() {\n\t\treturn \"MMS: \" + text;\n\t}", "private String getPrompt(){\n return \"Now \" + (isWhiteTurn ? \"White\" : \"Black\");\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tDialog dialog = new MyDialogSms(mContext,R.style.MyDialog_style_NoTitle);\n\t\t\t\tdialog.show();\n\t\t\t}", "public String getNotificationTitle() {\n if (this.mInvitation != null) return \"Contact request from: \" + this.mInvitation.getSenderUsername();\n else if (this.mChatMessageFragment != null) {\n String title = \"New message from: \"\n + this.mChatMessageFragment.getSender();\n return title;\n }\n else return null;\n }", "private void setDialogTitle(String title) {\n DialogboxTitle = title;\n }", "public String textReason() {\r\n return getParm(2).trim();\r\n }", "public String getMessage(){\n return saisieMessage.getText();\n }", "public void getDialog(final Activity context, String message, int title) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n switch (title) {\n case 0:\n builder.setTitle(context.getString(R.string.alert_success));\n break;\n case 1:\n builder.setTitle(context.getString(R.string.alert_stop));\n break;\n default:\n builder.setTitle(context.getString(R.string.alert));\n break;\n }\n\n builder.setMessage(message);\n\n builder.setPositiveButton(context.getString(R.string.alert_ok), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Toast.makeText(context, context.getString(R.string.alert_toast), Toast.LENGTH_SHORT).show();\n }\n });\n\n builder.show();\n }", "@Override\r\n\tpublic String getShowTitle() {\n\t\treturn getQymc();\r\n\t}", "String getDisabledBiometricsParentConsentTitle();", "@Override\n\tpublic String getWelcomeMessage() {\n\t\treturn null;\n\t}", "public String getMessageText() {\r\n\t\treturn txtAreaWriteMessage.getText();\r\n\t}", "public String getScreenMessage();", "protected String getWizardWindowTitle() {\n\t\treturn DropWizardMessages.Wizard_Window_Title;\n\t}", "public static String getMessageText(Window w) {\n\t\tComponent c = findComponentByName(w, OptionDialog.MESSAGE_COMPONENT_NAME);\n\t\tif (c instanceof JLabel) {\n\t\t\treturn ((JLabel) c).getText();\n\t\t}\n\t\telse if (c instanceof MultiLineLabel) {\n\t\t\treturn ((MultiLineLabel) c).getLabel();\n\t\t}\n\t\treturn null;\n\t}", "public IMobileSMTitle getTitle();", "private String getQuestion(String name, String number)\n {\n \treturn String.format(getString(R.string.dialog_message, ((name != null && !name.equals(\"\")) ? name : getString(R.string.unknown_name)), number));\n }", "public String getTitle() {\n return getString(CommandProperties.TASK_TITLE);\n }", "private String getMessage() {\n\t\tSharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\r\n\t\t\r\n\t\tboolean addSign = prefs.getBoolean(\"addsign\", true);\r\n\t\t\r\n\t\ttry {\r\n\t\t\r\n\t\tdefMessage = \"I am busy right now and will call you latter.\";\r\n\t\t\r\n\t\tfinalMessage = prefs.getString(\"message\", defMessage);\r\n\t\tif(finalMessage.equals(\"\"))\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t} catch (RuntimeException e) {\r\n\t\t\t// TODO: handle exception\r\n\t\t\tfinalMessage = defMessage;\r\n\t\t}\r\n\t\t\r\n\t\tif(addSign)\r\n\t\t\tfinalMessage += \"\\nSent using Calls and SMS Blocker for android.\\nDownload from: https://play.google.com/store/apps/details?id=com.atiffarrukh.callandsmsblocker\";\r\n\t\treturn finalMessage;\r\n\t}", "@Override\n public ObservableField<String> getTitle() {\n return new ObservableField<>(ResourceUtil.getString(R.string.pay_success));\n }", "public String getText_txt_ThankYou_Message_Text(){\r\n\t\treturn txt_ThankYou_Message_Text.getText();\r\n\t}", "public String getLoginTitle(){\n\t\treturn driver.findElement(titleText).getText();\n\t}", "@Override\n public String getTitleString()\n {\n int capsState;\n\n int state = softBoardData.layoutStates.metaStates[LayoutStates.META_CAPS].getState();\n if ( state == CapsState.META_OFF )\n {\n capsState = 0;\n }\n else if ( state == CapsState.META_LOCK )\n {\n capsState = 2;\n }\n else if ( state == CapsState.AUTOCAPS_ON && !softBoardData.autoFuncEnabled )\n {\n capsState = 0;\n }\n else // state == IN_TOUCH || META_ON || AUTOCAPS_ON with enabled autoFunc\n {\n capsState = stringCaps ? 2 : 1;\n }\n\n switch ( capsState )\n {\n case 0:\n return getString();\n\n case 1:\n return StringUtils.toUpperOnlyFirst( getString(), softBoardData.locale );\n\n default: // case 2:\n return getString().toUpperCase( softBoardData.locale );\n }\n\n }", "public String getLoginTitle(){\n\t return\tdriver.findElement(titleText).getText();\n\t}", "protected String getHelpText() {\n return \"\";\n }", "private void showNegativeDialog(String title, String message) {\n\n final AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);\n dialogBuilder.setTitle(title);\n dialogBuilder.setMessage(message);\n dialogBuilder.setCancelable(false);\n dialogBuilder.setNegativeButton(android.R.string.ok,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n finish();\n }\n });\n dialogBuilder.show();\n }", "@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }", "public String getInvalidMessageText() {\r\n\t\tnotificationError = driver.findElement(notificationErrorSelector);\r\n\t\treturn notificationError.getText();\r\n\t\t\r\n\t}", "public String getContactsPageTitle(){\n\t\treturn elementAction.doGetTitle(AppConstants.CONTACTS_PAGE_TITLE);\n\t}", "public String getTitleChoice() {\n return io.readString(\"Please enter the Title of the DVD: \");\n }", "public String getTitle() {\n return iBundle.getString(\"supplierdebtreport.title\");\n }", "public String getSmencaption() {\n return smencaption;\n }", "public String mo6833a() {\n return \"show_dialog\";\n }", "public String getTitle() {\n addParameter(\"title.number\" , iBundle.getString(\"reminderreport.title.date\") );\n\n return iBundle.getString(\"reminderreport.title\");\n }", "public String getMessage()\n {\n return super.getMessage()+promo_error+\"not found\";\n }", "public AlertDialog getSettingsDialog(String message, String title, final String intentName){\n AlertDialog.Builder alertDialog = new AlertDialog.Builder(context);\n // Setting Dialog Title\u000b\n alertDialog.setTitle(title)\n // Setting Dialog Message\u000b\n .setMessage(message)\n // Accion de Aceptacion button\u000b\n .setPositiveButton(\"Configurar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n Intent intent = new Intent(intentName);\n context.startActivity(intent);\n }\n });\n // Acción de cancelacion\u000b\n alertDialog.setNegativeButton(\"Cancelar\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n }\n });\n return alertDialog.create();\n }", "protected String getSelectionTitle() {\n\t\treturn Messages.ModelElementSelectionPageMessage;\n\t}", "@Override\n public String getMessage() {\n String chuoi=\"\";\n if (maCD.length()!=5)\n chuoi=\"MaCD bao gom 5 ki tu\";\n else if (soBaiHat<10)\n chuoi=\"So bai hat phai lon hon 10 bai\";\n return\n chuoi;\n }", "public static String displayMessage() {\n return \"Press B to open shop menu.\";\n }", "public String getText() {\n return msgText;\n }", "boolean isDefaultMessage();", "private void buildAlertMessageNoGps()\n {\n builder = new AlertDialog.Builder(SplashActivity.this);//Enable to getLocation\n builder.setMessage(getString(R.string.gpsdisabled))\n .setCancelable(false)\n .setPositiveButton(getString(R.string.settings), new DialogInterface.OnClickListener() {\n public void onClick(@SuppressWarnings(\"unused\") final DialogInterface dialog, @SuppressWarnings(\"unused\") final int id) {\n startActivityForResult(new Intent(android.provider.Settings.ACTION_LOCATION_SOURCE_SETTINGS), 01);\n }\n })\n .setNegativeButton(getString(R.string.cancel), new DialogInterface.OnClickListener() {\n public void onClick(final DialogInterface dialog, @SuppressWarnings(\"unused\") final int id)\n {\n finish();\n dialog.cancel();\n }\n });\n alert = builder.create();\n alert.show();\n }", "@Override\r\n\t\tpublic boolean promptYesNo(String message) {\n\t\t\treturn true;\r\n\t\t}", "public static void showConfirmationDialog(Context context,\n @StringRes int titleRes,\n @StringRes int messageRes,\n final SingleButtonCallback positiveAction,\n final SingleButtonCallback negativeAction) {\n new MaterialDialog.Builder(context)\n .title(titleRes)\n .content(messageRes)\n .positiveText(android.R.string.yes)\n .onPositive(positiveAction)\n .negativeText(android.R.string.no)\n .onNegative(negativeAction)\n .show();\n\t}", "public String getMessageText() {\n return messageText;\n }", "public String getAlertText() {\n try {\n Alert alert = getDriver().switchTo().alert();\n String alertText = alert.getText();\n return alertText;\n } catch (NoAlertPresentException e) {\n throw new NoAlertPresentException();\n }\n }", "public String getMenuMessage() {\n return menuMessage;\n }", "public java.lang.String getMSG() {\n return MSG;\n }", "public String getTaskTitle() {\n return String.valueOf(comboBox.getSelectedItem());\n }", "public String getTextVehicleGroupNamevalidationMessage() {\r\n\t\t\tString str = safeGetText(addVehiclesHeader.replace(\"Add Vehicle\", \"Vehicle group name already exists.\"), MEDIUMWAIT);\r\n\t\t\treturn str;\r\n\t\t}", "protected void sendSMSMessage(String phonnumber) {\n String message = null;\r\n if (BookElectionFrgament.BTTtime == true) {\r\n message = \"Hey! The tee time booking is confirmed as follows Date -\" + BookElectionFrgament.formattedDate + \"\\n, Time - \" + BookElectionFrgament.timeselected + \"\\n, No. of Holes - \" + BookElectionFrgament.hole + \"\\nSee you at Karma Lakelands! \";\r\n } else if (Bookingdriverange.BDRTime == true) {\r\n message = \"Hey! The driving range booking is confirmed as follows Date -\" + Bookingdriverange.formattedDate + \"\\n, Time - \" + Bookingdriverange.timeselected + \"\\n, Balls - \" + Bookingdriverange.bucketselected + \"\\nSee you at Karma Lakelands! \";\r\n\r\n }\r\n\r\n try {\r\n SmsManager smsManager = SmsManager.getDefault();\r\n\r\n smsManager.sendTextMessage(phonnumber, null, message, null, null);\r\n\r\n // Customdialog messagedialog= new Customdialog(SMS1.this);\r\n // messagedialog.show();\r\n\r\n Toast.makeText(getApplicationContext(), \"Your message has been sent successfully!\", Toast.LENGTH_SHORT).show();\r\n } catch (Exception e) {\r\n Toast.makeText(getApplicationContext(), \"SMS failed, please try again.\", Toast.LENGTH_SHORT).show();\r\n e.printStackTrace();\r\n }\r\n }", "public String validateAddVehiclePageTitleTitle(){\n\t\treturn driver.getTitle();\n\t}", "@Override\n public String getUnansweredPromptText() {\n return (\"Please select an item or add your own.\");\n }", "boolean getSkipMessage();", "public String getSpecificHelpTitle() {\n return specificHelpTitle;\n }", "public String getMessage() {\n return super.getString(Constants.Properties.MESSAGE);\n }", "public static String promptForString(String title) {\n return (JOptionPane.showInputDialog(null,\n title));\n }", "public boolean isInAppMessageShowing() {\n return false;\n }", "public String getTextVehicleGroupNameValidationMessage() {\r\n\t\tString str = safeGetText(addVehiclesHeader.replace(\"Add Vehicle\", \"Please Input Vehicle Group Name\"), SHORTWAIT);\r\n\t\treturn str;\r\n\t}", "public void showLooseMessage() {\n\t\tAlertDialog alert = new AlertDialog.Builder(getContext()).create();\n\t\talert.setCancelable(false);\n\n\t\talert.setMessage(\"You Loose!\");\n\t\talert.setButton(AlertDialog.BUTTON_POSITIVE, \"Replay\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\n\t\t\t\t\t}\n\n\t\t\t\t});\n\t\talert.setButton(AlertDialog.BUTTON_NEGATIVE, \"Exit\",\n\t\t\t\tnew DialogInterface.OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\tactivity.finish();\n\t\t\t\t\t}\n\n\t\t\t\t});\n\n\t\talert.show();\n\n\t}", "AlertDialog.Builder alertDialogBuilderSentSuccessMessage(Context context) {\n AlertDialog.Builder builder = new AlertDialog.Builder(context);\n builder.setTitle(\"Verification Account Message\");\n builder.setMessage(R.string.resend_ver_email_message_success);\n builder.setIcon(R.drawable.ic_action_info);\n builder.setPositiveButton(\"ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n builder.show();\n\n return builder;\n }", "public String getMessageButton() {\n return messageButton;\n }", "protected static String getTitle() {\r\n return Lock.title;\r\n }", "@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}", "public String getSndFlg() {\n return sndFlg;\n }", "public String getPmsName() {\n return pmsName;\n }", "public StrColumn getTitleSuppression() {\n return delegate.getColumn(\"title_suppression\", DelegatingStrColumn::new);\n }", "public String getTitle() {\n return \"\";\n }", "public String getNoPagedMessage(javax.faces.context.FacesContext facesContext) {\n\t\tString s = engine.getStringProperty(Properties.NO_PAGED_MESSAGE, facesContext);\n\t\treturn s;\n\t}", "public String getAlertText() {\n\t\tAlert popUp = null;\n\t\ttry {\n\t\t\tpopUp = getDriver().switchTo().alert();\n\t\t} catch (NoAlertPresentException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn popUp.getText().trim();\n\t}" ]
[ "0.6701287", "0.6536706", "0.64575607", "0.64030546", "0.6305101", "0.5821373", "0.57968134", "0.57475764", "0.5695276", "0.56790507", "0.5613332", "0.5588291", "0.55753994", "0.5575069", "0.55524665", "0.5543841", "0.5471739", "0.54358065", "0.54357237", "0.5429874", "0.5416922", "0.54123724", "0.5386139", "0.53841853", "0.5363159", "0.532061", "0.52915335", "0.52874273", "0.5286471", "0.5284653", "0.52809525", "0.52747065", "0.5272776", "0.52666324", "0.52511007", "0.524194", "0.52341795", "0.52338", "0.5227705", "0.52187765", "0.5216387", "0.5198064", "0.5192953", "0.518522", "0.51844496", "0.51783836", "0.5177057", "0.517611", "0.516386", "0.5161512", "0.5144957", "0.5113626", "0.51123065", "0.5093803", "0.5090708", "0.50800997", "0.5075608", "0.5074521", "0.5068178", "0.50630873", "0.50564426", "0.50533247", "0.50507355", "0.50395876", "0.50279415", "0.502144", "0.5019428", "0.5016744", "0.5014057", "0.49988738", "0.49856943", "0.49805894", "0.4979985", "0.49762723", "0.49715206", "0.4971517", "0.49709287", "0.49706852", "0.49664396", "0.49655363", "0.49653974", "0.49653095", "0.49641263", "0.4959359", "0.49532825", "0.4949326", "0.4946178", "0.4944677", "0.49419832", "0.4941671", "0.49400085", "0.49319434", "0.49292567", "0.49226543", "0.49218786", "0.4912754", "0.490453", "0.49033776", "0.4903127", "0.48994026" ]
0.8113939
0
Returns the dialog title for the case when the camera is disabled.
String getDisableCameraTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDisableScreenCaptureTitle();", "public String getDialogTitle(){\n return getField().getDialogTitle();\n }", "PreferenceDialogTitleAttribute getDialogTitle();", "String getDisallowAdjustVolumeTitle();", "String getDefaultDisabledByPolicyTitle();", "String getDisallowSmsTitle();", "@Override\n\tpublic String getDisplayName()\n\t{\n\t\treturn this.getCameraActivity().getString(R.string.scene_hdr);\n\t}", "String getDisabledByPolicyTitleForFinancedDevice();", "public String getModalPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(modalPageTitle).getText();\n }", "private void dialogNoCamera() {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n\t\tbuilder.setMessage(\"Your device has no cameras!\")\n\t\t\t\t.setCancelable(false)\n\t\t\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\tAlertDialog alert = builder.create();\n\t\talert.show();\n\t}", "protected String getWizardWindowTitle() {\n\t\treturn DropWizardMessages.Wizard_Window_Title;\n\t}", "String getDisallowOutgoingCallsTitle();", "String getDisabledBiometricsParentConsentTitle();", "public String getTitle() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_TITLE);\r\n }", "private String getName()\r\n {\r\n return JOptionPane.showInputDialog(frame, \"Choose a screen name:\", \"Screen name selection\",\r\n JOptionPane.PLAIN_MESSAGE);\r\n }", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tprotected String getWindowTitle() {\n\t\treturn \"LodeRunnerGANLevelBreeder\";\n\t}", "public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }", "public String getTitleChoice() {\n return io.readString(\"Please enter the Title of the DVD: \");\n }", "String getCaption();", "@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }", "public String validateAddVehiclePageTitleTitle(){\n\t\treturn driver.getTitle();\n\t}", "@Override\n public String getTitle() {\n return string(\"sd-l-toolbar\");\n }", "@Override\n public String getTitleString()\n {\n int capsState;\n\n int state = softBoardData.layoutStates.metaStates[LayoutStates.META_CAPS].getState();\n if ( state == CapsState.META_OFF )\n {\n capsState = 0;\n }\n else if ( state == CapsState.META_LOCK )\n {\n capsState = 2;\n }\n else if ( state == CapsState.AUTOCAPS_ON && !softBoardData.autoFuncEnabled )\n {\n capsState = 0;\n }\n else // state == IN_TOUCH || META_ON || AUTOCAPS_ON with enabled autoFunc\n {\n capsState = stringCaps ? 2 : 1;\n }\n\n switch ( capsState )\n {\n case 0:\n return getString();\n\n case 1:\n return StringUtils.toUpperOnlyFirst( getString(), softBoardData.locale );\n\n default: // case 2:\n return getString().toUpperCase( softBoardData.locale );\n }\n\n }", "public String getPanelName() {\n return \"Title\";\n }", "@Override\n public CharSequence onDisableRequested(Context context, Intent intent) {\n return context.getString(R.string.disable_warning);\n }", "private void setDialogTitle(String title) {\n DialogboxTitle = title;\n }", "@Override\r\n\tpublic String getShowTitle() {\n\t\treturn getQymc();\r\n\t}", "public String getTitle() {\n return null;\n }", "public String getTitle() {\n return \"\";\n }", "private void hideTheWindowTitle() {\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t}", "public String determineAccessibilityPaneTitle() {\n C0940QS qs = this.mQs;\n if (qs != null && qs.isCustomizing()) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings_edit);\n }\n if (this.mQsExpansionHeight != 0.0f && this.mQsFullyExpanded) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings);\n }\n if (this.mBarState == 1) {\n return this.mResources.getString(C2017R$string.accessibility_desc_lock_screen);\n }\n return this.mResources.getString(C2017R$string.accessibility_desc_notification_shade);\n }", "@Override\r\n public String getTitle()\r\n {\n return null;\r\n }", "@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\r\n\t protected void onPrepareDialog(int id, Dialog dialog) {\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t \tdialog.setTitle(\"Send Instant Message\");\r\n\t break;\r\n\t }\r\n\t }", "@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}", "public String validateLoginPageTitile(){\n return driver.getTitle();//qani vor gettitley stringa get berum menq\n }", "@Override\n\tprotected String getTitle()\n\t{\n\t\treturn null;\n\t}", "public String disabledReasonMessage() {\n return this.disabledReasonMessage;\n }", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t}", "public String getLoginTitle(){\n\t\treturn driver.findElement(titleText).getText();\n\t}", "public String getLoginTitle(){\n\t return\tdriver.findElement(titleText).getText();\n\t}", "String getDefaultDisabledByPolicyContent();", "public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t\t\n\t}", "public String getTitle( ) {\n return null;\r\n }", "@RecentlyNullable\n/* */ public CharSequence getPaneTitle() {\n/* 1054 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected String getHelpText() {\n return \"\";\n }", "private void displayErrorTitle(){\n progressTitle.setText(getResources().getString(R.string.error_title));\n }", "@Override\n public String getTitle() {\n return getName();\n }", "public String RequiredCaption()\n\t{\n\t\t//Click on Add a new Computer on Home Page to Navigate to Creation of Computer Page\n\t\tAddComputer.click();\n\t\t\n\t\t//Wait Time after each transaction\n\t\tWebDriverWait wait = new WebDriverWait(driver,2);\n\t\t\n\t\tString Requiredcaption = RequiredCaption.getText();\n\t\treturn Requiredcaption;\n\t}", "public void setTitleAccordingToState(){\n String ts=null;\n switch(getPlayMode()){\n case LIVE:\n ts=\" LIVE\";\n break;\n case PLAYBACK:\n ts=currentFile.getName()+\" PLAYING\";\n break;\n case WAITING:\n ts=\"MotionViewer - WAITING\";\n break;\n }\n setTitle(ts);\n }", "public String getTitle() {\n return bufTitle;\n }", "@Override\n public ObservableField<String> getTitle() {\n return new ObservableField<>(ResourceUtil.getString(R.string.pay_success));\n }", "public String getTitle() {\n\t\treturn getDriver().getTitle().trim();\n\t}", "public String getTitle() {\n\t\t\n\t\tStringBuilder titleBuilder = new StringBuilder();\n\t\ttitleBuilder.append(CorrelatorConfig.AppName);\n\t\ttitleBuilder.append(\" \");\n\n\t\tif (m_activeMap != null) {\n\t\t\ttitleBuilder.append(\"(\" + m_activeMap.getName() + \")\");\t\t\n\t\t}\n\t\t\n\t\t// Stage is where visual parts of JavaFX application are displayed.\n return titleBuilder.toString();\n\t}", "public String validatePageTitle(){\n\treturn driver.getTitle();\t\n\t}", "String disabledButton();", "@Override\n public String getDisplayName() {\n return Strings.getString(\"BuildPipelineTrigger.DisplayText\"); //$NON-NLS-1$\n }", "@Override\n\tpublic int getTitle() {\n\t\treturn 0;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}", "private String getStatusDefaultMessage() {\r\n\r\n\t\tfinal Collection<GalleryMT20Item> allSelectedPhoto = _galleryMT20.getSelection();\r\n\t\tfinal int allPhotoSize = allSelectedPhoto.size();\r\n\r\n\t\treturn allPhotoSize == 0 //\r\n\t\t\t\t// hide status message when nothing is selected\r\n\t\t\t\t? UI.EMPTY_STRING\r\n\t\t\t\t: NLS.bind(Messages.Pic_Dir_StatusLabel_SelectedImages, allPhotoSize);\r\n\t}", "public String getCancelButtonCaption() {\r\n\t\tif (_cancelButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _cancelButton.getDisplayName();\r\n\t}", "String getModuleDisplayName();", "@NonNull\r\n public String getTitle() {\r\n return f_title;\r\n }", "public String getPresentationName();", "public String getPresentationName();", "public String getPresentationName() {\n throw new UnsupportedOperationException(\"The getPresentationName() method is not supported.\");\n }", "public String getTitle() {\n return getString(CommandProperties.TASK_TITLE);\n }", "public String mo6833a() {\n return \"show_dialog\";\n }", "public String getWindowTitle() {\r\n\t\treturn windowTitle;\r\n\t}", "protected String getSelectionTitle() {\n\t\treturn Messages.ModelElementSelectionPageMessage;\n\t}", "public String getTitle() {\n return iBundle.getString(\"supplierdebtreport.title\");\n }", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n Toast.makeText(this, \"No\", Toast.LENGTH_LONG).show();\n\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n Dialog dialog = super.onCreateDialog(savedInstanceState);\n dialog.requestWindowFeature(Window.FEATURE_NO_TITLE);\n return dialog;\n }", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "String getDisplay_name();", "private String getPlayerName() {\n\t\tString[] options = {\"OK\"};\n\t\tJPanel namePanel = new JPanel(new GridLayout(0, 1));\n\t\tJLabel lbl = new JLabel(\"Next player, what is your name?\");\n\t\tJTextField txt = new JTextField(10);\n\t\tnamePanel.add(lbl);\n\t\tnamePanel.add(txt);\n\t\t\n\t\t// show dialog box\n\t\tJOptionPane.showOptionDialog(frame, namePanel, \"Player name\",\n\t\t\t\tJOptionPane.NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options , options[0]);\n\t\tString playerName = txt.getText();\n\t\twhile(playerName.length() < 1){\n\t\t\tlbl.setText(\"Name must be at least one character long.\");\n\t\t\tJOptionPane.showOptionDialog(frame, namePanel, \"Player name\",\n\t\t\t\t\tJOptionPane.NO_OPTION, JOptionPane.WARNING_MESSAGE, null, options , options[0]);\n\t\t\tplayerName = txt.getText();\n\t\t}\n\t\treturn playerName;\n\t}", "public java.lang.String getTitle();", "public String lerNome() {\n\t\treturn JOptionPane.showInputDialog(\"Digite seu Nome:\");\n\t\t// janela de entrada\n\t}", "@Override\n\tpublic String getEditTitle() {\n\t\treturn \"NIVEAU ETUDE\";\n\t}", "public String getDeleteButtonCaption() {\r\n\t\tif (_deleteButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _deleteButton.getDisplayName();\r\n\t}", "public String getWhoseTurnDesc() {\n if (gameStatus == null || userId == null) return \"\";\n return userId.equals(gameStatus.getActivePlayer()) ? \"MY TURN\" : \"OPPONENT'S TURN\";\n }", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();" ]
[ "0.75201803", "0.67001015", "0.64893883", "0.6406941", "0.62087643", "0.58083534", "0.57262915", "0.56995595", "0.5687961", "0.5666503", "0.5485517", "0.5470919", "0.54289883", "0.540989", "0.53452134", "0.5313293", "0.530489", "0.5248636", "0.52346146", "0.52203196", "0.5199376", "0.5191083", "0.51906", "0.51838017", "0.5155671", "0.5146256", "0.5142748", "0.51397955", "0.5131251", "0.51128465", "0.50957423", "0.5094885", "0.5093929", "0.50904536", "0.508545", "0.50760376", "0.507572", "0.50603026", "0.50516075", "0.5047312", "0.50343466", "0.502298", "0.502298", "0.502298", "0.5007058", "0.49971902", "0.49963567", "0.499521", "0.49936378", "0.49613857", "0.4953266", "0.49475533", "0.49435234", "0.49389118", "0.49383825", "0.49221036", "0.4913723", "0.49100217", "0.49097624", "0.49070713", "0.49060786", "0.48964027", "0.48882923", "0.48846853", "0.48697782", "0.48621586", "0.48583502", "0.48577514", "0.48503238", "0.48453423", "0.48453423", "0.48377815", "0.48362345", "0.48337078", "0.48320016", "0.48295915", "0.48213178", "0.48208395", "0.48208395", "0.48208395", "0.48208395", "0.48208395", "0.48208395", "0.48165566", "0.4812611", "0.48090297", "0.48090297", "0.48090297", "0.48090297", "0.48090297", "0.48043877", "0.48005235", "0.47961646", "0.47901747", "0.47823727", "0.4780341", "0.47773814", "0.47765088", "0.47765088", "0.47765088" ]
0.81549406
0
Returns the dialog title for the case when screen capturing is disabled.
String getDisableScreenCaptureTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDisableCameraTitle();", "public String getDialogTitle(){\n return getField().getDialogTitle();\n }", "PreferenceDialogTitleAttribute getDialogTitle();", "private String getName()\r\n {\r\n return JOptionPane.showInputDialog(frame, \"Choose a screen name:\", \"Screen name selection\",\r\n JOptionPane.PLAIN_MESSAGE);\r\n }", "String getDisallowSmsTitle();", "String getDefaultDisabledByPolicyTitle();", "String getDisallowAdjustVolumeTitle();", "String getScreenName() throws UnsetScreenException;", "protected String getWizardWindowTitle() {\n\t\treturn DropWizardMessages.Wizard_Window_Title;\n\t}", "public String getModalPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(modalPageTitle).getText();\n }", "private String getPrompt(){\n return \"Now \" + (isWhiteTurn ? \"White\" : \"Black\");\n }", "String getDisallowOutgoingCallsTitle();", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "@Override\n public String getTitleString()\n {\n int capsState;\n\n int state = softBoardData.layoutStates.metaStates[LayoutStates.META_CAPS].getState();\n if ( state == CapsState.META_OFF )\n {\n capsState = 0;\n }\n else if ( state == CapsState.META_LOCK )\n {\n capsState = 2;\n }\n else if ( state == CapsState.AUTOCAPS_ON && !softBoardData.autoFuncEnabled )\n {\n capsState = 0;\n }\n else // state == IN_TOUCH || META_ON || AUTOCAPS_ON with enabled autoFunc\n {\n capsState = stringCaps ? 2 : 1;\n }\n\n switch ( capsState )\n {\n case 0:\n return getString();\n\n case 1:\n return StringUtils.toUpperOnlyFirst( getString(), softBoardData.locale );\n\n default: // case 2:\n return getString().toUpperCase( softBoardData.locale );\n }\n\n }", "public String getScreenMessage();", "public String determineAccessibilityPaneTitle() {\n C0940QS qs = this.mQs;\n if (qs != null && qs.isCustomizing()) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings_edit);\n }\n if (this.mQsExpansionHeight != 0.0f && this.mQsFullyExpanded) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings);\n }\n if (this.mBarState == 1) {\n return this.mResources.getString(C2017R$string.accessibility_desc_lock_screen);\n }\n return this.mResources.getString(C2017R$string.accessibility_desc_notification_shade);\n }", "public String getScreenName()\n {\n return SCREEN_NAME;\n }", "public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t}", "public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t\t\n\t}", "String getDisabledByPolicyTitleForFinancedDevice();", "public String validatePageTitle(){\n\treturn driver.getTitle();\t\n\t}", "public String getTitleChoice() {\n return io.readString(\"Please enter the Title of the DVD: \");\n }", "public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}", "String getDisabledBiometricsParentConsentTitle();", "@Override\r\n\t protected void onPrepareDialog(int id, Dialog dialog) {\n\t switch(id){\r\n\t case(ID_SCREENDIALOG):\r\n\t \tdialog.setTitle(\"Send Instant Message\");\r\n\t break;\r\n\t }\r\n\t }", "public String validateAddVehiclePageTitleTitle(){\n\t\treturn driver.getTitle();\n\t}", "@Override\r\n\tpublic String getShowTitle() {\n\t\treturn getQymc();\r\n\t}", "public String getTitle() {\n\t\treturn getDriver().getTitle().trim();\n\t}", "@Override\n\tpublic String getDisplayName()\n\t{\n\t\treturn this.getCameraActivity().getString(R.string.scene_hdr);\n\t}", "@Override\r\n\tpublic String getScreenParameter() {\n\t\treturn null;\r\n\t}", "public String getDisplayName () throws java.io.IOException, com.linar.jintegra.AutomationException;", "public String validateLoginPageTitile(){\n return driver.getTitle();//qani vor gettitley stringa get berum menq\n }", "public String GetLoginPagetitle() {\n\t\treturn driver.getTitle();\n\t}", "public String getLoginTitle(){\n\t\treturn driver.findElement(titleText).getText();\n\t}", "public String getLoginTitle(){\n\t return\tdriver.findElement(titleText).getText();\n\t}", "public String getAnalyticsTitle() {\n Ensighten.evaluateEvent(this, \"getAnalyticsTitle\", null);\n return getString(C2658R.string.analytics_screen_policy_updates);\n }", "public String getScreenName() {\n return screenName;\n }", "public String getCurrentWindowTitle(){\n buffer = new char[MAX_TITLE_LENGTH * 2];\n GetWindowTextW(GetForegroundWindow(), buffer, MAX_TITLE_LENGTH);\n return Native.toString(buffer);\n }", "public String getTitle() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_TITLE);\r\n }", "public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }", "public String getName()\r\n {\r\n return screenName;\r\n }", "public String getPrintTitle();", "public String screenName() {\n return screenName;\n }", "protected String getSelectionTitle() {\n\t\treturn Messages.ModelElementSelectionPageMessage;\n\t}", "public String getLoginTitle() {\n\t\treturn driver.getTitle();\n\t}", "public String getLoginTitle() {\n\t\treturn driver.getTitle();\n\t\t\n\t}", "@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }", "@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}", "public String getPromptRegex() {\r\n\t\treturn null;\r\n\t}", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "public String getTitle() {\n\t\t\n\t\tStringBuilder titleBuilder = new StringBuilder();\n\t\ttitleBuilder.append(CorrelatorConfig.AppName);\n\t\ttitleBuilder.append(\" \");\n\n\t\tif (m_activeMap != null) {\n\t\t\ttitleBuilder.append(\"(\" + m_activeMap.getName() + \")\");\t\t\n\t\t}\n\t\t\n\t\t// Stage is where visual parts of JavaFX application are displayed.\n return titleBuilder.toString();\n\t}", "String getSuspendPackagesTitle();", "public String getWindowTitle() {\r\n\t\treturn windowTitle;\r\n\t}", "public String getScreenName() {\n\treturn this.screenName;\n }", "public String title() {\n return webDriver.getTitle();\n }", "public String getScreenName() {\n\t\treturn restClient.getScreenName();\n\t}", "public String getActiveTitle() {\n\t\treturn getTitle(TitleBuilder.byActiveWindow());\n\t}", "public String getWhoseTurnDesc() {\n if (gameStatus == null || userId == null) return \"\";\n return userId.equals(gameStatus.getActivePlayer()) ? \"MY TURN\" : \"OPPONENT'S TURN\";\n }", "public String mo6833a() {\n return \"show_dialog\";\n }", "private void hideTheWindowTitle() {\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t}", "public String getTitle() {\n return bufTitle;\n }", "public String getLegalWindow() {\n\t\tif(driver.getWindowHandles().isEmpty())\n\t\t\treturn null;\n\t\t\n\t\treturn driver.getWindowHandles().iterator().next();\n\t}", "String getOverrideFocusTitle(String title, String content);", "public String getSndFlg() {\n return sndFlg;\n }", "@Override\n public CharSequence onDisableRequested(Context context, Intent intent) {\n return context.getString(R.string.disable_warning);\n }", "public String getWatchListPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(otherPageTitle).getText();\n\n }", "static String getNameFromUser( Frame owner )\n\t{\n\t\treturn JOptionPane.showInputDialog( owner,\n\t\t\t\t \"You are a high scorer! Please enter your name.\",\n\t\t\t\t \"Congratulations!\",\n\t\t\t\t JOptionPane.QUESTION_MESSAGE );\n\t}", "public String getTitle() {\n \t\treturn getWebDriver().getTitle();\n \t}", "public String getLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t}", "public String getWindowTitle() {\n\t\treturn windowTitle;\n\t}", "@Override\n\tprotected String getWindowTitle() {\n\t\treturn \"LodeRunnerGANLevelBreeder\";\n\t}", "public String getTitle() {\n\t\t\n\treturn driver.getTitle();\n\t\n\t}", "@RecentlyNullable\n/* */ public CharSequence getPaneTitle() {\n/* 1054 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public boolean hasSpecificDiseaseTitle() {\n return fieldSetFlags()[0];\n }", "public String getPageTitle()\n\t{\n\t\treturn driver.getTitle();\n\t}", "String getDisplay_name();", "public String getPageTitle() {\n\t\treturn driver.getTitle();\n\t}", "public String getPresentationName();", "public String getPresentationName();", "public String getPanelName() {\n return \"Title\";\n }", "String getFocusPref(boolean is_video);", "public String get_defineSetupPage_Titletext() {\r\n\t\treturn FetchText(DefineSetupPageTitle);\r\n\t}", "public String getOsPromptPattern() {\n return osPromptPattern;\n }", "public String getPageTitle() {\n return driver.getTitle();\n }", "private void setDialogTitle(String title) {\n DialogboxTitle = title;\n }", "public String getTitle() {\n return null;\n }", "@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public void showDuplicatePlayerNameMessage() {\n Optional<SelectGameScreen> maybeSelectGameScreen = getSelectGameScreenIfActive();\n if (maybeSelectGameScreen.isPresent()) {\n maybeSelectGameScreen.get().showDuplicatePlayerNameMessage();\n } else {\n showError(\"Player name already exists.\");\n }\n }", "public String getFailScreen()\n {\n return failScreen;\n }", "public String getTitle() {\n return iBundle.getString(\"supplierdebtreport.title\");\n }", "public String getEventTitle()\n {\n EventTitle = EventNameField.getText();\n return EventTitle;\n }", "public final java.lang.String getDisplayName() { throw new RuntimeException(\"Stub!\"); }", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}", "String title();" ]
[ "0.6942801", "0.64841557", "0.64688724", "0.62174106", "0.6078851", "0.59218574", "0.59108144", "0.58725727", "0.57349247", "0.5676761", "0.5640427", "0.5605424", "0.56040823", "0.5588851", "0.55474615", "0.5532819", "0.5531597", "0.5502443", "0.5491632", "0.54902667", "0.54887384", "0.54776", "0.545214", "0.54511386", "0.54325306", "0.54324216", "0.5397237", "0.5381048", "0.53473747", "0.533661", "0.5295928", "0.5248418", "0.52297366", "0.5197037", "0.5179106", "0.517559", "0.5157315", "0.5134369", "0.51261353", "0.51231825", "0.5117217", "0.5114542", "0.5101258", "0.5098897", "0.50922894", "0.50803995", "0.5071874", "0.5061898", "0.5054753", "0.5054693", "0.50534934", "0.5049693", "0.50392056", "0.50383204", "0.5033832", "0.5029896", "0.5014511", "0.50119656", "0.4986784", "0.49862805", "0.4979391", "0.49793598", "0.49782526", "0.49765688", "0.49711972", "0.49627027", "0.49618357", "0.49545097", "0.49513453", "0.49507487", "0.49484828", "0.49377054", "0.4927979", "0.49246904", "0.4916521", "0.49152863", "0.49146244", "0.491117", "0.491117", "0.49009827", "0.48989362", "0.48978254", "0.48968992", "0.4890381", "0.48861578", "0.48829544", "0.48820505", "0.48799354", "0.48773322", "0.4870906", "0.4866493", "0.48660043", "0.48653558", "0.48653558", "0.48653558", "0.48653558", "0.48653558", "0.48653558", "0.48643768", "0.48580456" ]
0.82551026
0
Returns the dialog title for the case when suspending apps is disabled.
String getSuspendPackagesTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDisabledByPolicyTitleForFinancedDevice();", "String getDefaultDisabledByPolicyTitle();", "String getDisableScreenCaptureTitle();", "PreferenceDialogTitleAttribute getDialogTitle();", "String getDisallowAdjustVolumeTitle();", "String getDisallowSmsTitle();", "String getDisallowOutgoingCallsTitle();", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "String getDisabledBiometricsParentConsentTitle();", "String getDisableCameraTitle();", "public String getDialogTitle(){\n return getField().getDialogTitle();\n }", "public String disabledReasonMessage() {\n return this.disabledReasonMessage;\n }", "public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}", "@Override\n public CharSequence onDisableRequested(Context context, Intent intent) {\n return context.getString(R.string.disable_warning);\n }", "public String getModalPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(modalPageTitle).getText();\n }", "public String getTitle() {\n return getString(CommandProperties.TASK_TITLE);\n }", "public String getTitle() {\n Ensighten.evaluateEvent(this, \"getTitle\", null);\n return getString(C2658R.string.lite_title_policy_updates);\n }", "private String getPrompt(){\n return \"Now \" + (isWhiteTurn ? \"White\" : \"Black\");\n }", "public String GetLoginPagetitle() {\n\t\treturn driver.getTitle();\n\t}", "public String getActiveTitle() {\n\t\treturn getTitle(TitleBuilder.byActiveWindow());\n\t}", "@Override\n public String getTitleString()\n {\n int capsState;\n\n int state = softBoardData.layoutStates.metaStates[LayoutStates.META_CAPS].getState();\n if ( state == CapsState.META_OFF )\n {\n capsState = 0;\n }\n else if ( state == CapsState.META_LOCK )\n {\n capsState = 2;\n }\n else if ( state == CapsState.AUTOCAPS_ON && !softBoardData.autoFuncEnabled )\n {\n capsState = 0;\n }\n else // state == IN_TOUCH || META_ON || AUTOCAPS_ON with enabled autoFunc\n {\n capsState = stringCaps ? 2 : 1;\n }\n\n switch ( capsState )\n {\n case 0:\n return getString();\n\n case 1:\n return StringUtils.toUpperOnlyFirst( getString(), softBoardData.locale );\n\n default: // case 2:\n return getString().toUpperCase( softBoardData.locale );\n }\n\n }", "public String getTaskTitle() {\n return String.valueOf(comboBox.getSelectedItem());\n }", "public String getApplicationTitle() {\n return applicationTitle.get();\n }", "public String getTitleChoice() {\n return io.readString(\"Please enter the Title of the DVD: \");\n }", "String getDefaultDisabledByPolicyContent();", "public String getWatchListPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(otherPageTitle).getText();\n\n }", "protected String getWizardWindowTitle() {\n\t\treturn DropWizardMessages.Wizard_Window_Title;\n\t}", "public String getAnalyticsTitle() {\n Ensighten.evaluateEvent(this, \"getAnalyticsTitle\", null);\n return getString(C2658R.string.analytics_screen_policy_updates);\n }", "protected static String getTitle() {\r\n return Lock.title;\r\n }", "public String getTitle() {\n\t\t\n\t\tStringBuilder titleBuilder = new StringBuilder();\n\t\ttitleBuilder.append(CorrelatorConfig.AppName);\n\t\ttitleBuilder.append(\" \");\n\n\t\tif (m_activeMap != null) {\n\t\t\ttitleBuilder.append(\"(\" + m_activeMap.getName() + \")\");\t\t\n\t\t}\n\t\t\n\t\t// Stage is where visual parts of JavaFX application are displayed.\n return titleBuilder.toString();\n\t}", "public String getTitle() {\n return iBundle.getString(\"supplierdebtreport.title\");\n }", "public String getSuspension();", "public String getTitle() {\n\t\treturn getDriver().getTitle().trim();\n\t}", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }", "public String getCurrentWindowTitle(){\n buffer = new char[MAX_TITLE_LENGTH * 2];\n GetWindowTextW(GetForegroundWindow(), buffer, MAX_TITLE_LENGTH);\n return Native.toString(buffer);\n }", "public String getTitle() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_TITLE);\r\n }", "private void showSuspendedDialog() {\n\n\t\tUtils utils = Utils.getInstance(Sw_LoginScreenActivity.this);\n\t\tString imei = utils.getIMEI();\n\n\t\tImeiCompanyDao companyDao = new ImeiCompanyDao();\n\n\t\t// if Tab not suspended not showing the dialog\n\t\tif (!companyDao.isTabSuspended(imei))\n\t\t\treturn;\n\n\t\tdialog = new Dialog(this);\n\t\tBuilder builder = new AlertDialog.Builder(this);\n\t\tLayoutInflater inflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);\n\t\tView layout1 = inflater.inflate(R.layout.dialog_suspended_imei, null);\n\n\t\t((Button) layout1.findViewById(R.id.btn_dsi_retry)).setOnClickListener(new OnClickListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tdialogDismiss(dialog);\n\t\t\t\tshowSuspendedDialog();\n\t\t\t}\n\t\t});\n\n\t\tbuilder.setView(layout1);\n\t\tdialog = builder.create();\n\t\tdialog.setCancelable(false);\n\t\tdialog.show();\n\n\t}", "@Override\r\n\tpublic String getShowTitle() {\n\t\treturn getQymc();\r\n\t}", "public String getApplicationName() {\n\t\treturn this.properties.getProperty(SoundLooperProperties.KEY_APPLICATION_NAME, \"UNKNOW\");\n\t}", "public String getLoginTitle(){\n\t\treturn driver.findElement(titleText).getText();\n\t}", "public String getWindowTitle() {\r\n\t\treturn windowTitle;\r\n\t}", "public CharSequence getLabel() {\n // TODO: Go through LauncherAppsService\n return getActivityInfo().loadLabel(mPm);\n }", "public String getTitle() {\n return null;\n }", "public String getLoginTitle(){\n\t return\tdriver.findElement(titleText).getText();\n\t}", "public String getApplicationPresentation() {\n\t\treturn this.getApplicationName() + \" \" + this.getVersion();\n\t}", "public String getWindowTitle() {\n\t\treturn windowTitle;\n\t}", "public String getPollTitle()\n {\n return(this.pollTitle);\n }", "public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t}", "public ScreenshareReason getReason() {\n return reason;\n }", "public final String getTitle() {\r\n return config.title;\r\n }", "@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}", "public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t\t\n\t}", "public String getTitle() {\n addParameter(\"title.number\" , iBundle.getString(\"reminderreport.title.date\") );\n\n return iBundle.getString(\"reminderreport.title\");\n }", "@ReactMethod\n public void AlertIfWhitelist(String title, String message, String dontShowAgainText, String positiveText, String negativeText) {\n final SharedPreferences settings = this.getCurrentActivity().getSharedPreferences(\"Whitelist\",Context.MODE_PRIVATE);\n final String saveIfSkip = \"skipWhitelistMessage\";\n boolean skipMessage = settings.getBoolean(saveIfSkip, false);\n // Show dialog only when \"do not show again\" hasn't been enabled yet\n if (!skipMessage) {\n final SharedPreferences.Editor editor = settings.edit();\n // Check if intent of the android whitelist apps activity is callable\n for (Intent intent : AUTO_START_INTENTS){\n if (isCallable(intent)) {\n // Prepare dialog\n final AppCompatCheckBox dontShowAgain = new AppCompatCheckBox(this.getCurrentActivity());\n dontShowAgain.setText(dontShowAgainText);\n dontShowAgain.setLeft(20);\n dontShowAgain.setOnCheckedChangeListener(new CompoundButton.OnCheckedChangeListener() {\n @Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n editor.putBoolean(saveIfSkip, isChecked);\n editor.apply();\n }\n });\n\n final RelativeLayout layout = new RelativeLayout(this.getCurrentActivity());\n layout.setPadding(50,50,0,0);\n layout.addView(dontShowAgain);\n\n new AlertDialog.Builder(this.getCurrentActivity())\n .setTitle(title)\n .setMessage(message)\n .setView(layout)\n .setPositiveButton(positiveText, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n try {\n for (Intent intent : AUTO_START_INTENTS)\n if (isCallable(intent)) {\n editor.putBoolean(saveIfSkip, true);\n editor.apply();\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_MULTIPLE_TASK);\n reactContext.startActivity(intent);\n break;\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n })\n .setNegativeButton(negativeText, null)\n .show();\n break;\n }\n }\n }\n }", "public String getTitle() {\n return \"\";\n }", "public String getLoginTitle() {\n\t\treturn driver.getTitle();\n\t}", "public String getAlertTextWithoutUserIdandPassword() {\n\t\treturn util.getJavascriptAlertText();\n\t}", "@Override\n public String getUnansweredPromptText() {\n return (\"Please select an item or add your own.\");\n }", "@Override\n\tpublic String getResTitleName() {\n\t\treturn \"招待:\"+receivePartner;\n\t}", "public String getLoginTitle() {\n\t\treturn driver.getTitle();\n\t\t\n\t}", "private void hideTheWindowTitle() {\n\t\tgetWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,\n\t\t\t\tWindowManager.LayoutParams.FLAG_FULLSCREEN);\n\t\trequestWindowFeature(Window.FEATURE_NO_TITLE);\n\t}", "public String getUserTitle() {\n\t\treturn StringUtils.join(userTitle, messages.getString(\"TITLE_SEPARATOR\"));\n\t}", "private String getName()\r\n {\r\n return JOptionPane.showInputDialog(frame, \"Choose a screen name:\", \"Screen name selection\",\r\n JOptionPane.PLAIN_MESSAGE);\r\n }", "@Override\n public void showDiscardDialog() {\n //Creating an AlertDialog with a message, and listeners for the positive, neutral and negative buttons\n AlertDialog.Builder builder = new AlertDialog.Builder(requireActivity());\n //Set the Message\n builder.setMessage(R.string.product_config_unsaved_changes_dialog_message);\n //Set the Positive Button and its listener\n builder.setPositiveButton(R.string.product_config_unsaved_changes_dialog_positive_text, mUnsavedDialogOnClickListener);\n //Set the Negative Button and its listener\n builder.setNegativeButton(R.string.product_config_unsaved_changes_dialog_negative_text, mUnsavedDialogOnClickListener);\n //Set the Neutral Button and its listener\n builder.setNeutralButton(R.string.product_config_unsaved_changes_dialog_neutral_text, mUnsavedDialogOnClickListener);\n //Lock the Orientation\n OrientationUtility.lockCurrentScreenOrientation(requireActivity());\n //Create and display the AlertDialog\n builder.create().show();\n }", "public DisabledReason disabledReason() {\n return this.disabledReason;\n }", "public String getPrompt() {\n return prompt;\n }", "public String textReason() {\r\n return getParm(2).trim();\r\n }", "java.lang.String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "public String validatePageTitle(){\n\treturn driver.getTitle();\t\n\t}", "public Boolean getSuspend() {\n return suspend;\n }", "public String determineAccessibilityPaneTitle() {\n C0940QS qs = this.mQs;\n if (qs != null && qs.isCustomizing()) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings_edit);\n }\n if (this.mQsExpansionHeight != 0.0f && this.mQsFullyExpanded) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings);\n }\n if (this.mBarState == 1) {\n return this.mResources.getString(C2017R$string.accessibility_desc_lock_screen);\n }\n return this.mResources.getString(C2017R$string.accessibility_desc_notification_shade);\n }", "@Override\n public void setDefaultActivityTitle() {\n getActivity().setTitle(R.string.app_name);\n }", "@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _scienceApp.getTitle();\n\t}", "public void setTitleAccordingToState(){\n String ts=null;\n switch(getPlayMode()){\n case LIVE:\n ts=\" LIVE\";\n break;\n case PLAYBACK:\n ts=currentFile.getName()+\" PLAYING\";\n break;\n case WAITING:\n ts=\"MotionViewer - WAITING\";\n break;\n }\n setTitle(ts);\n }", "public String getLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t}", "public static String promptForString(String title) {\n return (JOptionPane.showInputDialog(null,\n title));\n }", "public static byte[] getPromptSuffix() {\n return p().promptSuffix;\n }", "public static String getNeedKillAppId() {\n }", "public String getPrompt() {\n\t\treturn prompt;\n\t}", "@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "public String getOsPromptPattern() {\n return osPromptPattern;\n }", "public @Nullable CharSequence getQueueTitle() {\n try {\n return mSessionBinder.getQueueTitle();\n } catch (RemoteException e) {\n Log.wtf(TAG, \"Error calling getQueueTitle\", e);\n }\n return null;\n }", "public String getReason() {\n\t\treturn getProperty(\"reason\");\n\t}", "public String getTitle( ) {\n return null;\r\n }", "public String getTitle() {\n \t\treturn getWebDriver().getTitle();\n \t}", "@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "public String getTitle() {\n\t\t\n\treturn driver.getTitle();\n\t\n\t}", "@Override\n public String getTitle() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "public String getTitle() {\n return bufTitle;\n }", "public int getTitleStringResId() {\n return R.string.meals;\n }", "@Override\r\n public String getTitle()\r\n {\n return null;\r\n }", "public static java.lang.String getDefaultSharedPreferencesName(android.content.Context context) { throw new RuntimeException(\"Stub!\"); }", "public String title() {\n return webDriver.getTitle();\n }", "public String getTitle() {\n return getProperty(Property.TITLE);\n }" ]
[ "0.6983512", "0.66496885", "0.6581036", "0.6564412", "0.65380716", "0.6254784", "0.60747015", "0.5934651", "0.59184384", "0.5913387", "0.5897348", "0.57765156", "0.5724151", "0.5597789", "0.5594334", "0.5593004", "0.55174965", "0.5490426", "0.5481715", "0.54764915", "0.5469918", "0.54485387", "0.542154", "0.5392464", "0.53706867", "0.53438383", "0.53307694", "0.5318188", "0.53133243", "0.5306911", "0.5300017", "0.5273442", "0.5224283", "0.5222246", "0.52121234", "0.5164102", "0.515827", "0.514699", "0.5136784", "0.5127066", "0.5123896", "0.5122326", "0.50895506", "0.5077043", "0.5070978", "0.50483716", "0.50475013", "0.5046114", "0.503479", "0.5028306", "0.5023234", "0.5004684", "0.5004031", "0.50026387", "0.49782363", "0.49729443", "0.49712512", "0.49709964", "0.49636325", "0.49619347", "0.49450833", "0.4942128", "0.4940196", "0.4932149", "0.49285102", "0.49042907", "0.48839268", "0.48816195", "0.4880679", "0.4880679", "0.4880679", "0.48664188", "0.48649704", "0.48617497", "0.4859318", "0.4856279", "0.48549402", "0.484924", "0.48481688", "0.48425794", "0.4839949", "0.48396805", "0.48366028", "0.48231027", "0.48231027", "0.48231027", "0.4809494", "0.48051557", "0.47895265", "0.4786839", "0.4784223", "0.47828904", "0.47817278", "0.47675636", "0.47667873", "0.47630587", "0.47619313", "0.47619227", "0.47596663", "0.47594595" ]
0.6950794
1
Returns the default dialog content for the case when an action is disabled by policy.
String getDefaultDisabledByPolicyContent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDefaultDisabledByPolicyTitle();", "String getDisabledByPolicyTitleForFinancedDevice();", "public static Action getDisabledAction() {\n Action action = new Action() {\n };\n action.setEnabled(false);\n return action;\n }", "public PolicyBinderPage endorsementFromActionDropDownwithoutBackupPolicy() {\r\n sleep(3000);\r\n ExtentReporter.logger.log(LogStatus.PASS,\r\n \"Select Policy Actions-> Endorsement. Verify Endorse policy window displays.\");\r\n selectDropdownByValueFromPolicyActionDDL(driver, policyAction, policybinderpageDTO.valueOfPolicyActionEndorse,\r\n \"Policy Action\");\r\n return new PolicyBinderPage(driver);\r\n }", "public String handleDefault() \n throws HttpPresentationException \n {\n\t return showEditPage(null);\n }", "@Override\n public CharSequence onDisableRequested(Context context, Intent intent) {\n return context.getString(R.string.disable_warning);\n }", "String getDisabledBiometricsParentConsentContent();", "public default boolean isDismissable(){ return false; }", "@Override \r\n \tprotected IDialogSettings getDialogSettings() {\n \t\tIDialogSettings temp = super.getDialogSettings();\t\r\n \t\treturn temp;\r\n \t}", "public default boolean isAlwaysDismissable(){ return false; }", "public void defaultContent() {\n\t\tgetter().switchTo().defaultContent();\r\n\t}", "@FXML private void opinionViewOnAction() {\n try {\n reportLabel.setText(\"\");\n if (activeUser != null) {\n if (getOpinionAuthor().equals(activeUser.getUsername())) {\n deleteButton.setDisable(false);\n reportButton.setDisable(true);\n } else {\n deleteButton.setDisable(true);\n reportButton.setDisable(false);\n }\n }\n } catch (RuntimeException err) {}\n }", "public PrivilegesRadioEnum getDefaultPrivilegesRadio() {\r\n return PrivilegesRadioEnum.IMMEDIATE;\r\n }", "private PendingIntent notificationContentIntent() {\n Intent intent = new Intent(packageContext, AlertDialog.class);\n intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK);\n return PendingIntent.getActivity(packageContext, 0, intent, 0);\n }", "public String handleDefault()\n throws HttpPresentationException\n {\n\t return showPage(null);\n }", "String disabledButton();", "@Override\r\n\tpublic ArrayList<PopUp> getPopUpDefault(String personId, Boolean Default) {\n\t\treturn null;\r\n\t}", "@Override\r\n public SystemAction getDefaultAction() {\n return SystemAction.get(OpenAction.class);\r\n }", "public String btn_cancel_delete_action()\n {\n //show and hidde panels\n this.getMainPanel().setRendered(true);\n this.getAlertMessage().setRendered(false);\n return null;\n }", "public static void switchToDefaultContentWindow() {\n\t\tdriver.switchTo().defaultContent();\n\t}", "public static IssUiActivator getDefault() {\r\n\t\treturn plugin;\r\n\t}", "public static DialogDisplayer getDefault() {\n return (DialogDisplayer)Lookup.getDefault().lookup(DialogDisplayer.class);\n }", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "public static XSDEditorPlugin getDefault() {\n \t\treturn plugin;\n \t}", "private JDialog createBlockingDialog()\r\n/* */ {\r\n/* 121 */ JOptionPane optionPane = new JOptionPane();\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 125 */ if (getTask().getUserCanCancel()) {\r\n/* 126 */ JButton cancelButton = new JButton();\r\n/* 127 */ cancelButton.setName(\"BlockingDialog.cancelButton\");\r\n/* 128 */ ActionListener doCancelTask = new ActionListener() {\r\n/* */ public void actionPerformed(ActionEvent ignore) {\r\n/* 130 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* */ }\r\n/* 132 */ };\r\n/* 133 */ cancelButton.addActionListener(doCancelTask);\r\n/* 134 */ optionPane.setOptions(new Object[] { cancelButton });\r\n/* */ }\r\n/* */ else {\r\n/* 137 */ optionPane.setOptions(new Object[0]);\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 142 */ Component dialogOwner = (Component)getTarget();\r\n/* 143 */ String taskTitle = getTask().getTitle();\r\n/* 144 */ String dialogTitle = taskTitle == null ? \"BlockingDialog\" : taskTitle;\r\n/* 145 */ final JDialog dialog = optionPane.createDialog(dialogOwner, dialogTitle);\r\n/* 146 */ dialog.setModal(true);\r\n/* 147 */ dialog.setName(\"BlockingDialog\");\r\n/* 148 */ dialog.setDefaultCloseOperation(0);\r\n/* 149 */ WindowListener dialogCloseListener = new WindowAdapter() {\r\n/* */ public void windowClosing(WindowEvent e) {\r\n/* 151 */ if (DefaultInputBlocker.this.getTask().getUserCanCancel()) {\r\n/* 152 */ DefaultInputBlocker.this.getTask().cancel(true);\r\n/* 153 */ dialog.setVisible(false);\r\n/* */ }\r\n/* */ }\r\n/* 156 */ };\r\n/* 157 */ dialog.addWindowListener(dialogCloseListener);\r\n/* 158 */ optionPane.setName(\"BlockingDialog.optionPane\");\r\n/* 159 */ injectBlockingDialogComponents(dialog);\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 163 */ recreateOptionPaneMessage(optionPane);\r\n/* 164 */ dialog.pack();\r\n/* 165 */ return dialog;\r\n/* */ }", "public String handleDefault() \n throws HttpPresentationException \n {\n\t return showPage(null);\n }", "public JDialog getDDownload() {\n\t\treturn DDownload;\n\t}", "@Override\n public List<PreferenceSettingsDialogItem> getOptionList() {\n\n return null;\n\n }", "@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}", "public ConfirmationDialog getDialog() {\n\t\tif (null == fDlg) {\n\t\t\tfDlg = new ConfirmationDialog(getFrame(), getConfig(), \"dlg.abandonChanges\");\n\n\t\t\tString[] values = { ((Questionaire) getApp()).getCurrentDoc().getTitle() };\n\t\t\t\n\t\t\tString title = fDlg.getTitle();\n\t\t\t\t\t\t\n\t\t\ttitle = SwingCreator.replacePlaceHolders(title, values);\n\t\t\t\t\t\t\n\t\t\tfDlg.setTitle(title);\n\t\t\t\t\t\t\n\t\t\t((Questionaire) getApp()).getCurrentDoc().addPropertyChangeListener(\"title\", new PropertyChangeListener() {\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\tString[] values = { (String) evt.getNewValue() };\n\t\t\t\t\tString title = getConfig(\"dlg.abandonChanges.title\");\n\t\t\t\t\t\n\t\t\t\t\ttitle = SwingCreator.replacePlaceHolders(title, values);\n\t\t\t\t\t\n\t\t\t\t\tgetDialog().setTitle(title);\n\t\t\t\t}\n\t\t\t});\t\t\t\n\t\t}\n\n\t\treturn fDlg;\n\t}", "public static AdverseReactions noneKnown() {\n return new AdverseReactionsImpl(NCTISGlobalStatement.NONE_KNOWN);\n }", "public static WebDriver switchToDefault(WebDriver driver) {\n\n\t\ttry {\n\t\t\tlogger.info(\"Switch to Default Content\");\n\t\t\treturn driver.switchTo().defaultContent();\n\t\t} catch (Exception e) {\n\t\t\tlogger.error(\"Error Occured while switch to default windiw \");\n\t\t}\n\t\treturn driver;\n\t}", "protected String getHelpText() {\n return \"\";\n }", "public Image getDisabledImage () {\r\n\tcheckWidget();\r\n\treturn disabledImage;\r\n}", "@Override\n public String getAction() {\n return null;\n }", "public String disabledReasonMessage() {\n return this.disabledReasonMessage;\n }", "@Override\n public void showDiscardDialog() {\n //Creating an AlertDialog with a message, and listeners for the positive, neutral and negative buttons\n AlertDialog.Builder builder = new AlertDialog.Builder(requireActivity());\n //Set the Message\n builder.setMessage(R.string.product_config_unsaved_changes_dialog_message);\n //Set the Positive Button and its listener\n builder.setPositiveButton(R.string.product_config_unsaved_changes_dialog_positive_text, mUnsavedDialogOnClickListener);\n //Set the Negative Button and its listener\n builder.setNegativeButton(R.string.product_config_unsaved_changes_dialog_negative_text, mUnsavedDialogOnClickListener);\n //Set the Neutral Button and its listener\n builder.setNeutralButton(R.string.product_config_unsaved_changes_dialog_neutral_text, mUnsavedDialogOnClickListener);\n //Lock the Orientation\n OrientationUtility.lockCurrentScreenOrientation(requireActivity());\n //Create and display the AlertDialog\n builder.create().show();\n }", "public Component noPerm() {\n return MiniMessage.get().parse(noPerm);\n }", "public static CommandElement none() {\n return NONE;\n }", "CancelAction getCancelAction();", "public Preferences getActionPreferences() {\n return actionPrefs;\n }", "public final JButton getDefaultSPViewEditDescButton() {\n return defaultSPViewEditDescButton;\n }", "private CommandResult showDefaultHelp() throws FinProductionException {\r\n\t\tList<HelpTablePair> helpTable = new ArrayList<HelpTablePair>(); \r\n\t\t\r\n\t\tfor (ICommandHandler i: CommandParser.INSTANCE.getCommandHandlers()) {\r\n\t\t\tif (i.getHelpTablePair() != null) {\r\n\t\t\t\thelpTable.add(i.getHelpTablePair());\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new CommandResult(this, \"\",\r\n\t\t\t\tCommandResult.RenderType.HELPTABLE, helpTable);\r\n\t}", "public static void disableOtherSMSPopup(Context context) {\n \t}", "@Override\n protected Dialog onCreateDialog(int id) {\n Dialog dialog = null;\n switch (id) {\n case CHOOSE_METHOD_DIALOG:\n return chooseActionContextMenu.createMenu(this.getString(R.string.choose_action_title));\n case ABOUT_DIALOG:\n dialog = createAboutDialog();\n break;\n default:\n dialog = null;\n break;\n }\n return dialog;\n }", "private void alertForgetPwdMsg() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this, R.style.MyTheme);\n builder.setMessage(R.string.alert_user_is_locked)\n .setCancelable(false)\n .setPositiveButton(R.string.ok,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n onForgetPwd();\n\n }\n })\n .setNegativeButton(R.string.cancel,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.cancel();\n }\n });\n builder.show();\n }", "public Collection findOtherPresentationsUnrestricted(Agent owner, String toolId, String showHidden);", "public String verifyDisabledContentInPrintWindow(String object, String data) {\n logger.debug(\"Inside verifyDisabledContentInPrintWindow() \");\n\n try {\n /*\n * boolean flag=false; boolean flag2=false;\n */\n String mainwindow = \"\";\n String newwindow = \"\";\n Set<String> windowids = driver.getWindowHandles();\n Iterator<String> ite = windowids.iterator();\n mainwindow = ite.next();\n newwindow = ite.next();\n driver.switchTo().window(newwindow);\n Thread.sleep(5000);\n\n String objArr[] = object.split(Constants.Object_SPLIT);\n\n for (int i = 0; i < objArr.length; i++) {\n int size = explictWaitForElementSize(objArr[i]);\n if (size > 0) {\n continue;\n } else {\n driver.close();\n driver.switchTo().window(mainwindow);\n return Constants.KEYWORD_FAIL + \" -elements in printable window are not disabled\";\n\n }\n }\n String url = driver.getCurrentUrl();\n logger.debug(url);\n driver.close();\n driver.switchTo().window(mainwindow);\n if (url.contains(data)) {\n return Constants.KEYWORD_PASS + \" printable window opens and elements are disabled\";\n } else {\n return Constants.KEYWORD_FAIL + \" printable window does not open\";\n }\n\n } \ncatch(TimeoutException ex)\n\t\t\n\t\t{\n\t\t\treturn Constants.KEYWORD_FAIL +\"Cause: \"+ ex.getCause();\n\t\t}\n catch (Exception e) {\n \n return Constants.KEYWORD_FAIL + e.getLocalizedMessage();\n }\n }", "private void disableActions() {\r\n\t\tif (resetToDefaults.isEnabled()) {\r\n\t\t\tresetToDefaults.setEnabled(true);\r\n\t\t\tresetToDefaults.setEnabled(false);\r\n\t\t}\r\n\t}", "public static UIActivator getDefault() {\r\n\t\treturn plugin;\r\n\t}", "private AlertDialog getWirelessSettingsDialog(final String message, final String buttonText) {\n\t\tfinal AlertDialog.Builder builder = new AlertDialog.Builder(NFCMediaShare.this);\n\t\tbuilder.setMessage(message).setCancelable(true)\n\t\t\t\t.setPositiveButton(buttonText, new DialogInterface.OnClickListener() {\n//\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final DialogInterface arg0, final int arg1) {\n\t\t\t\t\t\tstartActivity(new Intent(Settings.ACTION_WIRELESS_SETTINGS));\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t})\n\t\t\t\t.setOnCancelListener(new OnCancelListener() {\n//\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onCancel(final DialogInterface arg0) {\n\t\t\t\t\t\tfinish();\n\t\t\t\t\t}\n\t\t\t\t});\n\t\treturn builder.create();\n\t}", "@Override\r\n\tpublic String getCurrentMenuType() {\n\t\treturn \"missArticle\";\r\n\t}", "public boolean getEnabled () {\r\n\tcheckWidget ();\r\n\tint topHandle = topHandle ();\r\n\treturn (OS.PtWidgetFlags (topHandle) & OS.Pt_BLOCKED) == 0;\r\n}", "protected abstract boolean isConfirmEnabled();", "public void getDataForActionDialog() {\n mListForActionDialog.clear();\n if (mAction.equals(ConstantsManager.CONVERTER_ACTION_PURCHASE)) {\n mListForActionDialog.add(new RecyclerViewDataDialogList(true,\n mPurchaseTitle, mPurchaseTitle, mPurchaseTitle));\n mListForActionDialog.add(new RecyclerViewDataDialogList(false,\n mSaleTitle, mSaleTitle, mSaleTitle));\n } else {\n mListForActionDialog.add(new RecyclerViewDataDialogList(false,\n mPurchaseTitle, mPurchaseTitle, mPurchaseTitle));\n mListForActionDialog.add(new RecyclerViewDataDialogList(true,\n mSaleTitle, mSaleTitle, mSaleTitle));\n }\n }", "@Override\n public String getActions() {\n\treturn \"\";\n }", "void showOthersActions(String message);", "protected TextComposePanel getTextActionPanel() {\n return mTextActionPanel;\n }", "@Override\r\n\tpublic Dialogue getDialogue() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Dialogue getDialogue() {\n\t\treturn null;\r\n\t}", "@Override\r\n public Action ShowEditActionDialog() throws ScheduleException\r\n\t{\n \treturn EditNonLockingActionDialog.showDialog(form, schedule.getTransactions(), schedule.getItems());\r\n }", "public static TDSUIActivator getDefault() {\n\t\treturn plugin;\n\t}", "String dialogQuery(String msg, String defaultValue)\n { /* dialogQuery */\n this.sleepFlag= true;\t/* flag for waiting */\n this.data= defaultValue;\t/* save default */\n \n updatePopupDialog(msg, defaultValue, null, 0); /* do it */\n \n return(data);\t\t/* return string */\n }", "public PolicyBinderPage endorsementFromActionDropDown() {\r\n sleep(3000);\r\n ExtentReporter.logger.log(LogStatus.INFO,\r\n \"Select Policy Actions-> Endorsement. Verify Endorse policy window displays.\");\r\n if (selectDropdownByValueFromPolicyActionDDL(driver, policyAction,\r\n policybinderpageDTO.valueOfPolicyActionEndorse, \"Policy Action\").equals(\"false\")) {\r\n sleep(2000);\r\n\r\n // This method will select the policy using required criteria\r\n PolicyQuotePage quotepage = new PolicyQuotePage(driver);\r\n quotepage.searchBackUpPolicyUsingSearchCriteria();\r\n sleep(4000);\r\n\r\n if (selectDropdownByValueFromPolicyActionDDL(driver, policyAction,\r\n policybinderpageDTO.valueOfPolicyActionEndorse, \"Policy Action\").equals(\"false\")) {\r\n\r\n // navigate through policy list till policy with expected\r\n // criteria is found\r\n RateApolicyPage rateapolicypage = new RateApolicyPage(driver);\r\n rateapolicypage.searchThroughPolicyList(policybinderpageDTO.valueOfPolicyActionEndorse);\r\n }\r\n }\r\n return new PolicyBinderPage(driver);\r\n }", "public String getAlertTextWithoutUserIdandPassword() {\n\t\treturn util.getJavascriptAlertText();\n\t}", "public abstract LearningEditProposal getBestEdit (boolean onlyAllowedEdits, boolean onlyPositiveEdits);", "public void setMenuDefault() {\n if (disableAll.isSelected()) {\n disableAll.doClick();\n }\n\n if (!(observability.isSelected())) {\n observability.doClick();\n }\n\n if (!(remaining.isSelected())) {\n remaining.doClick();\n }\n\n if (!(allocation.isSelected())) {\n allocation.doClick();\n }\n\n if (!(zoneOfAvoidance.isSelected())) {\n zoneOfAvoidance.doClick();\n }\n }", "String getDisableCameraTitle();", "private void showRequestPermissionRationaleDialog(){\n new AlertDialog.Builder(this)\n .setMessage(\"Permissions needed to use application features.\")\n .setPositiveButton(\"Allow\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n startAppSettingsConfigActivity();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .setCancelable(false)\n .create()\n .show();\n }", "public String getNoneText() {\r\n return ValueBindings.get(this, \"noneText\", noneText, \"None\");\r\n }", "String getDefaultPreference(String preferenceName) throws OntimizeJEERuntimeException;", "private void displayPromptForEnablingInternet() {\n final AlertDialog.Builder builder =\n new AlertDialog.Builder(getActivity());\n final String actionWifiSettings = Settings.ACTION_WIFI_SETTINGS;\n final String actionWirelessSettings = Settings.ACTION_WIRELESS_SETTINGS;\n final String message = getString(R.string.enable_network);\n\n builder.setMessage(message)\n .setPositiveButton(getString(R.string.bt_wifi),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int idButton) {\n getActivity().startActivity(new Intent(actionWifiSettings));\n dialog.dismiss();\n }\n })\n .setNegativeButton(getString(R.string.bt_mobile_network),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int idButton) {\n getActivity().startActivity(new Intent(actionWirelessSettings));\n dialog.dismiss();\n }\n })\n .setNeutralButton(getString(R.string.bt_cancel),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int idButton) {\n dialog.cancel();\n }\n });\n builder.create().show();\n }", "PreferenceDialogTitleAttribute getDialogTitle();", "protected Permissions getExcludedPolicy(){\n\treturn stateIs(INSERVICE_STATE) ? this.excludedPermissions : null;\n }", "String getDisabledBiometricsParentConsentTitle();", "private AlertDialog buildDialog(String deviceName) {\n Builder builder = new Builder(this);\n CharSequence[] items = {\n getString(R.string.bluetooth_pbap_server_authorize_alwaysallowed)\n };\n boolean[] checked = {\n false\n };\n\n String msg = getString(R.string.bluetooth_pbap_server_authorize_message, deviceName);\n\n Log.d(TAG, \"buildDialog : items=\" + items[0]);\n\n builder.setIcon(android.R.drawable.ic_dialog_info).setTitle(R.string.bluetooth_pbap_server_authorize_title).setView(\n createView(msg))\n // .setMessage(msg)\n /*\n * .setMultiChoiceItems (items, checked, new DialogInterface.OnMultiChoiceClickListener(){ public void\n * onClick (DialogInterface dialog, int which, boolean isChecked){ if(which == 0) { mAlwaysAllowedValue =\n * isChecked; }else{ Log.w(TAG, \"index of always allowed is not correct : \"+which); } } } )\n */\n .setPositiveButton(R.string.bluetooth_pbap_server_authorize_allow, this).setNegativeButton(\n R.string.bluetooth_pbap_server_authorize_decline, this);\n\n return builder.create();\n }", "@Override\n public void showRationale(Context context, T permissions, final RequestExecutor executor) {\n Log.e(TAG, \"rantionale\");\n AlertDialog.Builder dialog = new AlertDialog.Builder(context);\n dialog.setTitle(title)\n .setMessage(msg)\n .setCancelable(false)\n .setPositiveButton(R.string.allow, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // When the user to continue the request:\n executor.execute();\n }\n })\n .setNegativeButton(R.string.no_thanks, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // When the user interrupts the request:\n executor.cancel();\n }\n }).show();\n\n }", "public Optional<String> showPasswordDialog() {\n Dialog<String> passwordDialog = new Dialog<>();\n try {\n FXMLLoader loader = new FXMLLoader(getClass().getResource(\"/dialog/password_dialog.fxml\"));\n passwordDialog.setTitle(\"Password\");\n passwordDialog.getDialogPane().setContent(loader.load());\n passwordDialog.getDialogPane().getButtonTypes().addAll(ButtonType.OK, ButtonType.CANCEL);\n PasswordDialogController controller = loader.getController();\n passwordDialog.setResultConverter(buttonType -> {\n ButtonBar.ButtonData data = buttonType == null ? null : buttonType.getButtonData();\n return data == ButtonBar.ButtonData.OK_DONE ? controller.getPassword() : null;\n });\n return passwordDialog.showAndWait();\n } catch (IOException e) {\n throw new CryptoEditorException(\"Unable to load view-resource\", e);\n }\n }", "private static void showPrompt(Activity activity, PermissionHandler permissionHandler,\n String permission, int requestCode, boolean isDeniedPermanently) {\n AlertDialog alertDialog = new AlertDialog.Builder(activity).create();\n alertDialog.setMessage(activity.getString(R.string.permissionPromptMsg));\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, activity.getString(R.string.denyBtnText),\n (dialogInterface, i) -> alertDialog.dismiss());\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE,\n isDeniedPermanently ? activity.getString(R.string.settingsBtnTxt)\n : activity.getString(R.string.allowBtnTxt),\n (dialog, which) -> {\n if (isDeniedPermanently) {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", activity.getPackageName(), null);\n intent.setData(uri);\n activity.startActivity(intent);\n } else {\n permissionHandler.firstTimeAsking(permission, false);\n ActivityCompat.requestPermissions(activity, new String[]{permission},\n requestCode);\n }\n\n });\n alertDialog.show();\n }", "private String getHideContentFlagGroupDownloadForm(String groupFile, String productName, List<ReportMessageTO> reportMessages) {\r\n\t\tString hideContentFlag = IApplicationConstants.FLAG_N;\r\n\t\tString currentAdminYear = inorsService.getCurrentAdminYear();\r\n\t\tint lastAdmYr = Integer.parseInt(currentAdminYear) - 1;\r\n\t\tint lastToLastAdmYr = Integer.parseInt(currentAdminYear) - 2;\r\n\t\tString lastAdminYear = String.valueOf(lastAdmYr);\r\n\t\tString lastToLastAdminYear = String.valueOf(lastToLastAdmYr);\r\n\t\tlogger.log(IAppLogger.INFO, \"currentAdminYear=\" + currentAdminYear);\r\n\t\tlogger.log(IAppLogger.INFO, \"lastAdminYear=\" + lastAdminYear);\r\n\t\tlogger.log(IAppLogger.INFO, \"lastToLastAdminYear=\" + lastToLastAdminYear);\r\n\t\tif (groupFile.equals(IApplicationConstants.EXTRACT_FILETYPE.ICL.toString())) {\r\n\t\t\t// Rule 1: Invitation Code Letters (IC) are available for the current ISTEP+ administration only.\r\n\t\t\t// Report Notification: Invitation Code Letters (IC) are available for the current ISTEP+ administration only.\r\n\t\t\tif (productName != null) {\r\n\t\t\t\tif (productName.startsWith(\"ISTEP+\")) {\r\n\t\t\t\t\tif ((productName.endsWith(currentAdminYear))) {\r\n\t\t\t\t\t\t// OK\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (groupFile.equals(IApplicationConstants.EXTRACT_FILETYPE.IPR.toString())) {\r\n\t\t\t// Rule 2: Image of student responses to Applied Skills test. For the two most recent ISTEP+ administrations. (Not available for IMAST or IREAD-3)\r\n\t\t\tif (productName != null) {\r\n\t\t\t\tif (productName.startsWith(\"ISTEP+\")) {\r\n\t\t\t\t\tif ((productName.endsWith(currentAdminYear)) || (productName.endsWith(lastAdminYear)) || (productName.endsWith(lastToLastAdminYear))) {\r\n\t\t\t\t\t\t// OK\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (groupFile.equals(IApplicationConstants.EXTRACT_FILETYPE.ISR.toString())) {\r\n\t\t\t// Rule 3: ISTEP+ and IMAST Student Report (ISR) for the two most recent administrations.\r\n\t\t\t// Rule 4: IREAD-3 Student Report (ISR) for the 2013 and 2014 administrations (Spring and Summer).\r\n\t\t\tif (productName != null) {\r\n\t\t\t\tif (productName.startsWith(\"ISTEP+\")) {\r\n\t\t\t\t\tif ((productName.endsWith(currentAdminYear)) || (productName.endsWith(lastAdminYear)) || (productName.endsWith(lastToLastAdminYear))) {\r\n\t\t\t\t\t\t// OK\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (productName.startsWith(\"IMAST\")) {\r\n\t\t\t\t\tif ((productName.endsWith(currentAdminYear)) || (productName.endsWith(lastAdminYear)) || (productName.endsWith(lastToLastAdminYear))) {\r\n\t\t\t\t\t\t// OK\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (productName.startsWith(\"IREAD-3\")) {\r\n\t\t\t\t\tif ((productName.endsWith(currentAdminYear)) || (productName.endsWith(lastAdminYear)) || (productName.endsWith(lastToLastAdminYear))) {\r\n\t\t\t\t\t\t// OK\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} else if (groupFile.equals(IApplicationConstants.EXTRACT_FILETYPE.BOTH.toString())) {\r\n\t\t\t// Rule 2, 3 and 4\r\n\t\t\tif (productName.startsWith(\"ISTEP+\")) {\r\n\t\t\t\tif ((productName.endsWith(currentAdminYear)) || (productName.endsWith(lastAdminYear)) || (productName.endsWith(lastToLastAdminYear))) {\r\n\t\t\t\t\t// OK\r\n\t\t\t\t} else {\r\n\t\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t\t}\r\n\t\t\t} else if (productName.startsWith(\"IMAST\")) {\r\n\t\t\t\tif ((productName.endsWith(currentAdminYear)) || (productName.endsWith(lastAdminYear)) || (productName.endsWith(lastToLastAdminYear))) {\r\n\t\t\t\t\t// OK\r\n\t\t\t\t} else {\r\n\t\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t\t}\r\n\t\t\t} else if (productName.startsWith(\"IREAD-3\")) {\r\n\t\t\t\tif ((productName.endsWith(currentAdminYear)) || (productName.endsWith(lastAdminYear)) || (productName.endsWith(lastToLastAdminYear))) {\r\n\t\t\t\t\t// OK\r\n\t\t\t\t} else {\r\n\t\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\thideContentFlag = IApplicationConstants.FLAG_Y;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn hideContentFlag;\r\n\t}", "private JButton getRejectButton() {\n return ((OkCancelButtonPanel) getButtonPanel()).getCancelButton();\n }", "public Dialog getWisdom() {\n\t\treturn wisdom;\n\t}", "@SuppressWarnings(\"deprecation\")\n \t@Override\n \tprotected Dialog onCreateDialog(int id) {\n \n \t\tAlertDialog.Builder mBuilder = new AlertDialog.Builder(this);\n \t\t\n \t\t// determine which dialog to show\n \t\tswitch(id) {\n \t\tcase sGpsNotEnabledDialog:\n \t\t\tmBuilder.setMessage(R.string.preferences_dialog_invalid_gps_status)\n \t\t\t.setCancelable(false)\n \t\t\t.setPositiveButton(android.R.string.yes, new DialogInterface.OnClickListener() {\n \t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n \t\t\t\t\tIntent mIntent = new Intent(Settings.ACTION_LOCATION_SOURCE_SETTINGS);\n \t\t\t\t\tstartActivity(mIntent);\n \t\t\t\t}\n \t\t\t})\n \t\t\t.setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n \t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\n \t\t\t\t\tdialog.cancel();\n \t\t\t\t}\n \t\t\t});\n \t\t\treturn mBuilder.create();\n \t\tdefault:\n \t\t\treturn super.onCreateDialog(id);\n \t\t}\n \t}", "@Override\n\tprotected Control createContents(final Composite parent) {\n\t\tfinal Composite composite = new Composite(parent, SWT.NONE);\n\t\tcomposite.setLayout(new GridLayout());\n\n\t\t// Get the preference store\n\t\tfinal IPreferenceStore preferenceStore = getPreferenceStore();\n\n\t\tfinal Label lblRandomRules = new Label(composite, SWT.NONE);\n\t\tlblRandomRules.setText(Messages.getString(\"PasswordPolicyPreferences.RulesLabel\")); //$NON-NLS-1$\n\n\t\tfinal Composite composite_1 = new Composite(composite, SWT.NONE);\n\t\tfinal GridLayout gridLayout = new GridLayout();\n\t\tgridLayout.marginHeight = 0;\n\t\tgridLayout.marginWidth = 0;\n\t\tgridLayout.numColumns = 2;\n\t\tcomposite_1.setLayout(gridLayout);\n\n\t\tfinal Label lblDefaultLength = new Label(composite_1, SWT.NONE);\n\t\tlblDefaultLength.setText(Messages.getString(\"PasswordPolicyPreferences.PasswordLength\")); //$NON-NLS-1$\n\n\t\tspiLength = new Spinner(composite_1, SWT.BORDER);\n\t\tspiLength.setSelection(preferenceStore.getInt(DEFAULT_PASSWORD_LENGTH));\n\n\t\tbtnUseLowercase = new Button(composite, SWT.CHECK);\n\t\tbtnUseLowercase.setText(Messages.getString(\"PasswordPolicyPreferences.Lowercase\")); //$NON-NLS-1$\n\t\tbtnUseLowercase.setSelection(preferenceStore.getBoolean(USE_LOWERCASE_LETTERS));\n\n\t\tbtnUserUppercase = new Button(composite, SWT.CHECK);\n\t\tbtnUserUppercase.setText(Messages.getString(\"PasswordPolicyPreferences.Uppercase\")); //$NON-NLS-1$\n\t\tbtnUserUppercase.setSelection(preferenceStore.getBoolean(USE_UPPERCASE_LETTERS));\n\n\t\tbtnUseDigits = new Button(composite, SWT.CHECK);\n\t\tbtnUseDigits.setText(Messages.getString(\"PasswordPolicyPreferences.Digits\")); //$NON-NLS-1$\n\t\tbtnUseDigits.setSelection(preferenceStore.getBoolean(USE_DIGITS));\n\n\t\tbtnUseSymbols = new Button(composite, SWT.CHECK);\n\t\tbtnUseSymbols.setText(Messages.getString(\"PasswordPolicyPreferences.Symbols\")); //$NON-NLS-1$\n\t\tbtnUseSymbols.setSelection(preferenceStore.getBoolean(USE_SYMBOLS));\n\n\t\tbtnUseEaseToRead = new Button(composite, SWT.CHECK);\n\t\tbtnUseEaseToRead.setText(Messages.getString(\"PasswordPolicyPreferences.EasyToRead\")); //$NON-NLS-1$\n\t\tbtnUseEaseToRead.setSelection(preferenceStore.getBoolean(USE_EASY_TO_READ));\n\n\t\tbtnUseHexOnly = new Button(composite, SWT.CHECK);\n\t\tbtnUseHexOnly.setEnabled(false);\n\t\tbtnUseHexOnly.setText(Messages.getString(\"PasswordPolicyPreferences.HexOnly\")); //$NON-NLS-1$\n\t\tbtnUseHexOnly.setSelection(preferenceStore.getBoolean(USE_HEX_ONLY));\n\n\t\treturn composite;\n\t}", "protected DisplayRequest actionBarDisplay() {\n return DisplayRequest.NO_ACTION_BAR;\n }", "protected IDialogSettings getDialogBoundsSettings() {\n\t\t\t\treturn JavaPlugin.getDefault().getDialogSettingsSection(\"JavadocWizardDialog\"); //$NON-NLS-1$\n\t\t\t}", "public JTextPane getDialog() {\n\t\treturn dialog;\n\t}", "private String getStatusDefaultMessage() {\r\n\r\n\t\tfinal Collection<GalleryMT20Item> allSelectedPhoto = _galleryMT20.getSelection();\r\n\t\tfinal int allPhotoSize = allSelectedPhoto.size();\r\n\r\n\t\treturn allPhotoSize == 0 //\r\n\t\t\t\t// hide status message when nothing is selected\r\n\t\t\t\t? UI.EMPTY_STRING\r\n\t\t\t\t: NLS.bind(Messages.Pic_Dir_StatusLabel_SelectedImages, allPhotoSize);\r\n\t}", "public JComponent getPreferenceUI() {\n\t\treturn null;\n\t}", "public Boolean getDisabled() {\n return disabled;\n }", "public boolean denied(String action) {\n if (deny_all) {\n return true;\n }\n\t\tfor(String a : actions) {\n\t\t\tif (a.equals(action)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "protected String getDefaultText() {\n\t\treturn DEFAULT_TEXT;\n\t}", "public static DialogFragment notEnoughAcceptableDialog(Context context) {\n if (context == null) {\n return null;\n }\n BasicInfoDialogFragment dialogFragment = new BasicInfoDialogFragment();\n dialogFragment.setText(\n context.getString(R.string.dialog_wizard_low_acceptable_title),\n context.getString(R.string.dialog_wizard_low_acceptable_message));\n dialogFragment.setPositive(context.getString(R.string.dialog_wizard_low_acceptable_positive), null);\n commitFragment(context, dialogFragment, \"notEnoughAcceptableDialogTag\");\n return dialogFragment;\n }", "public DisabledReason disabledReason() {\n return this.disabledReason;\n }", "public Control getContent() {\n // checkWidget();\n return content;\n }", "AlertDialog getAlertDialog();", "@Override\n\tprotected CharSequence getDefaultChoice(String selectedValue)\n\t{\n\t\treturn \"\";\n\t}", "public static void switchToDefaultContent(WebDriver driver) {\r\n\r\n\t\tdriver.switchTo().defaultContent();\r\n\t}", "String getDisallowAdjustVolumeTitle();", "protected void ACTION_B_DISABLE(ActionEvent arg0) {\n\r\n\t\tL_FilterStatusBox.setText(\"Disabled (All Ports)\");\r\n\t}" ]
[ "0.6888971", "0.5668122", "0.5373545", "0.5340534", "0.53224504", "0.5293927", "0.5162081", "0.5149293", "0.5147435", "0.5126336", "0.5110128", "0.50648177", "0.499664", "0.49650645", "0.49637038", "0.49539044", "0.49344444", "0.49314374", "0.4925945", "0.49107614", "0.4874197", "0.48581603", "0.4846735", "0.48433748", "0.48367244", "0.48197398", "0.4801109", "0.4762763", "0.47510397", "0.4747568", "0.4745597", "0.47411132", "0.4739964", "0.47365856", "0.47339612", "0.4726917", "0.47188646", "0.4715174", "0.47074255", "0.467637", "0.46743006", "0.46702817", "0.46639216", "0.46595386", "0.46584743", "0.46580568", "0.4657637", "0.4656374", "0.46542913", "0.46463487", "0.46458128", "0.46408698", "0.46374783", "0.46330684", "0.462787", "0.4627027", "0.46229982", "0.4621108", "0.4618603", "0.4618603", "0.4614854", "0.46054143", "0.4595125", "0.45900813", "0.45888534", "0.45881867", "0.45825717", "0.4579237", "0.45791617", "0.45790616", "0.45742178", "0.45694807", "0.45645082", "0.4555811", "0.45497006", "0.45467046", "0.45415643", "0.4537024", "0.4534035", "0.4527273", "0.4523058", "0.45223612", "0.45179746", "0.451586", "0.4515307", "0.45149317", "0.45134866", "0.45115882", "0.4509644", "0.45007035", "0.4495704", "0.44943497", "0.44873768", "0.44859976", "0.44854504", "0.44846228", "0.44760537", "0.44750053", "0.4467437", "0.4465227" ]
0.74317545
0
Returns the URL for the page to be shown when the learn more button is chosen.
String getLearnMoreHelpPageUrl();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getPreViewUrl();", "public void onLearnMoreClickedListener(View view) {\n Toast.makeText(this, \"Go to service page on the website . . . \", Toast.LENGTH_SHORT).show();\n }", "public void learnMoreOnClick(View view) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://www.cdc.gov/healthywater/drinking/nutrition/index.html\")));\n }", "java.lang.String getClickURL();", "@Override\n\tpublic java.lang.String getManualUrl() {\n\t\treturn _scienceApp.getManualUrl();\n\t}", "public String gotoPage() {\n return FxJsfUtils.getParameter(\"page\");\n }", "public VRL getHelp()\n {\n return Global.getHelpUrl(this.getType()); \n }", "@Override\n public boolean isLearnMoreDisplayed() {\n\n setLogString(\"Check if Learn More is displayed\", true, CustomLogLevel.HIGH);\n return isDisplayed(getDriver(), By.cssSelector(\".help_icon.clickable\"), TINY_TIMEOUT);\n }", "public HomeSection enterUrl(){\r\n\t\tGlobal.driver.get(CONSTANT.proUrl);\r\n\t\treturn new HomeSection();\r\n\t}", "public void onMoreInfoClickedListener(View view) {\n Intent browse = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://www.wazapay.com\"));\n startActivity(browse);\n }", "public void clickOnMoreLatesBookLink() {\n\t}", "public String getPageUrl() {\n\t\treturn pageUrl;\n\t}", "private String getURL() {\n\t\t// TODO : Generate URL\n\t\treturn null;\n\t}", "@Override\n\tpublic String getUrl()\n\t{\n\t\treturn url;\n\t}", "String getLink();", "public String getHowToURLString() {\n return \"https://jdnc.dev.java.net/documentation/index.html\";\n }", "@Override\n\tpublic java.lang.String getManualUrl(java.util.Locale locale) {\n\t\treturn _scienceApp.getManualUrl(locale);\n\t}", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public String getUrl();", "public URL getHtmlDescription();", "public String getPageUrl() {\n return pageUrl;\n }", "public String getLink();", "public String getUrl() {\n return _Web_search.getBaseUrl() + getQuery();\n }", "private String buildPaginatorUrl( )\n {\n UrlItem url = new UrlItem( JSP_FORMS_MULTIVIEW );\n url.addParameter( FormsConstants.PARAMETER_CURRENT_SELECTED_PANEL, _strSelectedPanelTechnicalCode );\n\n return url.getUrl( );\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "@java.lang.Override\n public java.lang.String getUrl() {\n return instance.getUrl();\n }", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "java.lang.String getUrl();", "public String getURL();", "public String getDescription(){\n\t\treturn \"Tests that the URL passed in is the same as our website url.\";\n\t}", "CartogramWizardShowURL (String url)\n\t{\n\t\tmUrl = url;\n\t\n\t}", "HtmlPage clickSiteLink();", "public String getSiteUrl();", "public static String getPageUrl() {\n\t\tLOG.info(\"Reading current page URL.\");\n\t\treturn Constants.driver.getCurrentUrl();\n\n\t}", "String getOnlineHelpLocation();", "public void verifyLearnMoreLink() {\n learnMoreLink.assertState().enabled();\n learnMoreLink.assertContains().text(\"Learn more about registering for an account.\");\n }", "String getRequestedUrl();", "protected abstract String getUrl();", "public void readMore20(View view) {\n String readMore20 = \"Website: http://hellodoc.ng/\";\n displayMessage20(readMore20);\n }", "public String getCurrUrl() {\n return driver.getCurrentUrl();\n }", "String getHref();", "public String getSearchUrl();", "public final String getUrl() {\n return properties.get(URL_PROPERTY);\n }", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "String getUrl();", "@Override\n\tpublic java.lang.String getManualUrl(java.lang.String languageId) {\n\t\treturn _scienceApp.getManualUrl(languageId);\n\t}", "String getPreviewUrlTemplate();", "@Override\n public void onClick(View v) {\n Toast.makeText(c, \"yes\" + article.getWeblink(), Toast.LENGTH_LONG).show();\n }", "public String getPageLink() {\r\n\t\treturn CommonUtil.dotHtmlLink(pageLink);\r\n\t}", "public abstract String about();", "public java.lang.String getUrl () {\r\n\t\treturn url;\r\n\t}", "public String getCorrectURL() {\n\t\treturn defineCorrectURL(); \t\r\n\t}", "public void openmrsdemo() {\n\t\tutil.geturl(prop.getValue(\"locators.url\"));\n\t\tlogreport.info(\"Url loaded\");\n\t\tutil.maximize();\n\t}", "public void readMore11(View view) {\n String readMore11 = \"Website: http://www.settic.sn/\";\n displayMessage11(readMore11);\n }", "@ZAttr(id=676)\n public String getHelpAdvancedURL() {\n return getAttr(Provisioning.A_zimbraHelpAdvancedURL, null);\n }", "public String getUrl()\n {\n // return url of node associated with menu\n // option if defined\n if (getNode() != null)\n {\n return getNode().getUrl();\n }\n return null;\n }", "public abstract String getUrl();", "@FXML\n private void copyUrl() {\n final Clipboard clipboard = Clipboard.getSystemClipboard();\n final ClipboardContent url = new ClipboardContent();\n url.putString(HELP_URL);\n clipboard.setContent(url);\n }", "public String getUrl() { return url; }", "@Override\r\n\tpublic String getUrl() {\n\t\treturn null;\r\n\t}", "public void readMore21(View view) {\n String readMore21 = \"Website: http://www.flyingdoctorsnigeria.com/\";\n displayMessage21(readMore21);\n }", "public java.lang.String getFriendlyURL() {\n return friendlyURL;\n }", "public String getHomePageUrl()\n\t{\n\t\treturn elementUtils.getWebPageUrl();\n\t}", "public static URL buildPopularMoviesUrl()\n {\n return buildMovieDbUrl(\"movie/popular\");\n }", "@Override\n\tpublic String getUrlName() {\n\t\treturn URL_NAME;\n\t}", "@Override\n\tpublic java.lang.String getManualUrl(java.util.Locale locale,\n\t\tboolean useDefault) {\n\t\treturn _scienceApp.getManualUrl(locale, useDefault);\n\t}", "public String getUrl() {\r\n\t\t\treturn url;\r\n\t\t}", "public String getCurrentUrl() {\n \t\treturn getWebDriver().getCurrentUrl();\n \t}", "public String getUrl() {\r\n\t\treturn url;\r\n\t}", "public String getUrl() {\r\n\t\treturn url;\r\n\t}", "public String getUrl(){\n return urlsText;\n }", "public void readMore19(View view) {\n String readMore19 = \"Website: https://www.ace.ng\";\n displayMessage19(readMore19);\n }", "String getQueryResultsUrl();", "public abstract String getURL();", "@Override\n\tprotected String getURL() {\n\t\treturn APP.getAppConfig().getRequest_news()+\"cctv11/forumcomment\";\n\t}", "public abstract String getOutputUrl();", "@Override\n\t\tpublic String toString() {\n\t\t\treturn \"下载链接:\"+showLink;\n\t\t}", "public String getClickUrl() {\n return clickUrl;\n }", "@RequestMapping(\"/showForm\")\n\t\tpublic String displayDetails(){\n\t\t\treturn \"mngt-page\";\n\t\t}", "public String getURL(){\r\n\t\t \r\n\t\t\r\n\t\treturn rb.getProperty(\"url\");\r\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getUrl() {\n\t\treturn url;\n\t}", "public String getPageUrl() {\n return JS_URL;\n }", "public String getUrl() {\n\t\tif (prop.getProperty(\"url\") == null)\n\t\t\treturn \"\";\n\t\treturn prop.getProperty(\"url\");\n\t}" ]
[ "0.6213276", "0.62008625", "0.6122096", "0.60288393", "0.5989105", "0.5899682", "0.5849906", "0.57287663", "0.5728144", "0.57203513", "0.5647559", "0.5632284", "0.56279594", "0.5619494", "0.5616641", "0.56079364", "0.55978614", "0.5591593", "0.5591593", "0.5591593", "0.5591593", "0.5568762", "0.55556285", "0.55494857", "0.5544344", "0.5528303", "0.55250084", "0.55250084", "0.5502664", "0.5502664", "0.5502664", "0.5502664", "0.5502664", "0.5502664", "0.5501755", "0.5500714", "0.54968494", "0.5490585", "0.5487926", "0.547936", "0.547521", "0.54569435", "0.54506075", "0.54167444", "0.5416076", "0.5410728", "0.54092675", "0.54018044", "0.53994066", "0.534994", "0.534994", "0.534994", "0.534994", "0.534994", "0.5337405", "0.53236854", "0.531286", "0.53115046", "0.5311341", "0.530784", "0.53068525", "0.530514", "0.53045416", "0.5304164", "0.53036654", "0.53033364", "0.5299072", "0.5294327", "0.5293149", "0.5268877", "0.5264438", "0.5263795", "0.5257331", "0.5255446", "0.52418065", "0.52347565", "0.5229925", "0.52286714", "0.52286714", "0.52224755", "0.5206485", "0.52030545", "0.5202298", "0.5191763", "0.51915866", "0.5191266", "0.51897204", "0.5184375", "0.5178731", "0.51780814", "0.51780814", "0.51780814", "0.51780814", "0.51780814", "0.51780814", "0.51780814", "0.51780814", "0.51780814", "0.51705325", "0.5168866" ]
0.8129015
0
Returns the default dialog title for the case when an action is disabled by policy on a financed device.
String getDisabledByPolicyTitleForFinancedDevice();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDefaultDisabledByPolicyTitle();", "String getDefaultDisabledByPolicyContent();", "PreferenceDialogTitleAttribute getDialogTitle();", "String getDisallowAdjustVolumeTitle();", "public String getDialogTitle(){\n return getField().getDialogTitle();\n }", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "@Override\n public CharSequence onDisableRequested(Context context, Intent intent) {\n return context.getString(R.string.disable_warning);\n }", "String getDisableScreenCaptureTitle();", "String getDisableCameraTitle();", "String getDisabledBiometricsParentConsentTitle();", "String getDisallowOutgoingCallsTitle();", "String getDisallowSmsTitle();", "@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }", "public java.lang.String getDefault_title() {\n return default_title;\n }", "protected String getSettingsDialogTitle() {\r\n return \"Server options\";\r\n }", "String getDefaultPreference(String preferenceName) throws OntimizeJEERuntimeException;", "String getSuspendPackagesTitle();", "public static java.lang.String getDefaultSharedPreferencesName(android.content.Context context) { throw new RuntimeException(\"Stub!\"); }", "@Override\n public String getUnansweredPromptText() {\n return (\"Please select an item or add your own.\");\n }", "public String getTitle() {\n return iBundle.getString(\"supplierdebtreport.title\");\n }", "public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }", "@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}", "@Override\r\n public boolean onPrepareActionMode(ActionMode mode, Menu menu) {\n\r\n mode.setTitle(getString(R.string.tasks_selected, selectedCount));\r\n return false;\r\n }", "public String disabledReasonMessage() {\n return this.disabledReasonMessage;\n }", "@Override\n\tpublic void onNoButtonDialogToConfirmDuiClicked() {\n\n\t}", "public String getDefaultAppearanceString()\r\n {\r\n return ((COSString)option.getObject( 1 ) ).getString();\r\n }", "public String getTitleChoice() {\n return io.readString(\"Please enter the Title of the DVD: \");\n }", "@Override\r\n public SystemAction getDefaultAction() {\n return SystemAction.get(OpenAction.class);\r\n }", "protected String getHelpText() {\n return \"\";\n }", "protected String getWizardWindowTitle() {\n\t\treturn DropWizardMessages.Wizard_Window_Title;\n\t}", "public ConfirmationDialog getDialog() {\n\t\tif (null == fDlg) {\n\t\t\tfDlg = new ConfirmationDialog(getFrame(), getConfig(), \"dlg.abandonChanges\");\n\n\t\t\tString[] values = { ((Questionaire) getApp()).getCurrentDoc().getTitle() };\n\t\t\t\n\t\t\tString title = fDlg.getTitle();\n\t\t\t\t\t\t\n\t\t\ttitle = SwingCreator.replacePlaceHolders(title, values);\n\t\t\t\t\t\t\n\t\t\tfDlg.setTitle(title);\n\t\t\t\t\t\t\n\t\t\t((Questionaire) getApp()).getCurrentDoc().addPropertyChangeListener(\"title\", new PropertyChangeListener() {\n\t\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\t\t\t\t\tString[] values = { (String) evt.getNewValue() };\n\t\t\t\t\tString title = getConfig(\"dlg.abandonChanges.title\");\n\t\t\t\t\t\n\t\t\t\t\ttitle = SwingCreator.replacePlaceHolders(title, values);\n\t\t\t\t\t\n\t\t\t\t\tgetDialog().setTitle(title);\n\t\t\t\t}\n\t\t\t});\t\t\t\n\t\t}\n\n\t\treturn fDlg;\n\t}", "public String determineAccessibilityPaneTitle() {\n C0940QS qs = this.mQs;\n if (qs != null && qs.isCustomizing()) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings_edit);\n }\n if (this.mQsExpansionHeight != 0.0f && this.mQsFullyExpanded) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings);\n }\n if (this.mBarState == 1) {\n return this.mResources.getString(C2017R$string.accessibility_desc_lock_screen);\n }\n return this.mResources.getString(C2017R$string.accessibility_desc_notification_shade);\n }", "public String getTitle() {\n Ensighten.evaluateEvent(this, \"getTitle\", null);\n return getString(C2658R.string.lite_title_policy_updates);\n }", "@Override\n\tprotected CharSequence getDefaultChoice(String selectedValue)\n\t{\n\t\treturn \"\";\n\t}", "@Override\n public String getTitle() {\n return string(\"sd-l-toolbar\");\n }", "protected String getDefaultText() {\n\t\treturn DEFAULT_TEXT;\n\t}", "private String getPrompt(){\n return \"Now \" + (isWhiteTurn ? \"White\" : \"Black\");\n }", "public String getSuggestIntentAction() {\n/* 127 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n public String getTitle()\r\n {\n return null;\r\n }", "@Override\n public void setDefaultActivityTitle() {\n getActivity().setTitle(R.string.app_name);\n }", "public String mo6833a() {\n return \"show_dialog\";\n }", "@Override\n\tpublic String getEditTitle() {\n\t\treturn \"NIVEAU ETUDE\";\n\t}", "@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}", "public static DialogDisplayer getDefault() {\n return (DialogDisplayer)Lookup.getDefault().lookup(DialogDisplayer.class);\n }", "public String getCancelButtonCaption() {\r\n\t\tif (_cancelButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _cancelButton.getDisplayName();\r\n\t}", "@Override\n\tprotected String getTitle()\n\t{\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n protected CharSequence getDefaultChoice(final String _selectedValue)\n {\n return \"\";\n }", "@Override\n public String getTitleString()\n {\n int capsState;\n\n int state = softBoardData.layoutStates.metaStates[LayoutStates.META_CAPS].getState();\n if ( state == CapsState.META_OFF )\n {\n capsState = 0;\n }\n else if ( state == CapsState.META_LOCK )\n {\n capsState = 2;\n }\n else if ( state == CapsState.AUTOCAPS_ON && !softBoardData.autoFuncEnabled )\n {\n capsState = 0;\n }\n else // state == IN_TOUCH || META_ON || AUTOCAPS_ON with enabled autoFunc\n {\n capsState = stringCaps ? 2 : 1;\n }\n\n switch ( capsState )\n {\n case 0:\n return getString();\n\n case 1:\n return StringUtils.toUpperOnlyFirst( getString(), softBoardData.locale );\n\n default: // case 2:\n return getString().toUpperCase( softBoardData.locale );\n }\n\n }", "public String getDeleteButtonCaption() {\r\n\t\tif (_deleteButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _deleteButton.getDisplayName();\r\n\t}", "public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setTitleOverrideText(java.lang.String param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "public String getTitle() {\n return null;\n }", "public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}", "String getDefaultText(XBCItem item);", "public final JButton getDefaultSPViewEditDescButton() {\n return defaultSPViewEditDescButton;\n }", "@FXML private void opinionViewOnAction() {\n try {\n reportLabel.setText(\"\");\n if (activeUser != null) {\n if (getOpinionAuthor().equals(activeUser.getUsername())) {\n deleteButton.setDisable(false);\n reportButton.setDisable(true);\n } else {\n deleteButton.setDisable(true);\n reportButton.setDisable(false);\n }\n }\n } catch (RuntimeException err) {}\n }", "public static String choicelabel() {\n\t\treturn null;\n\t}", "public String getTitle() {\n return getString(CommandProperties.TASK_TITLE);\n }", "public String getAccessibleActionDescription(int i) {\n if (i == 0) {\n // [[[PENDING: WDW -- need to provide a localized string]]]\n return \"click\";\n } else {\n return null;\n }\n }", "@Override\n\tpublic String textoVerificarCancelar() {\n\t\treturn null;\n\t}", "private static String getDefaultSortingCriterion(Context context){\n return context.getString(R.string.pref_sort_criterion_default);\n }", "public String getTitle() {\n return \"\";\n }", "public String cancel()\n {\n if (!\"list\".equals(from))\n {\n return \"mainMenu\";\n }\n return \"cancel\";\n }", "@Override\n\tpublic int getTitle() {\n\t\treturn 0;\n\t}", "public\tString\tgetDefaultText()\n\t{\n\t\treturn\tdefaultText;\n\t}", "String getConfirmationMessage();", "public String getName() {\n return I18nUtil.getBundle().getString(\"CTL_I18nAction\");\n }", "@Override\n public String getDescription() {\n return \"Ask order cancellation\";\n }", "public String getAlertTextWithoutUserIdandPassword() {\n\t\treturn util.getJavascriptAlertText();\n\t}", "@Override\r\n\tprotected String getConfiguredTitle() {\n\t\treturn TEXTS.get(\"Account\");\r\n\t}", "public String getDefaultPaymentGroupName();", "private void showConstantDoesntExists(String constantName)\n {\n AlertDialog.Builder builder = new AlertDialog.Builder(getContext());\n builder.setMessage(\"Uh oh, It looks like constant \\\"\" + constantName + \"\\\" is missing!\")\n .setIcon(android.R.drawable.ic_dialog_info)\n .setTitle(\"Missing constant\")\n .setCancelable(true)\n .setPositiveButton(\"OK\", new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface dialog, int id){}\n });\n \n AlertDialog alert = builder.create();\n alert.show(); \n }", "public String configureOptionsMenu() {\n SharedPreferences settings = context.getSharedPreferences(PREFS, 0);\n boolean shuffle = settings.getBoolean(\"shuffle\", true);\n String buttonText = \"Hello\";\n \n if (shuffle) {\n buttonText = \" Off \";\n } else {\n buttonText = \" On \";\n }\n \n return buttonText;\n }", "private static String getActionButtonText(Context context, int actionId) {\n\n StringBuilder sb = new StringBuilder();\n\n if (actionId == ContentBrowser.CONTENT_ACTION_WATCH_NOW) {\n sb.append(context.getString(R.string.watch_now_1))\n .append(context.getString(R.string.watch_now_2));\n }\n else if (actionId == ContentBrowser.CONTENT_ACTION_WATCH_FROM_BEGINNING) {\n sb.append(context.getString(R.string.watch_from_beginning_1))\n .append(context.getString(R.string.watch_from_beginning_2));\n }\n else if (actionId == ContentBrowser.CONTENT_ACTION_RESUME) {\n sb.append(context.getString(R.string.resume_1))\n .append(context.getString(R.string.resume_2));\n\n }\n else if (actionId == ContentBrowser.CONTENT_ACTION_DAILY_PASS) {\n sb.append(context.getString(R.string.daily_pass_1))\n .append(context.getString(R.string.daily_pass_2));\n }\n else if (actionId == ContentBrowser.CONTENT_ACTION_SUBSCRIPTION) {\n sb.append(context.getString(R.string.premium_1))\n .append(context.getString(R.string.premium_2));\n }\n\n return sb.toString();\n }", "public PolicyBinderPage endorsementFromActionDropDownwithoutBackupPolicy() {\r\n sleep(3000);\r\n ExtentReporter.logger.log(LogStatus.PASS,\r\n \"Select Policy Actions-> Endorsement. Verify Endorse policy window displays.\");\r\n selectDropdownByValueFromPolicyActionDDL(driver, policyAction, policybinderpageDTO.valueOfPolicyActionEndorse,\r\n \"Policy Action\");\r\n return new PolicyBinderPage(driver);\r\n }", "@Override\n public void showDiscardDialog() {\n //Creating an AlertDialog with a message, and listeners for the positive, neutral and negative buttons\n AlertDialog.Builder builder = new AlertDialog.Builder(requireActivity());\n //Set the Message\n builder.setMessage(R.string.product_config_unsaved_changes_dialog_message);\n //Set the Positive Button and its listener\n builder.setPositiveButton(R.string.product_config_unsaved_changes_dialog_positive_text, mUnsavedDialogOnClickListener);\n //Set the Negative Button and its listener\n builder.setNegativeButton(R.string.product_config_unsaved_changes_dialog_negative_text, mUnsavedDialogOnClickListener);\n //Set the Neutral Button and its listener\n builder.setNeutralButton(R.string.product_config_unsaved_changes_dialog_neutral_text, mUnsavedDialogOnClickListener);\n //Lock the Orientation\n OrientationUtility.lockCurrentScreenOrientation(requireActivity());\n //Create and display the AlertDialog\n builder.create().show();\n }", "public String textReason() {\r\n return getParm(2).trim();\r\n }", "public String getCancelReason() {\n return cancelReason;\n }", "public String getModalPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(modalPageTitle).getText();\n }", "public String getSaveButtonCaption() {\r\n\t\tif (_saveButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _saveButton.getDisplayName();\r\n\t}", "@Override\n\tpublic String textoVerificarAceptar() {\n\t\treturn \"Debe seleccionar un item o hacer click en [Cancelar] para continuar\";\n\t}", "default String getTitle() {\n throw new UnsupportedOperationException();\n }", "private String getTitleString(String actionStr)\n\t\t{\n\t\t\treturn (actionStr + \" \" + PATTERN_STR.toLowerCase() + \" : \" + filterKind + \" \" + FILTER_STR);\n\t\t}", "@Override\r\n\tpublic String getShowTitle() {\n\t\treturn getQymc();\r\n\t}", "public default boolean isAlwaysDismissable(){ return false; }", "@Override\n public String doDefault() throws Exception\n {\n Scheme scheme = getSchemeObject();\n if (scheme == null)\n {\n addErrorMessage(getText(\"admin.errors.deletescheme.nonexistent.scheme\"));\n return INPUT;\n }\n\n return super.doDefault();\n }", "public String getDefault();", "public String getTitle( ) {\n return null;\r\n }", "CancelAction getCancelAction();", "@Override\n public String getTitle() {\n throw new RuntimeException( \"Not yet implemented.\" );\n }", "String getOverrideFocusTitle(String title, String content);", "@Override\n public void onDialogNegativeClick(DialogFragment dialog) {\n Toast.makeText(this, \"No\", Toast.LENGTH_LONG).show();\n\n }", "@Override\n public String getSecondDisplay() {\n return ChatColor.RED + \"Cancel\";\n }", "@Override\r\n\t\tpublic Character getPromptSymbol() {\n\t\t\treturn null;\r\n\t\t}", "public String getExpenseName() {\n if (categoryIdentifier == AppController.periodicCategoryIdentifier)\n expenseName = pExpenseNameEt.getText().toString();\n else expenseName = fExpenseNameEt.getText().toString();\n return expenseName;\n }", "public static String no() {\n\t\treturn \"allowusersetup no\" + delimiter + \"allowusersetup no \";\n\t}", "@Override\n\tpublic String getTitle() {\n\t\t// TODO Auto-generated method stub\n\t\treturn null;\n\t}" ]
[ "0.77378166", "0.6799463", "0.66986483", "0.62263507", "0.6161878", "0.60552585", "0.58441675", "0.57713646", "0.5650599", "0.5623975", "0.5578858", "0.5551747", "0.54910326", "0.544617", "0.5438708", "0.5348175", "0.53392637", "0.53390014", "0.53316146", "0.5306647", "0.53051937", "0.53012556", "0.529327", "0.52512014", "0.5216768", "0.521147", "0.5193642", "0.5192434", "0.5178271", "0.5169499", "0.51683074", "0.51646703", "0.51623136", "0.5161498", "0.516149", "0.515282", "0.5142741", "0.5140845", "0.5121556", "0.51194596", "0.51087445", "0.51042116", "0.5103117", "0.51017797", "0.5099814", "0.5094663", "0.50894296", "0.50894296", "0.50894296", "0.50708145", "0.5065229", "0.50651324", "0.50518435", "0.50370914", "0.5031775", "0.50260425", "0.5018479", "0.5005817", "0.4985052", "0.4981564", "0.49743372", "0.49699178", "0.4966191", "0.4964302", "0.49638507", "0.49616253", "0.49540517", "0.49490395", "0.49405771", "0.49369407", "0.49264798", "0.49251857", "0.49212676", "0.4920008", "0.49187237", "0.4910878", "0.49105617", "0.49100944", "0.4896349", "0.48847935", "0.48795667", "0.48760176", "0.4874339", "0.48690644", "0.4868899", "0.4867873", "0.4862106", "0.4857618", "0.48564604", "0.48521316", "0.48515534", "0.4841934", "0.48346546", "0.4828692", "0.48282662", "0.4821698", "0.48195782", "0.4819077", "0.48173663", "0.48133117" ]
0.72073644
1
Returns the dialog title for when biometrics require parental consent.
String getDisabledBiometricsParentConsentTitle();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "PreferenceDialogTitleAttribute getDialogTitle();", "public String getDialogTitle(){\n return getField().getDialogTitle();\n }", "String getDisabledBiometricsParentConsentContent();", "public String getTitlePopup() {\n/* 136 */ return getCOSObject().getString(COSName.T);\n/* */ }", "static String getNameFromUser( Frame owner )\n\t{\n\t\treturn JOptionPane.showInputDialog( owner,\n\t\t\t\t \"You are a high scorer! Please enter your name.\",\n\t\t\t\t \"Congratulations!\",\n\t\t\t\t JOptionPane.QUESTION_MESSAGE );\n\t}", "public String getTitle() {\n\t\t\n\t\tStringBuilder titleBuilder = new StringBuilder();\n\t\ttitleBuilder.append(CorrelatorConfig.AppName);\n\t\ttitleBuilder.append(\" \");\n\n\t\tif (m_activeMap != null) {\n\t\t\ttitleBuilder.append(\"(\" + m_activeMap.getName() + \")\");\t\t\n\t\t}\n\t\t\n\t\t// Stage is where visual parts of JavaFX application are displayed.\n return titleBuilder.toString();\n\t}", "public String getPrompt(){\n\t\treturn getString(KEY_PROMPT);\n\t}", "public String determineAccessibilityPaneTitle() {\n C0940QS qs = this.mQs;\n if (qs != null && qs.isCustomizing()) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings_edit);\n }\n if (this.mQsExpansionHeight != 0.0f && this.mQsFullyExpanded) {\n return this.mResources.getString(C2017R$string.accessibility_desc_quick_settings);\n }\n if (this.mBarState == 1) {\n return this.mResources.getString(C2017R$string.accessibility_desc_lock_screen);\n }\n return this.mResources.getString(C2017R$string.accessibility_desc_notification_shade);\n }", "@Override\n public String getMenuTitle() {\n return personManager.getCurrentUsername(currentUserId) + \"'s account settings\";\n }", "public String getModalPageTitle() {\n waitForLoadingScreen();\n return findVisibleElement(modalPageTitle).getText();\n }", "public String getParentTitle() {\n return getProperty(Property.PARENT_TITLE);\n }", "public String RequiredCaption()\n\t{\n\t\t//Click on Add a new Computer on Home Page to Navigate to Creation of Computer Page\n\t\tAddComputer.click();\n\t\t\n\t\t//Wait Time after each transaction\n\t\tWebDriverWait wait = new WebDriverWait(driver,2);\n\t\t\n\t\tString Requiredcaption = RequiredCaption.getText();\n\t\treturn Requiredcaption;\n\t}", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "@Override\r\n\tpublic String getShowTitle() {\n\t\treturn getQymc();\r\n\t}", "protected String getWizardWindowTitle() {\n\t\treturn DropWizardMessages.Wizard_Window_Title;\n\t}", "public String getTitle() {\n\t\tString displayInput = input;\n\t\tString organTitle = (focusedOrgan==null || focusedOrgan==\"\")? \"\" : \" in <em>\" + DatabaseHomepageBean.getOrganName(focusedOrgan) + \"</em>\";\n\t\treturn \"Result of <em>\" + query + \"</em> query for <em> \" + displayInput + \"</em>\" + organTitle;\n//\t\treturn \"Gene Query\";\n\t}", "public String getWindowTitle() {\r\n\t\treturn windowTitle;\r\n\t}", "public String GetLoginPagetitle() {\n\t\treturn driver.getTitle();\n\t}", "String getCaption();", "public String getParentTitle() {\n return parentTitle;\n }", "public String getAdviceGiverName()\n {\n return \"Parental Advice\";\n }", "public String getPrompt() {\n return prompt;\n }", "public String getWindowTitle() {\n\t\treturn windowTitle;\n\t}", "private String promptForAlbumName() {\n\t\treturn (String)\n\t\t JOptionPane.showInputDialog(\n\t\t\t\talbumTree, \n\t\t\t\t\"Album Name: \", \n\t\t\t\t\"Add Album\",\n\t\t\t\tJOptionPane.PLAIN_MESSAGE, \n\t\t\t\tnull, \n\t\t\t\tnull, \n\t\t\t\t\"\");\t\t\n\t}", "@JsonProperty(\"title\")\n @ApiModelProperty(value = \"The alias used to identify the dialog node.\")\n public String getTitle() {\n return title;\n }", "@Override\n public int getTitleResourceId() {\n return R.string.user_info;\n }", "public javax.accessibility.Accessible getAccessibleCaption() {\n // Not yet supported.\n return null;\n }", "public String getPrompt() {\n\t\treturn prompt;\n\t}", "public String getPrompt() { return prompt; }", "public String getTitleChoice() {\n return io.readString(\"Please enter the Title of the DVD: \");\n }", "@Override\n\tprotected String getWindowTitle() {\n\t\treturn \"LodeRunnerGANLevelBreeder\";\n\t}", "public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t}", "public String getAnalyticsTitle() {\n Ensighten.evaluateEvent(this, \"getAnalyticsTitle\", null);\n return getString(C2658R.string.analytics_screen_policy_updates);\n }", "@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _scienceApp.getTitle();\n\t}", "public String validateLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t\t\n\t}", "public String getTitle() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_TITLE);\r\n }", "public String lerNome() {\n\t\treturn JOptionPane.showInputDialog(\"Digite seu Nome:\");\n\t\t// janela de entrada\n\t}", "public String getTitle() {\n Ensighten.evaluateEvent(this, \"getTitle\", null);\n return getString(C2658R.string.lite_title_policy_updates);\n }", "public String getLabel() {\n return AsteriskUtlities.toContextIdentifier(username + \"-\" + company);\n }", "public String getConsentHTML();", "public String getLoginTitle() {\n\t\treturn driver.getTitle();\n\t}", "public String getLoginTitle() {\n\t\treturn driver.getTitle();\n\t\t\n\t}", "public String getTitle() {\n return iBundle.getString(\"supplierdebtreport.title\");\n }", "private String getName()\r\n {\r\n return JOptionPane.showInputDialog(frame, \"Choose a screen name:\", \"Screen name selection\",\r\n JOptionPane.PLAIN_MESSAGE);\r\n }", "public String getRibbonTitle()\n\t{\n\t\treturn ribbonTitle;\n\t}", "public org.xms.g.common.AccountPicker.AccountChooserOptions.Builder setTitleOverrideText(java.lang.String param0) {\n throw new java.lang.RuntimeException(\"Not Supported\");\n }", "public String getPreferredTitle() {\n String preferredTitle = null;\n if (!dcTitle.isEmpty()) {\n preferredTitle = dcTitle.get(0).getValue();\n } else if (!termsAlternative.isEmpty()) {\n preferredTitle = termsAlternative.get(0).getValue();\n }\n if (preferredTitle == null) {\n preferredTitle = NO_TITLE;\n }\n return preferredTitle;\n }", "public String getNotificationTitle() {\n if (this.mInvitation != null) return \"Contact request from: \" + this.mInvitation.getSenderUsername();\n else if (this.mChatMessageFragment != null) {\n String title = \"New message from: \"\n + this.mChatMessageFragment.getSender();\n return title;\n }\n else return null;\n }", "public String getLoginTitle(){\n\t\treturn driver.findElement(titleText).getText();\n\t}", "@Override\n\tpublic CharSequence getTitle() {\n\t\treturn null;\n\t}", "public void promptTitle(String title)\n {\n this.title = title;\n }", "@Override\r\n\tprotected String getConfiguredTitle() {\n\t\treturn TEXTS.get(\"Account\");\r\n\t}", "@Override\r\n\t\tpublic String getTitle()\r\n\t\t\t{\n\t\t\t\treturn null;\r\n\t\t\t}", "@Override\n\tpublic java.lang.String getTitle() {\n\t\treturn _candidate.getTitle();\n\t}", "public String getTitle(String title) {\n\t\tif(level == \"AS\") {\n\t\t\treturn \"Assistant\";\n\t\t}\n\t\telse if(level == \"AO\") {\n\t\t\treturn \"Associate\";\n\t\t}\n\t\telse {\n\t\t\treturn \"Full-Time\";\n\t\t}\n\t}", "public String getActiveTitle() {\n\t\treturn getTitle(TitleBuilder.byActiveWindow());\n\t}", "@Override\n public String getTitle() {\n return getName();\n }", "public String getLoginTitle(){\n\t return\tdriver.findElement(titleText).getText();\n\t}", "public String getTitle() {\n return null;\n }", "public abstract int getGuideTitle();", "@NeededForTesting\n String getContentTitle(ContactCacheEntry contactInfo, Call call) {\n if (call.isConferenceCall() && !call.hasProperty(Details.PROPERTY_GENERIC_CONFERENCE)) {\n /// M: [VoLTE conference]incoming volte conference @{\n /*\n * Google code:\n return mContext.getResources().getString(R.string.card_title_conf_call);\n */\n if (!isIncomingVolteConference(call)) {\n return mContext.getResources().getString(R.string.card_title_conf_call);\n }\n /// @}\n }\n\n String preferredName = ContactDisplayUtils.getPreferredDisplayName(contactInfo.namePrimary,\n contactInfo.nameAlternative, mContactsPreferences);\n if (TextUtils.isEmpty(preferredName)) {\n return TextUtils.isEmpty(contactInfo.number) ? null : BidiFormatter.getInstance()\n .unicodeWrap(contactInfo.number, TextDirectionHeuristics.LTR);\n }\n return preferredName;\n }", "public String getApplicationTitle() {\n return applicationTitle.get();\n }", "public String validateLoginPageTitile(){\n return driver.getTitle();//qani vor gettitley stringa get berum menq\n }", "public String getClientId() {\r\n ExtentReporter.logger.log(LogStatus.INFO,\r\n \"Click on the Policyholder Name: Note (and save for later input) the Client ID: Click [Close]\");\r\n clickButton(driver, policyHolderNameLink, \"Policy Holder Name\");\r\n switchToFrameUsingElement(driver, entityMiniPopupFrameId);\r\n getPageTitle(driver, \"Entity Mini Popup\");\r\n String getClientIdValue = clientId.getAttribute(\"innerHTML\");\r\n // TODO - need to store above value in Excel sheet.\r\n clickButton(driver, entityMiniPopupCloseBtn, \"Entity Mini Popup Close\");\r\n switchToParentWindowfromframe(driver);\r\n return getClientIdValue;\r\n }", "public abstract CharSequence getTitle();", "public String getCurrentWindowTitle(){\n buffer = new char[MAX_TITLE_LENGTH * 2];\n GetWindowTextW(GetForegroundWindow(), buffer, MAX_TITLE_LENGTH);\n return Native.toString(buffer);\n }", "@Override\r\n\tpublic String getTitle() {\n\t\treturn null;\r\n\t}", "public String getInformationTitle() {\n return getName();\n }", "public String getLoginPageTitle() {\n\t\treturn driver.getTitle();\n\t}", "public String getTitle()\n {\n return \"LAB: DB Cross Site Scripting (XSS)\";\n }", "String getOverrideFocusTitle(String title, String content);", "@AutoEscape\n\tpublic String getTitle();", "@AutoEscape\n\tpublic String getTitle();", "public Prompt getPrompt() {\n return prompt;\n }", "public String getAuthTemplateTitle() {\n return getProperty(Property.AUTH_TEMPLATE_TITLE);\n }", "public String getPrideExperimentTitle() {\n\n \n return prideExperimentTitle;\n\n }", "@Override\n public String getUnansweredPromptText() {\n return (\"Please select an item or add your own.\");\n }", "public String announcementTitle(){\n\n return announcTitle.getAttribute(\"placeholder\");\n }", "@Override\r\n public String getTitle()\r\n {\n return null;\r\n }", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String getTitle() {\n\t\treturn null;\n\t}", "public int getTitleStringResId() {\n return R.string.meals;\n }", "public String getTitle()\n {\n return name;\n }", "public String getCancelButtonCaption() {\r\n\t\tif (_cancelButton == null)\r\n\t\t\treturn null;\r\n\t\telse\r\n\t\t\treturn _cancelButton.getDisplayName();\r\n\t}", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "java.lang.String getTitle();", "public String showContextChosen() {\n String s = \"\";\n\n for (Context c : surveyContext.values()) {\n s = s.concat(c.getContextName() + \":\\n\" +\n c.showActivitiesChosen() +\n \"\\n\\n\");\n }\n return s;\n }", "@Override\n public String getTitleString()\n {\n int capsState;\n\n int state = softBoardData.layoutStates.metaStates[LayoutStates.META_CAPS].getState();\n if ( state == CapsState.META_OFF )\n {\n capsState = 0;\n }\n else if ( state == CapsState.META_LOCK )\n {\n capsState = 2;\n }\n else if ( state == CapsState.AUTOCAPS_ON && !softBoardData.autoFuncEnabled )\n {\n capsState = 0;\n }\n else // state == IN_TOUCH || META_ON || AUTOCAPS_ON with enabled autoFunc\n {\n capsState = stringCaps ? 2 : 1;\n }\n\n switch ( capsState )\n {\n case 0:\n return getString();\n\n case 1:\n return StringUtils.toUpperOnlyFirst( getString(), softBoardData.locale );\n\n default: // case 2:\n return getString().toUpperCase( softBoardData.locale );\n }\n\n }", "public String getNome(){\n return preferencias.getString(CHAVE_NOME, null);\n }", "public DialogPrompt(String title)\n {\n value = new PromptValueString(\"\",\"\");\n initUI(title,10);\n }", "protected static String getTitle() {\r\n return Lock.title;\r\n }", "public String getTitle() {\n \t\treturn getWebDriver().getTitle();\n \t}", "String title();", "String title();", "public java.lang.String getTitle();", "public String getTitle( ) {\n return null;\r\n }" ]
[ "0.66449255", "0.6400603", "0.61244583", "0.5794645", "0.5723346", "0.56845534", "0.56459266", "0.5644873", "0.563775", "0.5636196", "0.56199753", "0.56134653", "0.5600034", "0.5592597", "0.5550282", "0.55191743", "0.54454976", "0.544473", "0.54242355", "0.54134893", "0.54119927", "0.5402728", "0.53804576", "0.53583825", "0.5354745", "0.53420395", "0.53347063", "0.53217447", "0.5313596", "0.53100604", "0.5299643", "0.52613634", "0.5255049", "0.5254489", "0.52501875", "0.52305925", "0.521064", "0.5202605", "0.51972586", "0.51873994", "0.5184098", "0.51702505", "0.51579475", "0.5144641", "0.51381326", "0.5123962", "0.5118557", "0.51184684", "0.5117679", "0.5117227", "0.5116181", "0.51144224", "0.51131946", "0.5109268", "0.5108554", "0.51019377", "0.509846", "0.5093933", "0.50900054", "0.50873053", "0.5085822", "0.5085014", "0.50793254", "0.5062045", "0.5058067", "0.50516075", "0.50465375", "0.50458527", "0.50390506", "0.50294316", "0.5016212", "0.5014191", "0.5014191", "0.49999508", "0.49889055", "0.4980954", "0.49686947", "0.49650764", "0.49596855", "0.49585015", "0.49585015", "0.49585015", "0.49559635", "0.4955433", "0.4952154", "0.49507278", "0.49507278", "0.49507278", "0.49507278", "0.49507278", "0.49484673", "0.49363968", "0.4931216", "0.49278423", "0.49277055", "0.49196878", "0.4919632", "0.4919632", "0.49191117", "0.4918641" ]
0.7655384
0
Returns the dialog contents for when biometrics require parental consent.
String getDisabledBiometricsParentConsentContent();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getDisabledBiometricsParentConsentTitle();", "public String getConsentHTML();", "public String getConsentPDF();", "void onOpenCMPConsentToolActivity(ServerResponse response, CMPSettings settings);", "public String[] showAccusationDialog() {\n\t\tframe.enableAccuseBtn(false);\n\t\treturn new String[]{frame.unDave(showCharacterAccusations()),\n\t\t\t\tframe.unDave(showWeaponAccusations()),frame.unDave(showRoomAccusations())};\n\t}", "private void showRequestPermissionsInfoAlertDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.permission_alert_dialog_title);\n builder.setMessage(R.string.permission_dialog_message);\n builder.setPositiveButton(R.string.action_ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n requestReadAndSendSmsPermission();\n }\n });\n builder.show();\n }", "private void dialogPermissionReadBook() {\n android.app.AlertDialog.Builder adb = new android.app.AlertDialog.Builder(this);\n adb.setCancelable(false);\n adb.setMessage(R.string.dialogCheckPermissionContact);\n adb.setPositiveButton(R.string.btnOK, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n ActivityCompat.requestPermissions(Book.this, new String[]{android.Manifest.permission.READ_CONTACTS}, CODE_READ_BOOK);\n dialog.dismiss();\n }\n });\n adb.show();\n }", "private void showRequestPermissionRationaleDialog(){\n new AlertDialog.Builder(this)\n .setMessage(\"Permissions needed to use application features.\")\n .setPositiveButton(\"Allow\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n startAppSettingsConfigActivity();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .setCancelable(false)\n .create()\n .show();\n }", "public OverviewSmallConfirmDialogOptions showConfirmDialog(String referenceID, String title, String textContent, String okText, String cancelText) {\n/*Generated! Do not modify!*/ ConfirmDialogParameters confirmDialogParameters = new ConfirmDialogParameters();\n/*Generated! Do not modify!*/ confirmDialogParameters.setReferenceID(referenceID);\n/*Generated! Do not modify!*/ confirmDialogParameters.setTitle(title);\n/*Generated! Do not modify!*/ confirmDialogParameters.setTextContent(textContent);\n/*Generated! Do not modify!*/ confirmDialogParameters.setOkText(okText);\n/*Generated! Do not modify!*/ confirmDialogParameters.setCancelText(cancelText);\n/*Generated! Do not modify!*/ replyDTO.setConfirmDialogParameters(confirmDialogParameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ addRecordedAction(\"showConfirmDialog(\" + escapeString(referenceID) + \", \" + escapeString(title) + \", \" + escapeString(textContent) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(okText) + \", \" + escapeString(cancelText)+ \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallConfirmDialogOptions(this, confirmDialogParameters);\n/*Generated! Do not modify!*/ }", "private void launchTextConfirmationDialog(final int storeId, Intent data) {\n final Bundle capturedArgs = data.getBundleExtra(\"data\");\n\n //get the keys and values and build a message\n StringBuilder message = new StringBuilder();\n if (capturedArgs != null) {\n for (String key: capturedArgs.keySet()) {\n String value = capturedArgs.get(key).toString();\n message.append(key.toUpperCase() + \": \" + value + \"\\n\");\n\n }\n }\n\n\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"Are these values correct?\")\n .setMessage(message)\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Log.d(\"Dialog\", \"Captured values are correct\");\n dialog.dismiss();\n //Add store id to identify whose these fields are from\n capturedArgs.putInt(Store.KEY_FIELD_STORE_ID, storeId);\n submitSurvey(capturedArgs);\n\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Log.d(\"Dialog\", \"Captured values are NOT correct\");\n dialog.dismiss();\n startOcrCaptureActivity(storeId);\n\n\n }\n })\n .show();\n\n }", "public void getAssumptionsOutput(JDialog parentDialog, ArrayList<String> aPsmKeys, boolean aOnlyValidated,\n boolean aAccession, boolean aProteinDescription, boolean aSequence, boolean aModifications,\n boolean aFile, boolean aTitle, boolean aPrecursor, boolean aScores, boolean aConfidence, boolean aIncludeHeader) {\n\n // create final versions of all variables use inside the export thread\n final ArrayList<String> psmKeys;\n final boolean onlyValidated = aOnlyValidated;\n final boolean accession = aAccession;\n final boolean proteinDescription = aProteinDescription;\n final boolean sequence = aSequence;\n final boolean modifications = aModifications;\n final boolean file = aFile;\n final boolean title = aTitle;\n final boolean precursor = aPrecursor;\n final boolean scores = aScores;\n final boolean confidence = aConfidence;\n final boolean includeHeader = aIncludeHeader;\n\n // get the file to send the output to\n final File selectedFile = peptideShakerGUI.getUserSelectedFile(\".txt\", \"Tab separated text file (.txt)\", \"Export...\", false);\n\n if (selectedFile != null) {\n\n final String filePath = selectedFile.getPath();\n\n try {\n writer = new BufferedWriter(new FileWriter(selectedFile));\n } catch (IOException e) {\n JOptionPane.showMessageDialog(null, \"An error occured when saving the file.\", \"Saving Failed\", JOptionPane.ERROR_MESSAGE);\n e.printStackTrace();\n return;\n }\n\n if (aPsmKeys == null) {\n psmKeys = identification.getSpectrumIdentification();\n } else {\n psmKeys = aPsmKeys;\n }\n\n if (parentDialog != null) {\n progressDialog = new ProgressDialogX(parentDialog, peptideShakerGUI,\n Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/icons/peptide-shaker.gif\")),\n Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/icons/peptide-shaker-orange.gif\")),\n true);\n } else {\n progressDialog = new ProgressDialogX(peptideShakerGUI,\n Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/icons/peptide-shaker.gif\")),\n Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/icons/peptide-shaker-orange.gif\")),\n true);\n }\n\n progressDialog.setIndeterminate(true);\n progressDialog.setTitle(\"Copying to File. Please Wait...\");\n\n new Thread(new Runnable() {\n\n public void run() {\n try {\n progressDialog.setVisible(true);\n } catch (IndexOutOfBoundsException e) {\n // ignore\n }\n }\n }, \"ProgressDialog\").start();\n\n new Thread(\"ExportThread\") {\n\n @Override\n public void run() {\n\n try {\n if (includeHeader) {\n writer.write(\"Search Engine\" + SEPARATOR);\n writer.write(\"Rank\" + SEPARATOR);\n if (accession) {\n writer.write(\"Protein Accession\" + SEPARATOR);\n }\n if (proteinDescription) {\n writer.write(\"Protein Description\" + SEPARATOR);\n }\n if (sequence) {\n writer.write(\"Sequence\" + SEPARATOR);\n }\n if (modifications) {\n writer.write(\"Variable Modifications\" + SEPARATOR);\n }\n if (file) {\n writer.write(\"Spectrum File\" + SEPARATOR);\n }\n if (title) {\n writer.write(\"Spectrum Title\" + SEPARATOR);\n }\n if (precursor) {\n writer.write(\"Precursor m/z\" + SEPARATOR);\n writer.write(\"Precursor Charge\" + SEPARATOR);\n writer.write(\"Precursor RT\" + SEPARATOR);\n writer.write(\"Peptide Theoretical Mass\" + SEPARATOR);\n\n if (peptideShakerGUI.getSearchParameters().isPrecursorAccuracyTypePpm()) {\n writer.write(\"Mass Error [ppm]\" + SEPARATOR);\n } else {\n writer.write(\"Mass Error [Da]\" + SEPARATOR);\n }\n\n }\n if (scores) {\n writer.write(\"Mascot e-value\" + SEPARATOR);\n writer.write(\"OMSSA e-value\" + SEPARATOR);\n writer.write(\"X!Tandem e-value\" + SEPARATOR);\n }\n if (confidence) {\n writer.write(\"Confidence\" + SEPARATOR);\n }\n writer.write(\"Retained as Main PSM\" + SEPARATOR);\n writer.write(\"Decoy\" + SEPARATOR);\n writer.write(System.getProperty(\"line.separator\"));\n }\n\n PSParameter psParameter = new PSParameter();\n int rank, progress = 0;\n\n progressDialog.setIndeterminate(false);\n progressDialog.setMaxProgressValue(psmKeys.size());\n\n for (String spectrumKey : psmKeys) {\n\n if (progressDialog.isRunCanceled()) {\n break;\n }\n\n SpectrumMatch spectrumMatch = identification.getSpectrumMatch(spectrumKey); // @TODO: replace by batch selection!!\n psParameter = (PSParameter) identification.getSpectrumMatchParameter(spectrumKey, psParameter); // @TODO: replace by batch selection!!\n\n if (!onlyValidated || psParameter.isValidated()) {\n for (int se : spectrumMatch.getAdvocates()) {\n ArrayList<Double> eValues = new ArrayList<Double>(spectrumMatch.getAllAssumptions(se).keySet());\n Collections.sort(eValues);\n rank = 1;\n for (double eValue : eValues) {\n for (PeptideAssumption peptideAssumption : spectrumMatch.getAllAssumptions(se).get(eValue)) {\n writer.write(AdvocateFactory.getInstance().getAdvocate(se).getName() + SEPARATOR);\n writer.write(rank + SEPARATOR);\n if (accession || proteinDescription) {\n\n String proteinAccessions = \"\";\n String proteinDescriptions = \"\";\n\n boolean first = true;\n for (String protein : peptideAssumption.getPeptide().getParentProteins()) {\n if (first) {\n first = false;\n } else {\n if (accession) {\n proteinAccessions += \", \";\n }\n if (proteinDescription) {\n proteinDescriptions += \"; \";\n }\n }\n if (accession) {\n proteinAccessions += protein;\n }\n if (proteinDescription) {\n proteinDescriptions += sequenceFactory.getHeader(protein).getDescription();\n }\n }\n if (accession) {\n writer.write(proteinAccessions + SEPARATOR);\n }\n if (proteinDescription) {\n writer.write(proteinDescriptions + SEPARATOR);\n }\n }\n if (sequence) {\n writer.write(peptideAssumption.getPeptide().getSequence() + SEPARATOR);\n }\n if (modifications) {\n boolean first = true;\n for (ModificationMatch modificationMatch : peptideAssumption.getPeptide().getModificationMatches()) {\n if (modificationMatch.isVariable()) {\n if (first) {\n first = false;\n } else {\n writer.write(\", \");\n }\n String modName = modificationMatch.getTheoreticPtm();\n writer.write(modName + \"(\" + modificationMatch.getModificationSite() + \")\");\n }\n }\n writer.write(SEPARATOR);\n }\n if (file) {\n writer.write(Spectrum.getSpectrumFile(spectrumMatch.getKey()) + SEPARATOR);\n }\n if (title) {\n writer.write(Spectrum.getSpectrumTitle(spectrumMatch.getKey()) + SEPARATOR);\n }\n if (precursor) {\n Precursor prec = spectrumFactory.getPrecursor(spectrumMatch.getKey());\n writer.write(prec.getMz() + SEPARATOR);\n writer.write(peptideAssumption.getIdentificationCharge().value + SEPARATOR);\n writer.write(prec.getRt() + SEPARATOR);\n writer.write(peptideAssumption.getPeptide().getMass() + SEPARATOR);\n writer.write(Math.abs(peptideAssumption.getDeltaMass(prec.getMz(), \n peptideShakerGUI.getSearchParameters().isPrecursorAccuracyTypePpm())) + SEPARATOR);\n }\n if (scores) {\n if (se == Advocate.MASCOT) {\n writer.write(\"\" + eValue);\n }\n writer.write(SEPARATOR);\n if (se == Advocate.OMSSA) {\n writer.write(\"\" + eValue);\n }\n writer.write(SEPARATOR);\n if (se == Advocate.XTANDEM) {\n writer.write(\"\" + eValue);\n }\n writer.write(SEPARATOR);\n }\n if (confidence) {\n psParameter = (PSParameter) peptideAssumption.getUrParam(psParameter);\n writer.write(psParameter.getSearchEngineConfidence() + SEPARATOR);\n }\n if (peptideAssumption.getPeptide().isSameAs(spectrumMatch.getBestAssumption().getPeptide())) {\n writer.write(1 + SEPARATOR);\n } else {\n writer.write(0 + SEPARATOR);\n }\n if (peptideAssumption.isDecoy()) {\n writer.write(1 + SEPARATOR);\n } else {\n writer.write(0 + SEPARATOR);\n }\n writer.write(System.getProperty(\"line.separator\"));\n rank++;\n }\n }\n }\n }\n\n progressDialog.setValue(++progress);\n }\n\n writer.close();\n\n boolean processCancelled = progressDialog.isRunCanceled();\n progressDialog.setRunFinished();\n\n if (!processCancelled) {\n JOptionPane.showMessageDialog(peptideShakerGUI, \"Data copied to file:\\n\" + filePath, \"Data Exported.\", JOptionPane.INFORMATION_MESSAGE);\n }\n } catch (Exception e) {\n progressDialog.setRunFinished();\n JOptionPane.showMessageDialog(peptideShakerGUI, \"An error occurred while generating the output.\", \"Output Error.\", JOptionPane.ERROR_MESSAGE);\n e.printStackTrace();\n }\n }\n }.start();\n }\n }", "@Override\n public void showRationale(Context context, T permissions, final RequestExecutor executor) {\n Log.e(TAG, \"rantionale\");\n AlertDialog.Builder dialog = new AlertDialog.Builder(context);\n dialog.setTitle(title)\n .setMessage(msg)\n .setCancelable(false)\n .setPositiveButton(R.string.allow, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // When the user to continue the request:\n executor.execute();\n }\n })\n .setNegativeButton(R.string.no_thanks, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // When the user interrupts the request:\n executor.cancel();\n }\n }).show();\n\n }", "public Dialog onCreateDialog(Bundle savedInstanceState){\n AlertDialog.Builder sample_builder = new AlertDialog.Builder(getActivity());\n sample_builder.setView(\"activity_main\");\n sample_builder.setMessage(\"This is a sample prompt. No new networks should be scanned while this prompt is up\");\n sample_builder.setCancelable(true);\n sample_builder.setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogPositiveClick(StationFragment.this);\n }\n });\n sample_builder.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n listener.onDialogNegativeClick(StationFragment.this);\n }\n });\n return sample_builder.create();\n\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n FindChallenge();\n\n }", "public JDialog getParametersWidget(JFrame master);", "protected Control createDialogArea(Composite parent) {\n\t\t\ttext = new Text(parent, SWT.READ_ONLY | SWT.NO_FOCUS);\n\n\t\t\t// Use the compact margins employed by PopupDialog.\n\t\t\tGridData gd = new GridData(GridData.BEGINNING | GridData.FILL_BOTH);\n\t\t\tgd.horizontalIndent = 5;\n\t\t\tgd.verticalAlignment = SWT.CENTER;\n\t\t\ttext.setLayoutData(gd);\n\t\t\ttext.setText(contents);\n\n\t\t\t// since SWT.NO_FOCUS is only a hint...\n\t\t\ttext.addFocusListener(new FocusAdapter() {\n\t\t\t\tpublic void focusGained(FocusEvent event) {\n\t\t\t\t\tContentProposalPopup.this.close();\n\t\t\t\t}\n\t\t\t});\n\t\t\treturn text;\n\t\t}", "public static OkDialog waitForInfoDialog() {\n\t\treturn waitForDialogComponent(OkDialog.class);\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Done entering class?\")\n .setPositiveButton(\"yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n }\n })\n .setNegativeButton(\"no\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Intent tmp = new Intent(getContext(), course_info.class);\n startActivity(tmp);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "private void basicInfoDialogPrompt() {\n if(!prefBool){\n BasicInfoDialog dialog = new BasicInfoDialog();\n dialog.show(getFragmentManager(), \"info_dialog_prompt\");\n }\n }", "protected Control createDialogArea(Composite parent) {\r\n // create composite\r\n Composite composite = (Composite) super.createDialogArea(parent);\r\n // create message\r\n if (message != null) {\r\n Label label = new Label(composite, SWT.WRAP);\r\n label.setText(message);\r\n GridData data = new GridData(GridData.GRAB_HORIZONTAL\r\n | GridData.GRAB_VERTICAL\r\n | GridData.HORIZONTAL_ALIGN_FILL\r\n | GridData.VERTICAL_ALIGN_CENTER);\r\n data.widthHint = convertHorizontalDLUsToPixels(IDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH);\r\n label.setLayoutData(data);\r\n label.setFont(parent.getFont());\r\n }\r\n text = new Text(composite, SWT.SINGLE | SWT.BORDER | SWT.PASSWORD);\r\n text.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL\r\n | GridData.HORIZONTAL_ALIGN_FILL));\r\n\r\n applyDialogFont(composite);\r\n return composite;\r\n }", "public AuthInfoDialog(java.awt.Frame parent, boolean modal)\n {\n super(parent, modal);\n initComponents();\n this.setLocationRelativeTo(parent);\n \n apiServices = ApiService.getInstance();\n // Load the account data if any is available.\n accInfo = ApiData.getCurrAccountInfo();\n if(accInfo.hasApiData())\n {\n authUserIDFld.setText(String.valueOf(accInfo.getKeyID()));\n authAPIFld.setText(accInfo.getVerificationCode());\n \n retrievedChars = accInfo.getAccountCharacters();\n for(Character apiChar : retrievedChars)\n {\n authCharacterCombo.addItem(apiChar.getName());\n }\n \n authCharacterCombo.setSelectedIndex(accInfo.getDefaultCharIndex());\n \n authOKBtn.setEnabled(true);\n }\n }", "private void getConsentimientoChik(){\n mConsentimientoChiks = estudioAdapter.getListaConsentimientoChikSinEnviar();\n //ca.close();\n }", "private String showCharacterAccusations() {\n\t\tButtonGroup characterButtons = new ButtonGroup();\n\t\tList<JRadioButton> btns = setupCharacterButtons();\n\t \n\t\t// set up dialog box\n\t\tJPanel characterPanel = new JPanel(new GridLayout(0, 1));\n\t\tJLabel lbl = new JLabel(\"Select the character that you suspect.\");\n\t\tcharacterPanel.add(lbl);\n\t // add buttons to panel\n\t for(JRadioButton b : btns){\n\t \tcharacterButtons.add(b);\n\t \tcharacterPanel.add(b);\n\t }\n\t\t\n\t // show dialog box\n\t JOptionPane.showMessageDialog(frame, characterPanel);\n\t // decide which button was selected\n\t for(JRadioButton b : btns){\n\t \tif(b.isSelected()){\n\t \t\treturn b.getText();\n\t \t}\n\t }\n\t return null;\n\t}", "@Override\n public void onPromptAndCollectUserInformationResponse(PromptAndCollectUserInformationResponse arg0) {\n\n }", "public abstract int getGuideExtraContent();", "@Override\r\n\tpublic Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n\r\n\t\t// Set up the layout inflater\r\n\t\tLayoutInflater inflater = getActivity().getLayoutInflater();\r\n\r\n\t\t// Set the title, message and layout of the dialog box\r\n\t\tbuilder.setView(inflater.inflate(R.layout.dialog_box_layout, null))\r\n\t\t\t\t.setTitle(R.string.dialog_title);\r\n\r\n\t\t// User accepts the thing in the dialog box\r\n\t\tbuilder.setPositiveButton(R.string.dialog_accpet,\r\n\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\t\t\tToast.makeText(getActivity(),\r\n\t\t\t\t\t\t\t\t\"Thank you for your kiss ^.^\",\r\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\t// User cancels the thing in the dialog box\r\n\t\tbuilder.setNegativeButton(R.string.dialog_cancel,\r\n\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int id) {\r\n\t\t\t\t\t\tToast.makeText(getActivity(), \"Refuse my kiss??? >.<\",\r\n\t\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\r\n\t\treturn builder.create(); // return the AlertDialog object\r\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n return new AlertDialog.Builder(getActivity())\n .setMessage(R.string.more_info_text)\n\n // User cannot dismiss dialog by hitting back button\n .setCancelable(false)\n\n // Set up No Button\n .setNegativeButton(R.string.not_now,\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int id) {\n dismiss();\n }\n })\n\n // Set up Yes Button\n .setPositiveButton(R.string.visit_moma,\n new DialogInterface.OnClickListener() {\n public void onClick(final DialogInterface dialog, int id) {\n startActivity(new Intent(Intent.ACTION_VIEW, Uri\n .parse(VISIT_MOMA_URL)));\n dismiss();\n }\n }).create();\n }", "public UserWhishlistPage clicOKInALert(){\r\n\t\t\tdriver.switchTo().alert().accept();\r\n\t\t\treturn this;\r\n\t\t}", "public String showContextChosen() {\n String s = \"\";\n\n for (Context c : surveyContext.values()) {\n s = s.concat(c.getContextName() + \":\\n\" +\n c.showActivitiesChosen() +\n \"\\n\\n\");\n }\n return s;\n }", "public DialogInformationBoat(java.awt.Frame parent, boolean modal) {\n super(parent, modal);\n initComponents();\n \n ok = false;\n \n this.setLocationRelativeTo(null);\n }", "public String getPrompt() {\r\n\t\treturn \"oui/non\";\r\n\t}", "public static DialogFragment notEnoughAcceptableDialog(Context context) {\n if (context == null) {\n return null;\n }\n BasicInfoDialogFragment dialogFragment = new BasicInfoDialogFragment();\n dialogFragment.setText(\n context.getString(R.string.dialog_wizard_low_acceptable_title),\n context.getString(R.string.dialog_wizard_low_acceptable_message));\n dialogFragment.setPositive(context.getString(R.string.dialog_wizard_low_acceptable_positive), null);\n commitFragment(context, dialogFragment, \"notEnoughAcceptableDialogTag\");\n return dialogFragment;\n }", "public InfoDialog() {\r\n\t\tcreateContents();\r\n\t}", "boolean hasInitialPromptFulfillment();", "private Bundle sendHabitInfoToDialog() {\n Bundle bundle = new Bundle();\n ArrayList<String> list = new ArrayList<>();\n list.add(habit_type.getTitle());\n bundle.putString(\"Title\", habit_type.getTitle());\n bundle.putSerializable(\"Habit Type\", list);\n\n return bundle;\n }", "@Override\n public void showDiscardDialog() {\n //Creating an AlertDialog with a message, and listeners for the positive, neutral and negative buttons\n AlertDialog.Builder builder = new AlertDialog.Builder(requireActivity());\n //Set the Message\n builder.setMessage(R.string.product_config_unsaved_changes_dialog_message);\n //Set the Positive Button and its listener\n builder.setPositiveButton(R.string.product_config_unsaved_changes_dialog_positive_text, mUnsavedDialogOnClickListener);\n //Set the Negative Button and its listener\n builder.setNegativeButton(R.string.product_config_unsaved_changes_dialog_negative_text, mUnsavedDialogOnClickListener);\n //Set the Neutral Button and its listener\n builder.setNeutralButton(R.string.product_config_unsaved_changes_dialog_neutral_text, mUnsavedDialogOnClickListener);\n //Lock the Orientation\n OrientationUtility.lockCurrentScreenOrientation(requireActivity());\n //Create and display the AlertDialog\n builder.create().show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"They decliened your invitation\";\n if(getArguments().getBoolean(\"hostDeclined\"))\n {\n mess = \"They canceled their invitation\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public static void requestInfo(Claim c){\n\t\tnew GUIClientForm(c);\n\t}", "private AlertDialog buildDialog(String deviceName) {\n Builder builder = new Builder(this);\n CharSequence[] items = {\n getString(R.string.bluetooth_pbap_server_authorize_alwaysallowed)\n };\n boolean[] checked = {\n false\n };\n\n String msg = getString(R.string.bluetooth_pbap_server_authorize_message, deviceName);\n\n Log.d(TAG, \"buildDialog : items=\" + items[0]);\n\n builder.setIcon(android.R.drawable.ic_dialog_info).setTitle(R.string.bluetooth_pbap_server_authorize_title).setView(\n createView(msg))\n // .setMessage(msg)\n /*\n * .setMultiChoiceItems (items, checked, new DialogInterface.OnMultiChoiceClickListener(){ public void\n * onClick (DialogInterface dialog, int which, boolean isChecked){ if(which == 0) { mAlwaysAllowedValue =\n * isChecked; }else{ Log.w(TAG, \"index of always allowed is not correct : \"+which); } } } )\n */\n .setPositiveButton(R.string.bluetooth_pbap_server_authorize_allow, this).setNegativeButton(\n R.string.bluetooth_pbap_server_authorize_decline, this);\n\n return builder.create();\n }", "private static void showPrompt(Activity activity, PermissionHandler permissionHandler,\n String permission, int requestCode, boolean isDeniedPermanently) {\n AlertDialog alertDialog = new AlertDialog.Builder(activity).create();\n alertDialog.setMessage(activity.getString(R.string.permissionPromptMsg));\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, activity.getString(R.string.denyBtnText),\n (dialogInterface, i) -> alertDialog.dismiss());\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE,\n isDeniedPermanently ? activity.getString(R.string.settingsBtnTxt)\n : activity.getString(R.string.allowBtnTxt),\n (dialog, which) -> {\n if (isDeniedPermanently) {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", activity.getPackageName(), null);\n intent.setData(uri);\n activity.startActivity(intent);\n } else {\n permissionHandler.firstTimeAsking(permission, false);\n ActivityCompat.requestPermissions(activity, new String[]{permission},\n requestCode);\n }\n\n });\n alertDialog.show();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(R.string.at_home_question)\n .setPositiveButton(R.string.yes, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n listener.onAlign(getDialog());\n }\n })\n .setNeutralButton(R.string.go_home, null) // See onResume\n .setNegativeButton(android.R.string.no, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n listener.onCancel(getDialog());\n }\n }).setOnCancelListener(new DialogInterface.OnCancelListener() {\n @Override\n public void onCancel(DialogInterface dialog) {\n listener.onCancel(getDialog());\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "Bundle getOpenInOtherWindowActivityOptions();", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"The user your trying to connect to does not have a name set\";\n if(getArguments().getBoolean(\"me\"))\n {\n mess = \"Someone tried to connect to you for a game but you dont have a name set\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n\t public Dialog onCreateDialog(Bundle savedInstanceState) {\n\t AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\t \n\t \n\t \n\t LayoutInflater inflater = getActivity().getLayoutInflater();\n\t \n\t final View inflator = inflater.inflate(R.layout.dialog_signin, null);\n\t \n\t \n\t \n\t builder.setView(inflator)\n\t \n\t \n\t .setPositiveButton(\"Set\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t \t EditText username = (EditText) inflator.findViewById(R.id.username);\n\t \t String str = username.getText().toString();\n\t System.out.println(str);\n\t mEditText.setText(str);\n\t }\n\t })\n\t .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n\t public void onClick(DialogInterface dialog, int id) {\n\t // User cancelled the dialog\n\t }\n\t });\n\t // Create the AlertDialog object and return it\n\t return builder.create();\n\t }", "private void alertDialogeForAskingPermissions() {\n builder.setMessage(getResources().getString(R.string.app_name) + \" needs access to \" + permissions[0] + \", \" + permissions[1]).setTitle(R.string.permissions_required);\n\n //Setting message manually and performing action on button click\n //builder.setMessage(\"Do you want to close this application ?\")\n builder.setCancelable(false)\n .setPositiveButton(R.string.later, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n // Action for 'Later'\n //Saving later boolean value as true, also saving time of pressed later\n Date dateObj = new Date();\n long timeNow = dateObj.getTime();\n editor.putLong(getResources().getString(R.string.later_pressed_time), timeNow);\n editor.putBoolean(getResources().getString(R.string.later), true);\n editor.commit();\n dialog.cancel();\n }\n })\n .setNegativeButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }", "private void discoverableRequest() {\n final AlertDialog.Builder dialog_builder = new AlertDialog.Builder(this);\n\n // Sets the title for the popup dialog\n dialog_builder.setTitle(\"Make Host Device Discoverable\");\n dialog_builder.setMessage(\"Top level stuff here. Sadly, you don't have appropriate permissions to do this.\");\n final AlertDialog dialog = dialog_builder.create();\n // Displays the dialogue\n dialog.show();\n }", "private String showRoomAccusations() {\n\t\tButtonGroup characterButtons = new ButtonGroup();\n\t\tList<JRadioButton> btns = setupRoomButtons();\n\t \n\t\t// set up the dialog box\n\t\tJPanel roomPanel = new JPanel(new GridLayout(0, 1));\n\t\tJLabel lbl = new JLabel(\"Select the room that you suspect.\");\n\t\troomPanel.add(lbl);\n\t // add the buttons to the panel\n\t for(JRadioButton b : btns){\n\t \tcharacterButtons.add(b);\n\t \troomPanel.add(b);\n\t }\n\t\t\n\t // display dialog box\n\t JOptionPane.showMessageDialog(frame, roomPanel);\n\t // decide which button was selected\n\t for(JRadioButton b : btns){\n\t \tif(b.isSelected()){\n\t \t\treturn b.getText();\n\t \t}\n\t }\n\t return null;\n\t}", "@SuppressLint(\"InflateParams\")\n @Override @NonNull\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n builder.setTitle(R.string.settings_manual_input_dialog_title)\n .setView(inflater.inflate(R.layout.dialog_settings_manual_input, null))\n .setPositiveButton(R.string.settings_manual_input_dialog_ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Send the positive button event back to the host activity\n\n String tokenName = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_name)).getText().toString();\n String token = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_value)).getText().toString();\n String issuerUrl = ((EditText) getDialog().findViewById(R.id.settings_manual_input_dialog_url)).getText().toString();\n mListener.onSettingsManualInputDialogOkClick(tokenName, token, issuerUrl);\n }\n })\n .setNegativeButton(R.string.settings_manual_input_dialog_cancel, null);\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "private void createDialog() {\r\n final AlertDialog dialog = new AlertDialog.Builder(getActivity()).setView(R.layout.dialog_recorder_details)\r\n .setTitle(\"Recorder Info\").setPositiveButton(\"Start\", (dialog1, which) -> {\r\n EditText width = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_width);\r\n EditText height = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_resolution_height);\r\n CheckBox audio = (CheckBox) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_audio_checkbox);\r\n EditText fileName = (EditText) ((AlertDialog) dialog1).findViewById(R.id.dialog_recorder_filename_name);\r\n mServiceHandle.start(new RecordingInfo(Integer.parseInt(width.getText().toString()), Integer.parseInt(height.getText().toString()),\r\n audio.isChecked(), fileName.getText().toString()));\r\n dialog1.dismiss();\r\n }).setNegativeButton(\"Cancel\", (dialog1, which) -> {\r\n dialog1.dismiss();\r\n }).show();\r\n Point size = new Point();\r\n getActivity().getWindowManager().getDefaultDisplay().getRealSize(size);\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_width)).setText(Integer.toString(size.x));\r\n ((EditText) dialog.findViewById(R.id.dialog_recorder_resolution_height)).setText(Integer.toString(size.y));\r\n }", "public String prepare() {\n try {\n signingRequest = requestService.createRequest(\n editor.getDelegate(), passwordEditor, errors);\n return CONFIRM_OUTCOME_ID; \n }\n catch (PassphraseException ex) {\n passwordEditor.setGroupName(editor.getOwner());\n return PASSWORD_OUTCOME_ID;\n }\n catch (GroupAccessException|NoSuchGroupException ex) {\n return DETAILS_OUTCOME_ID;\n }\n catch (CredentialRequestException ex) {\n endConversation();\n return FAILURE_OUTCOME_ID;\n }\n }", "public String getClientId() {\r\n ExtentReporter.logger.log(LogStatus.INFO,\r\n \"Click on the Policyholder Name: Note (and save for later input) the Client ID: Click [Close]\");\r\n clickButton(driver, policyHolderNameLink, \"Policy Holder Name\");\r\n switchToFrameUsingElement(driver, entityMiniPopupFrameId);\r\n getPageTitle(driver, \"Entity Mini Popup\");\r\n String getClientIdValue = clientId.getAttribute(\"innerHTML\");\r\n // TODO - need to store above value in Excel sheet.\r\n clickButton(driver, entityMiniPopupCloseBtn, \"Entity Mini Popup Close\");\r\n switchToParentWindowfromframe(driver);\r\n return getClientIdValue;\r\n }", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\n\t\tgetShell().setText(\"Person anlegen oder anpassen\");\n\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\t\tcontainer.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tparentForm = formToolkit.createForm(container);\n\t\tformToolkit.paintBordersFor(parentForm);\n\t\tformToolkit.decorateFormHeading(parentForm);\n\t\tparentForm.setText(\"Person anlegen oder anpassen\");\n\t\tparentForm.getBody().setLayout(new GridLayout(1, false));\n\n\t\tSection baseSection = formToolkit.createSection(parentForm.getBody(),\n\t\t\t\tSection.TITLE_BAR);\n\t\tbaseSection.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true,\n\t\t\t\t1, 1));\n\t\tformToolkit.paintBordersFor(baseSection);\n\t\tbaseSection.setText(\"Basisdaten\");\n\n\t\tComposite composite = formToolkit\n\t\t\t\t.createComposite(baseSection, SWT.NONE);\n\t\tformToolkit.paintBordersFor(composite);\n\t\tbaseSection.setClient(composite);\n\t\tcomposite.setLayout(new GridLayout(4, false));\n\n\t\tLabel nameLabel = formToolkit.createLabel(composite, \"Name\", SWT.NONE);\n\t\tnameLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tnameText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tnameText.setText(\"\");\n\t\tnameText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tLabel firstnameLabel = formToolkit.createLabel(composite, \"Vorname\",\n\t\t\t\tSWT.NONE);\n\t\tfirstnameLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tfirstnameText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tGridData gd_firstnameText = new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1);\n\t\tgd_firstnameText.minimumWidth = 175;\n\t\tfirstnameText.setLayoutData(gd_firstnameText);\n\n\t\tLabel streetLabel = formToolkit.createLabel(composite, \"Strasse\",\n\t\t\t\tSWT.NONE);\n\t\tstreetLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tstreetText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tstreetText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tLabel postalcodeLabel = formToolkit.createLabel(composite, \"PLZ\",\n\t\t\t\tSWT.NONE);\n\t\tpostalcodeLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER,\n\t\t\t\tfalse, false, 1, 1));\n\n\t\tpostalcodeText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tpostalcodeText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\n\t\tLabel cityLabel = formToolkit.createLabel(composite, \"Ort\", SWT.NONE);\n\t\tcityLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tcityText = formToolkit.createText(composite, \"\", SWT.BORDER);\n\t\tcityText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tLabel birthdayLabel = formToolkit.createLabel(composite, \"Geburtstag\",\n\t\t\t\tSWT.NONE);\n\t\tbirthdayLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tfinal DateTime dateTime = new DateTime(composite, SWT.BORDER\n\t\t\t\t| SWT.CALENDAR);\n\t\tformToolkit.adapt(dateTime);\n\t\tformToolkit.paintBordersFor(dateTime);\n\t\tnew Label(composite, SWT.NONE);\n\t\tnew Label(composite, SWT.NONE);\n\n\t\tformToolkit.adapt(composite);\n\t\tformToolkit.paintBordersFor(composite);\n\n\t\tSection advancedSection = formToolkit.createSection(\n\t\t\t\tparentForm.getBody(), Section.TITLE_BAR);\n\t\tadvancedSection.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\t\tformToolkit.paintBordersFor(advancedSection);\n\t\tadvancedSection.setText(\"erweiterte Daten\");\n\n\t\tComposite advancedComposite = formToolkit.createComposite(\n\t\t\t\tadvancedSection, SWT.NONE);\n\t\tformToolkit.paintBordersFor(advancedComposite);\n\t\tadvancedSection.setClient(advancedComposite);\n\t\tadvancedComposite.setLayout(new GridLayout(2, false));\n\n\t\tnew Label(advancedComposite, SWT.NONE);\n\n\t\tfinal Button activeMemberCheckButton = new Button(advancedComposite,\n\t\t\t\tSWT.CHECK);\n\t\tformToolkit.adapt(activeMemberCheckButton, true, true);\n\t\tactiveMemberCheckButton.setText(\"Aktives Mitglied\");\n\n\t\tLabel telephoneLabel = formToolkit.createLabel(advancedComposite,\n\t\t\t\t\"Telefon\", SWT.NONE);\n\t\ttelephoneLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\ttelephoneText = formToolkit.createText(advancedComposite, \"\",\n\t\t\t\tSWT.BORDER);\n\t\ttelephoneText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\n\t\tLabel mobileLabel = formToolkit.createLabel(advancedComposite, \"Handy\",\n\t\t\t\tSWT.NONE);\n\t\tmobileLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false,\n\t\t\t\tfalse, 1, 1));\n\n\t\tmobileText = formToolkit.createText(advancedComposite, \"\", SWT.BORDER);\n\t\tgd_firstnameText.minimumWidth = 175;\n\t\tmobileText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true,\n\t\t\t\tfalse, 1, 1));\n\n\t\tLabel faxLabel = formToolkit.createLabel(advancedComposite, \"Fax\",\n\t\t\t\tSWT.NONE);\n\t\tfaxLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false,\n\t\t\t\t1, 1));\n\n\t\tfaxText = formToolkit.createText(advancedComposite, \"\", SWT.BORDER);\n\t\tfaxText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tLabel emailLabel = formToolkit.createLabel(advancedComposite, \"E-Mail\",\n\t\t\t\tSWT.NONE);\n\t\temailLabel.setLayoutData(new GridData(SWT.RIGHT, SWT.TOP, false, false,\n\t\t\t\t1, 1));\n\n\t\temailText = formToolkit.createText(advancedComposite, \"\", SWT.BORDER);\n\t\temailText.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false,\n\t\t\t\t1, 1));\n\n\t\tnameText.setText(person.getName() != null ? person.getName() : \"\");\n\t\tfirstnameText.setText(person.getFirstname() != null ? person\n\t\t\t\t.getFirstname() : \"\");\n\t\tstreetText\n\t\t\t\t.setText(person.getStreet() != null ? person.getStreet() : \"\");\n\t\tpostalcodeText.setText(person.getPostalcode() != null ? person\n\t\t\t\t.getPostalcode() : \"\");\n\t\tcityText.setText(person.getCity() != null ? person.getCity() : \"\");\n\t\tif (person.getBirthday() != null) {\n\t\t\tCalendar c = Calendar.getInstance();\n\t\t\tc.setTime(person.getBirthday());\n\t\t\tdateTime.setDate(c.get(Calendar.YEAR), c.get(Calendar.MONTH),\n\t\t\t\t\tc.get(Calendar.DAY_OF_MONTH));\n\t\t}\n\n\t\tactiveMemberCheckButton\n\t\t\t\t.setSelection(person.isActiveMember() != null ? person\n\t\t\t\t\t\t.isActiveMember() : false);\n\t\ttelephoneText.setText(person.getPhone() != null ? person.getPhone()\n\t\t\t\t: \"\");\n\t\tmobileText\n\t\t\t\t.setText(person.getMobile() != null ? person.getMobile() : \"\");\n\t\tfaxText.setText(person.getFax() != null ? person.getFax() : \"\");\n\t\temailText.setText(person.getEmail() != null ? person.getEmail() : \"\");\n\n\t\tModifyListener modifyListener = new ModifyListener() {\n\t\t\t@Override\n\t\t\tpublic void modifyText(ModifyEvent e) {\n\t\t\t\tif (e.widget == nameText) {\n\t\t\t\t\tperson.setName(nameText.getText());\n\t\t\t\t} else if (e.widget == firstnameText) {\n\t\t\t\t\tperson.setFirstname(firstnameText.getText());\n\t\t\t\t} else if (e.widget == streetText) {\n\t\t\t\t\tperson.setStreet(streetText.getText());\n\t\t\t\t} else if (e.widget == postalcodeText) {\n\t\t\t\t\tperson.setPostalcode(postalcodeText.getText());\n\t\t\t\t} else if (e.widget == cityText) {\n\t\t\t\t\tperson.setCity(cityText.getText());\n\t\t\t\t} else if (e.widget == telephoneText) {\n\t\t\t\t\tperson.setPhone(telephoneText.getText());\n\t\t\t\t} else if (e.widget == mobileText) {\n\t\t\t\t\tperson.setMobile(mobileText.getText());\n\t\t\t\t} else if (e.widget == faxText) {\n\t\t\t\t\tperson.setFax(faxText.getText());\n\t\t\t\t} else if (e.widget == emailText) {\n\t\t\t\t\tperson.setEmail(emailText.getText());\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\tnameText.addModifyListener(modifyListener);\n\t\tfirstnameText.addModifyListener(modifyListener);\n\t\tstreetText.addModifyListener(modifyListener);\n\t\tpostalcodeText.addModifyListener(modifyListener);\n\t\tcityText.addModifyListener(modifyListener);\n\t\ttelephoneText.addModifyListener(modifyListener);\n\t\tmobileText.addModifyListener(modifyListener);\n\t\tfaxText.addModifyListener(modifyListener);\n\t\temailText.addModifyListener(modifyListener);\n\t\tactiveMemberCheckButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tperson.setActiveMember(activeMemberCheckButton.getSelection());\n\t\t\t}\n\t\t});\n\t\tdateTime.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tCalendar c = Calendar.getInstance();\n\t\t\t\tc.set(dateTime.getYear(), dateTime.getMonth(),\n\t\t\t\t\t\tdateTime.getDay());\n\t\t\t\tperson.setBirthday(c.getTime());\n\t\t\t}\n\t\t});\n\n\t\treturn container;\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n /* \"AlertDialog\" Design will be used to our \"CustomizeDialog\". */\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n LayoutInflater inflater = getActivity().getLayoutInflater();\n\n /* Including layout of DialogFragment's. */\n View view = inflater.inflate(R.layout.dialog_detail_word,null);\n\n /* UI components are installed. */\n chipTrueCount = view.findViewById(R.id.chipTrueCount);\n chipFalseCount = view.findViewById(R.id.chipFalseCount);\n txtAverageResponseTime = view.findViewById(R.id.txtAvgResponseTime);\n txtWordDetailConfusesTitle = view.findViewById(R.id.txtWordDetailConfusesTitle);\n\n /* \"AlertDialog\" building. */\n builder.setView(view);\n builder.setTitle(word.getStrange());\n builder.setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n });\n\n /* Giving values to UI components. */\n int trueSelect = word.getTrueSelect();\n int falseSelect = word.getFalseSelect();\n double average = word.getSpendTime(); // Total spend time.\n average /= (falseSelect+trueSelect);\n average = (double) Math.round(average*100)/100; // Only 2 digits after point.\n chipTrueCount.setText(trueSelect+\"\");\n chipTrueCount.setClickable(false);\n chipFalseCount.setText(falseSelect+\"\");\n chipFalseCount.setClickable(false);\n txtAverageResponseTime.setText(average+\"\");\n String message = wordActivity.getResources().getString(R.string.word_confuse)+\" : \\n\\n\";\n for(ConfuseTempModel cm : getConfuses()){\n message +=\"\\t\\t\"+cm.times+ \"\\t\"+wordActivity.getResources().getString(R.string.word_confuse_times)+\" :\\t\\t\"+ WordService.getWordById(wordActivity,cm.strangeId).getStrange()+\"\\n\";\n }\n txtWordDetailConfusesTitle.setText(message);\n\n return builder.create(); // Prepared Customize \"AlertDialog\" return.\n }", "public String getDialogueIntelligence() {\n return this.dialogueIntelligence;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(\"Do you want to play a game with \"+getArguments().getString(\"name\")+\"?\")\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n acceptGame(getContext());\n }\n })\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n declineGame(getContext());\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public String getInquirycontent() {\n return inquirycontent;\n }", "private void choosePrompt() {\r\n\t\tfor (int i = 0; i < mustChoose.size(); i++) {\r\n\t\t\tString prompt = \"**[Choose]** \";\r\n\t\t\t// Find the correct text to display\r\n\t\t\tif (mustChoose.get(i).contentEquals(\"Shrine\")) {\r\n\t\t\t\tprompt += \"**1** :moneybag: ~OR~ **1** :heart:\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Dragon Shrine\")) {\r\n\t\t\t\tprompt += \"**2** :moneybag: ~OR~ **1** :wastebasket:\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Treasure Hunter\")) {\r\n\t\t\t\tprompt += \"a card to replace in the dungeon row (4-9)\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Underworld Dealing\")) {\r\n\t\t\t\tprompt += \"**1** :moneybag: ~OR~ **BUY 2** __Secret Tome__ **FOR 7** :moneybag:\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Apothecary\")) {\r\n\t\t\t\tprompt += \"**3** :crossed_swords: **~OR~** **2** :moneybag: **~OR~** **1** :heart:\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Mister Whiskers\")) {\r\n\t\t\t\tprompt += \"**Dragon Attack** ~OR~ **-2** :warning:\";\r\n\t\t\t} else if (mustChoose.get(i).contentEquals(\"Wand of Wind\")) {\r\n\t\t\t\tif (GlobalVars.teleportRoomsPerRoom.length > 0) {\r\n\t\t\t\t\tprompt += \"**1** :crystal_ball: ~OR~ Take a **SECRET** from an adjacent room ``\"+\r\n\t\t\t\t\t\tUtils.arrayToString(GlobalVars.adjacentRoomsPerRoom[currentPlayer.getCurrentRoom()])+\" ┃ \"+\r\n\t\t\t\t\t\tUtils.arrayToString(GlobalVars.teleportRoomsPerRoom[currentPlayer.getCurrentRoom()])+\"``\";\r\n\t\t\t\t} else {\r\n\t\t\t\t\tprompt += \"**1** :crystal_ball: ~OR~ Take a **SECRET** from an adjacent room ``\"+\r\n\t\t\t\t\t\t\tUtils.arrayToString(GlobalVars.adjacentRoomsPerRoom[currentPlayer.getCurrentRoom()])+\"``\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tgameChannel.sendMessage(prompt).queue();\r\n\t\t}\r\n\t}", "public OverviewSmallStringInputDialogOptions showInputDialog(String referenceID, String title, String textContent, String label, String initialValueText, String okText, String cancelText) {\n/*Generated! Do not modify!*/ InputDialogParameters inputDialogParameters = new InputDialogParameters();\n/*Generated! Do not modify!*/ inputDialogParameters.setReferenceID(referenceID);\n/*Generated! Do not modify!*/ inputDialogParameters.setTitle(title);\n/*Generated! Do not modify!*/ inputDialogParameters.setTextContent(textContent);\n/*Generated! Do not modify!*/ inputDialogParameters.setLabel(label);\n/*Generated! Do not modify!*/ inputDialogParameters.setInitialValueText(initialValueText);\n/*Generated! Do not modify!*/ inputDialogParameters.setOkText(okText);\n/*Generated! Do not modify!*/ inputDialogParameters.setCancelText(cancelText);\n/*Generated! Do not modify!*/ replyDTO.setInputDialogParameters(inputDialogParameters);\n/*Generated! Do not modify!*/ if (recordMode){\n/*Generated! Do not modify!*/ \taddRecordedAction(\"showInputDialog(\" + escapeString(referenceID) + \", \" + escapeString(title) + \", \" + escapeString(textContent) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(label) + \", \" + escapeString(initialValueText) + \", \" + escapeString(okText) \n/*Generated! Do not modify!*/ \t\t\t+ \", \" + escapeString(cancelText)+ \");\");\n/*Generated! Do not modify!*/ }\n/*Generated! Do not modify!*/ return new OverviewSmallStringInputDialogOptions(this, inputDialogParameters);\n/*Generated! Do not modify!*/ }", "private static void copyrightChoicesIntoContext(SessionState state, Context context)\n\t{\n\t\tboolean usingCreativeCommons = state.getAttribute(STATE_USING_CREATIVE_COMMONS) != null && state.getAttribute(STATE_USING_CREATIVE_COMMONS).equals(Boolean.TRUE.toString());\t\t\n\t\t\n\t\tif(usingCreativeCommons)\n\t\t{\n\t\t\t\n\t\t\tString ccOwnershipLabel = \"Who created this resource?\";\n\t\t\tList ccOwnershipList = new Vector();\n\t\t\tccOwnershipList.add(\"-- Select --\");\n\t\t\tccOwnershipList.add(\"I created this resource\");\n\t\t\tccOwnershipList.add(\"Someone else created this resource\");\n\t\t\t\n\t\t\tString ccMyGrantLabel = \"Terms of use\";\n\t\t\tList ccMyGrantOptions = new Vector();\n\t\t\tccMyGrantOptions.add(\"-- Select --\");\n\t\t\tccMyGrantOptions.add(\"Use my copyright\");\n\t\t\tccMyGrantOptions.add(\"Use Creative Commons License\");\n\t\t\tccMyGrantOptions.add(\"Use Public Domain Dedication\");\n\t\t\t\n\t\t\tString ccCommercialLabel = \"Allow commercial use?\";\n\t\t\tList ccCommercialList = new Vector();\n\t\t\tccCommercialList.add(\"Yes\");\n\t\t\tccCommercialList.add(\"No\");\n\t\t\t\n\t\t\tString ccModificationLabel = \"Allow Modifications?\";\n\t\t\tList ccModificationList = new Vector();\n\t\t\tccModificationList.add(\"Yes\");\n\t\t\tccModificationList.add(\"Yes, share alike\");\n\t\t\tccModificationList.add(\"No\");\n\t\t\t\n\t\t\tString ccOtherGrantLabel = \"Terms of use\";\n\t\t\tList ccOtherGrantList = new Vector();\n\t\t\tccOtherGrantList.add(\"Subject to fair-use exception\");\n\t\t\tccOtherGrantList.add(\"Public domain (created before copyright law applied)\");\n\t\t\tccOtherGrantList.add(\"Public domain (copyright has expired)\");\n\t\t\tccOtherGrantList.add(\"Public domain (government document not subject to copyright)\");\n\t\t\t\n\t\t\tString ccRightsYear = \"Year\";\n\t\t\tString ccRightsOwner = \"Copyright owner\";\n\t\t\t\n\t\t\tString ccAcknowledgeLabel = \"Require users to acknowledge author's rights before access?\";\n\t\t\tList ccAcknowledgeList = new Vector();\n\t\t\tccAcknowledgeList.add(\"Yes\");\n\t\t\tccAcknowledgeList.add(\"No\");\n\t\t\t\n\t\t\tString ccInfoUrl = \"\";\n\t\t\t\n\t\t\tint year = TimeService.newTime().breakdownLocal().getYear();\n\t\t\tString username = UserDirectoryService.getCurrentUser().getDisplayName(); \n\n\t\t\tcontext.put(\"usingCreativeCommons\", Boolean.TRUE);\n\t\t\tcontext.put(\"ccOwnershipLabel\", ccOwnershipLabel);\n\t\t\tcontext.put(\"ccOwnershipList\", ccOwnershipList);\n\t\t\tcontext.put(\"ccMyGrantLabel\", ccMyGrantLabel);\n\t\t\tcontext.put(\"ccMyGrantOptions\", ccMyGrantOptions);\n\t\t\tcontext.put(\"ccCommercialLabel\", ccCommercialLabel);\n\t\t\tcontext.put(\"ccCommercialList\", ccCommercialList);\n\t\t\tcontext.put(\"ccModificationLabel\", ccModificationLabel);\n\t\t\tcontext.put(\"ccModificationList\", ccModificationList);\n\t\t\tcontext.put(\"ccOtherGrantLabel\", ccOtherGrantLabel);\n\t\t\tcontext.put(\"ccOtherGrantList\", ccOtherGrantList);\n\t\t\tcontext.put(\"ccRightsYear\", ccRightsYear);\n\t\t\tcontext.put(\"ccRightsOwner\", ccRightsOwner);\n\t\t\tcontext.put(\"ccAcknowledgeLabel\", ccAcknowledgeLabel);\n\t\t\tcontext.put(\"ccAcknowledgeList\", ccAcknowledgeList);\n\t\t\tcontext.put(\"ccInfoUrl\", ccInfoUrl);\n\t\t\tcontext.put(\"ccThisYear\", Integer.toString(year));\n\t\t\tcontext.put(\"ccThisUser\", username);\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//copyright\n\t\t\tif (state.getAttribute(COPYRIGHT_FAIRUSE_URL) != null)\n\t\t\t{\n\t\t\t\tcontext.put(\"fairuseurl\", state.getAttribute(COPYRIGHT_FAIRUSE_URL));\n\t\t\t}\n\t\t\tif (state.getAttribute(NEW_COPYRIGHT_INPUT) != null)\n\t\t\t{\n\t\t\t\tcontext.put(\"newcopyrightinput\", state.getAttribute(NEW_COPYRIGHT_INPUT));\n\t\t\t}\n\t\n\t\t\tif (state.getAttribute(COPYRIGHT_TYPES) != null)\n\t\t\t{\n\t\t\t\tList copyrightTypes = (List) state.getAttribute(COPYRIGHT_TYPES);\n\t\t\t\tcontext.put(\"copyrightTypes\", copyrightTypes);\n\t\t\t\tcontext.put(\"copyrightTypesSize\", new Integer(copyrightTypes.size() - 1));\n\t\t\t\tcontext.put(\"USE_THIS_COPYRIGHT\", copyrightTypes.get(copyrightTypes.size() - 1));\n\t\t\t}\n\t\t}\n\t\t\n\t\tBoolean preventPublicDisplay = (Boolean) state.getAttribute(STATE_PREVENT_PUBLIC_DISPLAY);\n\t\tif(preventPublicDisplay == null)\n\t\t{\n\t\t\tpreventPublicDisplay = Boolean.FALSE;\n\t\t\tstate.setAttribute(STATE_PREVENT_PUBLIC_DISPLAY, preventPublicDisplay);\n\t\t}\n\t\tcontext.put(\"preventPublicDisplay\", preventPublicDisplay);\n\t\t\n\t}", "private void showDialogIfRequired() {\n if (mIncognitoReauthCoordinator != null) return;\n if (mLayoutStateProvider == null && mIsTabbedActivity) return;\n if (!mIncognitoReauthPending) return;\n if (!mTabModelSelector.isIncognitoSelected()) return;\n if (mProfile == null) return;\n if (!IncognitoReauthManager.isIncognitoReauthEnabled(mProfile)) return;\n\n boolean showFullScreen = !mIsTabbedActivity\n || !mLayoutStateProvider.isLayoutVisible(LayoutType.TAB_SWITCHER);\n mIncognitoReauthCoordinator =\n mIncognitoReauthCoordinatorFactory.createIncognitoReauthCoordinator(\n mIncognitoReauthCallback, showFullScreen,\n mOnBackPressedInFullScreenReauthCallback);\n mIncognitoReauthCoordinator.show();\n mOnBackPressedInFullScreenReauthCallback.setEnabled(showFullScreen);\n }", "public java.awt.Component getControlledUI() \r\n {\r\n return grantsByPIForm;\r\n }", "public static void showEulaDialog(Context context) {\n\t\tshowGenericDialog(context, R.string.aboutactivity_license, RAW_EULA);\n\t}", "private void getReconsentimientos(){\n mReconsentimientos = estudioAdapter.getListaReConsentimientoDensSinEnviar();\n //ca.close();\n }", "@Override\n\tpublic String getResponse() {\n\n\t\tString[] css = { Resource.CSS_COMMON, Resource.CSS_HEADER, Resource.CSS_CARD, Resource.CSS_TITLE_BANNER,\n\t\t\t\tResource.CSS_MODAL_IMAGE, Resource.CSS_BUTTON, Resource.CSS_FORMS};\n\t\tString[] js = { Resource.JS_HEADER, Resource.JS_FORMS };\n\n\t\tm.addHead(css, js, \"View Window\");\n\n\t\tm.ln(\"<body>\");\n\t\tm.addNavbar(NavbarItem.Sandpit, requestInfo);\n\n\t\tm.ln(\"<script>\");\n\t\tm.ln(\"function updateClientWidth() {\");\n\t\tm.ln(\"\tvar element = document.getElementById('client-width');\");\n\t\tm.ln(\"\telement.innerHTML = document.documentElement.clientWidth;\");\n\t\tm.ln(\"}\");\n\n\t\tm.ln(\"function updateInnerWidth() {\");\n\t\tm.ln(\"\tvar element = document.getElementById('inner-width');\");\n\t\tm.ln(\"\telement.innerHTML = window.innerWidth;\");\n\t\tm.ln(\"}\");\n\n\t\tm.ln(\"function updateClientHeight() {\");\n\t\tm.ln(\"\tvar element = document.getElementById('client-height');\");\n\t\tm.ln(\"\telement.innerHTML = document.documentElement.clientHeight;\");\n\t\tm.ln(\"}\");\n\n\t\tm.ln(\"function updateInnerHeight() {\");\n\t\tm.ln(\"\tvar element = document.getElementById('inner-height');\");\n\t\tm.ln(\"\telement.innerHTML = window.innerHeight;\");\n\t\tm.ln(\"}\");\n\n\t\tm.ln(\"function updateAll() {\");\n\t\tm.ln(\"\tupdateClientWidth();\");\n\t\tm.ln(\"\tupdateInnerWidth();\");\n\t\tm.ln(\"\tupdateClientHeight();\");\n\t\tm.ln(\"\tupdateInnerHeight();\");\n\t\tm.ln(\"}\");\n\t\tm.ln(\"</script>\");\n\n\n\t\tm.ln(\"<style>\");\n\t\tm.ln(\"#hold {\");\n\t\tm.ln(\"position: fixed;\");\n\t\tm.ln(\"background-color: powderblue;\");\n\t\tm.ln(\"left: 0;\");\n\t\tm.ln(\"}\");\n\n\t\tm.ln(\".green { background-color: lightgreen; }\");\n\t\tm.ln(\"</style>\");\n\n\t\tm.ln(\"<div class=\\\"common-content\\\">\");\n\t\tm.ln(\"<div class=\\\"card\\\">\");\n\n\t\tm.ln(\"<br><br><br>\");\n\t\tm.ln(\"<p><i>On Chrome for Android: you cannot interact with the bottom of the page when page is displayed through iframe. \"\n\t\t\t\t+ \"When you scroll down the innerHeight becomes bigger than clientHeight as the URL bar is hidden.</i></p><br>\");\n\n\t\tm.ln(\"<div id='hold'>\");\n\t\tm.ln(\"<p>document.documentElement.clientWidth = <b id='client-width'></b>\");\n\t\tm.ln(\"<button onclick='updateClientWidth()'>update</button></p>\");\n\n\t\tm.ln(\"<p>window.innerWidth = <b id='inner-width'></b>\");\n\t\tm.ln(\"<button onclick='updateInnerWidth()'>update</button></p>\");\n\n\t\tm.ln(\"<p>document.documentElement.clientHeight = <b id='client-height'></b>\");\n\t\tm.ln(\"<button onclick='updateClientHeight()'>update</button></p>\");\n\n\t\tm.ln(\"<p>window.innerHeight = <b id='inner-height'></b>\");\n\t\tm.ln(\"<button onclick='updateInnerHeight()'>update</button></p>\");\n\n\t\tm.ln(\"<p>Update all: \");\n\t\tm.ln(\"<button onclick='updateAll()'>update all</button></p>\");\n\t\tm.ln(\"</div>\"); // hold\n\n\t\tfor (int i = 0; i < 64; i ++) {\n\t\t\tm.ln(\"<br>line \" + i);\n\t\t}\n\n\t\tm.ln(\"</div>\"); // card\n\t\tm.ln(\"</div>\"); //common-content\n\n\t\tm.ln(\"<button onclick='this.classList.toggle(\\\"green\\\");'>----- Can press? -----</button><b style='float:right'>----- Can select? -----</b>\");\n\t\tm.ln(\"</body>\");\n\t\tm.ln(\"</html>\");\n\n\t\treturn m.p.toString();\n\t}", "private static String promptFileContent(String prompt) {\n\t\tSystem.out.println(prompt);\n\t\tString line = null;\n\t\tString content = \"\";\n\t\twhile (!(line = scnr.nextLine()).equals(\"q\")) {\n\t\t\tcontent += line + \"\\n\";\n\t\t}\n\t\treturn content;\n\t}", "protected IDialogSettings getDialogBoundsSettings() {\n\t\t\t\treturn JavaPlugin.getDefault().getDialogSettingsSection(\"JavadocWizardDialog\"); //$NON-NLS-1$\n\t\t\t}", "public void showReportAbuseSuccess() {\n try {\n AlertDialog.Builder builder = new AlertDialog.Builder(this.mContext);\n builder.setTitle(this.mContext.getResources().getString(R.string.consult_report_abuse_thanks));\n builder.setMessage(this.mContext.getResources().getString(R.string.consult_comment_report_abuse_success));\n builder.setPositiveButton(this.mContext.getResources().getString(R.string.alert_dialog_confirmation_ok_button_text), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.dismiss();\n }\n });\n builder.show();\n } catch (Exception unused) {\n Trace.w(TAG, \"Failed to show disclaimer for consult photo editing\");\n }\n }", "private String extractSecurityAnswer() {\n return SwingUtil.extract(securityAnswerJTextField, Boolean.TRUE);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n String mess = \"Stalemate!\";\n if(getArguments().getBoolean(\"check\"))\n {\n mess = \"Checkmate! \"+getArguments().getString(\"team\")+\" wins\";\n }\n builder.setMessage(mess)\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n Log.d(TAG, \"Ok\");\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n String msg = \"Love2Brew Android Application\\n\\nWould you like to learn some new ways to brew \" +\n \"your coffee? This App downloads info and step-by-step instructions about some fun coffee brewers.\"+\n \"\\nSelect a brewing technique \"+\n \"to learn more about it. \\nTo set a reminder for your coffee, click \\\"Set A Reminder\\\" \"+\n \"from the menu. The reminder will be sent to your notification bar.\\n\\nDesigned by SeanReinhardtApps.\";\n\n final ProgressDialog dialog = new ProgressDialog(getActivity());\n dialog.setTitle(\"About\");\n dialog.setMessage(msg);\n dialog.setCancelable(false);\n return dialog;\n }", "protected void createContents() {\n\t\tshell = new Shell();\n\t\tshell.setSize(340, 217);\n\t\tshell.setText(\"Benvenuto\");\n\t\tshell.setLayout(new FormLayout());\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tFormData fd_composite = new FormData();\n\t\tfd_composite.bottom = new FormAttachment(100, -10);\n\t\tfd_composite.top = new FormAttachment(0, 10);\n\t\tfd_composite.right = new FormAttachment(100, -10);\n\t\tfd_composite.left = new FormAttachment(0, 10);\n\t\tcomposite.setLayoutData(fd_composite);\n\t\tcomposite.setLayout(new GridLayout(2, false));\n\t\t\n\t\tLabel lblUsername = new Label(composite, SWT.NONE);\n\t\tlblUsername.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblUsername.setText(\"Username\");\n\t\t\n\t\ttxtUsername = new Text(composite, SWT.BORDER);\n\t\ttxtUsername.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1));\n\t\tfinal String username = txtUsername.getText();\n\t\tSystem.out.println(username);\n\t\t\n\t\tLabel lblPeriodo = new Label(composite, SWT.NONE);\n\t\tlblPeriodo.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblPeriodo.setText(\"Periodo\");\n\t\t\n\t\tfinal CCombo combo_1 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_1.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_1.setVisibleItemCount(6);\n\t\tcombo_1.setItems(new String[] {\"1 settimana\", \"1 mese\", \"3 mesi\", \"6 mesi\", \"1 anno\", \"Overall\"});\n\t\t\n\t\tLabel lblNumeroCanzoni = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoni.setLayoutData(new GridData(SWT.CENTER, SWT.CENTER, false, false, 1, 1));\n\t\tlblNumeroCanzoni.setText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tfinal CCombo combo = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo.setItems(new String[] {\"25\", \"50\"});\n\t\tcombo.setVisibleItemCount(2);\n\t\tcombo.setToolTipText(\"Numero canzoni da analizzare\");\n\t\t\n\t\tLabel lblNumeroCanzoniDa = new Label(composite, SWT.NONE);\n\t\tlblNumeroCanzoniDa.setText(\"Numero canzoni da consigliare\");\n\t\t\n\t\tfinal CCombo combo_2 = new CCombo(composite, SWT.BORDER | SWT.READ_ONLY);\n\t\tcombo_2.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, false, false, 1, 1));\n\t\tcombo_2.setVisibleItemCount(3);\n\t\tcombo_2.setToolTipText(\"Numero canzoni da consigliare\");\n\t\tcombo_2.setItems(new String[] {\"5\", \"10\", \"20\"});\n\t\t\n\t\tButton btnAvviaRicerca = new Button(composite, SWT.NONE);\n\t\tbtnAvviaRicerca.addSelectionListener(new SelectionAdapter() {\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tfinal String username = txtUsername.getText();\n\t\t\t\tfinal String numSong = combo.getText();\n\t\t\t\tfinal String period = combo_1.getText();\n\t\t\t\tfinal String numConsigli = combo_2.getText();\n\t\t\t\tif(username.isEmpty() || numSong.isEmpty() || period.isEmpty() || numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"si prega di compilare tutti i campi\");\n\t\t\t\t}\n\t\t\t\tif(!username.isEmpty() && !numSong.isEmpty() && !period.isEmpty() && !numConsigli.isEmpty()){\n\t\t\t\t\tSystem.out.println(\"tutto ok\");\n\t\t\t\t\t\n\t\t\t\t\tFileOutputStream out;\n\t\t\t\t\tPrintStream ps;\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new FileOutputStream(\"datiutente.txt\");\n\t\t\t\t\t\tps = new PrintStream(out);\n\t\t\t\t\t\tps.println(username);\n\t\t\t\t\t\tps.println(numSong);\n\t\t\t\t\t\tps.println(period);\n\t\t\t\t\t\tps.println(numConsigli);\n\t\t\t\t\t\tps.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t\tSystem.err.println(\"Errore nella scrittura del file\");\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tPrincipaleParteA.main();\n\t\t\t\t\t} catch (FileNotFoundException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t }\n\t\t\t\n\t\t});\n\t\tGridData gd_btnAvviaRicerca = new GridData(SWT.FILL, SWT.CENTER, false, false, 2, 1);\n\t\tgd_btnAvviaRicerca.heightHint = 31;\n\t\tbtnAvviaRicerca.setLayoutData(gd_btnAvviaRicerca);\n\t\tbtnAvviaRicerca.setText(\"Avvia Ricerca\");\n\t}", "protected Control createDialogArea(\r\n\t\tComposite parent)\r\n\t{\r\n\t\t// create composite\r\n\t\tComposite composite = (Composite) super.createDialogArea(parent);\r\n\t\t\r\n\t\t\r\n\t\t// create label\r\n\t\tLabel categoryLabel = new Label(composite, SWT.WRAP);\r\n\t\tcategoryLabel.setText(\"\");\r\n\t\tGridData cData = new GridData(\r\n\t\t\tGridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL\r\n\t\t\t| GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);\r\n\t\tcData.widthHint = convertHorizontalDLUsToPixels(\r\n\t\t\tIDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH);\r\n\t\tcategoryLabel.setLayoutData(cData);\r\n\t\tcategoryLabel.setFont(parent.getFont());\r\n\t\t\r\n\t\t// create browser\r\n\t\tBrowser browser = new Browser(composite, SWT.NONE);\r\n\t\tGridData grid = new GridData(SWT.FILL, SWT.FILL, true, true, 300, 40);\r\n\t\tbrowser.setLayoutData(grid);\r\n\t\tbrowser.setText(html);\r\n\t\tbrowser.setVisible(true);\r\n\t\t\r\n\t\t\r\n\t\t// create entry request message\r\n\t\tif ( message != null ) {\r\n\t\t\tLabel label = new Label(composite, SWT.WRAP);\r\n\t\t\tlabel.setText(message);\r\n\t\t\tGridData data = new GridData(\r\n\t\t\t\tGridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL\r\n\t\t\t\t| GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_CENTER);\r\n\t\t\tdata.widthHint = convertHorizontalDLUsToPixels(\r\n\t\t\t\tIDialogConstants.MINIMUM_MESSAGE_AREA_WIDTH);\r\n\t\t\tlabel.setLayoutData(data);\r\n\t\t\tlabel.setFont(parent.getFont());\r\n\t\t}\r\n\t\t\r\n\r\n\t\t// Data entry text area\r\n\t\ttext = new Text(composite, SWT.MULTI | SWT.WRAP | SWT.V_SCROLL);\r\n\t\tgrid = new GridData(SWT.FILL, SWT.FILL, true, true, 80, 8);\r\n\t\ttext.setLayoutData(grid);\r\n\t\ttext.addModifyListener(new ModifyListener()\r\n\t\t{\r\n\t\t\tpublic void modifyText(\r\n\t\t\t\tModifyEvent e)\r\n\t\t\t{\r\n\t\t\t\tvalidateInput();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\t// Error message text area\r\n\t\terrorMessageText = new Text(composite, SWT.READ_ONLY);\r\n\t\terrorMessageText.setLayoutData(\r\n\t\t\tnew GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));\r\n\t\terrorMessageText.setBackground(errorMessageText.getDisplay()\r\n\t\t\t.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));\r\n \r\n\t\tapplyDialogFont(composite);\r\n\t\treturn composite;\r\n\t}", "void authenticate() {\n if (lifecycle != null) {\n lifecycle.addObserver(this);\n } else {\n activity.getApplication().registerActivityLifecycleCallbacks(this);\n }\n biometricPrompt = new BiometricPrompt(activity, uiThreadExecutor, this);\n biometricPrompt.authenticate(promptInfo);\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(\"Règle du jeu\");\n builder.setMessage(\"Je sais que tu as toujours voulu être un pêcheur ! Voici ta chance. Ton objectif est de pêcher 5 poissons.\\n\\n Comment pêcher :\\n\\n1- Place ton téléphone à l'horizontal, ton écran vers la gauche.\\n\\n2- Attend le poisson.\\n\\n3- Quand ton téléphone vibre, un poisson a mordu à l'hammeçon ! Passe rapidement ton téléphone à la verticale avec ton écran toujours sur la gauche.\\n\\n4-Recommence jusqu'à devenir le roi de la pêche !\\n\\nTips : On ne devient pas pêcheur en jouant à un jeu de pêche.\" );\n builder.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // rien à faire\n }\n });\n\n // Create the AlertDialog object and return it\n return builder.create();\n }", "public void addRelationshipDialog() { new RelationshipDialog(); }", "public Scene deliverPrompt()\n {\n System.out.println(prompt);\n deliverOptions();\n return takeResponse();\n }", "public abstract View getMainDialogContainer();", "public Context getPopupContext() {\n return this.acv;\n }", "private String handleUserConsent(HttpServletRequest request, String consent, OAuth2Parameters oauth2Params, SessionDataCacheEntry sessionDataCacheEntry)\r\n/* */ throws OAuthSystemException\r\n/* */ {\r\n/* 331 */ String applicationName = sessionDataCacheEntry.getoAuth2Parameters().getApplicationName();\r\n/* 332 */ String loggedInUser = sessionDataCacheEntry.getLoggedInUser();\r\n/* */ \r\n/* 334 */ boolean skipConsent = EndpointUtil.getOAuthServerConfiguration().getOpenIDConnectSkipeUserConsentConfig();\r\n/* 335 */ if (!skipConsent) {\r\n/* 336 */ boolean approvedAlways = \"approveAlways\".equals(consent);\r\n/* */ \r\n/* 338 */ OpenIDConnectUserRPStore.getInstance().putUserRPToStore(loggedInUser, applicationName, approvedAlways);\r\n/* */ }\r\n/* */ \r\n/* 341 */ OAuthResponse oauthResponse = null;\r\n/* */ \r\n/* */ \r\n/* 344 */ OAuth2AuthorizeRespDTO authzRespDTO = authorize(oauth2Params, sessionDataCacheEntry);\r\n/* */ \r\n/* 346 */ if ((authzRespDTO != null) && (authzRespDTO.getErrorCode() == null)) {\r\n/* 347 */ OAuthASResponse.OAuthAuthorizationResponseBuilder builder = OAuthASResponse.authorizationResponse(request, 302);\r\n/* */ \r\n/* */ \r\n/* 350 */ if (ResponseType.CODE.toString().equals(oauth2Params.getResponseType())) {\r\n/* 351 */ String code = authzRespDTO.getAuthorizationCode();\r\n/* 352 */ builder.setCode(code);\r\n/* 353 */ addUserAttributesToCache(sessionDataCacheEntry, code);\r\n/* 354 */ } else if (ResponseType.TOKEN.toString().equals(oauth2Params.getResponseType())) {\r\n/* 355 */ builder.setAccessToken(authzRespDTO.getAccessToken());\r\n/* 356 */ builder.setExpiresIn(String.valueOf(3600));\r\n/* */ }\r\n/* 358 */ builder.setParam(\"state\", oauth2Params.getState());\r\n/* 359 */ String redirectURL = authzRespDTO.getCallbackURI();\r\n/* 360 */ oauthResponse = builder.location(redirectURL).buildQueryMessage();\r\n/* */ }\r\n/* */ else\r\n/* */ {\r\n/* 364 */ OAuthProblemException oauthProblemException = OAuthProblemException.error(authzRespDTO.getErrorCode(), authzRespDTO.getErrorMsg());\r\n/* */ \r\n/* 366 */ oauthResponse = OAuthASResponse.errorResponse(302).error(oauthProblemException).location(oauth2Params.getRedirectURI()).setState(oauth2Params.getState()).buildQueryMessage();\r\n/* */ }\r\n/* */ \r\n/* */ \r\n/* */ \r\n/* 371 */ return oauthResponse.getLocationUri();\r\n/* */ }", "@NonNull\n @Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(getArguments().getString(\"title\"))\n .setMessage(getArguments().getString(\"message\"))\n .setCancelable(false)\n .setPositiveButton(R.string.OK, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // FIRE ZE MISSILES!\n // call callback method\n // mListener.onInfoDialogOKClick(InfoDialog.this);\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n\tprotected Control createDialogArea(Composite parent) {\n\t\tComposite container = (Composite) super.createDialogArea(parent);\n\n\t\tcreateContent(container);\n\n\t\treturn container;\n\t}", "public String getAboutBoxText();", "private void createContents() {\n\t\tshell = new Shell(getParent(), getStyle());\n\n\t\tshell.setSize(379, 234);\n\t\tshell.setText(\"\\u0410\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\");\n\t\tshell.setLayout(new BorderLayout(0, 0));\n\t\t\n\t\tLabel dialogAccountHeader = new Label(shell, SWT.NONE);\n\t\tdialogAccountHeader.setAlignment(SWT.CENTER);\n\t\tdialogAccountHeader.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.BOLD));\n\t\tdialogAccountHeader.setLayoutData(BorderLayout.NORTH);\n\t\tif(!this.isNeedAdd)\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0420\\u0435\\u0434\\u0430\\u043A\\u0442\\u0438\\u0440\\u043E\\u0432\\u0430\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tdialogAccountHeader.setText(\"\\u0414\\u043E\\u0431\\u0430\\u0432\\u043B\\u0435\\u043D\\u0438\\u0435 \\u0430\\u043A\\u043A\\u0430\\u0443\\u043D\\u0442\\u0430\");\n\t\t}\n\t\t\n\t\tComposite composite = new Composite(shell, SWT.NONE);\n\t\tcomposite.setFont(SWTResourceManager.getFont(\"Segoe UI\", 9, SWT.BOLD));\n\t\tcomposite.setLayoutData(BorderLayout.CENTER);\n\t\t\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel.setBounds(10, 16, 106, 21);\n\t\tlabel.setText(\"\\u0418\\u043C\\u044F \\u0441\\u0435\\u0440\\u0432\\u0435\\u0440\\u0430\");\n\t\t\n\t\ttextServer = new Text(composite, SWT.BORDER);\n\t\ttextServer.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextServer.setBounds(122, 13, 241, 32);\n\t\t\n\t\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_1.setText(\"\\u041B\\u043E\\u0433\\u0438\\u043D\");\n\t\tlabel_1.setBounds(10, 58, 55, 21);\n\t\t\n\t\ttextLogin = new Text(composite, SWT.BORDER);\n\t\ttextLogin.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextLogin.setBounds(122, 55, 241, 32);\n\t\ttextLogin.setFocus();\n\t\t\n\t\tLabel label_2 = new Label(composite, SWT.NONE);\n\t\tlabel_2.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tlabel_2.setText(\"\\u041F\\u0430\\u0440\\u043E\\u043B\\u044C\");\n\t\tlabel_2.setBounds(10, 106, 55, 21);\n\t\t\n\t\ttextPass = new Text(composite, SWT.PASSWORD | SWT.BORDER);\n\t\ttextPass.setFont(SWTResourceManager.getFont(\"Segoe UI\", 12, SWT.NORMAL));\n\t\ttextPass.setBounds(122, 103, 241, 32);\n\t\t\n\t\tif(isNeedAdd){\n\t\t\ttextServer.setText(\"imap.mail.ru\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttextServer.setText(this.account.getServer());\n\t\t\ttextLogin.setText(account.getLogin());\n\t\t\ttextPass.setText(account.getPass());\n\t\t}\n\t\t\n\t\tComposite composite_1 = new Composite(shell, SWT.NONE);\n\t\tcomposite_1.setLayoutData(BorderLayout.SOUTH);\n\t\t\n\t\tButton btnSaveAccount = new Button(composite_1, SWT.NONE);\n\t\tbtnSaveAccount.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tString login = textLogin.getText();\n\t\t\t\tif(textServer.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле имя сервера не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textLogin.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\telse if (!login.matches(\"^([_A-Za-z0-9-]+)@([A-Za-z0-9]+)\\\\.([A-Za-z]{2,})$\"))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле логин введен некорректно!\");\n\t\t\t\t\treturn;\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\telse if(Setting.Instance().AnyAccounts(textLogin.getText(), isNeedAdd))\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"такой логин уже существует!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(textPass.getText()==\"\")\n\t\t\t\t{\n\t\t\t\t\tMessageDialog.openError(shell, \"Ошибка\", \"Поле пароль не введен!\");\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tif(isNeedAdd)\n\t\t\t\t{\n\t\t\t\t\tservice.AddAccount(textServer.getText(), textLogin.getText(), textPass.getText());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\taccount.setLogin(textLogin.getText());\n\t\t\t\t\taccount.setPass(textPass.getText());\n\t\t\t\t\taccount.setServer(textServer.getText());\t\n\t\t\t\t\tservice.EditAccount(account);\n\t\t\t\t}\n\t\t\t\tservice.RepaintAccount(table);\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnSaveAccount.setLocation(154, 0);\n\t\tbtnSaveAccount.setSize(96, 32);\n\t\tbtnSaveAccount.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\t\tbtnSaveAccount.setText(\"\\u0421\\u043E\\u0445\\u0440\\u0430\\u043D\\u0438\\u0442\\u044C\");\n\t\t\n\t\tButton btnCancel = new Button(composite_1, SWT.NONE);\n\t\tbtnCancel.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tshell.close();\n\t\t\t}\n\t\t});\n\t\tbtnCancel.setLocation(267, 0);\n\t\tbtnCancel.setSize(96, 32);\n\t\tbtnCancel.setText(\"\\u041E\\u0442\\u043C\\u0435\\u043D\\u0430\");\n\t\tbtnCancel.setFont(SWTResourceManager.getFont(\"Segoe UI\", 10, SWT.BOLD));\n\n\t}", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setMessage(device.getName())\n \t\t.setTitle(R.string.bt_exchange_dialog_title)\n .setPositiveButton(R.string.bt_exchange_dialog_positive_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n\n \t //Add BT Device Activity\n \t performBTKeyExchange(device);\n }\n })\n .setNegativeButton(R.string.bt_exchange_dialog_negative_btn, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n \t dismiss();\n }\n });\n // Create the AlertDialog object and return it\n return builder.create();\n }", "@Override\n public String[] getResults()\n {\n String[] guidelines = new String[RESULTS_ARRAY_SIZE];\n\n for (int i = 0; i < guidelines.length; i++)\n {\n guidelines[i] = \"\";\n }\n\n // tab position\n Tab currentTab = Tab.values()[mViewPager.getCurrentItem()];\n\n switch(currentTab)\n {\n case CT:\n\n String ct_legend4 = \"Follow up CT or MRI in 6 months. May need more frequent follow-up in some situations, such as a cirrhotic patient who is a liver transplant candidate.\";\n String ct_legend6 = \"Differential diagnosis for a benign-appearing low attenuation mass includes: cyst, hemangioma, hamartoma, bile duct hamartomas\";\n String nofollowup = \"No follow up required.\";\n\n String lowaveragerisk_nofollowup = \"In a patient with low to average risk, this is most likely benign.\";\n String highrisk_followup = \"In a patient with high risk, follow up is recommended.\";\n\n guidelines[0] = \"VALID\";\n\n if(size == 0)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a low-attenuating liver lesion smaller than 0.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n }\n else if(size == 1)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \" + ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion between 0.5 cm and 1.5 cm. \";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(attenuation == 2)\n {\n if(risk_level == 0 || risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + \"8,9. \" + lowaveragerisk_nofollowup;\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \". \" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion between 0.5 cm and 1.5 cm. \" + highrisk_followup;\n guidelines[RESULTS_FOLLOWUP] = ct_legend4 + \"\\n\" + ct_legend7 + \" To evaluate, prefer multiphasic MRI\";\n }\n }\n\n\n }\n else if(size == 2)\n {\n if(attenuation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a benign appearing low-attenuating liver lesion larger than 1.5 cm.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend6;\n guidelines[RESULTS_FOLLOWUP] = nofollowup;\n }\n else if(attenuation == 1)\n {\n if(risk_level == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a low risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = ct_legend4;\n }\n else if(risk_level == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in an average risk patient.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend7;\n guidelines[RESULTS_FOLLOWUP] = \"Recommend multiphasic MRI for further evaluation.\";\n }\n else if(risk_level == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a suspicious appearing low-attenuating liver lesion larger than 1.5 cm in a high risk patient.\";\n guidelines[RESULTS_FOLLOWUP] = \"Recommend core biopsy.\";\n }\n }\n else if(attenuation == 2)\n {\n if(features == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm with benign diagnostic features.\";\n guidelines[RESULTS_CLASSIFICATION] = ct_legend8 + \"\\n\" + ct_legend9;\n guidelines[RESULTS_FOLLOWUP] = \"Differentiation of FNH from adenoma may be important especially if larger than 4 cm and subcapsular.\";\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a flash-filling robustly enhancing lesion larger than 1.5 cm without benign diagnostic features.\";\n guidelines[RESULTS_IMPRESSION] = \"Differential diagnosis includes hepatocellular or metastatic enhancing malignancy: islet cell, neuroendocrine, carcinoid, renal cell carcinoma, melanoma, choriocarcinoma, sarcoma, breast, some pancreatic lesions.\";\n guidelines[RESULTS_FOLLOWUP] = \"Consider further evaluation with multiphasic MRI or core biopsy. Otherwise \" + ct_legend4.substring(0,1).toLowerCase() + ct_legend4.substring(1);\n }\n }\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"Managing Incidental Findings on Abdominal CT: White Paper of the ACR Incidental Findings Committee\";\n guidelines[RESULTS_REFERENCE_LINK] = \"http://www.jacr.org/article/S1546-1440(10)00330-3/fulltext#sec12\";\n guidelines[RESULTS_REFERENCE_IMAGE] = \"drawable/liver_ct_mass_guidelines\";\n\n\n\n break;\n\n // LI-RADS\n case LIRADS:\n final String LR3 = \"LR-3: Intermediate probability for hepatocellular carcinoma\\n\\nObservation that does not meet criteria for other LI-RADS categories.\";\n final String LR4 = \"LR-4: Probably hepatocellular carcinoma\\n\\nObservation with imaging features suggestive but not diagnostic of HCC.\";\n final String LR5 = \"LR-5: Definitely hepatocellular carcinoma.\\n\\nObservation with imaging features diagnostic of HCC or proven to be HCC at histology.\";\n\n guidelines[0] = \"VALID\";\n\n if(initial_observation == 5)\n {\n\n String findings;\n String criteria_description = \"\";\n int score = washout + capsule;\n if(growth != 0)\n {\n score += 1;\n }\n\n if (washout == 0)\n {\n criteria_description += \", without washout\";\n }\n else\n {\n criteria_description += \", with washout\";\n }\n\n if (capsule == 0)\n {\n criteria_description += \", without capsule\";\n }\n else\n {\n criteria_description += \", with capsule\";\n }\n\n if (growth == 0)\n {\n criteria_description += \", without threshold growth\";\n }\n else\n {\n criteria_description += \", with threshold growth\";\n }\n\n if (arterial == 0)\n {\n // arterial hypo or iso-enhancement\n findings = \"There is an arterial hypoenhancing or isoenhancing lesion\";\n\n if (size == 0 || size == 1)\n {\n // size less than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 2.0 cm\" + criteria_description + \".\";\n\n if (score == 0 || score == 1)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n if (size == 2)\n {\n // size more than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n }\n else\n {\n // arterial hyperenhancement\n findings = \"There is an arterial hyperenhancing lesion\";\n\n if (size == 0)\n {\n // less than 1.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" smaller than 1.0 cm\" + criteria_description + \".\";\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else\n {\n // LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n }\n else if (size == 1)\n {\n // size between 1.0 and 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" measuring between 1.0 to 2.0 cm\" + criteria_description;\n\n if (score == 0)\n {\n // LR3\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR3;\n }\n else if (score == 1)\n {\n // LR4/LR5\n // depending on 50% growth in less than 6 months (LR-5g), or washout and visibility on US (LR-5us)\n\n if(growth == 1 && growth_5g == 1)\n {\n\n guidelines[RESULTS_IMPRESSION] += \" of at least 50% increase in diameter within 6 months.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"g\" + LR5.substring(4);\n }\n else if(washout == 1 && ultrasound_5us == 1)\n {\n guidelines[RESULTS_IMPRESSION] += \". Antecedent surveillance ultrasound demonstrates a corresponding visible discrete nodule.\";\n guidelines[RESULTS_CLASSIFICATION] = LR5.substring(0,4) + \"us\" + LR5.substring(4);\n }\n else\n {\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n\n }\n else\n {\n // LR5\n guidelines[RESULTS_IMPRESSION] += \".\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n }\n }\n else\n {\n // size larger than 2.0 cm\n guidelines[RESULTS_IMPRESSION] = findings + \" at least 2.0 cm in size\" + criteria_description + \".\";\n\n if (score == 0)\n {\n //LR4\n guidelines[RESULTS_CLASSIFICATION] = LR4;\n }\n else\n {\n //LR5\n guidelines[0] = \"VALID\";\n guidelines[RESULTS_CLASSIFICATION] = LR5;\n guidelines[RESULTS_FOLLOWUP] = \"\";\n }\n }\n\n }\n }\n else if(initial_observation == 0)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a treated liver observation.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-Treated: Treated Observation\\n\\nObservation of any category that has undergone loco-regional treatment.\";\n }\n else if(initial_observation == 1)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is definitely benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-1: Definitely Benign\\n\\nObersvation with imaging features diagnostic of a benign entity, or definite disappearance at follow up in absence of treatment.\";\n }\n else if(initial_observation == 2)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver observation that is probably benign.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-2: Probably Benign\\n\\nObservation with imaging features suggestive but not diagnostic of a benign entity.\";\n }\n else if(initial_observation == 3)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion of probable malignancy, but not specific for HCC.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-M:Probably Malignant, not specific for hepatocellular carcinoma\\n\\nObservation with imaging features suggestive of non-HCC malignancy.\";\n }\n else if(initial_observation == 4)\n {\n guidelines[RESULTS_IMPRESSION] = \"There is a liver lesion with tumor in vein.\";\n guidelines[RESULTS_CLASSIFICATION] = \"LR-5V: Definitely hepatocellular carcinoma with Tumor in Vein\\n\\nObservation with imaging features diagnostic of HCC invading vein.\";\n }\n\n guidelines[RESULTS_REFERENCE_TEXT] = \"ACR LI-RADS v2014 for CT and MRI\";\n guidelines[RESULTS_REFERENCE_LINK] = \"https://www.acr.org/Quality-Safety/Resources/LIRADS\";\n\n break;\n\n default:\n break;\n }\n\n return guidelines;\n\n }", "private String getUserIntials(Context context) throws Exception {\n String sCADSignature = \"\";\n\n logMessage(\"getUserIntials\", \"Entered...\");\n try {\n if (!bCustomerEnvironment) {\n // For OOTB, the 'CAD Signature' attribute won't be present.\n // So, return User Name.\n String sContextUserName = context.getUser();\n sCADSignature = sContextUserName;\n } else {\n //\n // TODO - In customer environment, if the CAD Signature is to be read from an attribute on the Person\n // Object, implement the code to read it from the Person Object and return it from here.\n // e.g., sCADSignature = \"Test User\"\n //\n sCADSignature = \"\";\n }\n\n logMessage(\"getUserIntials\", \"sCADSignature: \" + sCADSignature);\n } catch (Exception e) {\n }\n\n return sCADSignature;\n }", "public void getDetails() {\n presenter = new SkillPresenter(this, this);\n try {\n if (getIntent().getExtras().get(\"from\").toString().equalsIgnoreCase(\"notification\")) {\n presenter.getSkillsNotification(this, getIntent().getIntExtra(\"notification_id\", 0));\n } else if (getIntent().getExtras().get(\"from\").toString().equalsIgnoreCase(\"notificationAdapter\")) {\n presenter.getSkillsNotification(this, getIntent().getIntExtra(\"notification_id\", 0));\n } else {\n presenter.getSkills(this);\n }\n }catch (Exception e){\n e.printStackTrace();\n presenter.getSkills(this);\n }\n }", "protected abstract void fillPromptText();", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n this.setCancelable(true);\n\n //NB! Må settes av kaller:\n Bundle bundle = this.getArguments();\n this.dialogTitle = bundle.getString(\"dialogTitle\");\n this.dialogText = bundle.getString(\"dialogText\");\n this.yesButtonText = bundle.getString(\"yesButtonText\");\n this.noButtonText = bundle.getString(\"noButtonText\");\n this.callback_id = bundle.getInt(\"callback_id\");\n int icon_drawable = bundle.getInt(\"icon_drawable\");\n\n //Bruker en styla dialog (se styles.xml):\n AlertDialog.Builder builder = new AlertDialog.Builder(new ContextThemeWrapper(this.getActivity(), R.style.AlertDialogCustom));\n builder.setTitle(this.dialogTitle);\n builder.setIcon(icon_drawable);\n\n // Get the layout inflater\n LayoutInflater inflater = getActivity().getLayoutInflater();\n View view = inflater.inflate(R.layout.fragment_yesno_dialog, null);\n\n TextView tvDialogText = (TextView) view.findViewById(R.id.tvDialogText);\n tvDialogText.setText(dialogText);\n\n // Inflate and set the layout for the dialog\n // Pass null as the parent view because its going in the dialog layout\n builder.setView(view)\n // Add action buttons\n .setPositiveButton(yesButtonText, new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int id) {\n //Lagre at tipset er sett...\n mListener.onDialogPositiveClick(YesNoDialog.this, callback_id);\n }\n })\n .setNegativeButton(noButtonText, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n mListener.onDialogNegativeClick(YesNoDialog.this, callback_id);\n }\n });\n\n //Opprett og vis dialogen:\n Dialog dialog = builder.create();\n return dialog;\n }", "public String getInformation() {\n \treturn \"This is a Maths Assessment\" +\n \t\t\t \"\\nNumber of questions: \" + Integer.toString(numQuestions) + \n \t\t\t \"\\nClosing Date: \" + closingDate;\n }", "private JDialog getAboutDialog() {\n\t\tif (aboutDialog == null) {\n\t\t\taboutDialog = new JDialog(getHlavneOkno(), true);\n\t\t\taboutDialog.setTitle(\"O aplikácii SluchAnal\");\n\t\t\taboutDialog.setSize(new Dimension(100, 100));\n\t\t\taboutDialog.setResizable(false);\n\t\t\taboutDialog.setContentPane(getAboutObsah());\n\t\t}\n\t\treturn aboutDialog;\n\t}", "private void changeBioDialog() {\n\n AlertDialog.Builder alert;\n alert = new AlertDialog.Builder(this,R.style.Theme_MaterialComponents_Dialog_Alert);\n LayoutInflater inflater = getLayoutInflater();\n\n View view = inflater.inflate(R.layout.change_bio_dialog,null);\n\n changeBio = view.findViewById(R.id.change_bio);\n bCancel = view.findViewById(R.id.b_cancel);\n bSave = view.findViewById(R.id.b_save);\n\n alert.setView(view);\n alert.setCancelable(false);\n\n AlertDialog dialog = alert.create();\n dialog.getWindow().setBackgroundDrawableResource(R.color.transparent);\n\n dialog.show();\n\n bSave.setOnClickListener(v -> {\n txtBio = changeBio.getText().toString().trim();\n if(TextUtils.isEmpty(txtBio)){\n Toast.makeText(UserActivity.this, \"Your bio is empty\" , Toast.LENGTH_SHORT).show();\n dialog.dismiss();\n }\n else {\n updateUserBio(txtBio);\n dialog.dismiss();\n }\n });\n\n bCancel.setOnClickListener(v -> dialog.dismiss());\n }", "public String[] getDialogAndHeader(boolean includeLineChars) {\n\t\tif(header != null) {\n\t\t\tif(includeLineChars) {\n\t\t\t\treturn new String[]{header, \"-----------\", text};\n\t\t\t}\n\t\t\treturn new String[]{header, text};\n\t\t}\n\t\treturn new String[]{text};\n\t}", "private AlertDialog createAboutDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this).setTitle(R.string.license_title)\n .setMessage(R.string.license).setIcon(R.drawable.about)\n .setNeutralButton(R.string.about_button, null);\n AlertDialog alert = builder.create();\n return alert;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n //return super.onCreateDialog(savedInstanceState); // TODO: should we call it?\n final String title = getArguments().getString(\"TITLE\");\n final String msg = getArguments().getString(\"MESSAGE\");\n final String pos = getArguments().getString(\"POS\");\n final String neg = getArguments().getString(\"NEG\");\n final String neu = getArguments().getString(\"NEU\");\n // TODO - this is just an int... what about other ... Parcelable\n final int idx = getArguments().getInt(\"IDX\");\n final int iconid = getArguments().getInt(\"ICON_ID\");\n final float textsize = getArguments().getFloat(\"MSGSIZE\");\n\n if (savedInstanceState != null) {\n tag = savedInstanceState.getString(\"TAG\");\n }\n\n final DialogInterface.OnClickListener listener = new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialogInterface, int clickedButton) {\n ConfirmListener act = (ConfirmListener) getActivity();\n act.processConfirmation(clickedButton, tag, idx);\n }\n };\n\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity())\n .setTitle(title)\n .setMessage(msg);\n if (iconid != 0 && getResources().getResourceTypeName(iconid).equals(\"drawable\")) {\n // this must be a R.drawable.id, otherwise crash!\n // android.content.res.Resources$NotFoundException:\n builder.setIcon(iconid);\n }\n if (pos != null) {\n builder.setPositiveButton(pos, listener);\n }\n if (neg != null) {\n builder.setNegativeButton(neg, listener);\n }\n if (neu != null) {\n builder.setNeutralButton(neu, listener);\n }\n\n dialog = builder.create();\n if (textsize != 0) {\n dialog.show(); // need to call this to be able to get the TextView as non-null pointer\n TextView tv = (TextView) dialog.findViewById(android.R.id.message);\n if (tv != null) {\n tv.setTextSize(textsize);\n }\n }\n return dialog;\n }", "String privacyPolicy();", "private void showInputDialog() {\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(\"App info\");\n builder.setMessage(message);\n builder.setPositiveButton(\" Done \", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n dialog.dismiss();\n }\n });\n builder.show();\n }", "public Dialog onCreateDialog(Bundle savedInstanceState) {\n\t\tAlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\r\n\t\tLayoutInflater inflater = getActivity().getLayoutInflater();\r\n\t\tView dialogView = inflater.inflate(R.layout.posted, null);\r\n\r\n\t\tbuilder.setTitle(\"Posted Message to:\");\r\n\t\tbuilder.setView(dialogView);\r\n\t\tfinal AlertDialog dialog = builder.show();\r\n\t\t//dialog.getWindow().setLayout(520, 525);\r\n\t\t\r\n\t\tTextView message = (TextView) dialog.findViewById(R.id.sites_posted);\r\n\t\tmessage.setText(sites);\r\n\r\n\t\tButton done = (Button) dialog.findViewById(R.id.done);\r\n\t\tdone.setOnClickListener(new OnClickListener(){\r\n\r\n\t\t\tpublic void onClick(View v) {\r\n\t\t\t\t// TODO open social media options\r\n\t\t\t\tdialog.cancel();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\treturn dialog;\r\n\t}", "public DelegatingCredentialRequestEditor getEditor() {\n return editor;\n }", "@Override\n public Dialog onCreateDialog(Bundle savedInstanceState) {\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n\n builder.setMessage(R.string.dialog_internet_eng_text).setPositiveButton\n (R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n System.exit(1);\n /*\n Intent homeIntent= new Intent(getContext(), MainCardActivity.class);\n homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n startActivity(homeIntent);\n */\n }\n });\n return builder.create();\n }" ]
[ "0.64354104", "0.62976575", "0.5417809", "0.507562", "0.50256395", "0.49821436", "0.4884333", "0.48382145", "0.4822296", "0.4813085", "0.47825825", "0.47815886", "0.47737744", "0.47565377", "0.47418", "0.47138157", "0.4672604", "0.46586868", "0.464342", "0.4635018", "0.46301132", "0.46298453", "0.46145198", "0.46018612", "0.4598218", "0.45907205", "0.45815867", "0.45783758", "0.45587978", "0.45577374", "0.4557556", "0.45514858", "0.454381", "0.45362332", "0.45358744", "0.45326793", "0.45322955", "0.45238885", "0.45124853", "0.45122048", "0.45115384", "0.44984582", "0.44792393", "0.44738853", "0.44622862", "0.44546095", "0.44535995", "0.4445441", "0.44395494", "0.44386354", "0.4433915", "0.44320142", "0.44306916", "0.4418129", "0.441113", "0.44102126", "0.43741634", "0.437233", "0.43678424", "0.43624926", "0.4357433", "0.43508288", "0.43497506", "0.43449682", "0.4340583", "0.4338092", "0.43321925", "0.43319744", "0.43318364", "0.43310222", "0.4329671", "0.43248326", "0.43239462", "0.4323637", "0.43205225", "0.4317929", "0.43159285", "0.4311285", "0.43052804", "0.43003502", "0.42980608", "0.4291825", "0.42917988", "0.42899978", "0.4288874", "0.42887834", "0.42886847", "0.42844355", "0.4283731", "0.42829016", "0.42828032", "0.4275397", "0.42723402", "0.42720982", "0.42718375", "0.42702934", "0.42697105", "0.42674592", "0.42663357", "0.42662048" ]
0.729245
0
Create an entity for this test. This is a static method, as tests for other entities might also need it, if they test an entity which requires the current entity.
public static InventoryProvider createEntity(EntityManager em) { InventoryProvider inventoryProvider = new InventoryProvider() .idInventoryProvider(DEFAULT_ID_INVENTORY_PROVIDER) .code(DEFAULT_CODE) .name(DEFAULT_NAME) .price(DEFAULT_PRICE) .cuantity(DEFAULT_CUANTITY); return inventoryProvider; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Entity createEntity();", "T createEntity();", "protected abstract ENTITY createEntity();", "void create(E entity);", "void create(T entity);", "E create(E entity);", "E create(E entity);", "TestEntity buildEntity () {\n TestEntity testEntity = new TestEntity();\n testEntity.setName(\"Test name\");\n testEntity.setCheck(true);\n testEntity.setDateCreated(new Date(System.currentTimeMillis()));\n testEntity.setDescription(\"description\");\n\n Specialization specialization = new Specialization();\n specialization.setName(\"Frontend\");\n specialization.setLevel(\"Senior\");\n specialization.setYears(10);\n\n testEntity.setSpecialization(specialization);\n\n return testEntity;\n }", "protected abstract EntityBase createEntity() throws Exception;", "public static TestEntity createEntity(EntityManager em) {\n TestEntity testEntity = new TestEntity();\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n testEntity.setUserOneToMany(user);\n return testEntity;\n }", "void create(T entity) throws Exception;", "@Override\n protected void createEntity() {\n ProjectStatus status = createProjectStatus(5);\n setEntity(status);\n }", "protected T createSimulatedExistingEntity() {\n final T entity = createNewEntity();\n entity.setId(IDUtil.randomPositiveLong());\n\n when(getDAO().findOne(entity.getId())).thenReturn(entity);\n return entity;\n }", "public Entity newEntity() { return newMyEntity(); }", "public Entity newEntity() { return newMyEntity(); }", "public static TranshipTube createEntity(EntityManager em) {\n TranshipTube transhipTube = new TranshipTube()\n .status(DEFAULT_STATUS)\n .memo(DEFAULT_MEMO)\n .columnsInTube(DEFAULT_COLUMNS_IN_TUBE)\n .rowsInTube(DEFAULT_ROWS_IN_TUBE);\n // Add required entity\n TranshipBox transhipBox = TranshipBoxResourceIntTest.createEntity(em);\n em.persist(transhipBox);\n em.flush();\n transhipTube.setTranshipBox(transhipBox);\n // Add required entity\n FrozenTube frozenTube = FrozenTubeResourceIntTest.createEntity(em);\n em.persist(frozenTube);\n em.flush();\n transhipTube.setFrozenTube(frozenTube);\n return transhipTube;\n }", "public static Student createEntity(EntityManager em) {\n Student student = new Student()\n .firstName(DEFAULT_FIRST_NAME)\n .middleName(DEFAULT_MIDDLE_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .studentRegNumber(DEFAULT_STUDENT_REG_NUMBER)\n .dateOfBirth(DEFAULT_DATE_OF_BIRTH)\n .regDocType(DEFAULT_REG_DOC_TYPE)\n .registrationDocumentNumber(DEFAULT_REGISTRATION_DOCUMENT_NUMBER)\n .gender(DEFAULT_GENDER)\n .nationality(DEFAULT_NATIONALITY)\n .dateJoined(DEFAULT_DATE_JOINED)\n .deleted(DEFAULT_DELETED)\n .wxtJwtPq55wd(DEFAULT_WXT_JWT_PQ_55_WD);\n // Add required entity\n NextOfKin nextOfKin;\n if (TestUtil.findAll(em, NextOfKin.class).isEmpty()) {\n nextOfKin = NextOfKinResourceIT.createEntity(em);\n em.persist(nextOfKin);\n em.flush();\n } else {\n nextOfKin = TestUtil.findAll(em, NextOfKin.class).get(0);\n }\n student.getRelatives().add(nextOfKin);\n return student;\n }", "@PostConstruct\n protected void initNewEntity() {\n setNewEntity(getService().create());\n }", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT)\n .dateRetour(DEFAULT_DATE_RETOUR);\n // Add required entity\n Usager usager = UsagerResourceIntTest.createEntity(em);\n em.persist(usager);\n em.flush();\n emprunt.setUsager(usager);\n // Add required entity\n Exemplaire exemplaire = ExemplaireResourceIntTest.createEntity(em);\n em.persist(exemplaire);\n em.flush();\n emprunt.setExemplaire(exemplaire);\n return emprunt;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntity entity) {\n return super.createEntity(entitySetName, entity);\n }", "public ClientEntity newEntity() {\r\n if (entityType == null) {\r\n entityType = getEntityType(entitySet);\r\n }\r\n return odataClient.getObjectFactory().newEntity(new FullQualifiedName(NAMESPAVE, entityType));\r\n }", "ID create(T entity);", "public static MotherBed createEntity(EntityManager em) {\n MotherBed motherBed = new MotherBed()\n .value(DEFAULT_VALUE)\n .status(DEFAULT_STATUS);\n // Add required entity\n Nursery nursery = NurseryResourceIntTest.createEntity(em);\n em.persist(nursery);\n em.flush();\n motherBed.setNursery(nursery);\n return motherBed;\n }", "private FailingEntity createFailingEntity() {\n FailingEntity entity = app.createAndManageChild(EntitySpec.create(FailingEntity.class)\n .configure(FailingEntity.FAIL_ON_START, true));\n return entity;\n }", "@Override\n public EntityResponse createEntity(String entitySetName, OEntityKey entityKey, String navProp, OEntity entity) {\n return super.createEntity(entitySetName, entityKey, navProp, entity);\n }", "public <T extends Entity> T createEntity(EntitySpec<T> spec) {\n Map<String,Entity> entitiesByEntityId = MutableMap.of();\n Map<String,EntitySpec<?>> specsByEntityId = MutableMap.of();\n \n T entity = createEntityAndDescendantsUninitialized(spec, entitiesByEntityId, specsByEntityId);\n initEntityAndDescendants(entity.getId(), entitiesByEntityId, specsByEntityId);\n return entity;\n }", "public static Prestamo createEntity(EntityManager em) {\n Prestamo prestamo = new Prestamo().observaciones(DEFAULT_OBSERVACIONES).fechaFin(DEFAULT_FECHA_FIN);\n // Add required entity\n Libro libro;\n if (TestUtil.findAll(em, Libro.class).isEmpty()) {\n libro = LibroResourceIT.createEntity(em);\n em.persist(libro);\n em.flush();\n } else {\n libro = TestUtil.findAll(em, Libro.class).get(0);\n }\n prestamo.setLibro(libro);\n // Add required entity\n Persona persona;\n if (TestUtil.findAll(em, Persona.class).isEmpty()) {\n persona = PersonaResourceIT.createEntity(em);\n em.persist(persona);\n em.flush();\n } else {\n persona = TestUtil.findAll(em, Persona.class).get(0);\n }\n prestamo.setPersona(persona);\n // Add required entity\n User user = UserResourceIT.createEntity(em);\n em.persist(user);\n em.flush();\n prestamo.setUser(user);\n return prestamo;\n }", "default E create(E entity)\n throws TechnicalException, ConflictException {\n return create(entity, null);\n }", "public static Rentee createEntity(EntityManager em) {\n Rentee rentee = new Rentee();\n rentee = new Rentee()\n .firstName(DEFAULT_FIRST_NAME)\n .lastName(DEFAULT_LAST_NAME)\n .email(DEFAULT_EMAIL)\n .phoneNumber(DEFAULT_PHONE_NUMBER)\n .password(DEFAULT_PASSWORD);\n return rentee;\n }", "public static Pocket createEntity(EntityManager em) {\n Pocket pocket = new Pocket()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .startDateTime(DEFAULT_START_DATE_TIME)\n .endDateTime(DEFAULT_END_DATE_TIME)\n .amount(DEFAULT_AMOUNT)\n .reserved(DEFAULT_RESERVED);\n // Add required entity\n Balance balance = BalanceResourceIntTest.createEntity(em);\n em.persist(balance);\n em.flush();\n pocket.setBalance(balance);\n return pocket;\n }", "public static ItemSubstitution createEntity(EntityManager em) {\n ItemSubstitution itemSubstitution = new ItemSubstitution()\n .timestamp(DEFAULT_TIMESTAMP)\n .type(DEFAULT_TYPE)\n .substituteType(DEFAULT_SUBSTITUTE_TYPE)\n .substituteNo(DEFAULT_SUBSTITUTE_NO)\n .description(DEFAULT_DESCRIPTION)\n .isInterchangeable(DEFAULT_IS_INTERCHANGEABLE)\n .relationsLevel(DEFAULT_RELATIONS_LEVEL)\n .isCheckedToOriginal(DEFAULT_IS_CHECKED_TO_ORIGINAL)\n .origCheckDate(DEFAULT_ORIG_CHECK_DATE);\n // Add required entity\n Item item;\n if (TestUtil.findAll(em, Item.class).isEmpty()) {\n item = ItemResourceIT.createEntity(em);\n em.persist(item);\n em.flush();\n } else {\n item = TestUtil.findAll(em, Item.class).get(0);\n }\n itemSubstitution.getItems().add(item);\n return itemSubstitution;\n }", "E create(E entity, RequestContext context)\n throws TechnicalException, ConflictException;", "public static A createEntity(EntityManager em) {\n A a = new A();\n return a;\n }", "public static Edge createEntity(EntityManager em) {\n Edge edge = new Edge()\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Stone from = StoneResourceIntTest.createEntity(em);\n em.persist(from);\n em.flush();\n edge.setFrom(from);\n // Add required entity\n Stone to = StoneResourceIntTest.createEntity(em);\n em.persist(to);\n em.flush();\n edge.setTo(to);\n return edge;\n }", "public static QuizQuestion createEntity(EntityManager em) {\n QuizQuestion quizQuestion = new QuizQuestion()\n .text(DEFAULT_TEXT)\n .description(DEFAULT_DESCRIPTION);\n // Add required entity\n Quiz quiz;\n if (TestUtil.findAll(em, Quiz.class).isEmpty()) {\n quiz = QuizResourceIT.createEntity(em);\n em.persist(quiz);\n em.flush();\n } else {\n quiz = TestUtil.findAll(em, Quiz.class).get(0);\n }\n quizQuestion.setQuiz(quiz);\n return quizQuestion;\n }", "public static Partida createEntity(EntityManager em) {\n Partida partida = new Partida()\n .dataPartida(DEFAULT_DATA_PARTIDA);\n return partida;\n }", "public T create(T entity) {\n\t \tgetEntityManager().getTransaction().begin();\n\t getEntityManager().persist(entity);\n\t getEntityManager().getTransaction().commit();\n\t getEntityManager().close();\n\t return entity;\n\t }", "public static Emprunt createEntity(EntityManager em) {\n Emprunt emprunt = new Emprunt()\n .dateEmprunt(DEFAULT_DATE_EMPRUNT);\n return emprunt;\n }", "public static SitAndGo createEntity(EntityManager em) {\n SitAndGo sitAndGo = new SitAndGo()\n .format(DEFAULT_FORMAT)\n .buyIn(DEFAULT_BUY_IN)\n .ranking(DEFAULT_RANKING)\n .profit(DEFAULT_PROFIT)\n .bounty(DEFAULT_BOUNTY);\n return sitAndGo;\n }", "public static Exercise createEntity(EntityManager em) {\n Exercise exercise = new Exercise()\n .minutes(DEFAULT_MINUTES);\n return exercise;\n }", "@Override\n\tpublic Entity createEntity() {\n\t\tEntity entity = new Entity(LINKS_ENTITY_KIND);\n\t\tentity.setProperty(id_property, ID);\n\t\tentity.setProperty(url_property, url);\n\t\tentity.setProperty(CategoryID_property, CategoryID);\n\t\tentity.setProperty(note_property, note);\n\t\tentity.setProperty(createdOn_property, createdOn);\n\t\tentity.setProperty(updatedOn_property, updatedOn);\t\t\t\n\t\treturn entity;\n\t}", "public static House createEntity(EntityManager em) {\n House house = new House()\n .houseName(DEFAULT_HOUSE_NAME)\n .houseNo(DEFAULT_HOUSE_NO)\n .address(DEFAULT_ADDRESS)\n .houseToFloorNo(DEFAULT_HOUSE_TO_FLOOR_NO)\n .ownToFloorNo(DEFAULT_OWN_TO_FLOOR_NO)\n .lat(DEFAULT_LAT)\n .lon(DEFAULT_LON)\n .createdate(DEFAULT_CREATEDATE)\n .createBy(DEFAULT_CREATE_BY)\n .updateDate(DEFAULT_UPDATE_DATE)\n .updateBy(DEFAULT_UPDATE_BY)\n .image(DEFAULT_IMAGE)\n .imageContentType(DEFAULT_IMAGE_CONTENT_TYPE);\n // Add required entity\n Country country = CountryResourceIntTest.createEntity(em);\n em.persist(country);\n em.flush();\n house.setCountry(country);\n // Add required entity\n State state = StateResourceIntTest.createEntity(em);\n em.persist(state);\n em.flush();\n house.setState(state);\n // Add required entity\n City city = CityResourceIntTest.createEntity(em);\n em.persist(city);\n em.flush();\n house.setCity(city);\n // Add required entity\n Profile profile = ProfileResourceIntTest.createEntity(em);\n em.persist(profile);\n em.flush();\n house.setProfile(profile);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n house.setUser(user);\n return house;\n }", "public static CourtType createEntity(EntityManager em) {\n CourtType courtType = new CourtType()\n .type(DEFAULT_TYPE);\n return courtType;\n }", "@Override\r\n public void createNewEntity(String entityName) {\n\r\n }", "public static Ailment createEntity(EntityManager em) {\n Ailment ailment = new Ailment()\n .name(DEFAULT_NAME)\n .symptoms(DEFAULT_SYMPTOMS)\n .treatments(DEFAULT_TREATMENTS);\n return ailment;\n }", "public static Articulo createEntity(EntityManager em) {\n Articulo articulo = new Articulo()\n .titulo(DEFAULT_TITULO)\n .contenido(DEFAULT_CONTENIDO)\n .fechaCreacion(DEFAULT_FECHA_CREACION);\n return articulo;\n }", "void create(Student entity);", "public static TipoLocal createEntity(EntityManager em) {\n TipoLocal tipoLocal = new TipoLocal()\n .tipo(DEFAULT_TIPO);\n return tipoLocal;\n }", "public static Testtable2 createEntity(EntityManager em) {\n Testtable2 testtable2 = new Testtable2();\n testtable2.setColumn2(DEFAULT_COLUMN_2);\n return testtable2;\n }", "@Override\n\tprotected CoreEntity createNewEntity() {\n\t\treturn null;\n\t}", "public static OrderItem createEntity(EntityManager em) {\n OrderItem orderItem = new OrderItem().quantity(DEFAULT_QUANTITY).totalPrice(DEFAULT_TOTAL_PRICE).status(DEFAULT_STATUS);\n return orderItem;\n }", "public static Arrete createEntity(EntityManager em) {\n Arrete arrete = new Arrete()\n .intituleArrete(DEFAULT_INTITULE_ARRETE)\n .numeroArrete(DEFAULT_NUMERO_ARRETE)\n .dateSignature(DEFAULT_DATE_SIGNATURE)\n .nombreAgrement(DEFAULT_NOMBRE_AGREMENT);\n return arrete;\n }", "public static Tenant createEntity() {\n return new Tenant();\n }", "public static MyOrders createEntity(EntityManager em) {\n MyOrders myOrders = new MyOrders();\n return myOrders;\n }", "public static Enseigner createEntity(EntityManager em) {\n Enseigner enseigner = new Enseigner().dateDebut(DEFAULT_DATE_DEBUT).dateFin(DEFAULT_DATE_FIN);\n return enseigner;\n }", "@Test\n public void eventEntityConstructionTest() {\n\n Event event = new EventEntity();\n\n assertThat(event).isNotNull();\n\n }", "public static EnteteVente createEntity(EntityManager em) {\n EnteteVente enteteVente = new EnteteVente()\n .enteteVenteType(DEFAULT_ENTETE_VENTE_TYPE)\n .enteteVenteTotalHT(DEFAULT_ENTETE_VENTE_TOTAL_HT)\n .enteteVenteTotalTTC(DEFAULT_ENTETE_VENTE_TOTAL_TTC)\n .enteteVenteDateCreation(DEFAULT_ENTETE_VENTE_DATE_CREATION);\n return enteteVente;\n }", "public void createNewObject(Representation entity) throws ResourceException {\r\n\t\tT entry = createObjectFromHeaders(null, entity);\r\n\t\texecuteUpdate(entity, entry, createUpdateObject(entry));\r\n\r\n\t}", "public static Organizer createEntity(EntityManager em) {\n Organizer organizer = new Organizer()\n .name(DEFAULT_NAME)\n .description(DEFAULT_DESCRIPTION)\n .facebook(DEFAULT_FACEBOOK)\n .twitter(DEFAULT_TWITTER);\n // Add required entity\n User user = UserResourceIntTest.createEntity(em);\n em.persist(user);\n em.flush();\n organizer.setUser(user);\n return organizer;\n }", "public static Note createEntity(EntityManager em) {\n Note note = new Note().content(DEFAULT_CONTENT).title(DEFAULT_TITLE).xpos(DEFAULT_XPOS).ypos(DEFAULT_YPOS);\n return note;\n }", "public static FillingGapsTestItem createEntity(EntityManager em) {\n FillingGapsTestItem fillingGapsTestItem = new FillingGapsTestItem()\n .question(DEFAULT_QUESTION);\n return fillingGapsTestItem;\n }", "public Entity build();", "@Test\n public void createQuejaEntityTest() {\n PodamFactory factory = new PodamFactoryImpl();\n QuejaEntity newEntity = factory.manufacturePojo(QuejaEntity.class);\n QuejaEntity result = quejaPersistence.create(newEntity);\n\n Assert.assertNotNull(result);\n QuejaEntity entity = em.find(QuejaEntity.class, result.getId());\n Assert.assertNotNull(entity);\n Assert.assertEquals(newEntity.getName(), entity.getName());\n}", "public abstract boolean create(T entity) throws ServiceException;", "public static Acheteur createEntity(EntityManager em) {\n Acheteur acheteur = new Acheteur()\n .typeClient(DEFAULT_TYPE_CLIENT)\n .nom(DEFAULT_NOM)\n .prenom(DEFAULT_PRENOM)\n .tel(DEFAULT_TEL)\n .cnib(DEFAULT_CNIB)\n .email(DEFAULT_EMAIL)\n .adresse(DEFAULT_ADRESSE)\n .numroBanquaire(DEFAULT_NUMRO_BANQUAIRE)\n .deleted(DEFAULT_DELETED);\n return acheteur;\n }", "public static RoomGenericProduct createEntity(EntityManager em) {\n RoomGenericProduct roomGenericProduct = new RoomGenericProduct()\n .quantity(DEFAULT_QUANTITY)\n .quantityUnit(DEFAULT_QUANTITY_UNIT);\n return roomGenericProduct;\n }", "public static TypeOeuvre createEntity(EntityManager em) {\n TypeOeuvre typeOeuvre = new TypeOeuvre()\n .intitule(DEFAULT_INTITULE);\n return typeOeuvre;\n }", "public static Reservation createEntity(EntityManager em) {\n Reservation reservation = ReservationTest.buildReservationTest(1L);\n //reservation.setUser(User.builder().email(\"adfad\").name(\"\").build());\n return reservation;\n }", "@Test\n public void testNewEntity() throws Exception {\n\n }", "public static Model createEntity(EntityManager em) {\n\t\tModel model = new Model().name(DEFAULT_NAME).type(DEFAULT_TYPE).algorithm(DEFAULT_ALGORITHM)\n\t\t\t\t.status(DEFAULT_STATUS).owner(DEFAULT_OWNER).performanceMetrics(DEFAULT_PERFORMANCE_METRICS)\n\t\t\t\t.modelLocation(DEFAULT_MODEL_LOCATION).featureSignificance(DEFAULT_FEATURE_SIGNIFICANCE)\n\t\t\t\t.builderConfig(DEFAULT_BUILDER_CONFIG).createdDate(DEFAULT_CREATED_DATE)\n\t\t\t\t.deployedDate(DEFAULT_DEPLOYED_DATE).trainingDataset(DEFAULT_TRAINING_DATASET)\n .library(DEFAULT_LIBRARY).project(DEFAULT_PROJECT).version(DEFAULT_VERSION);\n\t\treturn model;\n\t}", "public static ProcessExecution createEntity(EntityManager em) {\n ProcessExecution processExecution = new ProcessExecution()\n .execution(DEFAULT_EXECUTION);\n return processExecution;\n }", "public static Paiement createEntity(EntityManager em) {\n Paiement paiement = new Paiement()\n .dateTransation(DEFAULT_DATE_TRANSATION)\n .montantTTC(DEFAULT_MONTANT_TTC);\n return paiement;\n }", "public static Article createEntity(EntityManager em) {\n Article article = new Article()\n .name(DEFAULT_NAME)\n .content(DEFAULT_CONTENT)\n .creationDate(DEFAULT_CREATION_DATE)\n .modificationDate(DEFAULT_MODIFICATION_DATE);\n return article;\n }", "T makePersistent(T entity);", "void buildFromEntity(E entity);", "public static XepLoai createEntity(EntityManager em) {\n XepLoai xepLoai = new XepLoai()\n .tenXepLoai(DEFAULT_TEN_XEP_LOAI);\n return xepLoai;\n }", "public static Lot createEntity(EntityManager em) {\n Lot lot = new Lot()\n .createdAt(DEFAULT_CREATED_AT)\n .updatedAt(DEFAULT_UPDATED_AT)\n .qte(DEFAULT_QTE)\n .qtUg(DEFAULT_QT_UG)\n .num(DEFAULT_NUM)\n .dateFabrication(DEFAULT_DATE_FABRICATION)\n .peremption(DEFAULT_PEREMPTION)\n .peremptionstatus(DEFAULT_PEREMPTIONSTATUS);\n return lot;\n }", "private MetaEntityImpl createMetaEntity(Class<?> entityType) {\n String className = entityType.getSimpleName();\n MetaEntityImpl managedEntity = new MetaEntityImpl();\n managedEntity.setEntityType(entityType);\n managedEntity.setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setName(className);\n ((MetaTableImpl) managedEntity.getTable()).setKeySpace(environment.getConfiguration().getKeySpace());\n return managedEntity;\n }", "public TransporteTerrestreEntity createTransporte(TransporteTerrestreEntity transporteEntity) throws BusinessLogicException {\n LOGGER.log(Level.INFO, \"Inicia proceso de creación del transporte\");\n super.createTransporte(transporteEntity);\n\n \n persistence.create(transporteEntity);\n LOGGER.log(Level.INFO, \"Termina proceso de creación del transporte\");\n return transporteEntity;\n }", "public static EmployeeCars createEntity(EntityManager em) {\n EmployeeCars employeeCars = new EmployeeCars()\n .previousReading(DEFAULT_PREVIOUS_READING)\n .currentReading(DEFAULT_CURRENT_READING)\n .workingDays(DEFAULT_WORKING_DAYS)\n .updateDate(DEFAULT_UPDATE_DATE);\n // Add required entity\n Employee employee = EmployeeResourceIT.createEntity(em);\n em.persist(employee);\n em.flush();\n employeeCars.setEmployee(employee);\n // Add required entity\n Car car = CarResourceIT.createEntity(em);\n em.persist(car);\n em.flush();\n employeeCars.setCar(car);\n return employeeCars;\n }", "public static TaskComment createEntity(EntityManager em) {\n TaskComment taskComment = new TaskComment()\n .value(DEFAULT_VALUE);\n // Add required entity\n Task newTask = TaskResourceIT.createEntity(em);\n Task task = TestUtil.findAll(em, Task.class).stream()\n .filter(x -> x.getId().equals(newTask.getId()))\n .findAny().orElse(null);\n if (task == null) {\n task = newTask;\n em.persist(task);\n em.flush();\n }\n taskComment.setTask(task);\n return taskComment;\n }", "public static Personel createEntity(EntityManager em) {\n Personel personel = new Personel()\n .fistname(DEFAULT_FISTNAME)\n .lastname(DEFAULT_LASTNAME)\n .sexe(DEFAULT_SEXE);\n return personel;\n }", "public static Ordre createEntity(EntityManager em) {\n Ordre ordre = new Ordre()\n .name(DEFAULT_NAME)\n .status(DEFAULT_STATUS)\n .price(DEFAULT_PRICE)\n .creationDate(DEFAULT_CREATION_DATE);\n return ordre;\n }", "public static Territorio createEntity(EntityManager em) {\n Territorio territorio = new Territorio().nome(DEFAULT_NOME);\n return territorio;\n }", "@Override\n @LogMethod\n public T create(T entity) throws InventoryException {\n \tInventoryHelper.checkNull(entity, \"entity\");\n repository.persist(entity);\n return repository.getByKey(entity.getId());\n }", "public static Poen createEntity(EntityManager em) {\n Poen poen = new Poen()\n .tip(DEFAULT_TIP);\n return poen;\n }", "public static Expediente createEntity(EntityManager em) {\n Expediente expediente = new Expediente()\n .horarioEntrada(DEFAULT_HORARIO_ENTRADA)\n .horarioSaida(DEFAULT_HORARIO_SAIDA)\n .diaSemana(DEFAULT_DIA_SEMANA);\n return expediente;\n }", "public static Unidade createEntity(EntityManager em) {\n Unidade unidade = new Unidade()\n .descricao(DEFAULT_DESCRICAO)\n .sigla(DEFAULT_SIGLA)\n .situacao(DEFAULT_SITUACAO)\n .controleDeEstoque(DEFAULT_CONTROLE_DE_ESTOQUE)\n .idAlmoxarifado(DEFAULT_ID_ALMOXARIFADO)\n .andar(DEFAULT_ANDAR)\n .capacidade(DEFAULT_CAPACIDADE)\n .horarioInicio(DEFAULT_HORARIO_INICIO)\n .horarioFim(DEFAULT_HORARIO_FIM)\n .localExame(DEFAULT_LOCAL_EXAME)\n .rotinaDeFuncionamento(DEFAULT_ROTINA_DE_FUNCIONAMENTO)\n .anexoDocumento(DEFAULT_ANEXO_DOCUMENTO)\n .setor(DEFAULT_SETOR)\n .idCentroDeAtividade(DEFAULT_ID_CENTRO_DE_ATIVIDADE)\n .idChefia(DEFAULT_ID_CHEFIA);\n // Add required entity\n TipoUnidade tipoUnidade;\n if (TestUtil.findAll(em, TipoUnidade.class).isEmpty()) {\n tipoUnidade = TipoUnidadeResourceIT.createEntity(em);\n em.persist(tipoUnidade);\n em.flush();\n } else {\n tipoUnidade = TestUtil.findAll(em, TipoUnidade.class).get(0);\n }\n unidade.setTipoUnidade(tipoUnidade);\n return unidade;\n }", "public void spawnEntity(AEntityB_Existing entity){\r\n\t\tBuilderEntityExisting builder = new BuilderEntityExisting(entity.world.world);\r\n\t\tbuilder.loadedFromSavedNBT = true;\r\n\t\tbuilder.setPositionAndRotation(entity.position.x, entity.position.y, entity.position.z, (float) -entity.angles.y, (float) entity.angles.x);\r\n\t\tbuilder.entity = entity;\r\n\t\tworld.spawnEntity(builder);\r\n }", "public static Book createEntity() {\n Book book = new Book()\n .idBook(DEFAULT_ID_BOOK)\n .isbn(DEFAULT_ISBN)\n .title(DEFAULT_TITLE)\n .author(DEFAULT_AUTHOR)\n .year(DEFAULT_YEAR)\n .publisher(DEFAULT_PUBLISHER)\n .url_s(DEFAULT_URL_S)\n .url_m(DEFAULT_URL_M)\n .url_l(DEFAULT_URL_L);\n return book;\n }", "private void createTestData() {\n StoreEntity store = new StoreEntity();\n store.setStoreName(DEFAULT_STORE_NAME);\n store.setPecEmail(DEFAULT_PEC);\n store.setPhone(DEFAULT_PHONE);\n store.setImagePath(DEFAULT_IMAGE_PATH);\n store.setDefaultPassCode(STORE_DEFAULT_PASS_CODE);\n store.setStoreCap(DEFAULT_STORE_CAP);\n store.setCustomersInside(DEFAULT_CUSTOMERS_INSIDE);\n store.setAddress(new AddressEntity());\n\n // Create users for store.\n UserEntity manager = new UserEntity();\n manager.setUsercode(USER_CODE_MANAGER);\n manager.setRole(UserRole.MANAGER);\n\n UserEntity employee = new UserEntity();\n employee.setUsercode(USER_CODE_EMPLOYEE);\n employee.setRole(UserRole.EMPLOYEE);\n\n store.addUser(manager);\n store.addUser(employee);\n\n // Create a new ticket.\n TicketEntity ticket = new TicketEntity();\n ticket.setPassCode(INIT_PASS_CODE);\n ticket.setCustomerId(INIT_CUSTOMER_ID);\n ticket.setDate(new Date(new java.util.Date().getTime()));\n\n ticket.setArrivalTime(new Time(new java.util.Date().getTime()));\n ticket.setPassStatus(PassStatus.VALID);\n ticket.setQueueNumber(INIT_TICKET_QUEUE_NUMBER);\n store.addTicket(ticket);\n\n // Persist data.\n em.getTransaction().begin();\n\n em.persist(store);\n em.flush();\n\n // Saving ID generated from SQL after the persist.\n LAST_TICKET_ID = ticket.getTicketId();\n LAST_STORE_ID = store.getStoreId();\n LAST_MANAGER_ID = manager.getUserId();\n LAST_EMPLOYEE_ID = employee.getUserId();\n\n em.getTransaction().commit();\n }", "@Test\n public void testNewEntity_0args() {\n // newEntity() is not implemented!\n }", "public static NoteMaster createEntity(EntityManager em) {\n NoteMaster noteMaster = new NoteMaster()\n .semestre(DEFAULT_SEMESTRE)\n .noteCC1(DEFAULT_NOTE_CC_1)\n .noteCC2(DEFAULT_NOTE_CC_2)\n .noteFinal(DEFAULT_NOTE_FINAL)\n .date(DEFAULT_DATE);\n return noteMaster;\n }", "public Camp newEntity() { return new Camp(); }", "T create() throws PersistException;", "private EntityDef createEntityDef(Class<?> entityClass)\n {\n\t\tif (entityClass.isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass.SingleTableSuperclass(entityClass);\n } else if (entityClass.getSuperclass().isAnnotationPresent(InheritanceSingleTable.class)) {\n return new SingleTableSubclass(entityClass);\n } else {\n return new EntityDef(entityClass);\n }\n\t}", "public static Restaurant createEntity(EntityManager em) {\n Restaurant restaurant = new Restaurant()\n .restaurantName(DEFAULT_RESTAURANT_NAME)\n .deliveryPrice(DEFAULT_DELIVERY_PRICE)\n .restaurantAddress(DEFAULT_RESTAURANT_ADDRESS)\n .restaurantCity(DEFAULT_RESTAURANT_CITY);\n return restaurant;\n }", "@Override\n\tpublic EmploieType creer(EmploieType entity) throws InvalideTogetException {\n\t\treturn emploieTypeRepository.save(entity);\n\t}", "public static Team createEntity(EntityManager em) {\n Team team = new Team().name(DEFAULT_NAME).description(DEFAULT_DESCRIPTION)\n .level(DEFAULT_LEVEL).totalMember(DEFAULT_TOTAL_MEMBER)\n .extraGroupName(DEFAULT_EXTRA_GROUP_NAME)\n .extraGroupDescription(DEFAULT_EXTRA_GROUP_DESCRIPTION)\n .extraGroupTotalMember(DEFAULT_EXTRA_GROUP_TOTAL_MEMBER);\n return team;\n }", "public static Produit createEntity(EntityManager em) {\n Produit produit = new Produit()\n .designation(DEFAULT_DESIGNATION)\n .soldeInit(DEFAULT_SOLDE_INIT)\n .prixAchat(DEFAULT_PRIX_ACHAT)\n .prixVente(DEFAULT_PRIX_VENTE)\n .quantiteDispo(DEFAULT_QUANTITE_DISPO)\n .quantiteInit(DEFAULT_QUANTITE_INIT)\n .seuilReaprov(DEFAULT_SEUIL_REAPROV)\n .reference(DEFAULT_REFERENCE);\n return produit;\n }", "public void constructEntity (EntityBuilder entityBuilder, Position position){\n entityBuilder.createEntity();\n entityBuilder.buildPosition(position);\n entityBuilder.buildName();\n entityBuilder.buildPosition();\n entityBuilder.buildContComp();\n entityBuilder.buildPhysComp(length, width);\n entityBuilder.buildGraphComp(length, width);\n }" ]
[ "0.772318", "0.75051135", "0.74880123", "0.7361846", "0.7314592", "0.71563506", "0.71563506", "0.715137", "0.7150589", "0.70789564", "0.70169926", "0.68033403", "0.6752896", "0.67390555", "0.67390555", "0.6711267", "0.6681522", "0.66659015", "0.6640632", "0.6624671", "0.66241235", "0.660707", "0.6588162", "0.65749156", "0.65735453", "0.65672445", "0.65517855", "0.6531176", "0.65298533", "0.6481203", "0.6420074", "0.6386873", "0.6375683", "0.63685805", "0.6313742", "0.62975", "0.62931967", "0.6258937", "0.6246413", "0.6243042", "0.6239616", "0.6219346", "0.62086976", "0.61818856", "0.61813194", "0.6175258", "0.6169793", "0.616349", "0.6161015", "0.6158743", "0.61553633", "0.6151116", "0.6143154", "0.61364424", "0.6135293", "0.613029", "0.61249316", "0.6120976", "0.6107435", "0.6106537", "0.6103076", "0.6092443", "0.6091817", "0.60818857", "0.6074391", "0.6069269", "0.6067396", "0.6066263", "0.60642225", "0.60592705", "0.6051608", "0.6041023", "0.6038719", "0.60327667", "0.6027415", "0.6022737", "0.60212785", "0.6020072", "0.60150903", "0.6014459", "0.6012988", "0.6002627", "0.6002492", "0.6001874", "0.600094", "0.5995588", "0.5994923", "0.5982309", "0.5976847", "0.59743917", "0.5973828", "0.5967244", "0.5962846", "0.5961535", "0.5953362", "0.59457004", "0.59443223", "0.59418887", "0.5938013", "0.59302163", "0.5929977" ]
0.0
-1